Unit 8, lesson 46

Matrix Exponentials and Fundamental Matrices

How the matrix exponential and fundamental matrices carry every initial state of a linear system forward, what Liouville's formula says about their determinants, and why noncommuting coefficient matrices need time order.

  • Video 46
  • Matrix Exponentials and Forced Systems

With tt as the independent variable and a prime meaning d/dtd/dt, the scalar problem y′=ayy' = ay with y(0)=y0y(0) = y_0 has the solution y=eaty0y = e^{at}y_0, a single number times the initial value. For a constant matrix AA, the system X′=AXX' = AX has a solution of the same shape, X(t)=etAX0X(t) = e^{tA}X_0, once the exponential of a matrix is defined. This lesson defines etAe^{tA}, collects independent solutions into a fundamental matrix that carries every initial state forward, and uses Liouville’s formula to follow its determinant. It also shows that the scalar rule ea+b=eaebe^{a + b} = e^ae^b can fail for matrices that do not commute, so a coefficient matrix that changes with time has to be handled in the right order.

Key terms

Matrix exponential

Definition For a constant n×nn \times n matrix AA with real or complex entries and a real number tt, the matrix exponential is

etA=∑k=0∞tkk!Ak=I+tA+t22!A2+⋯ ,\begin{aligned} e^{tA} &= \sum_{k=0}^{\infty} \frac{t^k}{k!}A^k \\[0.4em] &= I + tA + \frac{t^2}{2!}A^2 + \cdots, \end{aligned}

where A0=IA^0 = I and every power is a matrix product. The series converges for every AA and every tt, and

ddtetA=AetA=etAA,e0A=I.\begin{gathered} \frac{d}{dt}e^{tA} = Ae^{tA} = e^{tA}A, \\[0.4em] e^{0A} = I. \end{gathered}

Hence X(t)=e(t−t0)AX0X(t) = e^{(t - t_0)A}X_0 solves X′=AXX' = AX with X(t0)=X0X(t_0) = X_0 for all real tt, and by uniqueness it is the only solution. The rule esAetA=e(s+t)Ae^{sA}e^{tA} = e^{(s + t)A} holds, so etAe^{tA} is invertible with inverse e−tAe^{-tA}. If A=VDV−1A = VDV^{-1} with DD diagonal, then etA=VetDV−1e^{tA} = Ve^{tD}V^{-1}, where etDe^{tD} is the diagonal matrix with entries eλjte^{\lambda_j t} and λ1,…,λn\lambda_1, \dots, \lambda_n are the diagonal entries of DD.

In plain words The matrix exponential is the scalar exponential series with powers of a matrix in place of powers of a number. It is one matrix that takes the state at time 00 to the state at time tt, and it gives the same solutions that eigenvectors and Jordan chains produce, collected in a single formula.

Example Let AA have rows (0,1)(0, 1) and (−4,0)(-4, 0). Then A2=−4IA^2 = -4I, so A2m=(−4)mIA^{2m} = (-4)^mI and A2m+1=(−4)mAA^{2m+1} = (-4)^mA. In the series the even powers add up to cos⁡2t\cos 2t times II, and the odd powers add up to 12sin⁡2t\tfrac12\sin 2t times AA, which gives

etA=(cos⁡2tsin⁡2t2−2sin⁡2tcos⁡2t).e^{tA} = \begin{pmatrix} \cos 2t & \frac{\sin 2t}{2} \\[0.3em] -2\sin 2t & \cos 2t \end{pmatrix}.

