BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

The matrix exponential

The general solution of x′ = Ax can be written Xc, with X a fundamental matrix and c a constant vector; every fundamental matrix is XC with C a constant matrix of nonzero determinant. The eigenvalue method is an algorithm, but papers want a formula. For one equation x′ = ax the answer is e^(at), and the power series e^(at) = 1 + at + a²t²/2! + … differentiates to a e^(at). The same series defines the matrix exponential e^(At) = I + At + A²t²/2! + …, which satisfies X′ = AX and equals I at t = 0: a fundamental matrix with no eigenvalues needed. For x′ = y, y′ = x it gives cosh t and sinh t. The initial value problem x(0) = x₀ is solved by x = e^(At)x₀, with x₀ on the right. The exponential law e^(A+B) = e^A e^B holds only when A and B commute; it still gives (e^A)⁻¹ = e^(−A). In practice, e^(At) = X(t)X(0)⁻¹ for any fundamental matrix X.

You need this first

Full reading path (41 pages)
  1. The derivative: slope of the tangent line and rate of change (18.01)
  2. Limits and continuity (18.01)
  3. Derivatives of sine and cosine, and the product and quotient rules (18.01)
  4. The chain rule and higher derivatives (18.01)
  5. Implicit differentiation and the derivatives of inverse functions (18.01)
  6. Exponentials and logarithms: the number e and its derivatives (18.01)
  7. Linear and quadratic approximations (18.01)
  8. Curve sketching with the first and second derivative (18.01)
  9. Sketching strategy and maximum–minimum problems (18.01)
  10. More max–min, and related rates (18.01)
  11. A ring on a string, and Newton's method (18.01)
  12. The mean value theorem and inequalities (18.01)
  13. Differentials and antiderivatives (18.01)
  14. Differential equations and separation of variables (18.01)
  15. Direction fields, isoclines and integral curves (18.03)
  16. Euler's method and better numerical methods (18.03)
  17. First-order linear equations and integrating factors (18.03)
  18. Substitutions: scaling, Bernoulli and homogeneous equations (18.03)
  19. Autonomous equations, critical points and stability (18.03)
  20. Complex numbers and complex exponentials (18.03)
  21. Constant coefficients: steady state, superposition and sinusoidal input (18.03)
  22. Combining sine and cosine; models for first-order linear equations (18.03)
  23. Second-order linear equations with constant coefficients (18.03)
  24. Complex characteristic roots and damped oscillations (18.03)
  25. Linear operators, the Wronskian and normalized solutions (18.03)
  26. Inhomogeneous equations, particular solutions and stability (18.03)
  27. Particular solutions: the exponential input theorem (18.03)
  28. Resonance and beats (18.03)
  29. Introduction to Fourier series (18.03)
  30. Fourier series: even and odd functions, convergence and other periods (18.03)
  31. Particular solutions via Fourier series, and how we hear (18.03)
  32. Introduction to the Laplace transform (18.03)
  33. Laplace transforms of derivatives and solving initial value problems (18.03)
  34. The convolution formula (18.03)
  35. The unit step and discontinuous inputs (18.03)
  36. Impulse inputs, the delta function and the weight function (18.03)
  37. Introduction to first-order systems (18.03)
  38. Linear systems with constant coefficients: eigenvalues and eigenvectors (18.03)
  39. Repeated and complex eigenvalues (18.03)
  40. Sketching the solutions of 2 × 2 linear systems (18.03)
  41. Fundamental matrices and inhomogeneous systems (18.03)
On this page · 7 sections
  1. All fundamental matrices
  2. A formula, not a method
  3. An example
  4. The initial value problem
  5. The exponential law
  6. Computing e^(At)
  7. Summary

This lecture produces a formula for the solutions of x⃗ ′=Ax⃗\vec x\,' = A\vec x, one that needs no eigenvalues or eigenvectors (transcript, p. 1). It builds on the fundamental matrix.

All fundamental matrices#

A fundamental matrix XX has independent solutions as columns, so det⁡X≠0\det X \ne 0 for every tt and X′=AXX' = AX (transcript, p. 1). It is not unique: there is no "the" fundamental matrix, only "a" fundamental matrix (p. 1). With it the general solution c1x⃗1+c2x⃗2c_1\vec x_1 + c_2\vec x_2 can be written as compactly as possible (p. 1):

