Algorithm Search⌘K

Definitioncore

Matrix exponential

Also called exponential of a matrix, e^(At).

The sum of the series I + A + A^2/2! + ..., which gives the solution x(t) = e^(At)x(0) of the linear system x' = Ax.

The matrix exponential of a square matrix AA is eA=I+A+A22!+A33!+⋯e^A = I + A + \frac{A^2}{2!} + \frac{A^3}{3!} + \cdots, the power series of the scalar exponential with powers of the matrix in place of powers of a number. Its main use is the solution of linear differential equations: the solution of x˙=Ax\dot x = A x with x(0)=x0x(0) = x_0 is x(t)=eAtx0x(t) = e^{At} x_0. The same object gives the transition probabilities eQte^{Qt} of a continuous-time Markov chain, the rigid motions eξ^θe^{\hat\xi \theta} of the SE(3) exponential map in robotics, and the limit of the product integral behind the Aalen-Johansen estimator. Unlike the scalar case, eA+B=eAeBe^{A + B} = e^A e^B holds when AA and BB commute, and fails in general when they do not.

Definition

Let A∈Cn×nA \in \mathbb{C}^{n \times n}. The matrix exponential of AA is

eA=exp⁡(A)=∑k=0∞Akk!,A0=I.e^A = \exp(A) = \sum_{k=0}^{\infty} \frac{A^k}{k!}, \qquad A^0 = I.

The series converges for every AA. Take any submultiplicative matrix norm (see matrix norms). Then ∥Ak/k!∥≤∥A∥k/k!\|A^k / k!\| \le \|A\|^k / k!, and ∑k∥A∥k/k!=e∥A∥\sum_k \|A\|^k / k! = e^{\|A\|} is finite. So the series converges absolutely, entry by entry, and ∥eA∥≤e∥A∥\|e^A\| \le e^{\|A\|}. The same bound on ∥At∥\|At\| shows that t↦eAtt \mapsto e^{At} is a power series in tt with infinite radius of convergence, so it can be differentiated term by term:

ddteAt=∑k≥1ktk−1Akk!=AeAt=eAtA.\frac{d}{dt} e^{At} = \sum_{k \ge 1} \frac{k t^{k-1} A^k}{k!} = A e^{At} = e^{At} A.

Equivalent characterizations. Each of these defines the same matrix:

  1. Differential equation. X(t)=eAtX(t) = e^{At} is the unique solution of X˙=AX\dot X = A X, X(0)=IX(0) = I. The derivative above shows that it is a solution, and the equation is linear, so it has only one solution by the Picard-Lindelöf theorem. This is why x(t)=eAtx0x(t) = e^{At} x_0 solves x˙=Ax\dot x = A x.
  2. Limit. eA=lim⁡k→∞(I+A/k)ke^A = \lim_{k \to \infty} (I + A/k)^k. This is Euler's method with step 1/k1/k on X˙=AX\dot X = A X.
  3. Laplace transform. For Re⁡s\operatorname{Re} s larger than every real part of an eigenvalue of AA, ∫0∞e−steAt dt=(sI−A)−1\int_0^\infty e^{-st} e^{At}\, dt = (sI - A)^{-1}. So eAte^{At} is the inverse Laplace transform of the resolvent, entry by entry.
  4. Jordan form. If A=TJT−1A = T J T^{-1} with JJ in Jordan normal form, then eAt=TeJtT−1e^{At} = T e^{Jt} T^{-1}, and for a Jordan block Jk(λ)=λI+NJ_k(\lambda) = \lambda I + N of size kk, eJk(λ)t=eλt∑j=0k−1tjj!Nje^{J_k(\lambda) t} = e^{\lambda t} \sum_{j=0}^{k-1} \frac{t^j}{j!} N^j, because λI\lambda I and NN commute and Nk=0N^k = 0. For a diagonalizable A=VΛV−1A = V \Lambda V^{-1}, eAt=Vdiag⁡(eλit)V−1e^{At} = V \operatorname{diag}(e^{\lambda_i t}) V^{-1}.
  5. Polynomial. By the Cayley-Hamilton theorem, AnA^n and all higher powers are combinations of I,A,…,An−1I, A, \dots, A^{n-1}, so eAt=∑j=0n−1αj(t)Aje^{At} = \sum_{j=0}^{n-1} \alpha_j(t) A^j for scalar functions αj\alpha_j. The functions depend on AA through its eigenvalues.