At t=0t = 0 this is II, and differentiating each entry gives AA times the same matrix. The system is the first-order form of y′′+4y=0y'' + 4y = 0 with state X=(y,y′)TX = (y, y')^{T}.

Fundamental matrix

Definition Let A(t)A(t) be an n×nn \times n matrix whose entries are continuous on an open interval II, which includes a constant AA with I=RI = \mathbb{R}. A fundamental matrix of X′=A(t)XX' = A(t)X on II is an n×nn \times n matrix function Φ\Phi whose columns are nn linearly independent solutions on II. Equivalently, Φ′=A(t)Φ\Phi' = A(t)\Phi on II and det⁡Φ(t0)≠0\det\Phi(t_0) \ne 0 at one point t0t_0 of II, and then det⁡Φ(t)≠0\det\Phi(t) \ne 0 at every point of II. Every solution on II is X(t)=Φ(t)cX(t) = \Phi(t)c for exactly one constant vector cc. If CC is an invertible constant matrix, then ΦC\Phi C is another fundamental matrix, and every fundamental matrix arises from Φ\Phi in this way.

In plain words A fundamental matrix stores a basis of solutions side by side. At each instant its columns form a basis of the state space, so every solution is a combination of the columns. The constants multiply from the right. A constant matrix on the left, as in CΦC\Phi, generally breaks the equation, because (CΦ)′=CA(t)Φ(C\Phi)' = CA(t)\Phi, and this differs from A(t)CΦA(t)C\Phi unless CC and A(t)A(t) commute.

Example For the matrix AA above, the columns (cos⁡2t,−2sin⁡2t)T(\cos 2t, -2\sin 2t)^{T} and (sin⁡2t,2cos⁡2t)T(\sin 2t, 2\cos 2t)^{T} are solutions, which gives the matrix function

Ψ=(cos⁡2tsin⁡2t−2sin⁡2t2cos⁡2t).\Psi = \begin{pmatrix} \cos 2t & \sin 2t \\ -2\sin 2t & 2\cos 2t \end{pmatrix}.

Its determinant is 2cos⁡22t+2sin⁡22t=22\cos^2 2t + 2\sin^2 2t = 2 for every tt, so Ψ\Psi is a fundamental matrix on R\mathbb{R}. So is etAe^{tA}, and the two are related by Ψ(t)=etAdiag⁡(1,2)\Psi(t) = e^{tA}\operatorname{diag}(1, 2).

Principal fundamental matrix

Definition The principal fundamental matrix at a point t0t_0 of II is the fundamental matrix that equals II at t=t0t = t_0. Starting from any fundamental matrix Φ\Phi it is

U(t,t0)=Φ(t) Φ(t0)−1,U(t, t_0) = \Phi(t)\,\Phi(t_0)^{-1},

and the result does not depend on which Φ\Phi is used. The unique solution of X′=A(t)XX' = A(t)X with X(t0)=X0X(t_0) = X_0 is X(t)=U(t,t0)X0X(t) = U(t, t_0)X_0 on all of II. The matrix U(t,t0)U(t, t_0) is also called the state transition matrix or the propagator from t0t_0. It satisfies U(t0,t0)=IU(t_0, t_0) = I and U(t,s) U(s,t0)=U(t,t0)U(t, s)\,U(s, t_0) = U(t, t_0) for all tt, ss and t0t_0 in II. For a constant matrix, U(t,t0)=e(t−t0)AU(t, t_0) = e^{(t - t_0)A}, so etAe^{tA} is the principal fundamental matrix at 00.

In plain words The factor Φ(t0)−1\Phi(t_0)^{-1} turns the initial state into coordinates with respect to the columns of Φ(t0)\Phi(t_0), and Φ(t)\Phi(t) then rebuilds a state from the same coordinates at time tt. The product carries any state at time t0t_0 to the state at time tt, whichever basis of solutions was used to build it.

Example For Ψ\Psi above, Ψ(0)=diag⁡(1,2)\Psi(0) = \operatorname{diag}(1, 2), so Ψ(t)Ψ(0)−1=Ψ(t)diag⁡(1,12)=etA\Psi(t)\Psi(0)^{-1} = \Psi(t)\operatorname{diag}(1, \tfrac12) = e^{tA}, the principal fundamental matrix at 00. The solution with X(0)=(1,2)TX(0) = (1, 2)^{T} is X(t)=etA(1,2)TX(t) = e^{tA}(1, 2)^{T}, whose components are

x1(t)=cos⁡2t+sin⁡2t,x2(t)=2cos⁡2t−2sin⁡2t.\begin{aligned} x_1(t) &= \cos 2t + \sin 2t, \\[0.4em] x_2(t) &= 2\cos 2t - 2\sin 2t. \end{aligned}

The derivative of the first component is the second component, and the derivative of the second is −4-4 times the first, as the rows of AA require. The product Ψ(t)(1,2)T\Psi(t)(1, 2)^{T} is also a solution, but it starts at (1,4)T(1, 4)^{T}, not at the required state.

Liouville’s formula

Definition Let A(t)A(t) be continuous on an open interval II, and let Φ\Phi be any n×nn \times n matrix solution of Φ′=A(t)Φ\Phi' = A(t)\Phi on II. Then for all tt and t0t_0 in II,

det⁡Φ(t)=det⁡Φ(t0) eμ(t),μ(t)=∫t0ttr⁡A(τ) dτ,\begin{aligned} \det\Phi(t) &= \det\Phi(t_0)\,e^{\mu(t)}, \\[0.4em] \mu(t) &= \int_{t_0}^{t} \operatorname{tr}A(\tau)\,d\tau, \end{aligned}

where tr⁡A\operatorname{tr}A, the trace, is the sum of the diagonal entries. Hence det⁡Φ\det\Phi is either zero at every point of II or zero at no point of II. For a constant matrix, det⁡etA=ettr⁡A\det e^{tA} = e^{t\operatorname{tr}A}. For the first-order form of y′′+p(t)y′+q(t)y=0y'' + p(t)y' + q(t)y = 0 the trace is −p(t)-p(t), and the formula becomes Abel’s identity for the Wronskian.

In plain words The determinant of Φ(t)\Phi(t) is the signed area, or volume in higher dimensions, spanned by its columns. The trace of A(t)A(t) is the rate at which the system expands or contracts that volume, relative to its current size. So a basis of solutions can never collapse at any point of the interval.

Example The oscillator matrix AA above has trace 00, so det⁡etA=1\det e^{tA} = 1 for every tt, in agreement with cos⁡22t+sin⁡22t=1\cos^2 2t + \sin^2 2t = 1. The flow preserves area, even though its trajectories other than the origin are ellipses rather than circles. For a time-dependent case, y1=ty_1 = t and y2=t2y_2 = t^2 solve t2y′′−2ty′+2y=0t^2y'' - 2ty' + 2y = 0 on (0,∞)(0, \infty). The first-order form and the matrix of these solutions with their derivatives are

A(t)=(01−2/t22/t),Φ(t)=(tt212t).\begin{gathered} A(t) = \begin{pmatrix} 0 & 1 \\ -2/t^2 & 2/t \end{pmatrix}, \\[0.4em] \Phi(t) = \begin{pmatrix} t & t^2 \\ 1 & 2t \end{pmatrix}. \end{gathered}

Directly, det⁡Φ(t)=2t2−t2=t2\det\Phi(t) = 2t^2 - t^2 = t^2. Liouville’s formula from t0=1t_0 = 1 gives the same result, since det⁡Φ(1)=1\det\Phi(1) = 1 and the trace 2/t2/t integrates to 2ln⁡t2\ln t, so det⁡Φ(t)=e2ln⁡t=t2\det\Phi(t) = e^{2\ln t} = t^2. The interval is (0,∞)(0, \infty) because A(t)A(t) is not defined at t=0t = 0.

Noncommuting coefficient matrices

Definition Two n×nn \times n matrices commute when AB=BAAB = BA, and their commutator is AB−BAAB - BA. If AB=BAAB = BA, then eA+B=eAeB=eBeAe^{A + B} = e^Ae^B = e^Be^A. For matrices that do not commute, these three matrices can all differ. Let A(t)A(t) be continuous on II and commute with itself at different times, so that A(t)A(s)=A(s)A(t)A(t)A(s) = A(s)A(t) for all tt and ss in II. Then the principal fundamental matrix is the exponential of the integral of AA,

U(t,t0)=eB(t),B(t)=∫t0tA(τ) dτ.\begin{aligned} U(t, t_0) &= e^{B(t)}, \\[0.4em] B(t) &= \int_{t_0}^{t} A(\tau)\,d\tau. \end{aligned}

Without this condition the formula does not give a solution in general. When A(t)A(t) is constant on successive intervals, equal to A1A_1 on [t0,t1)[t_0, t_1) and to A2A_2 on [t1,t2][t_1, t_2], the state is continuous at the switch, and with the step lengths h1=t1−t0h_1 = t_1 - t_0 and h2=t2−t1h_2 = t_2 - t_1

X(t2)=eh2A2eh1A1X(t0),X(t_2) = e^{h_2A_2}e^{h_1A_1}X(t_0),

with the later factor on the left.

In plain words When the matrix changes with time, the order of events matters. The second stage acts on the state that the first stage produced, so its matrix stands to the left. Exponentiating the integral of A(t)A(t) treats all times as if they acted at once. That is justified when the matrices at different times commute, but not in general.

Example Let A1A_1 have rows (0,1)(0, 1) and (0,0)(0, 0) and act for 0≤t<10 \le t < 1, and let A2A_2 have rows (0,0)(0, 0) and (1,0)(1, 0) and act for 1≤t≤21 \le t \le 2. Each squares to zero, so eA1=I+A1e^{A_1} = I + A_1 and eA2=I+A2e^{A_2} = I + A_2, and the two-stage map is

eA2eA1=(1011)(1101)=(1112).\begin{aligned} e^{A_2}e^{A_1} &= \begin{pmatrix} 1 & 0 \\ 1 & 1 \end{pmatrix}\begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix} \\[0.4em] &= \begin{pmatrix} 1 & 1 \\ 1 & 2 \end{pmatrix}. \end{aligned}