General solution
x⃗=Xc⃗,c⃗=(c1c2)\vec x = X\vec c, \qquad \vec c = \begin{pmatrix} c_1 \\ c_2 \end{pmatrix}
In words

vector x equals capital X vector c, vector c equals c one; c two

Each column of another fundamental matrix is such a solution, Xc⃗1X\vec c_1 and Xc⃗2X\vec c_2, so by matrix multiplication (p. 1)

Every fundamental matrix
X C,C a constant matrix,det⁡C≠0X\,C, \qquad C \text{ a constant matrix}, \quad \det C \ne 0
In words

capital X capital C, capital C a constant matrix, the determinant of capital C is not equal to 0

A formula, not a method#

The eigenvalue method is an algorithm: fine for problems with numbers, but a paper with only letters wants to say "the solution is given by the formula …" (transcript, p. 2). Look at the one-dimensional case, x′=axx' = ax, solved by eate^{at} (p. 2). Use the series definition of the exponential, not the inverse of the logarithm or repeated multiplication (p. 2):

Exponential series
eat=1+at+a2t22!+a3t33!+⋯ ,ddteat=a+a2t+a3t22!+⋯=a eate^{at} = 1 + at + \frac{a^2t^2}{2!} + \frac{a^3t^3}{3!} + \cdots, \qquad \frac{d}{dt}e^{at} = a + a^2t + \frac{a^3t^2}{2!} + \cdots = a\,e^{at}
In words

e to the power a t equals 1 plus a t plus a squared t squared over the quantity 2 factorial, plus a cubed t cubed over the quantity 3 factorial, plus and so on, d over d t e to the power a t equals a plus a squared t plus a cubed t squared over the quantity 2 factorial, plus and so on equals a e to the power a t

Differentiating term by term shows at once that it solves the equation, and this argument generalizes (p. 2). For a matrix, the naive definitions of eAe^A make no sense, but the series does, with the identity matrix in place of 1 (p. 2):

Matrix exponential
eAt=I+At+A2t22!+A3t33!+⋯e^{At} = I + At + \frac{A^2t^2}{2!} + \frac{A^3t^3}{3!} + \cdots
In words

e to the power capital A t equals capital I plus capital A t plus capital A squared t squared over the quantity 2 factorial, plus capital A cubed t cubed over the quantity 3 factorial, plus and so on

Each term is a 2×22 \times 2 matrix, so the sum is one (p. 2). The same term-by-term differentiation shows that eAte^{At} satisfies X′=AXX' = AX, and at t=0t = 0 it is II, with determinant 1 (p. 3). Since the Wronskian of two solutions is either never zero or always zero, nonzero at one point is enough (p. 3; see the previous lecture). So eAte^{At} is a fundamental matrix: no eigenvalues, no eigenvectors, a formula (p. 3). The catch: the series can rarely be summed by hand. Software such as Matlab, Maple or Mathematica computes it as readily as an ordinary exponential; what matters here is its theoretical use (p. 3).

An example#

Take x′=yx' = y, y′=xy' = x, so A=(0110)A = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix} (transcript, p. 3). The powers are easy: A2=IA^2 = I, A3=A2A=AA^3 = A^2A = A, A4=A3A=A2=IA^4 = A^3A = A^2 = I, alternating (p. 3). Collecting each entry of the series (pp. 3–4):

Exponential of the example
eAt=(1+t22!+t44!+⋯t+t33!+⋯t+t33!+⋯1+t22!+⋯)=(cosh⁡tsinh⁡tsinh⁡tcosh⁡t)e^{At} = \begin{pmatrix} 1 + \frac{t^2}{2!} + \frac{t^4}{4!} + \cdots & t + \frac{t^3}{3!} + \cdots \\ t + \frac{t^3}{3!} + \cdots & 1 + \frac{t^2}{2!} + \cdots \end{pmatrix} = \begin{pmatrix} \cosh t & \sinh t \\ \sinh t & \cosh t \end{pmatrix}
In words

