Unit 10, lesson 52

The Matrix Exponential

Why the exponential series converges for every square matrix, how the matrix exponential behaves under similarity and for commuting sums, how to compute it for a Jordan block, and what transient growth is.

  • Video 52
  • Matrix Powers and Exponentials

The matrix BB with rows (−1,4)(-1, 4) and (0,−1)(0, -1) has both eigenvalues equal to −1-1, so one might expect etBe^{tB} to shrink every vector steadily as tt grows. In fact etBe^{tB} stretches the vector e2e_2 to more than one and a half times its length near t=0.93t = 0.93, and only later does every trajectory decay to zero. Before any of this can be computed, the infinite series that defines etBe^{tB} has to be shown to produce a matrix at all. This lesson proves that the exponential series converges for every square matrix, derives the rules for similar matrices and commuting sums, computes the exponential of a Jordan block exactly, and explains how temporary growth fits with eventual decay. Throughout, F\mathbb{F} is R\mathbb{R} or C\mathbb{C}, and a tuple such as (1,2)(1, 2) stands for a column vector.

Key terms

Exponential series

Definition For a complex number zz the exponential series is

∑k=0∞zkk!=1+z+z22!+z33!+⋯ .\sum_{k=0}^{\infty} \frac{z^k}{k!} = 1 + z + \frac{z^2}{2!} + \frac{z^3}{3!} + \cdots.

It converges absolutely for every z∈Cz \in \mathbb{C}, and its sum is written eze^z. The term with index k+1k + 1 has size ∣z∣/(k+1)\lvert z \rvert / (k + 1) times the size of the term with index kk. Choose an integer K≥0K \ge 0 with K+1≥2∣z∣K + 1 \ge 2\lvert z \rvert. Then for every k≥Kk \ge K the term with index k+1k + 1 is at most half the size of the term with index kk, so the tail is bounded by a geometric series,

∑k>K∣z∣kk!≤∣z∣KK!(12+14+⋯ )=∣z∣KK!.\begin{aligned} \sum_{k > K} \frac{\lvert z \rvert^k}{k!} &\le \frac{\lvert z \rvert^K}{K!}\left(\frac{1}{2} + \frac{1}{4} + \cdots\right) \\[0.4em] &= \frac{\lvert z \rvert^K}{K!}. \end{aligned}

So the increasing partial sums of ∑∣z∣k/k!\sum \lvert z \rvert^k / k! are bounded and converge, the tails tend to 00, and the partial sums of the original series form a Cauchy sequence. By the completeness of C\mathbb{C} they converge. Three facts are used later. The sum of the absolute values of the terms is e∣z∣e^{\lvert z \rvert}. For real x≥0x \ge 0 every term is nonnegative, so keeping a single term gives ex≥xm/m!e^x \ge x^m / m! for each m≥0m \ge 0. The product law ez+w=ezewe^{z + w} = e^z e^w is the 1×11 \times 1 case of the commuting rule below.

In plain words The factorials eventually grow much faster than the powers of any fixed number, so the terms shrink at least geometrically and the series has a finite sum.

Example For z=1z = 1 this shows e<3e < 3. For k≥1k \ge 1 we have k!≥2k−1k! \ge 2^{k-1}, with strict inequality for k≥3k \ge 3, so

∑k=2∞1k!<∑k=2∞12k−1=1,\sum_{k=2}^{\infty} \frac{1}{k!} < \sum_{k=2}^{\infty} \frac{1}{2^{k-1}} = 1,

and e=1+1+∑k≥21/k!<3e = 1 + 1 + \sum_{k \ge 2} 1/k! < 3. Keeping the first three terms gives e>2.5e > 2.5. The tail bound with K=10K = 10 says the partial sum through 1/10!1/10! is within 1/10!<3×10−71/10! < 3 \times 10^{-7} of ee.

Matrix exponential

