With t as the independent variable and a prime meaning d/dt, the scalar problem y′=ay with y(0)=y0 has the solution y=eaty0, a single number times the initial value. For a constant matrix A, the system X′=AX has a solution of the same shape, X(t)=etAX0, once the exponential of a matrix is defined. This lesson defines etA, 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=eaeb 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×n matrix A with real or complex entries and a real number t, the matrix exponential is
etA=k=0∑∞k!tkAk=I+tA+2!t2A2+⋯,where A0=I and every power is a matrix product. The series converges for every A and every t, and
dtdetA=AetA=etAA,e0A=I.Hence X(t)=e(t−t0)AX0 solves X′=AX with X(t0)=X0 for all real t, and by uniqueness it is the only solution. The rule esAetA=e(s+t)A holds, so etA is invertible with inverse e−tA. If A=VDV−1 with D diagonal, then etA=VetDV−1, where etD is the diagonal matrix with entries eλjt and λ1,…,λn are the diagonal entries of D.
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 0 to the state at time t, and it gives the same solutions that eigenvectors and Jordan chains produce, collected in a single formula.
Example Let A have rows (0,1) and (−4,0). Then A2=−4I, so A2m=(−4)mI and A2m+1=(−4)mA. In the series the even powers add up to cos2t times I, and the odd powers add up to 21sin2t times A, which gives
etA=(cos2t−2sin2t2sin2tcos2t).At t=0 this is I, and differentiating each entry gives A times the same matrix. The system is the first-order form of y′′+4y=0 with state X=(y,y′)T.
Fundamental matrix
Definition Let A(t) be an n×n matrix whose entries are continuous on an open interval I, which includes a constant A with I=R. A fundamental matrix of X′=A(t)X on I is an n×n matrix function Φ whose columns are n linearly independent solutions on I. Equivalently, Φ′=A(t)Φ on I and detΦ(t0)=0 at one point t0 of I, and then detΦ(t)=0 at every point of I. Every solution on I is X(t)=Φ(t)c for exactly one constant vector c. If C is an invertible constant matrix, then ΦC is another fundamental matrix, and every fundamental matrix arises from Φ 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Φ, generally breaks the equation, because (CΦ)′=CA(t)Φ, and this differs from A(t)CΦ unless C and A(t) commute.
Example For the matrix A above, the columns (cos2t,−2sin2t)T and (sin2t,2cos2t)T are solutions, which gives the matrix function
Ψ=(cos2t−2sin2tsin2t2cos2t).Its determinant is 2cos22t+2sin22t=2 for every t, so Ψ is a fundamental matrix on R. So is etA, and the two are related by Ψ(t)=etAdiag(1,2).
Principal fundamental matrix
Definition The principal fundamental matrix at a point t0 of I is the fundamental matrix that equals I at t=t0. Starting from any fundamental matrix Φ it is
U(t,t0)=Φ(t)Φ(t0)−1,and the result does not depend on which Φ is used. The unique solution of X′=A(t)X with X(t0)=X0 is X(t)=U(t,t0)X0 on all of I. The matrix U(t,t0) is also called the state transition matrix or the propagator from t0. It satisfies U(t0,t0)=I and U(t,s)U(s,t0)=U(t,t0) for all t, s and t0 in I. For a constant matrix, U(t,t0)=e(t−t0)A, so etA is the principal fundamental matrix at 0.
In plain words The factor Φ(t0)−1 turns the initial state into coordinates with respect to the columns of Φ(t0), and Φ(t) then rebuilds a state from the same coordinates at time t. The product carries any state at time t0 to the state at time t, whichever basis of solutions was used to build it.
Example For Ψ above, Ψ(0)=diag(1,2), so Ψ(t)Ψ(0)−1=Ψ(t)diag(1,21)=etA, the principal fundamental matrix at 0. The solution with X(0)=(1,2)T is X(t)=etA(1,2)T, whose components are
x1(t)x2(t)=cos2t+sin2t,=2cos2t−2sin2t.The derivative of the first component is the second component, and the derivative of the second is −4 times the first, as the rows of A require. The product Ψ(t)(1,2)T is also a solution, but it starts at (1,4)T, not at the required state.
Definition Let A(t) be continuous on an open interval I, and let Φ be any n×n matrix solution of Φ′=A(t)Φ on I. Then for all t and t0 in I,
detΦ(t)μ(t)=detΦ(t0)eμ(t),=∫t0ttrA(τ)dτ,where trA, the trace, is the sum of the diagonal entries. Hence detΦ is either zero at every point of I or zero at no point of I. For a constant matrix, detetA=ettrA. For the first-order form of y′′+p(t)y′+q(t)y=0 the trace is −p(t), and the formula becomes Abel’s identity for the Wronskian.
In plain words The determinant of Φ(t) is the signed area, or volume in higher dimensions, spanned by its columns. The trace of 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 A above has trace 0, so detetA=1 for every t, in agreement with cos22t+sin22t=1. The flow preserves area, even though its trajectories other than the origin are ellipses rather than circles. For a time-dependent case, y1=t and y2=t2 solve t2y′′−2ty′+2y=0 on (0,∞). The first-order form and the matrix of these solutions with their derivatives are
A(t)=(0−2/t212/t),Φ(t)=(t1t22t).Directly, detΦ(t)=2t2−t2=t2. Liouville’s formula from t0=1 gives the same result, since detΦ(1)=1 and the trace 2/t integrates to 2lnt, so detΦ(t)=e2lnt=t2. The interval is (0,∞) because A(t) is not defined at t=0.
Noncommuting coefficient matrices
Definition Two n×n matrices commute when AB=BA, and their commutator is AB−BA. If AB=BA, then eA+B=eAeB=eBeA. For matrices that do not commute, these three matrices can all differ. Let A(t) be continuous on I and commute with itself at different times, so that A(t)A(s)=A(s)A(t) for all t and s in I. Then the principal fundamental matrix is the exponential of the integral of A,
U(t,t0)B(t)=eB(t),=∫t0tA(τ)dτ.Without this condition the formula does not give a solution in general. When A(t) is constant on successive intervals, equal to A1 on [t0,t1) and to A2 on [t1,t2], the state is continuous at the switch, and with the step lengths h1=t1−t0 and h2=t2−t1
X(t2)=eh2A2eh1A1X(t0),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) 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 A1 have rows (0,1) and (0,0) and act for 0≤t<1, and let A2 have rows (0,0) and (1,0) and act for 1≤t≤2. Each squares to zero, so eA1=I+A1 and eA2=I+A2, and the two-stage map is
eA2eA1=(1101)(1011)=(1112).The integral of A(t) over [0,2] is S=A1+A2, which has rows (0,1) and (1,0) and squares to I. Its exponential is
eS=(cosh1sinh1sinh1cosh1),with entries about 1.543 and 1.175, so it is not the ordered product. The reason is the commutator A1A2−A2A1=diag(1,−1), which is not zero. Both matrices have determinant 1, as Liouville’s formula predicts for coefficient matrices with trace zero, so the determinant cannot tell them apart.
Check yourself
- The functions et(1,1)T and e−t(1,−1)T solve X′=AX, where A has rows (0,1) and (1,0). Build a fundamental matrix from them, find the principal fundamental matrix at 0, and compare it with the series for etA.
Show the answer
The fundamental matrix and its value at 0 are
Φ(t)=(etete−t−e−t),Φ(0)=(111−1).
Its determinant is −2 for every t. It is constant, as Liouville’s formula predicts for a matrix with trace 0, and it is not zero, so Φ is a fundamental matrix on R. The inverse is Φ(0)−1=21Φ(0). The product Φ(t)Φ(0)−1 has diagonal entries 21(et+e−t)=cosht and off-diagonal entries 21(et−e−t)=sinht, so
U(t,0)=(coshtsinhtsinhtcosht).
In the series, A2=I, so the even powers add up to cosht times I and the odd powers to sinht times A. That is the same matrix, as it must be, since both are the principal fundamental matrix at 0.
- A matrix function Φ solves Φ′=A(t)Φ on (0,∞) with
A(t)=(1/tsintt21),
and detΦ(1)=3. Find detΦ(t) for t>0. The result tends to 0 as t→0+. Does that contradict the statement that the determinant is either never zero or always zero?
Show the answer
The trace is 1/t+1, and its integral from 1 to t is lnt+t−1. Liouville’s formula gives
detΦ(t)=3tet−1
for every t>0. This is positive on all of (0,∞), 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) is continuous. The point t=0 is not in (0,∞), and A(t) is not even defined there.
- Write X=(x1,x2)T and let A(t) have rows (0,t) and (0,1). Solve X′=A(t)X with X(0)=(0,1)T and find X(1). Then compute the shortcut exp(∫01A(τ)dτ)X(0) and explain the difference.
Show the answer
The second equation x2′=x2 with x2(0)=1 gives x2=et. The first is then x1′=tet with x1(0)=0, so x1=(t−1)et+1. Hence X(1)=(1,e)T. The integral of A is the matrix B with rows (0,21) and (0,1). It satisfies B2=B, so every power Bk with k≥1 equals B and
eB=I+(e−1)B=(1021(e−1)e).
The shortcut gives eB(0,1)T=(21(e−1),e)T, and its first component, about 0.859, is wrong. The coefficient matrices do not commute at different times, since
A(t)A(s)−A(s)A(t)=(00t−s0),
which is not zero for t=s. So the exponential of the integral is not a solution here.