e to the power capital A t equals 1 plus t squared over the quantity 2 factorial, plus t to the power 4 over the quantity 4 factorial, plus and so on t plus t cubed over the quantity 3 factorial, plus and so on; t plus t cubed over the quantity 3 factorial, plus and so on 1 plus t squared over the quantity 2 factorial, plus and so on equals cosh t sinh t; sinh t cosh t

the series of cosine and sine without the alternating signs: the hyperbolic functions, cosh⁡t=et+e−t2\cosh t = \frac{e^t + e^{-t}}{2} and sinh⁡t=et−e−t2\sinh t = \frac{e^t - e^{-t}}{2} (pp. 3–4).

The entries of eAte^{At} for A=(0110)A = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}, computed from cosh⁡t\cosh t and sinh⁡t\sinh t: the diagonal entries start at 1, the off-diagonal ones at 0, so eA⋅0=Ie^{A\cdot0} = I.

The initial value problem#

What people love eAte^{At} for (transcript, p. 4): the solution with x⃗(0)=x⃗0\vec x(0) = \vec x_0 is eAtc⃗e^{At}\vec c with eA⋅0c⃗=Ic⃗=x⃗0e^{A\cdot0}\vec c = I\vec c = \vec x_0, so (p. 4)

Solution of the initial value problem
x⃗=eAt x⃗0\vec x = e^{At}\,\vec x_0
In words

vector x equals e to the power capital A t vector x nought

just as for one equation, except that the constant vector must stand after the matrix: a column vector cannot multiply a square matrix from the left, and software will refuse it (p. 4).

The exponential law#

Does eA+B=eAeBe^{A + B} = e^Ae^B? Both sides make sense, but in general they are not equal (transcript, p. 4). Comparing the series term by term works only if AB+BAAB + BA can be replaced by 2AB2AB: essentially, only when AA and BB commute (p. 4). That is almost never, but three cases matter (p. 4): A=cIA = cI, which commutes with everything; B=−AB = -A; and B=A−1B = A^{-1}. The second gives the main survivor of the law (p. 4):

Inverse of the exponential
eA e−A=eA−A=e0=I,(eA)−1=e−Ae^{A}\,e^{-A} = e^{A - A} = e^{0} = I, \qquad (e^{A})^{-1} = e^{-A}
In words

e to the power capital A e to the power minus capital A equals e to the power capital A minus capital A, end of power, equals e to the power 0 equals capital I, (e to the power capital A ) to the power minus 1 equals e to the power minus capital A

Computing e^(At)#

Series rarely work (transcript, pp. 4–5). For a matrix with equal diagonal entries and equal off-diagonal entries, split it as aI+(0bb0)aI + \begin{pmatrix} 0 & b \\ b & 0 \end{pmatrix}, two commuting matrices, and use the exponential law (p. 5). For everything else, take any fundamental matrix XX, for instance from eigenvalues and eigenvectors (p. 5):

eAte^{At} from any fundamental matrix
eAt=X(t) X(0)−1e^{At} = X(t)\,X(0)^{-1}
In words

e to the power capital A t equals capital X (t) capital X (0) to the power minus 1

The right side is XX times a constant matrix of nonzero determinant, so it is a fundamental matrix, and at t=0t = 0 it is II. The exponential has the same two properties, so they are equal (p. 5). For the lecture's example, the fundamental matrix with columns (et,et)(e^t, e^t) and (e−t,−e−t)(e^{-t}, -e^{-t}), used on the previous page, gives exactly the cosh–sinh matrix above.

Worked example

Exponentials of two matrices

(a) Find eAte^{At} for A=(1221)A = \begin{pmatrix} 1 & 2 \\ 2 & 1 \end{pmatrix} by splitting. (b) Find eAte^{At} for A=(−120−3)A = \begin{pmatrix} -1 & 2 \\ 0 & -3 \end{pmatrix} from a fundamental matrix, and solve x⃗ ′=Ax⃗\vec x\,' = A\vec x with x⃗(0)=(2,1)\vec x(0) = (2, 1).

(a) Splitting