Properties. These follow from the series or from characterization 1. Let A,B∈Cn×nA, B \in \mathbb{C}^{n \times n} and s,ts, t scalars.

  • e0=Ie^{0} = I, eA(s+t)=eAseAte^{A(s + t)} = e^{As} e^{At}, and eAe^{A} is invertible with (eA)−1=e−A(e^A)^{-1} = e^{-A}. So eAte^{At} is never singular.
  • Similarity. eTAT−1=TeAT−1e^{T A T^{-1}} = T e^A T^{-1} for invertible TT, because (TAT−1)k=TAkT−1(T A T^{-1})^k = T A^k T^{-1}. Also (eA)T=eAT(e^A)^T = e^{A^T} and (eA)∗=eA∗(e^A)^* = e^{A^*}.
  • Eigenvalues. If λ1,…,λn\lambda_1, \dots, \lambda_n are the eigenvalues of AA with multiplicity, the eigenvalues of eAe^A are eλ1,…,eλne^{\lambda_1}, \dots, e^{\lambda_n}, with the same eigenvectors. So det⁡eA=etr⁡A\det e^A = e^{\operatorname{tr} A}.
  • Sums. If AB=BAAB = BA, then eA+B=eAeBe^{A + B} = e^A e^B. Proof: the binomial formula (A+B)k=∑j(kj)AjBk−j(A + B)^k = \sum_j \binom{k}{j} A^j B^{k-j} holds because the matrices commute, and the Cauchy product of the two absolutely convergent series gives the result. Without commutation the formula fails; see the examples. The converse is false: for A=[0002πi]A = \begin{bmatrix} 0 & 0 \\ 0 & 2\pi i \end{bmatrix} and B=[0102πi]B = \begin{bmatrix} 0 & 1 \\ 0 & 2\pi i \end{bmatrix}, AB≠BAAB \ne BA, but eAe^A, eBe^B and eA+Be^{A+B} are all equal to II, because each of the three matrices is diagonalizable with eigenvalues in 2πiZ2\pi i \mathbb{Z}.
  • Decay. eAt→0e^{At} \to 0 as t→∞t \to \infty if and only if every eigenvalue of AA has negative real part, that is, AA is a Hurwitz matrix. Then there are c≥1c \ge 1 and α>0\alpha > 0 with ∥eAt∥≤ce−αt\|e^{At}\| \le c e^{-\alpha t} for all t≥0t \ge 0; any α\alpha below the smallest ∣Re⁡λi∣|\operatorname{Re} \lambda_i| works, with a cc that depends on α\alpha. In control this is the exponential stability of x˙=Ax\dot x = A x (see exponential stability).

The time-varying system x˙=A(t)x\dot x = A(t) x has a state-transition matrix Φ(t,t0)\Phi(t, t_0) in place of eA(t−t0)e^{A(t - t_0)}; in general Φ(t,t0)≠e∫t0tA(σ)dσ\Phi(t, t_0) \ne e^{\int_{t_0}^{t} A(\sigma) d\sigma}.

Computation. The defining series is a poor algorithm in floating point. The standard method is scaling and squaring: choose ss with ∥A/2s∥\|A / 2^s\| small, approximate eA/2se^{A / 2^s} by a Padé approximant r(A/2s)r(A/2^s), and square the result ss times, since eA=(eA/2s)2se^A = (e^{A/2^s})^{2^s}. Higham (2005) chose the Padé degree (up to 13) and the scaling from a backward error bound; current libraries use this method or a refinement of it. In the real RAM the cost is O(n3)O(n^3) flops per matrix product, and the number of products is O(log⁡2∥A∥)O(\log_2 \|A\|) plus a constant. For a large sparse AA, one needs eAtve^{At} v and not eAte^{At}; Krylov subspace methods give it without forming the matrix (Moler and Van Loan 2003). Methods based on eigenvectors are accurate only when the eigenvector matrix is well conditioned, and fail for defective AA.

Examples and non-examples

Diagonal. ediag⁡(λ1,…,λn)t=diag⁡(eλ1t,…,eλnt)e^{\operatorname{diag}(\lambda_1, \dots, \lambda_n) t} = \operatorname{diag}(e^{\lambda_1 t}, \dots, e^{\lambda_n t}). The modes do not interact.