Definition For A∈Fn×nA \in \mathbb{F}^{n \times n} and a scalar t∈Ft \in \mathbb{F}, the matrix exponential is

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

the limit of the partial sums SK=∑k=0KtkAk/k!S_K = \sum_{k=0}^{K} t^k A^k / k!, which exists by the convergence theorem below. The case t=1t = 1 is written eAe^A. Each partial sum is a polynomial in AA, so etAe^{tA} commutes with AA, and it is real when AA and tt are real. For the zero matrix every term after the first vanishes, so e0=Ie^{0} = I. If A=diag⁡(d1,…,dn)A = \operatorname{diag}(d_1, \dots, d_n), every power is diagonal and etA=diag⁡(etd1,…,etdn)e^{tA} = \operatorname{diag}(e^{td_1}, \dots, e^{td_n}). If Ns=0N^s = 0, the series for etNe^{tN} stops after the term with Ns−1N^{s-1}. The definition needs no diagonalization, so defective matrices are included. Watch for this. The exponential of a matrix is not the matrix of exponentials of its entries.

For readers who know derivatives, etAe^{tA} is differentiable in real tt with derivative AetA=etAAAe^{tA} = e^{tA}A, and x(t)=etAx0x(t) = e^{tA}x_0 is the only differentiable solution of x′(t)=Ax(t)x'(t) = Ax(t) with x(0)=x0x(0) = x_0. Nothing else in this lesson depends on that fact.

In plain words Use the scalar exponential series with the matrix in place of the number and the identity in place of 11. Every algebraic property has to be proved for the matrix series rather than read off from the scalar one.

Example Let NN have rows (0,1)(0, 1) and (0,0)(0, 0). Since N2=0N^2 = 0,

etN=I+tN=[1t01].e^{tN} = I + tN = \begin{bmatrix} 1 & t \\ 0 & 1 \end{bmatrix}.

The matrix PP with all four entries 1/21/2 satisfies P2=PP^2 = P, so Pk=PP^k = P for every k≥1k \ge 1 and

etP=I+(t+t22!+⋯ )P=I+(et−1)P.\begin{aligned} e^{tP} &= I + \left(t + \frac{t^2}{2!} + \cdots\right)P \\[0.4em] &= I + (e^t - 1)P. \end{aligned}

For the zero matrix the exponential is II, while taking the exponential of each entry would give the matrix of all ones.

Convergence of the matrix series

Definition Let ∥⋅∥\lVert \cdot \rVert be an induced matrix norm on Fn×n\mathbb{F}^{n \times n}, the operator norm of a vector norm on Fn\mathbb{F}^n, such as the spectral norm. Then ∥I∥=1\lVert I \rVert = 1 and ∥XY∥≤∥X∥ ∥Y∥\lVert XY \rVert \le \lVert X \rVert \, \lVert Y \rVert. For every A∈Fn×nA \in \mathbb{F}^{n \times n} and every scalar tt, the partial sums SKS_K of the exponential series converge, entry by entry and in this norm, and

∥etA∥≤e∣t∣ ∥A∥.\lVert e^{tA} \rVert \le e^{\lvert t \rvert \, \lVert A \rVert}.

For the proof, induction gives ∥Ak∥≤∥A∥k\lVert A^k \rVert \le \lVert A \rVert^k, where the case k=0k = 0 uses ∥I∥=1\lVert I \rVert = 1. For L>KL > K,

∥SL−SK∥≤∑k=K+1L(∣t∣ ∥A∥)kk!,\lVert S_L - S_K \rVert \le \sum_{k=K+1}^{L} \frac{\bigl(\lvert t \rvert \, \lVert A \rVert\bigr)^k}{k!},