A=I+2BA = I + 2B with B=(0110)B = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}, and II commutes with BB. So eAt=eIte2Bt=et(cosh⁡2tsinh⁡2tsinh⁡2tcosh⁡2t)e^{At} = e^{It}e^{2Bt} = e^t\begin{pmatrix} \cosh 2t & \sinh 2t \\ \sinh 2t & \cosh 2t \end{pmatrix}, using the lecture's example with 2t2t for tt.

(b) A fundamental matrix

The eigenvalues are −3-3, with eigenvector (1,−1)(1, -1), and −1-1, with (1,0)(1, 0). So X=(e−3te−t−e−3t0)X = \begin{pmatrix} e^{-3t} & e^{-t} \\ -e^{-3t} & 0 \end{pmatrix}, X(0)=(11−10)X(0) = \begin{pmatrix} 1 & 1 \\ -1 & 0 \end{pmatrix} with determinant 1 and inverse (0−111)\begin{pmatrix} 0 & -1 \\ 1 & 1 \end{pmatrix}. Then eAt=X(t)X(0)−1=(e−te−t−e−3t0e−3t)e^{At} = X(t)X(0)^{-1} = \begin{pmatrix} e^{-t} & e^{-t} - e^{-3t} \\ 0 & e^{-3t} \end{pmatrix}, which is II at 0.

(b) The initial value problem

x⃗=eAt(21)=(3e−t−e−3te−3t)\vec x = e^{At}\begin{pmatrix} 2 \\ 1 \end{pmatrix} = \begin{pmatrix} 3e^{-t} - e^{-3t} \\ e^{-3t} \end{pmatrix}. Check: y′=−3yy' = -3y and x′=−3e−t+3e−3t=−x+2yx' = -3e^{-t} + 3e^{-3t} = -x + 2y.

Summary#

  • General solution Xc⃗X\vec c; all fundamental matrices are XCXC with det⁡C≠0\det C \ne 0.
  • eAt=I+At+A2t22!+⋯e^{At} = I + At + \frac{A^2t^2}{2!} + \cdots is a fundamental matrix with value II at 0: a formula for the solutions.
  • The initial value problem: x⃗=eAtx⃗0\vec x = e^{At}\vec x_0.
  • eA+B=eAeBe^{A + B} = e^Ae^B only for commuting matrices; (eA)−1=e−A(e^A)^{-1} = e^{-A}. In practice eAt=X(t)X(0)−1e^{At} = X(t)X(0)^{-1}.

Symbols on this page

Show the 28 symbols used here
≠\neq not equal.
Is not equal to. Say it: “is not equal to”.
×\times times.
Times (multiplication). Between two vectors: the cross product. Say it: “times”.
⋅\cdot dot.
Times (multiplication). Between two vectors: the dot product. Say it: “times”.
det⁡\det determinant.
Determinant of a matrix. Say it: “the determinant of”.
sinh⁡\sinh hyperbolic sine.
Hyperbolic sine, (eˣ − e⁻ˣ)/2. Say it: “sinh” (sounds like “shine or sinch”).
cosh⁡\cosh hyperbolic cosine.
Hyperbolic cosine, (eˣ + e⁻ˣ)/2. Say it: “cosh” (sounds like “kosh”).
v⃗\vec v vector arrow.
A vector: a quantity with a size and a direction. Say it: “vector”.
aa a.
A number: the coefficient in x′ = ax; in the splitting, the common diagonal entry. Say it: “a”.
cc c.
The vector of arbitrary constants. Say it: “c”.
xx x.
The solution vector; in the example, the first unknown. Say it: “x”.
yy y.
The second unknown of the example. Say it: “y”.
tt t.
Time. Say it: “t”.
dd d.
The d of d/dt. Say it: “d”.
ee e.
Euler's number, 2.718…; e^(At) is the matrix exponential. Say it: “e”.
AA A.
The constant matrix of the system. Say it: “capital A”.
BB B.
A second square matrix (in the exponential law); in the worked example, the matrix [0 1; 1 0]. Say it: “capital B”.
CC C.
A constant square matrix with nonzero determinant. Say it: “capital C”.
bb b.
The common off-diagonal entry in the splitting. Say it: “b”.
y′y' y prime.
The derivative of y. Say it: “y prime”.
x0x_{0} x nought.
The initial value vector x(0). Say it: “x nought”.
x1x_{1} x 1.
A first solution. Say it: “x one”.
x2x_{2} x 2.
A second solution. Say it: “x two”.
x′x' x prime.
The derivative of x. Say it: “x prime”.
XX X.
A fundamental matrix. Say it: “capital X”.
II I.
The identity matrix. Say it: “capital I”.
c1c_{1} c one.
The first arbitrary constant (or constant vector). Say it: “c one”.
c2c_{2} c two.
The second arbitrary constant (or constant vector). Say it: “c two”.
X′X' X prime.
The derivative of a fundamental matrix. Say it: “capital X prime”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 23 words used here