The integral of A(t)A(t) over [0,2][0, 2] is S=A1+A2S = A_1 + A_2, which has rows (0,1)(0, 1) and (1,0)(1, 0) and squares to II. Its exponential is

eS=(cosh⁡1sinh⁡1sinh⁡1cosh⁡1),e^{S} = \begin{pmatrix} \cosh 1 & \sinh 1 \\ \sinh 1 & \cosh 1 \end{pmatrix},

with entries about 1.5431.543 and 1.1751.175, so it is not the ordered product. The reason is the commutator A1A2−A2A1=diag⁡(1,−1)A_1A_2 - A_2A_1 = \operatorname{diag}(1, -1), which is not zero. Both matrices have determinant 11, as Liouville’s formula predicts for coefficient matrices with trace zero, so the determinant cannot tell them apart.

Check yourself

  1. The functions et(1,1)Te^t(1, 1)^{T} and e−t(1,−1)Te^{-t}(1, -1)^{T} solve X′=AXX' = AX, where AA has rows (0,1)(0, 1) and (1,0)(1, 0). Build a fundamental matrix from them, find the principal fundamental matrix at 00, and compare it with the series for etAe^{tA}.
Show the answer

The fundamental matrix and its value at 00 are

Φ(t)=(ete−tet−e−t),Φ(0)=(111−1).\begin{gathered} \Phi(t) = \begin{pmatrix} e^t & e^{-t} \\ e^t & -e^{-t} \end{pmatrix}, \\[0.4em] \Phi(0) = \begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}. \end{gathered}