which is part of the tail of the convergent scalar series for e∣t∣∥A∥e^{\lvert t \rvert \lVert A \rVert}, so it tends to 00 as K→∞K \to \infty. In finite dimension each entry of a matrix XX satisfies ∣xij∣≤c∥X∥\lvert x_{ij} \rvert \le c \lVert X \rVert for a constant cc that depends only on the norm, and c=1c = 1 for the spectral norm. So every entry of SKS_K is a Cauchy sequence of scalars and converges. Letting L→∞L \to \infty shows that ∥etA−SK∥\lVert e^{tA} - S_K \rVert is at most the scalar tail after KK, and the bound ∥SK∥≤e∣t∣∥A∥\lVert S_K \rVert \le e^{\lvert t \rvert \lVert A \rVert} passes to the limit. The argument uses no eigenvalues and no diagonalization.

In plain words Each term of the matrix series is no larger in norm than the matching term of a scalar exponential series, so the matrix series inherits the convergence of the scalar one.

Example For the matrix PP with all entries 1/21/2, the spectral norm is ∥P∥2=1\lVert P \rVert_2 = 1, so the bound gives ∥eP∥2≤e\lVert e^P \rVert_2 \le e. Here eP=I+(e−1)Pe^P = I + (e - 1)P is symmetric with eigenvalues 11 and ee, so the bound is attained. For D=diag⁡(1,−2)D = \operatorname{diag}(1, -2) the bound is e∥D∥2=e2≈7.39e^{\lVert D \rVert_2} = e^2 \approx 7.39, but eD=diag⁡(e,e−2)e^D = \operatorname{diag}(e, e^{-2}) has spectral norm e≈2.72e \approx 2.72, so the bound can be loose. The tail estimate also gives accuracy. If ∥A∥≤1\lVert A \rVert \le 1, the partial sum S10S_{10} of the series for eAe^A is within ∑k≥111/k!<3×10−8\sum_{k \ge 11} 1/k! < 3 \times 10^{-8} of eAe^A.

Exponential of a similar matrix

Definition Let A∈Fn×nA \in \mathbb{F}^{n \times n}, let P∈Fn×nP \in \mathbb{F}^{n \times n} be invertible and let C=P−1APC = P^{-1}AP. Then for every scalar tt

etC=P−1etAP.e^{tC} = P^{-1} e^{tA} P.

Each partial sum satisfies SK(C)=P−1SK(A)PS_K(C) = P^{-1}S_K(A)P, because polynomials respect similarity. Multiplication by fixed matrices is continuous, since

∥P−1etAP−SK(C)∥≤∥P−1∥ ∥etA−SK(A)∥ ∥P∥,\begin{aligned} &\lVert P^{-1}e^{tA}P - S_K(C) \rVert \\[0.4em] &\quad \le \lVert P^{-1} \rVert \, \lVert e^{tA} - S_K(A) \rVert \, \lVert P \rVert, \end{aligned}

and the right side tends to 00. So the exponential of an operator T ⁣:V→VT \colon V \to V on a finite-dimensional space is well defined, and it does not depend on the basis used to compute it. If A=PDP−1A = PDP^{-1} with D=diag⁡(λ1,…,λn)D = \operatorname{diag}(\lambda_1, \dots, \lambda_n), then etA=Pdiag⁡(etλ1,…,etλn)P−1e^{tA} = P\operatorname{diag}(e^{t\lambda_1}, \dots, e^{t\lambda_n})P^{-1}. If A=PJP−1A = PJP^{-1} with JJ a Jordan form over C\mathbb{C}, then etA=PetJP−1e^{tA} = Pe^{tJ}P^{-1}, and etJe^{tJ} is block diagonal with the exponentials of the Jordan blocks, because every power of a block diagonal matrix is block diagonal.

In plain words Compute the exponential in whatever basis makes the matrix simple, then convert back. The answer does not depend on the basis used.

Example Let AA have rows (2,1)(2, 1) and (1,2)(1, 2), and let PP have columns (1,1)(1, 1) and (1,−1)(1, -1). Then P−1AP=diag⁡(3,1)P^{-1}AP = \operatorname{diag}(3, 1), and

