JustToThePoint English Website Version
JustToThePoint en español
Colaborate with us

Matrix Exponentials

Recall

The most terrifying words in the English language are: I’m from the government and I’m here to help, Ronald Reagan

Forget the politicians. The politicians are put there to give you the idea you have freedom of choice. You don’t. You have no choice. You have owners. They own you. They own everything. They own all the important land, they own and control the corporations that’ve long since bought and paid for, the senate, the congress, the state houses, the city halls, they got the judges in their back pocket, and they own all the big media companies so they control just about all of the news and the information you get to hear. They got you by the balls. They spend billions of dollars every year lobbying to get what they want. Well, we know what they want. They want more for themselves and less for everybody else. But I’ll tell you what they don’t want. They don’t want a population of citizens capable of critical thinking. They don’t want well informed, well educated people capable of critical thinking. They’re not interested in that. That doesn’t help them, George Carlin

Matrix Exponentials

Differential equations

Definition. A differential equation is an equation that involves one or more dependent variables, their derivatives with respect to one or more independent variables, and the independent variables themselves, e.g., $\frac{dy}{dx} = 3x +5y, y’ + y = 4xcos(2x), \frac{dy}{dx} = x^2y+y, etc.$

It involves (e.g., $\frac{dy}{dx} = 3x +5y$):

First-Order Linear Ordinary Differential Equations (ODEs)

Definition. A first-order linear ordinary differential equation is an ordinary differential equation (ODE) involving an unknown function y(x), its first derivative y′, and functions of the independent variable x, which can be written in the general form:: a(x)y' + b(x)y = c(x) where:

These equations are termed “linear” because the unknown function y and its derivative y’ appear to the first power and are not multiplied together or composed in any nonlinear way.

If the function c(x)=0 for all x in the interval of interest, the equation simplifies to: a(x)y’ + b(x)y = 0. Such an equation is called a homogeneous linear differential equation.

The Existence and Uniqueness Theorem provides crucial insight into the behavior of solutions to first-order differential equations ODEs. It states that if:

Then, the differential equation y' = f(x, y) has a unique solution to the initial value problem through the point (x0, y0), meaning that it satisfies the initial condition y(x0) = y0.

This theorem ensures that under these conditions, the solution exists and is unique near x = x0.

Matrix Exponentials

Matrix Exponentials; Application to Solving Systems.

In advanced calculus and differential equations, solving systems of linear differential equations is a fundamental topic. Specifically, we focus on systems of the form: $\vec{x’}(t) = A\vec{x}(t)$ where:

Our goal is to find the general solution to this system using matrix exponentials. This method provides a powerful and efficient way to solve linear systems of differential equations.

Fundamental Matrix Solution