Its determinant is −2-2 for every tt. It is constant, as Liouville’s formula predicts for a matrix with trace 00, and it is not zero, so Φ\Phi is a fundamental matrix on R\mathbb{R}. The inverse is Φ(0)−1=12Φ(0)\Phi(0)^{-1} = \tfrac12\Phi(0). The product Φ(t)Φ(0)−1\Phi(t)\Phi(0)^{-1} has diagonal entries 12(et+e−t)=cosh⁡t\tfrac12(e^t + e^{-t}) = \cosh t and off-diagonal entries 12(et−e−t)=sinh⁡t\tfrac12(e^t - e^{-t}) = \sinh t, so

U(t,0)=(cosh⁡tsinh⁡tsinh⁡tcosh⁡t).U(t, 0) = \begin{pmatrix} \cosh t & \sinh t \\ \sinh t & \cosh t \end{pmatrix}.

In the series, A2=IA^2 = I, so the even powers add up to cosh⁡t\cosh t times II and the odd powers to sinh⁡t\sinh t times AA. That is the same matrix, as it must be, since both are the principal fundamental matrix at 00.

  1. A matrix function Φ\Phi solves Φ′=A(t)Φ\Phi' = A(t)\Phi on (0,∞)(0, \infty) with
A(t)=(1/tt2sin⁡t1),A(t) = \begin{pmatrix} 1/t & t^2 \\ \sin t & 1 \end{pmatrix},