etA=12[e3t+ete3t−ete3t−ete3t+et].e^{tA} = \frac{1}{2}\begin{bmatrix} e^{3t} + e^{t} & e^{3t} - e^{t} \\ e^{3t} - e^{t} & e^{3t} + e^{t} \end{bmatrix}.

At t=0t = 0 this is II, as it must be.

Exponential of a sum of commuting matrices

Definition Let A,C∈Fn×nA, C \in \mathbb{F}^{n \times n} commute, AC=CAAC = CA. Then

eA+C=eAeC.e^{A + C} = e^A e^C.

For the proof, the double series ∑j,k≥0AjCk/(j! k!)\sum_{j, k \ge 0} A^j C^k / (j!\,k!) converges absolutely, because the sum of the norms of its terms is at most e∥A∥e∥C∥e^{\lVert A \rVert} e^{\lVert C \rVert}. Its sums over the squares j,k≤Kj, k \le K are the products of the partial sums, which converge to eAeCe^A e^C. Absolute convergence allows the terms to be grouped by total degree m=j+km = j + k without changing the sum, and because AA and CC commute the binomial theorem gives

∑j=0mAjCm−jj! (m−j)!=(A+C)mm!.\sum_{j=0}^{m} \frac{A^j C^{m-j}}{j!\,(m-j)!} = \frac{(A + C)^m}{m!}.

Summing over mm gives eA+Ce^{A + C}. Several consequences follow. For scalars rr and tt, e(r+t)A=erAetAe^{(r + t)A} = e^{rA}e^{tA}. Since eAe−A=e0=Ie^A e^{-A} = e^{0} = I, every matrix exponential is invertible, with inverse e−Ae^{-A}. The 1×11 \times 1 case is the scalar law ez+w=ezewe^{z + w} = e^z e^w. For a Jordan block J=λI+NJ = \lambda I + N with Ns=0N^s = 0, the parts λI\lambda I and NN commute, so

etJ=etλ∑j=0s−1tjNjj!e^{tJ} = e^{t\lambda} \sum_{j=0}^{s-1} \frac{t^j N^j}{j!}

exactly. The finite sum is not a truncation, since every later term is 00.

In plain words Commuting matrices behave like numbers inside the exponential. Without commutation the binomial theorem can fail, and so can the product rule.

Example For the Jordan block J3(λ)=λI+NJ_3(\lambda) = \lambda I + N of size 33,

etJ3(λ)=eλt[1tt2/201t001].e^{tJ_3(\lambda)} = e^{\lambda t}\begin{bmatrix} 1 & t & t^2/2 \\ 0 & 1 & t \\ 0 & 0 & 1 \end{bmatrix}.

For the shear with rows (1,1)(1, 1) and (0,1)(0, 1) the same rule gives ete^t times the matrix with rows (1,t)(1, t) and (0,1)(0, 1), which sends e2e_2 to et(t,1)e^t(t, 1). The hypothesis cannot be dropped. Let AA have rows (0,1)(0, 1) and (0,0)(0, 0) and let CC have rows (0,0)(0, 0) and (1,0)(1, 0). Both square to 00, so

eAeC=(I+A)(I+C)=[2111].e^A e^C = (I + A)(I + C) = \begin{bmatrix} 2 & 1 \\ 1 & 1 \end{bmatrix}.

But (A+C)2=I(A + C)^2 = I, so the even powers of A+CA + C are II and the odd powers are A+CA + C. Hence eA+Ce^{A + C} has both diagonal entries equal to (e+e−1)/2(e + e^{-1})/2 and both other entries equal to (e−e−1)/2(e - e^{-1})/2. Its diagonal entries are equal and those of eAeCe^A e^C are not, so eA+C≠eAeCe^{A + C} \ne e^A e^C.

Transient growth