A fundamental matrix, X(t), for the system $\vec{x'} = A\vec{x}$, is a matrix whose columns are linearly independent solutions to the system. In other words, if $\vec{x_1}$ and $\vec{x_2}$ are two linearly independent solutions, then we can construct the fundamental matrix as:

X(t) = $(\begin{smallmatrix}\vec{x_1}(t) : \vec{x_2}(t)\end{smallmatrix}) = (\begin{smallmatrix}x_1(t) & x_2(t)\\ y_1(t) & y_2(t)\end{smallmatrix})$ where the first colum is the vector $\vec{x_1}(t)$ and the second column is the vector $\vec{x_2}(t)$.

There is not a unique fundamental matrix because its columns can be formed by any two linearly independent solutions, and there can be many such pairs.

Properties of the Fundamental Matrix

  1. Non-zero determinant. A key property of a fundamental matrix X(t) is that its determinant is non-zero for all t: det(X(t)) ≠ 0. This ensures that the columns of X(t) are linearly independent.
  2. The matrix X(t) satisfies the original differential equation: X’(t) = AX(t) where X’(t) is the derivative of X(t) with respect to t. This is because each column of X(t) is a solution to $\vec{x’} = A\vec{x}$.

General Solution

Once the fundamental matrix X(t) is found, we can express the general solution to the system $\vec{x’} = A\vec{x}$ as:

$\vec{x}(t) = c_1\vec{x_1}(t)+ c_2\vec{x_2}(t) ↭ \vec{x} = X(t)\vec{c} = [\vec{x_1}\vec{x_2}](\begin{smallmatrix}c_1\\ c_2\end{smallmatrix})$ where $\vec{c} = (\begin{smallmatrix}c_1\\ c_2\end{smallmatrix})$ is a vector of constants determined by initial conditions.

The general solution can also be written in matrix form: $\vec{x}(t) = X(t)\vec{c}$ where C = $(\begin{smallmatrix}\vec{c_1}\\ \vec{c_2}\end{smallmatrix})$

This expression emphasizes that any solution $\vec{x}(t)$ is a linear combination of the fundamental solutions.

There isn’t a unique fundamental matrix; any matrix formed by two independent solutions can serve as a fundamental matrix.

Futhermore, if C is any invertible 2 x 2 matrix (det(C) ≠ 0), then multiplying it by the fundamental matrix X(t): $\vec{x}(t) = X(t)C$ also represents a fundamental matrix solution. This shows that the general solution can be expressed with different constants or scaling factors, but the essential structure remains the same.

Matrix Exponential

The matrix exponential is a powerful tool for solving systems of linear differential equations. For a system of the form: $\vec{x’} = A\vec{x}$ the solution can be expressed using the matrix exponential eAt.

To understand how the matrix exponential works, let’s first consider the simpler case of a scalar differential equation: x’ = ax where a is a constant. The solution is x(t) = ceat.

The exponential function eat can be expressed as its power series expansion: $e^{at} = 1 + at + a^2\frac{t^2}{2!}+ a^3\frac{t^3}{3!}+ ···$

This series converges, and differentiating it (term by term) gives the derivative:

$\frac{de^{at}}{dt} = 0 + 1·a + a^2t + a^3\frac{t^2}{2} + ··· =[\text{Factoring a}] a(1 +at + a^2\frac{t^2}{2} + ···) = ae^{at}$. Thus, eat solve the equation x’ = ax.

For a system of the form: $\vec{x’} = A\vec{x}$, the solution can be expressed using the matrix exponential of A. The matrix exponential, denoted eAt, is defined as: $e^{At} := I_2 + At + A^2\frac{t^2}{2!} + A^3\frac{t^3}{3!} + ···$ where I2 is the identity matrix, and An represents the matrix A to the n-th power.

The matrix exponential eAt provides the fundamental matrix for the system $\vec{x’} = A\vec{x}$. The general solution to the system is given by $\vec{x}(t)=e^{At}\vec{c}$ where $\vec{c}$ is a constant vector determined by the initial conditions of the system.

For a system $\vec{x’} = A\vec{x}$, the matrix exponential eAt plays the same role as the scalar exponential eat for the scalar case. Just as eat solve x’ = ax, the matrix exponential solves: $\frac{d}{dt}e^{At}=Ae^{At}$

First, note that the derivative of eAt can be computed by differentiating its series term-by-term:

$\frac{d}{dt}e^{At} =[e^{At} \text{ is defined as }] \frac{d}{dt}(I_2 + At + A^2\frac{t^2}{2!} + A^3\frac{t^3}{3!} + A^4\frac{t^4}{4!} + ···) = A + A^2t + \frac{A^3t^2}{2!} + \frac{A^4t^4}{3!} ··· =[\text{Factoring A}] A(I + At + \frac{A^2t^2}{2!} + \frac{A^3t^3}{3!}+···) = Ae^{At}$

Thus, eAt satisfies X' = AX, proving that it is a fundamental matrix for the system. The general solution to the system $\vec{x'} = A\vec{x}$ can be expressed as $\vec{x}(t) = e^{At}\vec{c}$ where $\vec{c}$ is a vector of constants determined by initial conditions.