Also used

eigenvalue.
A number λ for which a matrix turns some non-zero vector into λ times that vector, only stretching or shrinking it. Explained in Linear systems with constant coefficients: eigenvalues and eigenvectors.
eigenvector.
A non-zero vector that a matrix only stretches or shrinks without turning: multiplying it by the matrix gives a number times the same vector. Explained in Linear systems with constant coefficients: eigenvalues and eigenvectors.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
fundamental matrix.
A matrix whose columns are independent solutions of a linear system, so every solution is it times a constant vector. Explained in Fundamental matrices and inhomogeneous systems.
general solution.
The whole family of solutions of a differential equation, written with free constants that starting values or boundary conditions then fix. Explained in Differential equations and separation of variables.
matrix.
A rectangular table of numbers, which acts on vectors to give new ones and so describes a linear change of coordinates. Explained in Planes through three points, and matrices.
inverse.
The thing that undoes another: a matrix times its inverse gives the identity matrix, as a function followed by its inverse gives back the start. Explained in Planes through three points, and matrices.
logarithm.
The power to which a fixed base must be raised to give a number: log₁₀ 1000 = 3 because 10³ = 1000. Explained in Exponentials and logarithms.
differentiation.
Finding a derivative: working out how fast a function changes. Explained in The derivative: slope of the tangent line and rate of change.
identity matrix.
The square matrix with ones down its main diagonal and zeros elsewhere; it leaves every vector unchanged. Explained in Planes through three points, and matrices.
determinant.
A single number worked out from a square array of numbers (a matrix), which measures how the matrix stretches areas or volumes. Explained in Determinants and the cross product.
Wronskian.
For two solutions y₁ and y₂ of a linear equation, the quantity y₁y₂′ − y₂y₁′; it is never zero exactly when they are independent. Explained in Linear operators, the Wronskian and normalized solutions.
hyperbolic functions.
Cousins of sine and cosine built from exponentials: sinh x = (eˣ − e⁻ˣ)/2, cosh x = (eˣ + e⁻ˣ)/2, and their ratios.
vector.
A list of numbers written as a column, or more generally anything that can be added and multiplied by numbers. Explained in Orthogonal vectors and subspaces.
commute.
Of two operations or matrices: to give the same result whichever is done first. Explained in Symmetry and infinitely many oscillators.
diagonal.
In a square matrix, the entries running from the top left corner to the bottom right; a diagonal matrix has zeros everywhere else. Explained in The four fundamental subspaces.
initial value problem.
A differential equation together with the starting values that pick out one particular solution of it. Explained in Euler's method and better numerical methods.

Academic

transcript.
A written record of exactly what was said in a recorded lecture, word for word.
argument.
A chain of reasoning that leads to a conclusion; in maths also the input of a function, such as x in sin x.
naive.
Simple and first-guess, without the corrections or care a fuller treatment adds.
satisfy.
To make an equation or condition true.
by hand.
Worked out with pen and paper, without a computer; or put in deliberately rather than following from the theory.
in practice.
In reality, as things are actually done or measured, rather than in theory.

Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).

Where this leads

In cosmology

Pages that build on this

Practise

Check your understanding

  1. How is the matrix exponential eAte^{At} defined?
  2. The solution of x⃗′=Ax⃗\vec x' = A\vec x, x⃗(0)=x⃗0\vec x(0) = \vec x_0 is…
  3. When does eA+B=eAeBe^{A + B} = e^Ae^B hold?
0 of 3 answered

Flashcards

1 / 3