Definition Let A∈Fn×nA \in \mathbb{F}^{n \times n} and let t≥0t \ge 0 be real. If every eigenvalue of AA in C\mathbb{C} has negative real part, then etA→0e^{tA} \to 0 as t→∞t \to \infty, so every trajectory x(t)=etAx0x(t) = e^{tA}x_0 tends to 00. Transient growth means that some trajectory grows for a while all the same, that is ∥etAx0∥>∥x0∥\lVert e^{tA}x_0 \rVert > \lVert x_0 \rVert for some x0x_0 and some t>0t > 0, or equivalently ∥etA∥>1\lVert e^{tA} \rVert > 1 for some t>0t > 0 in the induced norm.

The decay statement needs two scalar facts, and neither uses calculus. First, for real tt and complex λ\lambda, conjugating the absolutely convergent series term by term gives etλ‾=etλ‾\overline{e^{t\lambda}} = e^{t\overline{\lambda}}, so

∣etλ∣2=etλetλ‾=e2tRe⁡λ.\lvert e^{t\lambda} \rvert^2 = e^{t\lambda}e^{t\overline{\lambda}} = e^{2t\operatorname{Re}\lambda}.

A real exponential is positive, because ex=(ex/2)2e^x = (e^{x/2})^2 and exe−x=1e^x e^{-x} = 1, so ∣etλ∣=etRe⁡λ\lvert e^{t\lambda} \rvert = e^{t\operatorname{Re}\lambda}. Second, for a>0a > 0 and an integer m≥0m \ge 0, keeping one term of the series gives eat≥(at)m+1/(m+1)!e^{at} \ge (at)^{m+1}/(m+1)!, so for t>0t > 0

tme−at≤(m+1)!am+1 t,t^m e^{-at} \le \frac{(m+1)!}{a^{m+1}\,t},

which tends to 00. In a Jordan form A=PJP−1A = PJP^{-1} over C\mathbb{C}, every entry of etJe^{tJ} is etλe^{t\lambda} times a polynomial in tt, so with a=−Re⁡λ>0a = -\operatorname{Re}\lambda > 0 every entry tends to 00, and so does every entry of etA=PetJP−1e^{tA} = Pe^{tJ}P^{-1}. Negative real parts do not force ∥etAx0∥\lVert e^{tA}x_0 \rVert to decrease at every moment. For a normal matrix A=UΛU∗A = U\Lambda U^{*} with UU unitary and Λ=diag⁡(λ1,…,λn)\Lambda = \operatorname{diag}(\lambda_1, \dots, \lambda_n), etA=UetΛU∗e^{tA} = Ue^{t\Lambda}U^{*} has spectral norm max⁡ietRe⁡λi\max_i e^{t\operatorname{Re}\lambda_i}, so transient growth in the Euclidean norm requires a matrix that is not normal.

In plain words Eigenvalues with negative real part fix the eventual rate of decay. A chain in the Jordan form can pass a large amount from one coordinate to another before the scalar exponential factor catches up. A chain is not the only cause. A diagonalizable matrix whose eigenvectors are nearly parallel can grow early in the same way, while a normal matrix never does in the Euclidean norm.

Example Write B=−I+NB = -I + N with NN having rows (0,4)(0, 4) and (0,0)(0, 0). The parts commute and N2=0N^2 = 0, so

etB=e−t(I+tN)=e−t[14t01].e^{tB} = e^{-t}(I + tN) = e^{-t}\begin{bmatrix} 1 & 4t \\ 0 & 1 \end{bmatrix}.

At t=1/2t = 1/2 the vector e2e_2 goes to e−1/2(2,1)e^{-1/2}(2, 1), whose squared length is 5/e5/e. Since e<3<5e < 3 < 5, this is greater than 11, and the length is 5/e≈1.36\sqrt{5/e} \approx 1.36. The length peaks at about 1.521.52 when t≈0.93t \approx 0.93 and is back to 11 when t≈2.17t \approx 2.17. All the same, every entry tends to 00. The entries are e−te^{-t}, 00 and 4te−t4te^{-t}, and et≥t2/2e^t \ge t^2/2 gives 4te−t≤8/t4te^{-t} \le 8/t for t>0t > 0.