and det⁡Φ(1)=3\det\Phi(1) = 3. Find det⁡Φ(t)\det\Phi(t) for t>0t > 0. The result tends to 00 as t→0+t \to 0^+. Does that contradict the statement that the determinant is either never zero or always zero?

Show the answer

The trace is 1/t+11/t + 1, and its integral from 11 to tt is ln⁡t+t−1\ln t + t - 1. Liouville’s formula gives

det⁡Φ(t)=3tet−1\det\Phi(t) = 3te^{t - 1}

for every t>0t > 0. This is positive on all of (0,∞)(0, \infty), so the columns stay independent there. There is no contradiction. Liouville’s formula and the dichotomy are statements about an interval on which A(t)A(t) is continuous. The point t=0t = 0 is not in (0,∞)(0, \infty), and A(t)A(t) is not even defined there.

  1. Write X=(x1,x2)TX = (x_1, x_2)^{T} and let A(t)A(t) have rows (0,t)(0, t) and (0,1)(0, 1). Solve X′=A(t)XX' = A(t)X with X(0)=(0,1)TX(0) = (0, 1)^{T} and find X(1)X(1). Then compute the shortcut exp⁡(∫01A(τ) dτ)X(0)\exp\left(\int_0^1 A(\tau)\,d\tau\right)X(0) and explain the difference.
Show the answer

The second equation x2′=x2x_2' = x_2 with x2(0)=1x_2(0) = 1 gives x2=etx_2 = e^t. The first is then x1′=tetx_1' = te^t with x1(0)=0x_1(0) = 0, so x1=(t−1)et+1x_1 = (t - 1)e^t + 1. Hence X(1)=(1,e)TX(1) = (1, e)^{T}. The integral of AA is the matrix BB with rows (0,12)(0, \tfrac12) and (0,1)(0, 1). It satisfies B2=BB^2 = B, so every power BkB^k with k≥1k \ge 1 equals BB and

eB=I+(e−1)B=(112(e−1)0e).\begin{aligned} e^B &= I + (e - 1)B \\[0.4em] &= \begin{pmatrix} 1 & \tfrac12(e - 1) \\ 0 & e \end{pmatrix}. \end{aligned}

The shortcut gives eB(0,1)T=(12(e−1),e)Te^B(0, 1)^{T} = (\tfrac12(e - 1), e)^{T}, and its first component, about 0.8590.859, is wrong. The coefficient matrices do not commute at different times, since

A(t)A(s)−A(s)A(t)=(0t−s00),\begin{aligned} &A(t)A(s) - A(s)A(t) \\[0.4em] &\quad = \begin{pmatrix} 0 & t - s \\ 0 & 0 \end{pmatrix}, \end{aligned}

which is not zero for t≠st \ne s. So the exponential of the integral is not a solution here.

How this lesson connects

It also uses hyperbolic sine and cosine.