Initial condition. At t = 0, the matrix exponential reduces to the identity matrix: eA·0 = I. Thus, det(eAt) = 1 ≠ 0, ensuring that eAt is non-singular (invertible) and can serve as a valid fundamental matrix.

Example: Solving the System using Matrix Exponentials

Consider the system of differential equations: $\begin{cases} x’ = y \\ y’ = x \end{cases}$

We can rewrite this system in matrix form as: $\vec{x’} = A\vec{x} = (\begin{smallmatrix}0 & 1\\ 1 & 0\end{smallmatrix})(\begin{smallmatrix}x\\ y\end{smallmatrix})$ where $A = (\begin{smallmatrix}0 & 1\\ 1 & 0\end{smallmatrix})$ and $\vec{x} = (\begin{smallmatrix}x\\ y\end{smallmatrix})$

To solve the system, we will compute the matrix exponential eAt, which is defined by the power series: $e^{At} = I_2 + At + A^2\frac{t^2}{2!} + A^3\frac{t^3}{3!} + ··· $ where I2 is the 2×2 identity matrix.

Computing Powers of A: $A^2 = (\begin{smallmatrix}0 & 1\\ 1 & 0\end{smallmatrix})(\begin{smallmatrix}0 & 1\\ 1 & 0\end{smallmatrix}) = (\begin{smallmatrix}1 & 0\\ 0 & 1\end{smallmatrix}) = I_2, A^3 = A^2A = I_2A = A, A^4 = A^3A = AA = I_2$

Substituting the computed powers into the series:

$e^{At} = I_2 + At + A^2\frac{t^2}{2!} + A^3\frac{t^3}{3!} + ··· = (\begin{smallmatrix}1 & 0\\ 0 & 1\end{smallmatrix}) + (\begin{smallmatrix}0 & 1\\ 1 & 0\end{smallmatrix})t + (\begin{smallmatrix}1 & 0\\ 0 & 1\end{smallmatrix})\frac{t^2}{2!} + (\begin{smallmatrix}0 & 1\\ 1 & 0\end{smallmatrix})\frac{t^3}{3!}+··· = (\begin{smallmatrix}1+\frac{t^2}{2!}+\frac{t^4}{4!}+··· & t+\frac{t^3}{3!}+···\\ t+\frac{t^3}{3!}+··· & 1+\frac{t^2}{2!}+\frac{t^4}{4!}+···\end{smallmatrix}) = (\begin{smallmatrix}cosh(t) & sinh(t)\\ sinh(t) & cosh(t)\end{smallmatrix})$ where we have recognized the series expansions: $cosh(t) = 1+\frac{t^2}{2!}+\frac{t^4}{4!}+···, sinh(t) = t+\frac{t^3}{3!}+···$

The matrix $(\begin{smallmatrix}cosh(t) & sinh(t)\\ sinh(t) & cosh(t)\end{smallmatrix})$ can also be expressed in terms of exponentials: $\frac{1}{2}(\begin{smallmatrix}e^t+e^{-t} & e^t-e^{-t}\\ e^t-e^{-t} & e^t+e^{-t}\end{smallmatrix})$

$cosh(t) = \frac{e^t+e^{-t}}{2}, sinh(t) = \frac{e^t-e^{-t}}{2}$

If we are dealing with an initial value problem $\vec{x’} = A\vec{x}$ with initial conditions $\vec{x}(0) = \vec{x_0}$

The general solution to the system is $\vec{x}(t) = e^{At}\vec{C}$ where $\vec{C}$ is a constant vector determined by the initial conditions.

If we are given an initial condition $\vec{x}(0) = \vec{x_0}$, we have $\vec{x_0} = e^{A·0}\vec{C} = I_2\vec{C} = \vec{C} ⇒ \vec{C} = \vec{x}(0)$

Therefore, the general solution is $\vec{x} = e^{At}\vec{x}(0)$