Check yourself

  1. Let AA have rows (2,1,0)(2, 1, 0), (0,2,1)(0, 2, 1) and (0,0,2)(0, 0, 2). Compute etAe^{tA} and etAe3e^{tA}e_3.
Show the answer

Write A=2I+NA = 2I + N, where NN has ones directly above the diagonal and N3=0N^3 = 0. The parts commute, so

etA=e2t(I+tN+t22N2)=e2t[1tt2/201t001].\begin{aligned} e^{tA} &= e^{2t}\left(I + tN + \frac{t^2}{2}N^2\right) \\[0.4em] &= e^{2t}\begin{bmatrix} 1 & t & t^2/2 \\ 0 & 1 & t \\ 0 & 0 & 1 \end{bmatrix}. \end{aligned}

The third column gives etAe3=e2t(t2/2,t,1)e^{tA}e_3 = e^{2t}(t^2/2, t, 1).

  1. Let A=diag⁡(1,0)A = \operatorname{diag}(1, 0) and let CC have rows (0,1)(0, 1) and (0,0)(0, 0). Compute eAeCe^A e^C, eCeAe^C e^A and eA+Ce^{A + C}. Which of them agree?
Show the answer

The products are AC=CAC = C and CA=0CA = 0, so the matrices do not commute. Here eA=diag⁡(e,1)e^A = \operatorname{diag}(e, 1) and eC=I+Ce^C = I + C, so

eAeC=[ee01],eCeA=[e101].\begin{gathered} e^A e^C = \begin{bmatrix} e & e \\ 0 & 1 \end{bmatrix}, \\[0.4em] e^C e^A = \begin{bmatrix} e & 1 \\ 0 & 1 \end{bmatrix}. \end{gathered}

The sum M=A+CM = A + C has rows (1,1)(1, 1) and (0,0)(0, 0) and satisfies M2=MM^2 = M, so eM=I+(e−1)Me^M = I + (e - 1)M, which has rows (e,e−1)(e, e - 1) and (0,1)(0, 1). All three matrices are different. The product rule can fail when the matrices do not commute, and here even the order of the two factors matters.

  1. A student argues that both eigenvalues of BB, the matrix with rows (−1,4)(-1, 4) and (0,−1)(0, -1), equal −1-1, so ∥etBx∥2≤∥x∥2\lVert e^{tB}x \rVert_2 \le \lVert x \rVert_2 for every xx and every t≥0t \ge 0. Test the claim at x=e2x = e_2 and t=1t = 1, and say what is true instead.
Show the answer

From etB=e−t(I+tN)e^{tB} = e^{-t}(I + tN) with NN having rows (0,4)(0, 4) and (0,0)(0, 0), the image is eBe2=e−1(4,1)e^{B}e_2 = e^{-1}(4, 1), with squared length 17/e217/e^2. Since e<3e < 3, we have e2<9<17e^2 < 9 < 17, so the length is greater than 11 and the claim is false.

What is true is eventual decay. The entries of etBe^{tB} are e−te^{-t}, 00 and 4te−t4te^{-t}, with 4te−t≤8/t4te^{-t} \le 8/t for t>0t > 0, so etB→0e^{tB} \to 0 as t→∞t \to \infty. The eigenvalues fix that eventual rate, but they do not bound the size at a given time. The matrix is not normal, since BBTBB^{\mathsf{T}} has rows (17,−4)(17, -4) and (−4,1)(-4, 1) while BTBB^{\mathsf{T}}B has rows (1,−4)(1, -4) and (−4,17)(-4, 17), and its Jordan chain, together with the large entry 44 above the diagonal, is what allows the early growth.

How this lesson connects