Nilpotent: the double integrator. For A=[0100]A = \begin{bmatrix} 0 & 1 \\ 0 & 0 \end{bmatrix}, A2=0A^2 = 0, so the series stops: eAt=I+At=[1t01]e^{At} = I + At = \begin{bmatrix} 1 & t \\ 0 & 1 \end{bmatrix}. The position is x1(t)=x1(0)+t x2(0)x_1(t) = x_1(0) + t\, x_2(0). The entries grow like tt, not like an exponential: this is the effect of a Jordan block of size 2 at λ=0\lambda = 0.

Rotation. For A=[01−10]A = \begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix}, A2=−IA^2 = -I, so the even terms give cos⁡t\cos t and the odd terms give sin⁡t\sin t:

eAt=Icos⁡t+Asin⁡t=[cos⁡tsin⁡t−sin⁡tcos⁡t].e^{At} = I \cos t + A \sin t = \begin{bmatrix} \cos t & \sin t \\ -\sin t & \cos t \end{bmatrix}.

The eigenvalues are ±i\pm i, and det⁡eAt=1=etr⁡(A)t\det e^{At} = 1 = e^{\operatorname{tr}(A) t}. This is a harmonic oscillator.

Jordan block. For A=[λ10λ]A = \begin{bmatrix} \lambda & 1 \\ 0 & \lambda \end{bmatrix}, eAt=eλt[1t01]e^{At} = e^{\lambda t}\begin{bmatrix} 1 & t \\ 0 & 1 \end{bmatrix}. For λ=−1\lambda = -1 the entry te−tt e^{-t} first grows to e−1e^{-1} at t=1t = 1, then decays.

Transient growth of a Hurwitz matrix. For A=[−1100−2]A = \begin{bmatrix} -1 & 10 \\ 0 & -2 \end{bmatrix}, with eigenvalues −1-1 and −2-2,

eAt=[e−t10(e−t−e−2t)0e−2t].e^{At} = \begin{bmatrix} e^{-t} & 10(e^{-t} - e^{-2t}) \\ 0 & e^{-2t} \end{bmatrix}.

At t=1t = 1 the top right entry is 10(0.36788−0.13534)=2.325410(0.36788 - 0.13534) = 2.3254. The spectral norm ∥eAt∥2\|e^{At}\|_2 starts at 1, rises to about 2.5632.563 near t=0.663t = 0.663, and only then decays. The eigenvalues fix the rate of decay for large tt, not the size of the transient. The cause is that AA is far from normal.

eA+B≠eAeBe^{A+B} \ne e^A e^B. Take A=[0100]A = \begin{bmatrix} 0 & 1 \\ 0 & 0 \end{bmatrix} and B=[0010]B = \begin{bmatrix} 0 & 0 \\ 1 & 0 \end{bmatrix}. Then AB=[1000]≠BA=[0001]AB = \begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix} \ne BA = \begin{bmatrix} 0 & 0 \\ 0 & 1 \end{bmatrix}, and

eAeB=[1101][1011]=[2111],eA+B=[cosh⁡1sinh⁡1sinh⁡1cosh⁡1]=[1.54311.17521.17521.5431].e^A e^B = \begin{bmatrix} 1 & 1 \\ 0 & 1 \end{bmatrix}\begin{bmatrix} 1 & 0 \\ 1 & 1 \end{bmatrix} = \begin{bmatrix} 2 & 1 \\ 1 & 1 \end{bmatrix}, \qquad e^{A + B} = \begin{bmatrix} \cosh 1 & \sinh 1 \\ \sinh 1 & \cosh 1 \end{bmatrix} = \begin{bmatrix} 1.5431 & 1.1752 \\ 1.1752 & 1.5431 \end{bmatrix}.

The product is not even symmetric, while A+BA + B is symmetric and so is its exponential.

Non-example: the entrywise exponential. Applying exp⁡\exp to each entry of AA is a different operation. For the double integrator matrix above it gives [1e11]\begin{bmatrix} 1 & e \\ 1 & 1 \end{bmatrix}, not [1101]\begin{bmatrix} 1 & 1 \\ 0 & 1 \end{bmatrix}. The two agree only for very special AA, such as A=0A = 0.