Properties of the Matrix Exponential.

  1. Solves the differential equation. It satisfies $\frac{d}{dt}e^{At} = Ae^{At}$
  2. Initial condition at t = 0, the matrix exponential reduces to the identity matrix, and the general solution is $\vec{x} = e^{At}\vec{x}(0)$.

Exponential Law for Matrices

In scalar algebra, we have the exponential law: ea+b = eaeb

However, in matrix algebra, the exponential law eA+B = eAeB does not generally hold for matrices unless matrices A and B commute, meaning AB = BA.

Some special cases where the Exponential law holds include:

  1. Scalar Matrices: A = cI, where c is a scalar and I is the identity matrix, then A commutes with any matrix B because: AB = cIB = cB = Bc = BcI = BA. Example: $A = (\begin{smallmatrix}c & 0\\ 0 & c\end{smallmatrix})$.
  2. Opposite Matrices: B = -A, then A and B obviously commute AB = A(-A) = -A2 = (-A)A = BA. In this case, eA + B = eAeB = eAe-A = e0 = I.
  3. Matrices where B = A-1. If B = A-1 and A is invertible, then A and B commute because AB = AA-1 = I = A-1A = BA.

Methods for Computing eAt

Computing the matrix exponential eAt is essential for solving linear system of differerential equations of the form: $\vec{x}’(t) = A \vec{x}(t)$. There are serveral methods to compute eAt:

  1. Find a fundamental matrix X(t). Solve for two linearly independent solutions $\vec{x_1}(t)$ and $\vec{x_2}(t)$, and form the matrix $X(t) = (\vec{x_1}(t)~\vec{x_2}(t))$.
  2. Evaluate X(0) = $(\vec{x_1}(0)~\vec{x_2}(0))$ This is the value of the fundamental matrix at t = 0.
  3. Compute X(0)-1. X is a fundamental matrix and det(X) ≠ 0 for any t.
  4. Construct eAt: The matrix exponential eAt can be written as (Recall X(t) = eAtC = eAtX(0)), eAt = X(t)·X(0)-1. eAt solve X’(t) = AX(t) (just like any fundamental matrix: $\vec{x}(t) = X(t)C$ where C = X(0)-1). At t = 0, X(0)·X(0)-1 = I2 = eA·0. Conclusion: eAt = X(t)·X(0)-1.

This method: (i) avoids directly calculating the matrix exponential from the infinite series definition, which can be complex for larger matrices; (ii) provides a systematic approach applicable to various matrices; (iii) guarantees that eAt satisfies both the differential equation and the initial condition at t = 0. Once you find a fundamental matrix X(t), the calculation of eAt becomes straightforward using X(0)-1.

Applying the Fundamental Matrix Method

Consider the system of firt-order linear differential equations: $\begin{cases} x’ = y \\ y’ = x \end{cases}$

This can be written in matrix form as $\vec{x’} = A\vec{x}$ where $\vec{x} =(\begin{smallmatrix} x\\ y\end{smallmatrix})$ and $A = (\begin{smallmatrix}0 & 1\\ 1 & 0\end{smallmatrix})$.

Our goal is to find the general solution $\vec{x}$. One method to solve such systems is to use the fundamental matrix and the matrix exponential.

Step 1: Find Eigenvalues and Eigenvectors

We start by finding the eigenvalues of A. The characteristic equation is: det(A -λI) = 0 ↭ $det(\begin{smallmatrix}-λ & 1\\ 1 & -λ\end{smallmatrix}) = 0 ↭ λ^2-1=0↭ λ_1 = 1, λ_2 = 2.$

Now, find the eigenvectors

$\begin{cases} -a_1 + a_2 = 0 \\ a_1 -a_2 = 0 \end{cases}$

$a_1 = a_2 =[\text{Simplicity}] 1 ⇒ \vec{v} = (\begin{smallmatrix}1\\ 1\end{smallmatrix})$

$\begin{cases} a_1 + a_2 = 0 \\ a_1 + a_2 = 0 \end{cases}$