Non-example as an algorithm: the summed series. In double precision, summing the Taylor series of the 1×11 \times 1 matrix A=[−49]A = [-49] term by term until the terms vanish gives a number that is pure rounding error: with the term recurrence tk=tk−1⋅(−49/k)t_k = t_{k-1} \cdot (-49/k) it is −30.53-30.53, while computing tk=(tk−1⋅(−49))/kt_k = (t_{k-1} \cdot (-49))/k instead gives 1546.171546.17. The true value is e−49=5.24×10−22e^{-49} = 5.24 \times 10^{-22}. The terms grow to about 102010^{20} before they shrink, and their rounding errors swamp the result. Moler and Van Loan (1978) discuss this failure of the series. Scaling and squaring avoids the cancellation.

Non-example: the exponential of the integral. For a time-varying A(t)A(t), exp⁡(∫0tA(σ) dσ)\exp(\int_0^t A(\sigma)\, d\sigma) is the solution matrix of x˙=A(t)x\dot x = A(t) x only when A(t)A(t) commutes with its integral; the state-transition matrix page gives a counterexample.

  • State-transition matrix. The solution matrix Φ(t,t0)\Phi(t, t_0) of x˙=A(t)x\dot x = A(t) x. For a constant AA, Φ(t,t0)=eA(t−t0)\Phi(t, t_0) = e^{A(t - t_0)}. See state-transition matrix.
  • Variation of constants. The solution of x˙=Ax+Bu\dot x = A x + B u is eAtx0+∫0teA(t−s)Bu(s) dse^{At} x_0 + \int_0^t e^{A(t - s)} B u(s)\, ds. See variation of constants formula. The integral ∫0heAsds\int_0^h e^{As} ds is the second block of the exponential of a block matrix, which is how zero-order hold discretization computes the input matrix of a sampled system.
  • Matrix logarithm. A matrix LL with eL=Me^L = M. It exists for every invertible complex MM and is not unique. A real invertible MM has a real logarithm if and only if each Jordan block of a negative eigenvalue occurs an even number of times. Identifying a continuous model from a sampled one needs this logarithm, and the sampling period must avoid the pathological values of the sampled-data system page.
  • Product integral. For a time-varying generator, the limit of ordered products ∏(I+A(tj) Δt)\prod (I + A(t_j)\, \Delta t) gives the transition matrix. With a constant AA it gives eAte^{At}, by characterization 2. The Aalen-Johansen estimator is a product integral of estimated transition intensities.
  • Exponential map of a Lie group. For a matrix Lie group, exp⁡\exp maps the Lie algebra to the group: skew-symmetric matrices to rotations, and twists to rigid motions, as in the SE(3) exponential map and the product of exponentials formula.
  • Exponential integrators. Numerical methods for x˙=Ax+g(t,x)\dot x = A x + g(t, x) that use ehAe^{hA} and related functions to integrate the stiff linear part exactly. See exponential integrators.
  • Hurwitz and Schur matrices. AA is Hurwitz if all its eigenvalues have negative real parts. Then eAhe^{Ah} is a Schur matrix, with all eigenvalues inside the unit circle, for every h>0h > 0.

References

  1. Cleve Moler and Charles Van Loan, Nineteen dubious ways to compute the exponential of a matrix, SIAM Review 20(4), 801-836, 1978, the series, Padé, scaling and squaring, ODE, polynomial and matrix decomposition methods, and why each can fail
  2. Cleve Moler and Charles Van Loan, Nineteen dubious ways to compute the exponential of a matrix, twenty-five years later, SIAM Review 45(1), 3-49, 2003, the update of the 1978 survey, with scaling and squaring as the method of choice and Krylov methods for e^(A)v
  3. Nicholas J. Higham, The scaling and squaring method for the matrix exponential revisited, SIAM Journal on Matrix Analysis and Applications 26(4), 1179-1193, 2005, the backward error analysis that chooses the scaling and the degree 13 Padé approximant
  4. Nicholas J. Higham, Functions of Matrices, Theory and Computation, SIAM, 2008, Chapter 10, Matrix Exponential (properties, conditioning, and the scaling and squaring algorithm)
  5. Wilson J. Rugh, Linear System Theory, second edition, Prentice Hall, 1996, Chapter 5, Two Important Cases (the time-invariant case and the representations of e^(At))
  6. Chi-Tsong Chen, Linear System Theory and Design, third edition, Oxford University Press, 1999, Chapter 3 (functions of a square matrix) and Chapter 4 (solution of the state equation)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/XE6NMD/text.yaml