$a_1 = -a_2, a_1 =[\text{Simplicity}] 1, a_2 = -1 ⇒ \vec{v} = (\begin{smallmatrix}1\\ -1\end{smallmatrix})$

Step 2: Form the General Solution and the Fundamental Matrix X(t)

The general solution to $\vec{x’} = A\vec{x}$ is: $\vec{x}(t) = c_1e^{t}(\begin{smallmatrix}1\\ 1\end{smallmatrix}) + c_2e^{-t}(\begin{smallmatrix}1\\ -1\end{smallmatrix})$

Thus, the fundamental matrix is formed by placing independent solutions as columns into a matrix: $X(t) = (\vec{x_1}(t)~\vec{x_2}(t)) = (\begin{smallmatrix}e^{t} & e^{t}\\ e^{t} & -e^{-t}\end{smallmatrix})$

The fundamental matrix X(t) is constructed from a set of linearly independent solutions.

Step 3: Compute X(0) and X(0)-1

At t = 0, X(0) = $(\begin{smallmatrix}e^{0} & e^{-0}\\ e^{-0} & -e^{-0}\end{smallmatrix}) = (\begin{smallmatrix}1 & 1\\ 1 & -1\end{smallmatrix})$

det(X(0)) = $det(\begin{smallmatrix}1 & 1\\ 1 & -1\end{smallmatrix}) = -1 -1 = -2 ≠ 0$. Since det(X(0)) = -2, X(0) is invertible.

$X(0)^{-1} = \frac{1}{-2}(\begin{smallmatrix}-1 & -1\\ -1 & 1\end{smallmatrix}) = \frac{1}{2}(\begin{smallmatrix}1 & 1\\ 1 & -1\end{smallmatrix})$

Step 4: Compute eAt = X(t)X(0)-1

$e^{At} = X(t)X(0)^{-1} = (\begin{smallmatrix}e^{t} & e^{-t}\\ e^{t} & -e^{-t}\end{smallmatrix})·\frac{1}{2}(\begin{smallmatrix}1 & 1\\ 1 & -1\end{smallmatrix}) = \frac{1}{2}(\begin{smallmatrix}e^{t} + e^{-t} & e^{t} - e^{-t}\\ e^{t} -e^{-t} & e^{t} + e^{-t}\end{smallmatrix})$ This result matches the earlier expression for eAt.

We have found the solution to the system: $\vec{x}(t) = e^{At}\vec{x_0} = (\begin{smallmatrix}cosh(t) & sinh(t)\\ sinh(t) & cosh(t)\end{smallmatrix})\vec{x_0}$. This method confirms that the matrix exponentials provides a powerful tool for solving linear systems of differential equations.

Bibliography

This content is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License and is based on MIT OpenCourseWare [18.01 Single Variable Calculus, Fall 2007].
  1. NPTEL-NOC IITM, Introduction to Galois Theory.
  2. Algebra, Second Edition, by Michael Artin.
  3. LibreTexts, Calculus and Calculus 3e (Apex). Abstract and Geometric Algebra, Abstract Algebra: Theory and Applications (Judson).
  4. Field and Galois Theory, by Patrick Morandi. Springer.
  5. Michael Penn, and MathMajor.
  6. Contemporary Abstract Algebra, Joseph, A. Gallian.
  7. YouTube’s Andrew Misseldine: Calculus. College Algebra and Abstract Algebra.
  8. MIT OpenCourseWare [18.03 Differential Equations, Spring 2006], YouTube by MIT OpenCourseWare.
  9. Calculus Early Transcendentals: Differential & Multi-Variable Calculus for Social Sciences.
Bitcoin donation

JustToThePoint Copyright © 2011 - 2025 Anawim. ALL RIGHTS RESERVED. Bilingual e-books, articles, and videos to help your child and your entire family succeed, develop a healthy lifestyle, and have a lot of fun. Social Issues, Join us.

This website uses cookies to improve your navigation experience.
By continuing, you are consenting to our use of cookies, in accordance with our Cookies Policy and Website Terms and Conditions of use.