Survey of Mathematics

7.4 Systems of equations and the matrix exponential

The system x' = Ax is solved by x(t) = e^(tA) x(0), where the matrix exponential is the exponential series with a matrix in place of the number. It always converges, and it is computed by diagonalizing, by splitting A into a scalar part and a nilpotent part (Jordan form), or by Putzer's method. The eigenvalues also decide the shape of the solution curves.

Taught in 375/376Apostol, not taughtBeyond the courseApostol 7.1 to 7.19Technau, MATH 376 lectures of April 15 to 24MATH 376 worksheets 24 to 26 and 28, homework 10MATH 376 final 5(b), practice final 7(b) and 7(f)

In 7.2 one equation y′=ryy' = ry was solved by y=y(0)erty = y(0)e^{rt}. A system of such equations, with a matrix in place of rr, deserves the same answer: x(t)=etAx(0)x(t) = e^{tA}x(0). This chapter makes sense of etAe^{tA} (an infinite series of matrices), proves it solves the system, and teaches the ways to compute it. Along the way the eigenvalues of 2.8 and the Jordan blocks of 3.6 return, now with a job: they tell us how the solution moves.

Before you start

You need eigenvectors and diagonalization, the Jordan form and the Cayley–Hamilton theorem, norms and absolute convergence, and the existence theorem of 7.1. Three quick checks:

Quick checkIf A=CDC−1A = CDC^{-1} with DD diagonal, what is A3A^3?
Quick checkFor which real numbers xx does the series ∑k=0∞xkk!\sum_{k=0}^{\infty}\frac{x^k}{k!} converge?
Quick checkThe equation y′′+4y=0y'' + 4y = 0 is written as x′=Axx' = Ax with x=(y,y′)x = (y, y'). Which is AA?

The picture

For a 2×22 \times 2 matrix AA, a solution x(t)x(t) of x′=Axx' = Ax is a point moving in the plane, and its path is a curve. The velocity of the point at the position xx is AxAx. The picture draws many such curves at once. The four sliders are the entries a,b,c,da, b, c, d of A=[abcd]A = \begin{bmatrix}a & b\\c & d\end{bmatrix}. The arrows show the direction of time. The dashed purple lines are the eigendirections (when they are real): the lines through the origin spanned by real eigenvectors of AA. Drag the orange dot to start a new curve.

Four words, used loosely for now (chapter 7.6 will define them carefully). The curve traced by one solution is its orbit, and the plane with many orbits drawn in is the phase portrait. An equilibrium is a point where the velocity is zero, so a solution that starts there never moves; for x′=Axx' = Ax the origin is always one, because A O=OA\,O = O. In this chapter an equilibrium is called stable when every solution tends to it as t→∞t \to \infty, and unstable when solutions move away from it. (The careful definition of stable is weaker, and under it a centre also counts as stable. That is the point of 7.6.)

Go through the presets. Saddle: one eigenvalue positive and one negative; curves come in along one eigendirection and leave along the other. Stable node and unstable node: both eigenvalues of the same sign, so everything runs into or out of the origin. Spirals: complex eigenvalues α±iβ\alpha \pm i\beta turn the curves around the origin; they shrink if α<0\alpha < 0 and grow if α>0\alpha > 0. Centre: pure imaginary eigenvalues give closed loops. One eigenvector: a repeated eigenvalue with only one eigendirection bends the curves round it. The last preset is the matrix of the 376 final’s Problem 5(b): trace 44, determinant 77, an unstable spiral. The theorems below explain every picture.

Where this came from· Laguerre's series and Putzer's shortcut

The power series I+A+A2/2!+⋯I + A + A^2/2! + \cdots for a matrix was introduced by Edmond Laguerre in 1867, as Nicholas Higham’s survey of the matrix exponential records. The point is the pattern: y′=ayy' = ay has the solution eaty(0)e^{at}y(0), and x′=Axx' = Ax has etAx(0)e^{tA}x(0). Textbooks computed etAe^{tA} by putting AA into Jordan form, which is delicate: a tiny change of AA can change the Jordan form completely (chapter 3.6). In 1966 E. J. Putzer published “Avoiding the Jordan canonical form in the discussion of linear systems with constant coefficients” in the American Mathematical Monthly, volume 73, pages 2 to 7. His method writes etAe^{tA} as a combination of the matrices II, A−λ1IA - \lambda_1I, (A−λ1I)(A−λ2I)(A - \lambda_1I)(A - \lambda_2I), … using only the eigenvalues; Apostol presents it in section 7.13, and we prove it below.

The idea, in words

Why· Three ideas: the series, the flow, the eigen-directions

The series. The number eate^{at} is ∑(at)k/k!\sum (at)^k/k!, the solution of x′=axx' = ax with x(0)=1x(0) = 1. Replace aa by a matrix AA and 11 by the identity matrix. Matrices can be multiplied and added, so ∑tkAk/k!\sum t^kA^k/k! makes sense term by term; the only question is whether it converges, and it does, for every matrix and every tt, because k!k! grows faster than any power of ∥A∥\lVert A\rVert. The flow. x(t)=etAx(0)x(t) = e^{tA}x(0) says: to find where the point is at time tt, apply the matrix etAe^{tA} to where it started. The matrices etAe^{tA} form a one-parameter family with e(s+t)A=esAetAe^{(s+t)A} = e^{sA}e^{tA}: flowing for ss and then for tt is flowing for s+ts + t. The eigen-directions. If Av=λvAv = \lambda v, then etAv=eλtve^{tA}v = e^{\lambda t}v (every power AkA^k multiplies vv by λk\lambda^k). So along an eigenvector the point moves by the scalar rule eλte^{\lambda t}. When there is a basis of eigenvectors, this solves everything; when there is not, a nilpotent part adds powers of tt (the shear et[1t01]e^t\begin{bmatrix}1 & t\\0 & 1\end{bmatrix} of the repeated-root case in 7.2).

Definitions and theorems

Systems of differential equations

Definition T

System of differential equations

A system of differential equations (first order) is x′(t)=F(t,x(t))x'(t) = F(t, x(t)) with x(t)∈Rnx(t) \in \mathbb R^n (or Cn\mathbb C^n); this is the form into which every higher-order equation is turned (7.1). The system is linear if F(t,x)=A(t)x+g(t)F(t, x) = A(t)x + g(t) with a matrix function AA and a vector function gg; it is homogeneous if g=0g = 0. In this chapter AA is a constant matrix. Technau writes the general linear system as y′=q+Pyy' = q + Py and the constant-coefficient homogeneous case as y′=Ayy' = Ay.

In one lineSeveral unknown functions x1(t),…,xn(t)x_1(t), \dots, x_n(t) whose derivatives are given in terms of tt and the unknowns; in vector form x′=F(t,x)x' = F(t, x). It is linear if x′=A(t)x+g(t)x' = A(t)x + g(t) and has constant coefficients if AA does not depend on tt.

Why it existsMany quantities interact (two populations, two currents, position and velocity). A system tracks them together as one point moving in Rn\mathbb R^n.

The existence and uniqueness theorem of 7.1 for linear systems gives immediately: for every starting vector bb and starting time aa, the IVP x′=Axx' = Ax, x(a)=bx(a) = b has exactly one solution, and it is defined for all t∈Rt \in \mathbb R. The task is to write it down.

Fact T MATH 376 worksheet 25 #6; Apostol 7.10

Eigenvectors give solutions

If Av=λvAv = \lambda v, then x(t)=eλtvx(t) = e^{\lambda t}v satisfies x′=Axx' = Ax (for complex λ\lambda and vv too). Hence if AA has a basis of eigenvectors v1,…,vnv_1, \dots, v_n with eigenvalues λ1,…,λn\lambda_1, \dots, \lambda_n, every solution is x(t)=c1eλ1tv1+⋯+cneλntvnx(t) = c_1e^{\lambda_1t}v_1 + \dots + c_ne^{\lambda_nt}v_n, where c=(c1,…,cn)c = (c_1, \dots, c_n) are the coordinates of x(0)x(0) in that basis.

In one lineIf Av=λvAv = \lambda v with v≠Ov \ne O, then x(t)=eλtvx(t) = e^{\lambda t}v solves x′=Axx' = Ax.

Why it is trueDifferentiating eλtve^{\lambda t}v brings down λ\lambda, and λv=Av\lambda v = Av.

ProofApostol 7.10
The idea: Differentiate; then write the starting vector in the eigenbasis and use linearity and uniqueness.
x′=λeλtvx' = \lambda e^{\lambda t}v.
ddteλt=λeλt\frac{d}{dt}e^{\lambda t} = \lambda e^{\lambda t} and vv is constant.
Ax=eλtAv=λeλtv=x′Ax = e^{\lambda t}Av = \lambda e^{\lambda t}v = x'.
Av=λvAv = \lambda v, and AA commutes with the scalar eλte^{\lambda t}.
So ∑cjeλjtvj\sum c_je^{\lambda_jt}v_j is a solution with the right starting vector.
The equation is linear, so sums and multiples of solutions are solutions. At t=0t = 0 the combination equals ∑cjvj=x(0)\sum c_jv_j = x(0).
So it is the solution.
Uniqueness (7.1): a linear IVP has exactly one solution. ■\blacksquare
Worked example MATH 376 worksheet 28 #4
Turn y'' + 4y = 0 into a system and compute e^(tA) from the series.

Solution.

  1. Write the system. With x=(y,y′)x = (y, y'): x′=Axx' = Ax and A=[01−40]A = \begin{bmatrix}0 & 1\\-4 & 0\end{bmatrix}. The companion matrix of 7.2.
  2. Compute the powers. A2=[−400−4]=−4IA^2 = \begin{bmatrix}-4 & 0\\0 & -4\end{bmatrix} = -4I. So A2k=(−4)kIA^{2k} = (-4)^kI and A2k+1=(−4)kAA^{2k+1} = (-4)^kA. Multiply AA by itself once; the pattern then repeats.
  3. Split the series into even and odd powers. etA=∑k(−4)kt2k(2k)!I+∑k(−4)kt2k+1(2k+1)!Ae^{tA} = \sum_k\frac{(-4)^kt^{2k}}{(2k)!}I + \sum_k\frac{(-4)^kt^{2k+1}}{(2k+1)!}A. Even kk in ∑tkAk/k!\sum t^kA^k/k! give multiples of II; odd kk give multiples of AA.
  4. Recognise the sums. (−4)kt2k=(−1)k(2t)2k(-4)^kt^{2k} = (-1)^k(2t)^{2k}, so the first sum is cos⁡2t\cos2t and the second is 12sin⁡2t\frac12\sin2t. The series for cosine and sine (1.6).
  5. Assemble. etA=cos⁡2t I+12sin⁡2t A=[cos⁡2t12sin⁡2t−2sin⁡2tcos⁡2t]e^{tA} = \cos2t\,I + \frac12\sin2t\,A = \begin{bmatrix}\cos2t & \frac12\sin2t\\-2\sin2t & \cos2t\end{bmatrix}. The first row applied to (y(0),y′(0))(y(0), y'(0)) gives y=y(0)cos⁡2t+y′(0)2sin⁡2ty = y(0)\cos2t + \frac{y'(0)}{2}\sin2t, the answer from 7.2.

Answer. etA=[cos⁡2t12sin⁡2t−2sin⁡2tcos⁡2t]e^{tA} = \begin{bmatrix}\cos2t & \frac12\sin2t\\-2\sin2t & \cos2t\end{bmatrix}.

Norms and convergence of matrix series

To say that a series of matrices converges we need a notion of distance for matrices. Technau’s course uses the simplest one.

Definition T

Matrix norm

For an n×nn \times n matrix A=(aij)A = (a_{ij}) define the matrix norm ∥A∥=∑i,j=1n∣aij∣\lVert A\rVert = \sum_{i,j=1}^{n}\lvert a_{ij}\rvert (the 11-norm of 4.1 on Rn2\mathbb R^{n^2}, called ∥A∥1\lVert A\rVert_1 in Technau’s notes). It satisfies the three norm axioms because it is a norm on Rn2\mathbb R^{n^2}. Any other norm with ∥AB∥≤∥A∥∥B∥\lVert AB\rVert \le \lVert A\rVert\lVert B\rVert, such as the operator norm of 3.5, would do equally well. Distance and convergence of matrices are those of this norm; since all norms on Rn2\mathbb R^{n^2} are equivalent, the choice does not change which sequences converge.

In one lineFor this chapter, ∥A∥=∑i,j∣aij∣\lVert A \rVert = \sum_{i,j}\lvert a_{ij}\rvert: the sum of the absolute values of all entries. It is a norm, and it satisfies ∥AB∥≤∥A∥ ∥B∥\lVert AB\rVert \le \lVert A\rVert\,\lVert B\rVert.

Why it existsIt measures the size of a matrix by one number, makes the set of n×nn \times n matrices a complete normed space, and has the extra property ∥AB∥≤∥A∥∥B∥\lVert AB \rVert \le \lVert A\rVert\lVert B\rVert that powers need.

Theorem T MATH 376 homework 10 #2; Technau, April 15 (8.3)

The matrix norm is submultiplicative

For n×nn \times n matrices A,BA, B: ∥AB∥≤∥A∥ ∥B∥\lVert AB\rVert \le \lVert A\rVert\,\lVert B\rVert. Consequently ∥Ak∥≤∥A∥k\lVert A^k\rVert \le \lVert A\rVert^k for all k≥1k \ge 1.

In one line∥AB∥≤∥A∥ ∥B∥\lVert AB\rVert \le \lVert A\rVert\,\lVert B\rVert, hence ∥Ak∥≤∥A∥k\lVert A^k\rVert \le \lVert A\rVert^k.

Why it is trueEach entry of ABAB is a sum of products; bounding by absolute values and then adding extra non-negative terms gives the product of the two norms.

ProofTechnau, April 15
The idea: Triangle inequality inside each entry of the product, then enlarge the sum by allowing independent indices.
∥AB∥=∑i,j∣∑kaikbkj∣≤∑i,j,k∣aik∣ ∣bkj∣\lVert AB\rVert = \sum_{i,j}\Big\lvert\sum_ka_{ik}b_{kj}\Big\rvert \le \sum_{i,j,k}\lvert a_{ik}\rvert\,\lvert b_{kj}\rvert.
(AB)ij=∑kaikbkj(AB)_{ij} = \sum_ka_{ik}b_{kj}, and the absolute value of a sum is at most the sum of the absolute values.
≤∑i,k∑l,j∣aik∣ ∣blj∣\le \sum_{i,k}\sum_{l,j}\lvert a_{ik}\rvert\,\lvert b_{lj}\rvert.
Adding the extra non-negative terms ∣aik∣∣blj∣\lvert a_{ik}\rvert\lvert b_{lj}\rvert with l≠kl \ne k only makes the sum larger.
=(∑i,k∣aik∣)(∑l,j∣blj∣)=∥A∥ ∥B∥= \Big(\sum_{i,k}\lvert a_{ik}\rvert\Big)\Big(\sum_{l,j}\lvert b_{lj}\rvert\Big) = \lVert A\rVert\,\lVert B\rVert.
The double sum factors into two independent double sums.
So ∥Ak∥≤∥A∥k\lVert A^k\rVert \le \lVert A\rVert^k.
Induction on kk: ∥Ak+1∥=∥A⋅Ak∥≤∥A∥ ∥Ak∥≤∥A∥k+1\lVert A^{k+1}\rVert = \lVert A\cdot A^k\rVert \le \lVert A\rVert\,\lVert A^k\rVert \le \lVert A\rVert^{k+1}. ■\blacksquare
Worked example MATH 376 worksheet 24 #1
Compute the matrix norm of A = [[1, −2], [3, 0]] and B = [[1, 1, 0], [−1, 2, 4]].

Solution.

  1. Add the absolute values of all entries of AA. 1+2+3+0=61 + 2 + 3 + 0 = 6. The definition: every entry counts, no maximum and no row sums.
  2. Do the same for BB. 1+1+0+1+2+4=91 + 1 + 0 + 1 + 2 + 4 = 9. The definition works for any shape of matrix; submultiplicativity is for square ones.

Answer. ∥A∥=6\lVert A\rVert = 6 and ∥B∥=9\lVert B\rVert = 9. (This is not the operator norm and not the largest column sum.)

Your answerWhat is ∥A∥=∑i,j∣aij∣\lVert A\rVert = \sum_{i,j}\lvert a_{ij}\rvert for A=[1−230]A = \begin{bmatrix}1 & -2\\3 & 0\end{bmatrix}?
Theorem T MATH 376 worksheet 24 #2

Absolutely convergent matrix series converge

Let M0,M1,…M_0, M_1, \dots be n×nn \times n matrices with ∑k∥Mk∥<∞\sum_k\lVert M_k\rVert < \infty. Then the partial sums SN=∑k≤NMkS_N = \sum_{k \le N}M_k converge to a matrix SS, and ∥S∥≤∑k∥Mk∥\lVert S\rVert \le \sum_k\lVert M_k\rVert.

In one lineIf ∑k∥Mk∥\sum_k\lVert M_k\rVert converges as a series of numbers, then ∑kMk\sum_kM_k converges in the space of matrices.

Why it is trueThe partial sums of the matrix series are within the tail of the number series of each other, and the space of matrices is complete.

ProofMATH 376 worksheet 24 #2
The idea: Show the partial sums are Cauchy using the triangle inequality, then apply completeness of R^(n^2).
For m>nm > n: ∥Sm−Sn∥=∥∑k=n+1mMk∥≤∑k=n+1m∥Mk∥\lVert S_m - S_n\rVert = \big\lVert\sum_{k=n+1}^{m}M_k\big\rVert \le \sum_{k=n+1}^{m}\lVert M_k\rVert.
Triangle inequality for the norm, applied repeatedly.
So given ε>0\varepsilon > 0 there is NN with ∥Sm−Sn∥<ε\lVert S_m - S_n\rVert < \varepsilon for m>n>Nm > n > N: (SN)(S_N) is Cauchy.
The number series ∑∥Mk∥\sum\lVert M_k\rVert converges, so its partial sums are Cauchy (1.2): the tails ∑k>n∥Mk∥\sum_{k>n}\lVert M_k\rVert tend to 00.
So SN→SS_N \to S for some matrix SS.
Rn2\mathbb R^{n^2} with this norm is complete (4.2), so every Cauchy sequence converges.
Passing to the limit, ∥S∥≤∑k∥Mk∥\lVert S\rVert \le \sum_k\lVert M_k\rVert.
∥SN∥≤∑k≤N∥Mk∥\lVert S_N\rVert \le \sum_{k\le N}\lVert M_k\rVert and norms are continuous. ■\blacksquare

The matrix exponential

Definition T

Matrix exponential

For an n×nn \times n matrix MM (real or complex) the matrix exponential is eM=∑k=0∞1k!Mke^M = \sum_{k=0}^{\infty}\frac{1}{k!}M^k, where M0=IM^0 = I. For a real number tt and a matrix AA, etA=∑ktkAkk!e^{tA} = \sum_k\frac{t^kA^k}{k!}.

In one lineFor a square matrix MM, eM=∑k=0∞Mkk!=I+M+M22!+⋯e^M = \sum_{k=0}^{\infty}\frac{M^k}{k!} = I + M + \frac{M^2}{2!} + \cdots.

Why it existsIt is the exponential function applied to a matrix, defined by the same series, and it is the solution operator of the system x′=Axx' = Ax.

Theorem T Technau, April 15 and 17 (Lemma 8.3); MATH 376 worksheet 24 #3; Apostol 7.5

The matrix exponential always converges

For every n×nn \times n matrix MM, the series defining eMe^M converges, and ∥eM∥≤n−1+e∥M∥\lVert e^M\rVert \le n - 1 + e^{\lVert M\rVert}.

In one lineFor every square matrix MM the series ∑Mk/k!\sum M^k/k! converges, and ∥eM∥≤n−1+e∥M∥\lVert e^M\rVert \le n - 1 + e^{\lVert M\rVert}.

Why it is trueCompare with the number series for e∥M∥e^{\lVert M \rVert}, using ∥Mk∥≤∥M∥k\lVert M^k\rVert \le \lVert M\rVert^k for k≥1k \ge 1. The first term is the identity, whose norm is nn, not 11.

ProofTechnau, April 17; the constant corrects the worksheet
The idea: Bound the norm of each term with k at least 1 by the term of the number series for e to the power of the norm, treat the first term separately, then apply absolute convergence.
For k≥1k \ge 1: ∥Mkk!∥≤∥M∥kk!\big\lVert\frac{M^k}{k!}\big\rVert \le \frac{\lVert M\rVert^k}{k!}.
Submultiplicativity: ∥Mk∥≤∥M∥k\lVert M^k\rVert \le \lVert M\rVert^k for k≥1k \ge 1.
With r=∥M∥r = \lVert M\rVert: ∑k≥0∥Mkk!∥≤n+∑k≥1∥M∥kk!=n−1+e∥M∥<∞\sum_{k \ge 0}\big\lVert\frac{M^k}{k!}\big\rVert \le n + \sum_{k\ge1}\frac{\lVert M\rVert^k}{k!} = n - 1 + e^{\lVert M\rVert} < \infty.
The number series ∑rkk!\sum\frac{r^k}{k!} converges for every real rr (ratio test, 1.6), and its sum is ere^r. The k=0k = 0 term of the matrix series is II, with ∥I∥=n\lVert I\rVert = n (the sum of the absolute values of the nn ones).
So ∑Mk/k!\sum M^k/k! converges and ∥eM∥≤n−1+e∥M∥\lVert e^M\rVert \le n - 1 + e^{\lVert M\rVert}. ■\blacksquare
The previous theorem on absolutely convergent matrix series, with Mk=Mkk!M_k = \frac{M^k}{k!}.The worksheet states the bound as e to the norm. That is false for n at least 2: for M = 0 the left side is the norm of I, which is n, and the right side is 1.
Watch out· e to the power of a matrix is not the matrix of exponentials of entries

etAe^{tA} is NOT the matrix [etaij]\big[e^{ta_{ij}}\big]. For A=[0−110]A = \begin{bmatrix}0 & -1\\1 & 0\end{bmatrix} the entrywise exponentials would have entries e0=1e^0 = 1 and e±te^{\pm t}, while the true etAe^{tA} is the rotation matrix with entries cos⁡t\cos t and ±sin⁡t\pm\sin t. The only case where the two agree is a diagonal matrix, and then only on the diagonal.

Theorem T Technau, April 17 (Proposition 8.4); MATH 376 worksheet 24 #4; Apostol 7.6

The derivative of e^(tA)

For every square matrix AA and all real tt: ddtetA=AetA=etAA\frac{d}{dt}e^{tA} = Ae^{tA} = e^{tA}A, where the derivative of a matrix is taken entry by entry.

In one lineddtetA=AetA=etAA\dfrac{d}{dt}e^{tA} = Ae^{tA} = e^{tA}A.

Why it is trueEach entry of etAe^{tA} is a power series in tt with infinite radius of convergence, so it can be differentiated term by term, and the shifted series is AA times the original.

ProofTechnau, April 17
The idea: The (i,j) entry is a power series in t whose coefficients are bounded by those of an exponential series. Differentiate it term by term (1.6), shift the index, and recognise A times the series.
(etA)ij=∑k≥0αktk\big(e^{tA}\big)_{ij} = \sum_{k\ge0}\alpha_kt^k.
The (i,j)(i,j) entry of tkAk/k!t^kA^k/k! is αktk\alpha_kt^k with αk=(Ak)ij/k!\alpha_k = (A^k)_{ij}/k!.
The power series has radius of convergence ∞\infty.
A single entry is at most the norm: ∣αk∣≤∥Ak∥k!≤∥A∥kk!\lvert\alpha_k\rvert \le \frac{\lVert A^k\rVert}{k!} \le \frac{\lVert A\rVert^k}{k!}. The comparison test then gives absolute convergence for every tt.
So ddt∑kαktk=∑k≥1kαktk−1=∑k≥1(Ak)ij(k−1)!tk−1\frac{d}{dt}\sum_k\alpha_kt^k = \sum_{k\ge1}k\alpha_kt^{k-1} = \sum_{k\ge1}\frac{(A^k)_{ij}}{(k-1)!}t^{k-1}.
Power series may be differentiated term by term inside the radius of convergence (1.6 and differentiating a uniform limit).
=(A∑m≥0tmAmm!)ij=(AetA)ij= \Big(A\sum_{m\ge0}\frac{t^mA^m}{m!}\Big)_{ij} = \big(Ae^{tA}\big)_{ij}.
Put m=k−1m = k - 1, and use Am+1=A⋅AmA^{m+1} = A\cdot A^m, so that (Am+1)ij=(A⋅Am)ij(A^{m+1})_{ij} = (A\cdot A^m)_{ij}.
So ddtetA=AetA=etAA\frac{d}{dt}e^{tA} = Ae^{tA} = e^{tA}A.
Also Am+1=Am⋅AA^{m+1} = A^m\cdot A, so the same computation gives etAAe^{tA}A. ■\blacksquare
Proof workshopRebuild the proof that the derivative of e^(tA) is A e^(tA)Technau, April 17

Tap the lines in the order a proof would write them. Each line can only use what is already above it.

    Theorem T MATH 376 worksheet 24 #5; Apostol 7.8

    The law of exponents for one matrix

    For every square AA and all real s,ts, t: (a) e0A=Ie^{0A} = I; (b) e(s+t)A=esAetAe^{(s+t)A} = e^{sA}e^{tA}; (c) etAe−tA=Ie^{tA}e^{-tA} = I, so (etA)−1=e−tA(e^{tA})^{-1} = e^{-tA}.

    In one linee0A=Ie^{0A} = I, e(s+t)A=esAetAe^{(s+t)A} = e^{sA}e^{tA}, and etAe^{tA} is invertible with inverse e−tAe^{-tA}.

    Why it is trueBoth sides of the law solve the same matrix differential equation with the same starting matrix, and the solution is unique.

    ProofMATH 376 worksheet 24 #5
    The idea: (a) is the series at t = 0. For (b), fix s: the two sides are functions of t satisfying X' = AX with X(0) = e^{sA}, so they are equal by uniqueness (7.1). (c) is (b) with s = -t.
    (a) e0A=Ie^{0A} = I.
    Every term with k≥1k \ge 1 has a factor 0k=00^k = 0; the k=0k = 0 term is II.
    (b) Let F(t)=e(t+s)AF(t) = e^{(t+s)A}. Then F′=AFF' = AF and F(0)=esAF(0) = e^{sA}.
    The derivative theorem and the chain rule: ddte(t+s)A=Ae(t+s)A\frac{d}{dt}e^{(t+s)A} = Ae^{(t+s)A}.
    Let G(t)=etAesAG(t) = e^{tA}e^{sA}. Then G′=AGG' = AG and G(0)=esAG(0) = e^{sA}.
    The product rule and the derivative theorem: G′=AetAesA=AGG' = Ae^{tA}e^{sA} = AG, and G(0)=IesAG(0) = Ie^{sA}.
    So F=GF = G for all tt.
    Each column of FF and of GG solves the vector IVP x′=Axx' = Ax with the same starting vector. Linear systems have exactly one solution for each starting vector (7.1).
    (c) etAe−tA=e0A=Ie^{tA}e^{-tA} = e^{0A} = I. ■\blacksquare
    Put s=−ts = -t in (b) and use (a).
    Theorem T Technau, April 17 (Theorem 8.6); Apostol 7.9

    Solution of the linear system

    Let AA be an n×nn \times n constant matrix, b∈Rnb \in \mathbb R^n and a∈Ra \in \mathbb R. Then x(t)=e(t−a)Abx(t) = e^{(t-a)A}b is the unique solution of x′=Axx' = Ax, x(a)=bx(a) = b on R\mathbb R.

    In one lineThe IVP x′=Axx' = Ax, x(a)=bx(a) = b has the unique solution x(t)=e(t−a)Abx(t) = e^{(t-a)A}b, defined for all real tt.

    Why it is trueThe derivative theorem shows it is a solution, and uniqueness comes from the existence theorem of 7.1.

    ProofTechnau, April 17
    The idea: Differentiate with the chain rule and evaluate at a. Uniqueness is the linear existence theorem of 7.1.
    x′(t)=Ae(t−a)Ab=Ax(t)x'(t) = Ae^{(t-a)A}b = Ax(t).
    Chain rule and the derivative theorem: ddte(t−a)A=Ae(t−a)A\frac{d}{dt}e^{(t-a)A} = Ae^{(t-a)A}.
    x(a)=e0Ab=bx(a) = e^{0A}b = b.
    e0A=Ie^{0A} = I.
    So it is the only solution.
    A linear system with continuous coefficients has exactly one solution for each starting vector (7.1). ■\blacksquare
    Theorem T MATH 376 homework 10 #4; Apostol 7.8

    e^(A+B) equals e^A e^B when A and B commute

    (a) If AB=BAAB = BA, then et(A+B)=etAetBe^{t(A+B)} = e^{tA}e^{tB} for all tt, in particular eA+B=eAeBe^{A+B} = e^Ae^B. (b) For A=[1000]A = \begin{bmatrix}1 & 0\\0 & 0\end{bmatrix} and B=[0100]B = \begin{bmatrix}0 & 1\\0 & 0\end{bmatrix} one has eAeB=[ee01]e^Ae^B = \begin{bmatrix}e & e\\0 & 1\end{bmatrix} but eA+B=[ee−101]e^{A+B} = \begin{bmatrix}e & e - 1\\0 & 1\end{bmatrix}.

    In one lineIf AB=BAAB = BA then eA+B=eAeBe^{A+B} = e^Ae^B. Without AB=BAAB = BA the equation can fail.

    Why it is trueBoth sides, as functions of tt in etAetBe^{tA}e^{tB} and et(A+B)e^{t(A+B)}, solve the same differential equation with the same starting matrix.

    ProofMATH 376 homework 10 #4
    The idea: (a) Show e^(tA) commutes with B, differentiate the product e^(tA) e^(tB), and use uniqueness. (b) Compute both sides.
    BetA=etABBe^{tA} = e^{tA}B.
    AB=BAAB = BA gives BAk=AkBBA^k = A^kB for every kk by induction. Multiplication by BB is continuous, so it passes through the convergent sum.
    Let F(t)=etAetBF(t) = e^{tA}e^{tB}. Then F′(t)=AetAetB+etABetBF'(t) = Ae^{tA}e^{tB} + e^{tA}Be^{tB}.
    Product rule and the derivative theorem: F′=AetAetB+etABetBF' = Ae^{tA}e^{tB} + e^{tA}Be^{tB}.
    =AF+BetAetB=(A+B)F= AF + Be^{tA}e^{tB} = (A + B)F.
    Move BB to the left across etAe^{tA} by the first step.
    F(0)=IF(0) = I, so F(t)=et(A+B)F(t) = e^{t(A+B)}.
    et(A+B)e^{t(A+B)} solves the same equation X′=(A+B)XX' = (A + B)X with X(0)=IX(0) = I. Uniqueness (7.1) applied to each column.
    Now the example.
    (b) Ak=AA^k = A for k≥1k \ge 1 gives eA=I+(e−1)A=diag⁡(e,1)e^A = I + (e - 1)A = \operatorname{diag}(e, 1). B2=0B^2 = 0 gives eB=I+Be^B = I + B. The product is diag⁡(e,1)[1101]=[ee01]\operatorname{diag}(e, 1)\begin{bmatrix}1 & 1\\0 & 1\end{bmatrix} = \begin{bmatrix}e & e\\0 & 1\end{bmatrix}.
    The two products differ in the top-right entry: ee against e−1e - 1.
    A+B=[1100]A + B = \begin{bmatrix}1 & 1\\0 & 0\end{bmatrix} satisfies (A+B)2=A+B(A + B)^2 = A + B, so (A+B)k=A+B(A+B)^k = A + B for k≥1k \ge 1 and eA+B=I+(e−1)(A+B)=[ee−101]e^{A+B} = I + (e - 1)(A + B) = \begin{bmatrix}e & e - 1\\0 & 1\end{bmatrix}. And AB=B≠0=BAAB = B \ne 0 = BA. ■\blacksquare
    Proof workshopRebuild: e^(A+B) = e^A e^B when AB = BAMATH 376 homework 10 #4

    Each line of the proof is shown in order. Choose the reason that justifies it, then press Check.

    1. Since AB=BAAB = BA, BB commutes with every AkA^k and so with etAe^{tA}.
    2. Let F(t)=etAetBF(t) = e^{tA}e^{tB}. Then F′=AetAetB+etABetBF' = Ae^{tA}e^{tB} + e^{tA}Be^{tB}.
    3. F′=AF+BetAetB=(A+B)FF' = AF + Be^{tA}e^{tB} = (A + B)F.
    4. F(0)=IF(0) = I and et(A+B)e^{t(A+B)} solves the same problem, so F(t)=et(A+B)F(t) = e^{t(A+B)}.
    Quick checkFor which pair of matrices is eA+B=eAeBe^{A+B} = e^Ae^B guaranteed?
    Corollary T MATH 376 practice final 7(b)

    e^A is always invertible

    For any square AA: eAe−A=e−AeA=Ie^Ae^{-A} = e^{-A}e^A = I, so eAe^A is invertible with inverse e−Ae^{-A}. (Label B: det⁡eA=etr⁡A\det e^A = e^{\operatorname{tr}A}, hence det⁡eA>0\det e^A > 0 for a real matrix.)

    In one lineFor every square matrix AA, eAe^A is invertible and (eA)−1=e−A(e^A)^{-1} = e^{-A}. Moreover det⁡eA=etr⁡A\det e^A = e^{\operatorname{tr}A} (a fact beyond the course).

    Why it is trueAA and −A-A commute, so eAe−A=e0=Ie^Ae^{-A} = e^0 = I. The determinant formula follows from the triangular form of AA.

    ProofMATH 376 practice final 7(b); 3.6
    The idea: A and -A commute, so the law of exponents applies. For the determinant, use the Schur form A = U T U* and the fact that e^T is triangular with diagonal entries e to the power of the diagonal entries of T.
    eAe−A=eA+(−A)=e0=Ie^Ae^{-A} = e^{A + (-A)} = e^0 = I, and in the other order the same.
    A(−A)=(−A)AA(-A) = (-A)A, so the commuting law applies with B=−AB = -A.
    So eAe^A is invertible, with inverse e−Ae^{-A}.
    A square matrix with a two-sided inverse is invertible (2.4).
    Let A=UTU∗A = UTU^*.
    (B) Schur (3.6): A=UTU∗A = UTU^* with TT upper triangular and UU unitary. Powers conjugate: Ak=UTkU∗A^k = UT^kU^*, so eA=UeTU∗e^A = Ue^TU^*.
    eTe^T is upper triangular with diagonal et11,…,etnne^{t_{11}}, \dots, e^{t_{nn}}.
    Powers of an upper triangular matrix are upper triangular with the diagonal entries raised to the same power, so the diagonal of eTe^T has entries ∑ktiik/k!=etii\sum_kt_{ii}^k/k! = e^{t_{ii}}.
    det⁡eA=∏etii=e∑tii=etr⁡A\det e^A = \prod e^{t_{ii}} = e^{\sum t_{ii}} = e^{\operatorname{tr}A}.
    The determinant of a triangular matrix is the product of its diagonal (2.7); the product rule for determinants kills UU and U∗U^*; the diagonal of TT is the eigenvalues, which add up to the trace. ■\blacksquare

    Computing e^(tA)

    The series is a definition, not a method. We want closed forms. Five cases, in the order you should try them.

    Fact T Technau, April 20 (Lemma 8.8); MATH 376 worksheet 25 #1

    The exponential of a diagonal matrix

    If D=diag⁡(d1,…,dn)D = \operatorname{diag}(d_1, \dots, d_n) then Dk=diag⁡(d1k,…,dnk)D^k = \operatorname{diag}(d_1^k, \dots, d_n^k) and etD=diag⁡(ed1t,…,ednt)e^{tD} = \operatorname{diag}(e^{d_1t}, \dots, e^{d_nt}). The system x′=Dxx' = Dx is nn separate equations xi′=dixix_i' = d_ix_i, with solutions xi=cieditx_i = c_ie^{d_it}.

    In one lineetdiag⁡(d1,…,dn)=diag⁡(ed1t,…,ednt)e^{t\operatorname{diag}(d_1, \dots, d_n)} = \operatorname{diag}(e^{d_1t}, \dots, e^{d_nt}).

    Why it is truePowers of a diagonal matrix are diagonal, entry by entry, so the series splits into nn ordinary exponential series.

    Theorem T Technau, April 20 (Lemma 8.9); MATH 376 worksheet 25 #2; Apostol 7.10

    Exponential of a diagonalizable matrix

    Let A=CDC−1A = CDC^{-1} with CC invertible and D=diag⁡(λ1,…,λn)D = \operatorname{diag}(\lambda_1, \dots, \lambda_n). Then etA=Cdiag⁡(eλ1t,…,eλnt)C−1e^{tA} = C\operatorname{diag}(e^{\lambda_1t}, \dots, e^{\lambda_nt})C^{-1}. The columns of CC are eigenvectors of AA with eigenvalues λ1,…,λn\lambda_1, \dots, \lambda_n (in the same order).

    In one lineIf A=CDC−1A = CDC^{-1} with DD diagonal, then etA=CetDC−1e^{tA} = Ce^{tD}C^{-1}.

    Why it is truePowers of AA are CDkC−1CD^kC^{-1}, and CC and C−1C^{-1} factor out of the whole series.

    ProofTechnau, April 20
    The idea: Powers: A^k = C D^k C^(-1). Sum the series and pull C out of the sum.
    Ak=CDkC−1A^k = CD^kC^{-1}.
    Middle factors C−1C=IC^{-1}C = I cancel (the quiz of this chapter).
    etA=∑ktkk!CDkC−1=C(∑ktkDkk!)C−1e^{tA} = \sum_k\frac{t^k}{k!}CD^kC^{-1} = C\Big(\sum_k\frac{t^kD^k}{k!}\Big)C^{-1}.
    Multiplication by the fixed matrices CC and C−1C^{-1} is continuous and linear, so it passes through a convergent series.
    =CetDC−1= Ce^{tD}C^{-1}. ■\blacksquare
    The diagonal case.
    Worked example MATH 376 worksheet 25 #4
    Compute e^(tA) and the solution with x(0) = (1, 0) for A = [[3, 1], [1, 3]].

    Solution. Use the stepper to follow the six moves.

    Answer. etA=12[e4t+e2te4t−e2te4t−e2te4t+e2t]e^{tA} = \frac12\begin{bmatrix}e^{4t} + e^{2t} & e^{4t} - e^{2t}\\e^{4t} - e^{2t} & e^{4t} + e^{2t}\end{bmatrix} and x(t)=12(e4t+e2t, e4t−e2t)x(t) = \frac12\big(e^{4t} + e^{2t},\ e^{4t} - e^{2t}\big).

    Worked example MATH 376 worksheet 25 #5; homework 10 #3
    A triangular matrix and a diagonal one: A = [[5, 2], [0, 1]] with x(0) = (a, b); and A = diag(1, 2, ..., n) with y(0) = (1, 2, ..., n).

    Solution.

    1. Eigenvalues of the triangular matrix. They are the diagonal entries 55 and 11. The characteristic polynomial of a triangular matrix is the product of the λ−aii\lambda - a_{ii}.
    2. Eigenvectors. For 55: A−5I=[020−4]A - 5I = \begin{bmatrix}0 & 2\\0 & -4\end{bmatrix} forces the second coordinate 00, so v1=(1,0)v_1 = (1, 0). For 11: A−I=[4200]A - I = \begin{bmatrix}4 & 2\\0 & 0\end{bmatrix} gives 2x+y=02x + y = 0, so v2=(1,−2)v_2 = (1, -2). Eigenvalues on the diagonal, but the eigenvectors still have to be computed.
    3. Assemble. C=[110−2]C = \begin{bmatrix}1 & 1\\0 & -2\end{bmatrix}, C−1=[1120−12]C^{-1} = \begin{bmatrix}1 & \frac12\\0 & -\frac12\end{bmatrix}, so etA=[e5tet0−2et][1120−12]=[e5te5t−et20et]e^{tA} = \begin{bmatrix}e^{5t} & e^t\\0 & -2e^t\end{bmatrix}\begin{bmatrix}1 & \frac12\\0 & -\frac12\end{bmatrix} = \begin{bmatrix}e^{5t} & \frac{e^{5t} - e^t}{2}\\0 & e^t\end{bmatrix}. Multiply CetDCe^{tD} by C−1C^{-1}.
    4. The solution. x(t)=(ae5t+be5t−et2, bet)x(t) = \big(ae^{5t} + b\frac{e^{5t} - e^t}{2},\ be^t\big). Apply to (a,b)(a, b).
    5. The diagonal matrix. diag⁡(1,…,n)\operatorname{diag}(1, \dots, n) gives yi′=iyiy_i' = iy_i, yi(0)=iy_i(0) = i, so yi=ieity_i = ie^{it} and y(t)=(et,2e2t,…,nent)y(t) = (e^t, 2e^{2t}, \dots, ne^{nt}). Decoupled equations; no matrix to invert.

    Answer. x(t)=(ae5t+be5t−et2, bet)x(t) = \big(ae^{5t} + b\frac{e^{5t} - e^t}{2},\ be^t\big) and yi(t)=ieity_i(t) = ie^{it}.

    When the eigenvalues are complex, the formula still holds over C\mathbb C, and the imaginary parts cancel in the end. There are two shortcuts that avoid complex arithmetic altogether.

    Theorem T MATH 376 worksheet 24 #6(c), worksheet 26 #3; Technau, April 22 (Example 8.11)

    Exponential of a rotation-scaling block

    For real a,ba, b: et(aI+bJ)=eat(cos⁡bt I+sin⁡bt J)=eat[cos⁡bt−sin⁡btsin⁡btcos⁡bt]e^{t(aI + bJ)} = e^{at}\big(\cos bt\,I + \sin bt\,J\big) = e^{at}\begin{bmatrix}\cos bt & -\sin bt\\\sin bt & \cos bt\end{bmatrix}. The eigenvalues of the block are a±iba \pm ib.

    In one lineFor A=[a−bba]=aI+bJA = \begin{bmatrix}a & -b\\b & a\end{bmatrix} = aI + bJ with J=[0−110]J = \begin{bmatrix}0 & -1\\1 & 0\end{bmatrix}: etA=eat[cos⁡bt−sin⁡btsin⁡btcos⁡bt]e^{tA} = e^{at}\begin{bmatrix}\cos bt & -\sin bt\\\sin bt & \cos bt\end{bmatrix}.

    Why it is trueaIaI commutes with bJbJ, so the exponential splits as eate^{at} times ebtJe^{btJ}; and J2=−IJ^2 = -I turns the series into cosine and sine.

    ProofMATH 376 worksheet 26 #3
    The idea: Split off the scalar part with the law of exponents. Then J squared is minus the identity, so even powers give cosine and odd powers give sine.
    et(aI+bJ)=eatIebtJ=eatebtJe^{t(aI + bJ)} = e^{atI}e^{btJ} = e^{at}e^{btJ}.
    aIaI commutes with every matrix, so the commuting law applies.
    J2=−IJ^2 = -I.
    Direct multiplication: J2=[−100−1]J^2 = \begin{bmatrix}-1 & 0\\0 & -1\end{bmatrix}. So J2m=(−1)mIJ^{2m} = (-1)^mI and J2m+1=(−1)mJJ^{2m+1} = (-1)^mJ.
    ebtJ=∑m(−1)m(bt)2m(2m)!I+∑m(−1)m(bt)2m+1(2m+1)!J=cos⁡bt I+sin⁡bt Je^{btJ} = \sum_m\frac{(-1)^m(bt)^{2m}}{(2m)!}I + \sum_m\frac{(-1)^m(bt)^{2m+1}}{(2m+1)!}J = \cos bt\,I + \sin bt\,J. ■\blacksquare
    Even powers of btJbtJ give multiples of II, odd powers multiples of JJ; the coefficients are the series of cosine and sine.

    For a=0a = 0, b=1b = 1 this says that etJe^{tJ} is the rotation by the angle tt: the solution of x′=Jxx' = Jx is a point going round the origin at unit speed, which is the picture’s “centre”. Technau’s April 22 example gets the same matrix by diagonalizing over C\mathbb C: JJ has eigenvalues ±i\pm i and eigenvectors (1,∓i)(1, \mp i), and the product Cdiag⁡(eit,e−it)C−1C\operatorname{diag}(e^{it}, e^{-it})C^{-1} simplifies by Euler’s formula to the rotation. So the answer is real although the working is complex.

    Worked example MATH 376 worksheet 26 #4
    Complex eigenvalues, block form: x' = [[1, −2], [2, 1]]x with x(0) = (3, −1).

    Solution.

    1. Recognise the block. A=[1−221]A = \begin{bmatrix}1 & -2\\2 & 1\end{bmatrix} has the form aI+bJaI + bJ with a=1a = 1, b=2b = 2. Diagonal entries equal, off-diagonal entries opposite.
    2. Write etAe^{tA}. etA=et[cos⁡2t−sin⁡2tsin⁡2tcos⁡2t]e^{tA} = e^t\begin{bmatrix}\cos2t & -\sin2t\\\sin2t & \cos2t\end{bmatrix}. The block theorem.
    3. Apply to (3,−1)(3, -1). x(t)=et(3cos⁡2t+sin⁡2t, 3sin⁡2t−cos⁡2t)x(t) = e^t\big(3\cos2t + \sin2t,\ 3\sin2t - \cos2t\big). First coordinate 3cos⁡2t−(−1)sin⁡2t3\cos2t - (-1)\sin2t; second 3sin⁡2t+(−1)cos⁡2t3\sin2t + (-1)\cos2t.
    4. Check. At t=0t = 0 this is (3,−1)(3, -1). Starting value.

    Answer. x(t)=et(3cos⁡2t+sin⁡2t, 3sin⁡2t−cos⁡2t)x(t) = e^t(3\cos2t + \sin2t,\ 3\sin2t - \cos2t): a spiral growing like ete^t.

    Not every real matrix with complex eigenvalues is of the block form, but every 2×22 \times 2 one satisfies a short formula, thanks to the Cayley–Hamilton theorem. This is what the final’s Problem 5(b) needed.

    Theorem A Apostol 7.13 (formulas 7.33 to 7.35); MATH 376 final 5(b)

    Exponential of a 2 by 2 matrix

    Let AA be a 2×22 \times 2 matrix with eigenvalues λ,μ\lambda, \mu (repeated if the characteristic polynomial has a double root). Then the three formulas above hold. In the third, a,ba, b are real and b≠0b \ne 0 whenever AA is real with complex eigenvalues. Equivalently in the complex case: (A−aI)2=−b2I(A - aI)^2 = -b^2I.

    In one lineFor a 2×22 \times 2 matrix with eigenvalues λ,μ\lambda, \mu: if λ=μ\lambda = \mu, etA=eλt(I+t(A−λI))e^{tA} = e^{\lambda t}\big(I + t(A - \lambda I)\big); if λ≠μ\lambda \ne \mu, etA=eλtI+eλt−eμtλ−μ(A−λI)e^{tA} = e^{\lambda t}I + \frac{e^{\lambda t} - e^{\mu t}}{\lambda - \mu}(A - \lambda I); if λ,μ=a±ib\lambda, \mu = a \pm ib, etA=eat(cos⁡bt I+sin⁡btb(A−aI))e^{tA} = e^{at}\big(\cos bt\,I + \frac{\sin bt}{b}(A - aI)\big).

    Why it is trueBy Cayley–Hamilton (A−λI)(A−μI)=O(A - \lambda I)(A - \mu I) = O, so every power of AA is a combination of II and A−λIA - \lambda I, and so is the whole series. The coefficients are found from a first-order system.

    ProofApostol 7.13
    The idea: This is Putzer's theorem for n = 2, proved in general below. Here we give the complex case directly from (A - aI)^2 = -b^2 I.
    (A−aI)2+b2I=O(A - aI)^2 + b^2I = O, that is, (A−aI)2=−b2I(A - aI)^2 = -b^2I.
    The characteristic polynomial of AA is (t−a)2+b2(t - a)^2 + b^2 (roots a±iba \pm ib). By the Cayley–Hamilton theorem (3.6), AA satisfies it.
    Put N=A−aIN = A - aI. Then etA=eatetNe^{tA} = e^{at}e^{tN} with N2=−b2IN^2 = -b^2I.
    aIaI commutes with A−aIA - aI, so etA=eatet(A−aI)e^{tA} = e^{at}e^{t(A - aI)} by the commuting law.
    etN=cos⁡bt I+sin⁡btbNe^{tN} = \cos bt\,I + \frac{\sin bt}{b}N.
    N2m=(−b2)mIN^{2m} = (-b^2)^mI and N2m+1=(−b2)mNN^{2m+1} = (-b^2)^mN. Even powers give cosine, odd powers give 1b\frac1b times sine, exactly as in the block theorem.
    So etA=eat(cos⁡bt I+sin⁡btb(A−aI))e^{tA} = e^{at}\big(\cos bt\,I + \frac{\sin bt}{b}(A - aI)\big).
    Substitute back. The other two cases are the general Putzer formulas with n=2n = 2 (below). ■\blacksquare
    Worked example MATH 376 final 5(b)
    MATH 376 final 5(b): solve y1' = y1 + 2y2, y2' = −2y1 + 3y2, and give the real general solution.

    Solution.

    1. Write the matrix. A=[12−23]A = \begin{bmatrix}1 & 2\\-2 & 3\end{bmatrix} and y′=Ayy' = Ay. This is as far as you got on the exam, and it earned 11 of 44.
    2. Plan, in case time runs out. Eigenvalues come from λ2−4λ+7\lambda^2 - 4\lambda + 7, so λ=2±i3\lambda = 2 \pm i\sqrt3, and the real solutions are combinations of e2tcos⁡3te^{2t}\cos\sqrt3t and e2tsin⁡3te^{2t}\sin\sqrt3t. The exam cover says that a plan, written in notation, earns partial credit. This line alone would have earned more than the matrix did.
    3. Find the characteristic polynomial. Trace =4= 4, determinant =1⋅3−2⋅(−2)=7= 1\cdot3 - 2\cdot(-2) = 7, so λ2−4λ+7=0\lambda^2 - 4\lambda + 7 = 0 and λ=4±16−282=2±i3\lambda = \frac{4 \pm \sqrt{16 - 28}}{2} = 2 \pm i\sqrt3. Trace and determinant give the 2×22 \times 2 polynomial at once (2.8).
    4. Use the shortcut. With a=2a = 2, b=3b = \sqrt3: A−2I=[−12−21]A - 2I = \begin{bmatrix}-1 & 2\\-2 & 1\end{bmatrix}, and (A−2I)2=[1−4−2+22−2−4+1]=−3I(A - 2I)^2 = \begin{bmatrix}1 - 4 & -2 + 2\\2 - 2 & -4 + 1\end{bmatrix} = -3I. This confirms (A−aI)2=−b2I(A - aI)^2 = -b^2I with b2=3b^2 = 3.
    5. Write the exponential. etA=e2t(cos⁡3t I+sin⁡3t3(A−2I))=e2t[cos⁡3t−sin⁡3t32sin⁡3t3−2sin⁡3t3cos⁡3t+sin⁡3t3]e^{tA} = e^{2t}\Big(\cos\sqrt3t\,I + \frac{\sin\sqrt3t}{\sqrt3}(A - 2I)\Big) = e^{2t}\begin{bmatrix}\cos\sqrt3t - \frac{\sin\sqrt3t}{\sqrt3} & \frac{2\sin\sqrt3t}{\sqrt3}\\-\frac{2\sin\sqrt3t}{\sqrt3} & \cos\sqrt3t + \frac{\sin\sqrt3t}{\sqrt3}\end{bmatrix}. Substitute A−2IA - 2I into the formula.
    6. Apply to (c1,c2)(c_1, c_2) with real constants. y1=e2t[c1cos⁡3t+2c2−c13sin⁡3t]y_1 = e^{2t}\Big[c_1\cos\sqrt3t + \frac{2c_2 - c_1}{\sqrt3}\sin\sqrt3t\Big] and y2=e2t[c2cos⁡3t+c2−2c13sin⁡3t]y_2 = e^{2t}\Big[c_2\cos\sqrt3t + \frac{c_2 - 2c_1}{\sqrt3}\sin\sqrt3t\Big]. The problem asks for real-valued solutions, and c1=y1(0)c_1 = y_1(0), c2=y2(0)c_2 = y_2(0) are real.
    7. Check. y1′(0)=2c1+(2c2−c1)=c1+2c2y_1'(0) = 2c_1 + (2c_2 - c_1) = c_1 + 2c_2, which equals y1(0)+2y2(0)y_1(0) + 2y_2(0). The first equation of the system at t=0t = 0.

    Answer. The general real solution is the pair y1,y2y_1, y_2 above. The point spirals outward (growth rate e2te^{2t}, angular speed 3\sqrt3), as in the last preset of the picture.

    Your answerIn the solution of final 5(b) with c1=1c_1 = 1, c2=0c_2 = 0: y1(t)=e2t[cos⁡3t−13sin⁡3t]y_1(t) = e^{2t}\big[\cos\sqrt3t - \frac{1}{\sqrt3}\sin\sqrt3t\big]. What is y1 ⁣(π/3)y_1\!\big(\pi/\sqrt3\big)? (One decimal.)

    The (A−aI)2=−b2I(A - aI)^2 = -b^2I shortcut is only for 2×22 \times 2 matrices. For a complex eigenvalue of a matrix of any size there is a second route that never leaves real numbers: take the real and imaginary parts of one complex solution.

    Theorem T Technau, April 22; MATH 376 course notes (real and imaginary parts); Apostol 7.10

    Real and imaginary parts of a complex solution

    Let AA be a real n×nn \times n matrix and Av=λvAv = \lambda v with λ=a+ib\lambda = a + ib, b≠0b \ne 0, v=u+iwv = u + iw (u,w∈Rnu, w \in \mathbb R^n). Then z(t)=eλtv=x1(t)+i x2(t)z(t) = e^{\lambda t}v = x_1(t) + i\,x_2(t), with x1,x2x_1, x_2 real vector functions as above. Both solve x′=Axx' = Ax, and they are linearly independent. The same holds for the conjugate eigenvalue λˉ\bar\lambda and gives nothing new. Together with the solutions from the other eigenvalues they give nn independent real solutions.

    In one lineIf AA is real and Av=λvAv = \lambda v with λ=a+ib\lambda = a + ib, b≠0b \ne 0, and v=u+iwv = u + iw with u,wu, w real vectors, then x1=eat(cos⁡bt u−sin⁡bt w)x_1 = e^{at}(\cos bt\,u - \sin bt\,w) and x2=eat(sin⁡bt u+cos⁡bt w)x_2 = e^{at}(\sin bt\,u + \cos bt\,w) are two independent real solutions of x′=Axx' = Ax.

    Why it is trueThe solution z=eλtvz = e^{\lambda t}v is complex, but AA is real, so the real part and the imaginary part of the equation z′=Azz' = Az are two separate real equations. Each part is a real solution.

    Proofcourse notes (real and imaginary parts)
    The idea: Write the complex solution as real part plus i times imaginary part, and compare real and imaginary parts of z' = Az using that A is real. Independence comes from the starting vectors u and w.
    eλtv=eat[(cos⁡bt u−sin⁡bt w)+i(sin⁡bt u+cos⁡bt w)]=x1+ix2e^{\lambda t}v = e^{at}\big[(\cos bt\,u - \sin bt\,w) + i(\sin bt\,u + \cos bt\,w)\big] = x_1 + ix_2.
    Euler's formula: eλt=eat(cos⁡bt+isin⁡bt)e^{\lambda t} = e^{at}(\cos bt + i\sin bt). Multiply out with v=u+iwv = u + iw and use i2=−1i^2 = -1.
    z=eλtvz = e^{\lambda t}v satisfies z′=Azz' = Az.
    The eigenvector theorem above holds for complex λ\lambda and vv.
    So x1′=Ax1x_1' = Ax_1 and x2′=Ax2x_2' = Ax_2.
    z′=x1′+ix2′z' = x_1' + ix_2' and, because AA has real entries, Az=Ax1+iAx2Az = Ax_1 + iAx_2 with Ax1,Ax2Ax_1, Ax_2 real. Two complex vectors are equal exactly when their real parts and their imaginary parts are equal.
    If αx1+βx2=O\alpha x_1 + \beta x_2 = O for all tt, then at t=0t = 0 we get αu+βw=O\alpha u + \beta w = O, so α=β=0\alpha = \beta = 0. The solutions are independent. ■\blacksquare
    At t=0t = 0: x1(0)=ux_1(0) = u and x2(0)=wx_2(0) = w. The vectors vv and vˉ\bar v are eigenvectors for the different eigenvalues λ≠λˉ\lambda \ne \bar\lambda, so they are independent over C\mathbb C (2.8). Now u=12(v+vˉ)u = \frac12(v + \bar v) and w=12i(v−vˉ)w = \frac1{2i}(v - \bar v) are obtained from v,vˉv, \bar v by an invertible change, so u,wu, w are independent too.
    Worked example MATH 376 final 5(b), course notes
    MATH 376 final 5(b) a third way: real and imaginary parts of e^(λt)v for A = [[1, 2], [−2, 3]].

    Solution.

    1. Eigenvalue. λ=2+i3\lambda = 2 + i\sqrt3, from λ2−4λ+7=0\lambda^2 - 4\lambda + 7 = 0. Trace 44, determinant 77 as before.
    2. Eigenvector. (A−λI)v=O(A - \lambda I)v = O has first row (−1−i3)v1+2v2=0(-1 - i\sqrt3)v_1 + 2v_2 = 0. Take v1=2v_1 = 2 and v2=1+i3v_2 = 1 + i\sqrt3. Check the second row: −2⋅2+(1−i3)(1+i3)=−4+1+3=0-2 \cdot 2 + (1 - i\sqrt3)(1 + i\sqrt3) = -4 + 1 + 3 = 0.
    3. Split vv. v=u+iwv = u + iw with u=(2,1)u = (2, 1) and w=(0,3)w = (0, \sqrt3). uu is the real part of vv and ww the imaginary part.
    4. Write the two real solutions. x1=e2t(cos⁡3t u−sin⁡3t w)=e2t(2cos⁡3t, cos⁡3t−3sin⁡3t)x_1 = e^{2t}\big(\cos\sqrt3t\,u - \sin\sqrt3t\,w\big) = e^{2t}\big(2\cos\sqrt3t,\ \cos\sqrt3t - \sqrt3\sin\sqrt3t\big) and x2=e2t(sin⁡3t u+cos⁡3t w)=e2t(2sin⁡3t, sin⁡3t+3cos⁡3t)x_2 = e^{2t}\big(\sin\sqrt3t\,u + \cos\sqrt3t\,w\big) = e^{2t}\big(2\sin\sqrt3t,\ \sin\sqrt3t + \sqrt3\cos\sqrt3t\big). The theorem, with a=2a = 2, b=3b = \sqrt3.
    5. General real solution. x=k1x1+k2x2x = k_1x_1 + k_2x_2 with real k1,k2k_1, k_2. Two independent solutions of a system in the plane are a basis of the solution space.
    6. Match the starting vector. x(0)=(2k1, k1+3k2)=(c1,c2)x(0) = (2k_1,\ k_1 + \sqrt3k_2) = (c_1, c_2) gives k1=c12k_1 = \frac{c_1}{2} and k2=2c2−c123k_2 = \frac{2c_2 - c_1}{2\sqrt3}. Then y1=e2t[c1cos⁡3t+2c2−c13sin⁡3t]y_1 = e^{2t}\big[c_1\cos\sqrt3t + \frac{2c_2 - c_1}{\sqrt3}\sin\sqrt3t\big]. This is the first coordinate found before with etAe^{tA}. The second coordinate matches too.

    Answer. The same general real solution as before, now found without a matrix exponential. For a matrix with complex eigenvalues of size 3×33 \times 3 or more this is the route to use.

    Quick checkA real 2×22 \times 2 matrix has the eigenvalue 1+2i1 + 2i with eigenvector v=(1,i)v = (1, i). Which is a real solution of x′=Axx' = Ax?

    Next, the matrices that cannot be diagonalized (such a matrix is called defective). (A matrix can be diagonalized exactly when, for every eigenvalue, the number of independent eigenvectors equals the multiplicity of the eigenvalue as a root of the characteristic polynomial: 2.8.)

    Definition T

    Nilpotent matrix

    A square matrix NN is nilpotent if Nk=ON^k = O for some positive integer kk. Example: N=[0100]N = \begin{bmatrix}0 & 1\\0 & 0\end{bmatrix} has N2=ON^2 = O.

    In one lineA square matrix NN with Nk=ON^k = O for some kk.

    Why it existsThe exponential series of a nilpotent matrix stops after kk terms, so it is a polynomial in tt. Every defective matrix is a scalar matrix plus a nilpotent one on each Jordan block.

    Theorem T MATH 376 worksheet 24 #6(b), worksheet 28 #5; Apostol 7.14

    Exponential of a scalar plus a nilpotent matrix

    Let A=λI+NA = \lambda I + N with Nk=ON^k = O. Then etA=eλt∑j=0k−1tjNjj!e^{tA} = e^{\lambda t}\sum_{j=0}^{k-1}\frac{t^jN^j}{j!}. In particular, for N2=ON^2 = O: etA=eλt(I+tN)e^{tA} = e^{\lambda t}(I + tN).

    In one lineIf A=λI+NA = \lambda I + N with Nk=ON^k = O, then etA=eλt(I+tN+t2N22!+⋯+tk−1Nk−1(k−1)!)e^{tA} = e^{\lambda t}\Big(I + tN + \frac{t^2N^2}{2!} + \dots + \frac{t^{k-1}N^{k-1}}{(k-1)!}\Big).

    Why it is trueλI\lambda I commutes with NN, so the exponential splits, and the series of etNe^{tN} ends at Nk−1N^{k-1}.

    ProofMATH 376 worksheet 24 #6(b)
    The idea: Law of exponents for the commuting pair λI and N, and the series of e^(tN) is a finite sum.
    etA=eλtetNe^{tA} = e^{\lambda t}e^{tN}.
    λI\lambda I commutes with NN, so et(λI+N)=etλIetNe^{t(\lambda I + N)} = e^{t\lambda I}e^{tN}.
    etN=∑j<ktjNjj!e^{tN} = \sum_{j<k}\frac{t^jN^j}{j!}.
    Nj=ON^j = O for j≥kj \ge k, so all later terms of the series are zero. ■\blacksquare
    Worked example MATH 376 worksheet 24 #6(b), worksheet 28 #5; new
    Defective matrices: A = [[1, 1], [0, 1]]; x' = [[2, 1], [0, 2]]x with x(0) = (1, 1); and A = [[3, 1], [−1, 1]].

    Solution.

    1. Split the first matrix. A=I+NA = I + N with N=[0100]N = \begin{bmatrix}0 & 1\\0 & 0\end{bmatrix} and N2=ON^2 = O. The only eigenvalue is 11, doubled, with a single eigendirection, so AA cannot be diagonalized.
    2. Apply the theorem. etA=et(I+tN)=et[1t01]e^{tA} = e^t(I + tN) = e^t\begin{bmatrix}1 & t\\0 & 1\end{bmatrix}. This is the shear of 2.8, now with a growing factor.
    3. Second system. [2102]=2I+N\begin{bmatrix}2 & 1\\0 & 2\end{bmatrix} = 2I + N, so etA=e2t[1t01]e^{tA} = e^{2t}\begin{bmatrix}1 & t\\0 & 1\end{bmatrix} and x(t)=e2t[1+t1]x(t) = e^{2t}\begin{bmatrix}1 + t\\1\end{bmatrix}. Apply to (1,1)(1, 1): first coordinate 1⋅1+t⋅11\cdot1 + t\cdot1.
    4. Check. x2′=2x2x_2' = 2x_2 since x2=e2tx_2 = e^{2t}. And x1′=(3+2t)e2t=2x1+x2=2(1+t)e2t+e2tx_1' = (3 + 2t)e^{2t} = 2x_1 + x_2 = 2(1 + t)e^{2t} + e^{2t}. Both equations of the system hold.
    5. The third matrix needs no eigenvectors. The trace is 44 and the determinant is 3+1=43 + 1 = 4, so the characteristic polynomial is (λ−2)2(\lambda - 2)^2. Then A−2I=[11−1−1]A - 2I = \begin{bmatrix}1 & 1\\-1 & -1\end{bmatrix} and (A−2I)2=O(A - 2I)^2 = O (by Cayley–Hamilton, or by multiplying). So etA=e2t(I+t(A−2I))=e2t[1+tt−t1−t]e^{tA} = e^{2t}\big(I + t(A - 2I)\big) = e^{2t}\begin{bmatrix}1 + t & t\\-t & 1 - t\end{bmatrix}. For a 2×22 \times 2 matrix with a double eigenvalue λ\lambda, A−λIA - \lambda I is nilpotent, so this works without computing a Jordan basis.

    Answer. et[1t01]e^t\begin{bmatrix}1 & t\\0 & 1\end{bmatrix}; x(t)=e2t(1+t,1)x(t) = e^{2t}(1 + t, 1); e2t[1+tt−t1−t]e^{2t}\begin{bmatrix}1 + t & t\\-t & 1 - t\end{bmatrix}.

    Your answerFor x′=[2102]xx' = \begin{bmatrix}2 & 1\\0 & 2\end{bmatrix}x, x(0)=(1,1)x(0) = (1, 1), the solution is x(t)=e2t(1+t,1)x(t) = e^{2t}(1 + t, 1). What is the first coordinate at t=1t = 1? (Three decimals.)

    For larger matrices the general statement is the Jordan form. If A=CJC−1A = CJC^{-1} (3.6) then, exactly as in the diagonalizable theorem, etA=CetJC−1e^{tA} = Ce^{tJ}C^{-1}, and etJe^{tJ} is computed block by block: for a Jordan block Jk(λ)=λI+NJ_k(\lambda) = \lambda I + N with NN the matrix with ones directly above the diagonal, Nk=ON^k = O and the nilpotent theorem applies. For example,

    et[210021002]=e2t[1tt2201t001].e^{t\begin{bmatrix}2 & 1 & 0\\0 & 2 & 1\\0 & 0 & 2\end{bmatrix}} = e^{2t}\begin{bmatrix}1 & t & \frac{t^2}{2}\\0 & 1 & t\\0 & 0 & 1\end{bmatrix}.

    This is the matrix reason why a root of multiplicity mm in 7.2 gives ert,tert,…,tm−1erte^{rt}, te^{rt}, \dots, t^{m-1}e^{rt}: a Jordan block of size mm has Nm=ON^m = O and etNe^{tN} contains the powers up to tm−1t^{m-1}.

    Theorem A Apostol 7.13 (Theorem 7.9); Putzer 1966

    Putzer's method

    Let AA be n×nn \times n with eigenvalues λ1,…,λn\lambda_1, \dots, \lambda_n (in any order, repeated according to multiplicity). Define P0=IP_0 = I and Pk=∏m=1k(A−λmI)P_k = \prod_{m=1}^{k}(A - \lambda_mI). Let r1,…,rnr_1, \dots, r_n be the functions determined by the triangular system r1′=λ1r1r_1' = \lambda_1r_1, r1(0)=1r_1(0) = 1; rk+1′=λk+1rk+1+rkr_{k+1}' = \lambda_{k+1}r_{k+1} + r_k, rk+1(0)=0r_{k+1}(0) = 0 (1≤k<n1 \le k < n). Then etA=r1(t)P0+r2(t)P1+⋯+rn(t)Pn−1e^{tA} = r_1(t)P_0 + r_2(t)P_1 + \dots + r_n(t)P_{n-1}.

    In one lineWith eigenvalues λ1,…,λn\lambda_1, \dots, \lambda_n listed with multiplicity and P0=IP_0 = I, Pk=(A−λ1I)⋯(A−λkI)P_k = (A - \lambda_1I)\cdots(A - \lambda_kI), one has etA=∑k=0n−1rk+1(t)Pke^{tA} = \sum_{k=0}^{n-1}r_{k+1}(t)P_k, where r1′=λ1r1r_1' = \lambda_1r_1, r1(0)=1r_1(0) = 1 and rk+1′=λk+1rk+1+rkr_{k+1}' = \lambda_{k+1}r_{k+1} + r_k, rk+1(0)=0r_{k+1}(0) = 0.

    Why it is trueThe right-hand side F(t)F(t) satisfies F′=AFF' = AF and F(0)=IF(0) = I thanks to the Cayley–Hamilton theorem, so it equals etAe^{tA} by uniqueness. No eigenvectors and no Jordan form are needed.

    ProofApostol 7.13
    The idea: Define F as the right-hand side. Show F' = AF using the recursion for the r_k and the relation P_{k+1} = (A - λ_{k+1}I)P_k, with Cayley–Hamilton killing the last term. F(0) = I, so F = e^(tA) by uniqueness.
    Let F(t)=∑k=0n−1rk+1(t)PkF(t) = \sum_{k=0}^{n-1}r_{k+1}(t)P_k. Then F(0)=IF(0) = I.
    At t=0t = 0 only r1r_1 is non-zero: r1(0)=1r_1(0) = 1, rk(0)=0r_k(0) = 0 for k>1k > 1, and P0=IP_0 = I.
    F′=∑k=0n−1(λk+1rk+1+rk)PkF' = \sum_{k=0}^{n-1}\big(\lambda_{k+1}r_{k+1} + r_k\big)P_k.
    The recursion, with the convention r0=0r_0 = 0.
    F′−λnF=∑k=0n−2rk+1[(λk+1−λn)Pk+Pk+1]F' - \lambda_nF = \sum_{k=0}^{n-2}r_{k+1}\big[(\lambda_{k+1} - \lambda_n)P_k + P_{k+1}\big].
    Subtract λnF\lambda_nF. The k=n−1k = n - 1 term of ∑(λk+1−λn)rk+1Pk\sum(\lambda_{k+1} - \lambda_n)r_{k+1}P_k is zero, and the sum ∑krkPk\sum_kr_kP_k is re-indexed by k→k+1k \to k + 1.
    F′−λnF=(A−λnI)∑k=0n−2rk+1Pk=(A−λnI)(F−rnPn−1)F' - \lambda_nF = (A - \lambda_nI)\sum_{k=0}^{n-2}r_{k+1}P_k = (A - \lambda_nI)\big(F - r_nP_{n-1}\big).
    Pk+1=(A−λk+1I)PkP_{k+1} = (A - \lambda_{k+1}I)P_k, so the bracket is (A−λk+1I+λk+1I−λnI)Pk=(A−λnI)Pk(A - \lambda_{k+1}I + \lambda_{k+1}I - \lambda_nI)P_k = (A - \lambda_nI)P_k.
    F′−λnF=(A−λnI)F−rnPn=(A−λnI)FF' - \lambda_nF = (A - \lambda_nI)F - r_nP_n = (A - \lambda_nI)F.
    (A−λnI)Pn−1=Pn=pA(A)(A - \lambda_nI)P_{n-1} = P_n = p_A(A), where pAp_A is the characteristic polynomial, and pA(A)=Op_A(A) = O by the Cayley–Hamilton theorem (3.6).
    So F′=AFF' = AF.
    Cancel λnF\lambda_nF on both sides.
    So F(t)=etAF(t) = e^{tA}.
    etAe^{tA} solves the same IVP X′=AXX' = AX, X(0)=IX(0) = I, and the solution is unique (7.1). ■\blacksquare
    Worked example Apostol 7.13, Examples 1 and 2; MATH 376 worksheet 25 #5
    Putzer's method for [[5, 2], [0, 1]], and the general repeated case.

    Solution.

    1. Eigenvalues, in any order. λ1=5\lambda_1 = 5, λ2=1\lambda_2 = 1. Triangular matrix: the diagonal.
    2. The matrices PkP_k. P0=IP_0 = I and P1=A−5I=[020−4]P_1 = A - 5I = \begin{bmatrix}0 & 2\\0 & -4\end{bmatrix}. PkP_k is the product of the first kk factors (A−λmI)(A - \lambda_mI).
    3. Solve the system for r1,r2r_1, r_2. r1′=5r1r_1' = 5r_1, r1(0)=1r_1(0) = 1 gives r1=e5tr_1 = e^{5t}. Then r2′=r2+e5tr_2' = r_2 + e^{5t}, r2(0)=0r_2(0) = 0 gives r2=e5t−et4r_2 = \frac{e^{5t} - e^t}{4}. Solve in order: each equation uses the previous rr. Check: r2′=5e5t−et4r_2' = \frac{5e^{5t} - e^t}{4} and r2+e5t=e5t−et+4e5t4r_2 + e^{5t} = \frac{e^{5t} - e^t + 4e^{5t}}{4}.
    4. Assemble. etA=e5tI+e5t−et4[020−4]=[e5te5t−et20et]e^{tA} = e^{5t}I + \frac{e^{5t} - e^t}{4}\begin{bmatrix}0 & 2\\0 & -4\end{bmatrix} = \begin{bmatrix}e^{5t} & \frac{e^{5t} - e^t}{2}\\0 & e^t\end{bmatrix}. The same matrix as by diagonalization in the previous example.
    5. The general formulas for n=2n = 2. If λ1=λ2=λ\lambda_1 = \lambda_2 = \lambda the system is r1′=λr1r_1' = \lambda r_1, r2′=λr2+r1r_2' = \lambda r_2 + r_1 with solutions r1=eλtr_1 = e^{\lambda t}, r2=teλtr_2 = te^{\lambda t}, so etA=eλtI+teλt(A−λI)e^{tA} = e^{\lambda t}I + te^{\lambda t}(A - \lambda I). For λ1=λ≠μ=λ2\lambda_1 = \lambda \ne \mu = \lambda_2 we get r2=eλt−eμtλ−μr_2 = \frac{e^{\lambda t} - e^{\mu t}}{\lambda - \mu}. These are the formulas of the 2×22 \times 2 theorem; with λ=a+ib\lambda = a + ib, μ=a−ib\mu = a - ib they give the cos⁡\cos and sin⁡\sin form.

    Answer. etA=[e5te5t−et20et]e^{tA} = \begin{bmatrix}e^{5t} & \frac{e^{5t} - e^t}{2}\\0 & e^t\end{bmatrix}.

    Why· Which method for which matrix

    Look at AA and ask, in this order. (1) Diagonal? etA=diag⁡(edit)e^{tA} = \operatorname{diag}(e^{d_it}). (2) Scalar plus nilpotent, such as [2102]\begin{bmatrix}2 & 1\\0 & 2\end{bmatrix} or any 2×22 \times 2 with a double eigenvalue? eλt(I+tN+⋯ )e^{\lambda t}(I + tN + \cdots). (3) A 2×22 \times 2 with complex eigenvalues a±iba \pm ib? eat(cos⁡bt I+sin⁡btb(A−aI))e^{at}(\cos bt\,I + \frac{\sin bt}{b}(A - aI)), real from the start. (4) Distinct real eigenvalues, any size: diagonalize, CetDC−1Ce^{tD}C^{-1}, or Putzer. (5) Anything else: Jordan form or Putzer. Always end by checking e0A=Ie^{0A} = I and one entry of the differential equation. For a problem that only asks for the SOLUTION with a given starting vector, the eigenvalue method (x=∑cjeλjtvjx = \sum c_je^{\lambda_jt}v_j) avoids computing C−1C^{-1}.

    Inhomogeneous systems

    Theorem T Technau, April 20 (Theorem 8.7); MATH 376 worksheet 26 #1; Apostol 7.16

    Variation of constants for systems

    Let AA be constant and gg continuous on an interval J∋aJ \ni a. The IVP x′=Ax+gx' = Ax + g, x(a)=bx(a) = b has exactly one solution on JJ:

    x(t)=e(t−a)Ab+∫ate(t−s)Ag(s) ds.x(t) = e^{(t-a)A}b + \int_a^{t}e^{(t-s)A}g(s)\,ds .

    In one lineThe IVP x′=Ax+g(t)x' = Ax + g(t), x(a)=bx(a) = b has the unique solution x(t)=e(t−a)Ab+∫ate(t−s)Ag(s) dsx(t) = e^{(t-a)A}b + \int_a^te^{(t-s)A}g(s)\,ds.

    Why it is trueSet x=etAux = e^{tA}u and let the constant vector uu vary. Then etAu′=ge^{tA}u' = g, and u′=e−tAgu' = e^{-tA}g is integrated at once. The matrix etAe^{tA} plays the role of the whole homogeneous basis.

    ProofMATH 376 worksheet 26 #1
    The idea: Make the ansatz x = e^(tA) u(t), derive u' = e^(-tA) g, integrate, and use the law of exponents to combine. Uniqueness is 7.1.
    Put x(t)=etAu(t)x(t) = e^{tA}u(t).
    This is Lagrange's idea of 7.3 for systems: the homogeneous solution etAce^{tA}c with cc replaced by a function u(t)u(t).
    x′=AetAu+etAu′=Ax+etAu′x' = Ae^{tA}u + e^{tA}u' = Ax + e^{tA}u'.
    Product rule and the derivative theorem.
    So etAu′=ge^{tA}u' = g, and u′=e−tAgu' = e^{-tA}g.
    Compare with the equation x′=Ax+gx' = Ax + g.
    u(t)=e−aAb+∫ate−sAg(s) dsu(t) = e^{-aA}b + \int_a^{t}e^{-sA}g(s)\,ds.
    Integrate from aa to tt, with u(a)=e−aAbu(a) = e^{-aA}b so that x(a)=bx(a) = b.
    x(t)=e(t−a)Ab+∫ate(t−s)Ag(s) dsx(t) = e^{(t-a)A}b + \int_a^{t}e^{(t-s)A}g(s)\,ds.
    Multiply by etAe^{tA} and use the law of exponents etAe−aA=e(t−a)Ae^{tA}e^{-aA} = e^{(t-a)A} and etAe−sA=e(t−s)Ae^{tA}e^{-sA} = e^{(t-s)A}. ■\blacksquare
    Worked example MATH 376 worksheet 26 #2
    Solve x1' = 2x1 + e^t, x2' = −x2 + t with x(0) = (1, 2).

    Solution.

    1. Write AA, gg. A=diag⁡(2,−1)A = \operatorname{diag}(2, -1), g(s)=(es,s)g(s) = (e^s, s). The equations are decoupled, but the formula works the same way for any AA.
    2. Compute etAe^{tA}. etA=diag⁡(e2t,e−t)e^{tA} = \operatorname{diag}(e^{2t}, e^{-t}). Diagonal.
    3. The homogeneous part. etAx(0)=(e2t,2e−t)e^{tA}x(0) = (e^{2t}, 2e^{-t}). Do not forget this term.
    4. The integrand. e(t−s)Ag(s)=(e2(t−s)es, e−(t−s)s)=(e2t−s, ses−t)e^{(t-s)A}g(s) = \big(e^{2(t-s)}e^s,\ e^{-(t-s)}s\big) = \big(e^{2t-s},\ se^{s-t}\big). Replace tt by t−st - s in etAe^{tA} and multiply by g(s)g(s). The variable of integration is ss.
    5. Integrate each coordinate in ss from 00 to tt. First: e2t∫0te−sds=e2t(1−e−t)=e2t−ete^{2t}\int_0^te^{-s}ds = e^{2t}(1 - e^{-t}) = e^{2t} - e^t. Second: e−t∫0tsesds=e−t(tet−et+1)=t−1+e−te^{-t}\int_0^tse^sds = e^{-t}(te^t - e^t + 1) = t - 1 + e^{-t}. The second uses integration by parts: ∫ses ds=ses−es\int se^s\,ds = se^s - e^s.
    6. Add. x1=e2t+e2t−et=2e2t−etx_1 = e^{2t} + e^{2t} - e^t = 2e^{2t} - e^t and x2=2e−t+t−1+e−t=t−1+3e−tx_2 = 2e^{-t} + t - 1 + e^{-t} = t - 1 + 3e^{-t}. Homogeneous part plus the integral.
    7. Check. x(0)=(2−1,−1+3)=(1,2)x(0) = (2 - 1, -1 + 3) = (1, 2). And x1′=4e2t−et=2x1+etx_1' = 4e^{2t} - e^t = 2x_1 + e^t; x2′=1−3e−t=−x2+tx_2' = 1 - 3e^{-t} = -x_2 + t. Starting value and both equations.

    Answer. x(t)=(2e2t−et, t−1+3e−t)x(t) = \big(2e^{2t} - e^t,\ t - 1 + 3e^{-t}\big).

    The scalar variation of parameters of 7.3 is this formula in disguise: for y′′+a1y′+a0y=Ry'' + a_1y' + a_0y = R the system has g=(0,R)g = (0, R), the matrix e(t−s)Ae^{(t-s)A} has the top-right entry G(t,s)G(t, s) (the Green’s function), and the first coordinate of the formula is yp(t)=∫atG(t,s)R(s) dsy_p(t) = \int_a^tG(t, s)R(s)\,ds.

    Power series and the Neumann series

    A third way to solve y′=ryy' = ry is to assume a power series and match coefficients. It is the method of Technau’s April 22 lecture and worksheet 26.

    Worked example Technau, April 22 (Example 8.12); MATH 376 worksheets 26 #5, #6 and 28 #7
    Power series: y' = ry; y'' − xy' − y = 0 with y(0) = 1, y'(0) = 0; y'' + y = 0 with y(0) = 0, y'(0) = 1.

    Solution.

    1. Assume a series. For y′=ryy' = ry put y=∑k≥0αktky = \sum_{k\ge0}\alpha_kt^k. Then y′=∑k≥0(k+1)αk+1tky' = \sum_{k\ge0}(k + 1)\alpha_{k+1}t^k. Differentiate term by term inside the radius of convergence (1.6) and shift the index so that every sum shows tkt^k.
    2. Match coefficients. (k+1)αk+1=rαk(k + 1)\alpha_{k+1} = r\alpha_k, so αk=rkk!α0\alpha_k = \frac{r^k}{k!}\alpha_0, and y=α0erty = \alpha_0e^{rt}. Two power series are equal when their coefficients agree. Induction on the recurrence.
    3. Second problem: series. Put y=∑anxny = \sum a_nx^n. Then y′′=∑(n+2)(n+1)an+2xny'' = \sum(n + 2)(n + 1)a_{n+2}x^n and xy′=∑n≥1nanxnxy' = \sum_{n\ge1}na_nx^n. Every sum is written with xnx^n.
    4. Recurrence. The x0x^0 coefficient: 2a2−a0=02a_2 - a_0 = 0. For n≥1n \ge 1: (n+2)(n+1)an+2−nan−an=0(n + 2)(n + 1)a_{n+2} - na_n - a_n = 0, so an+2=ann+2a_{n+2} = \frac{a_n}{n + 2}, which also covers n=0n = 0. Divide by n+1≠0n + 1 \ne 0.
    5. Starting values. a0=y(0)=1a_0 = y(0) = 1, a1=y′(0)=0a_1 = y'(0) = 0. All odd coefficients are 00, and a2=12a_2 = \frac12, a4=18a_4 = \frac18, a6=148a_6 = \frac1{48}; in general a2m=12mm!a_{2m} = \frac{1}{2^mm!}. a2m=a2m−2/(2m)a_{2m} = a_{2m-2}/(2m).
    6. Sum. y=∑m(x2/2)mm!=ex2/2y = \sum_m\frac{(x^2/2)^m}{m!} = e^{x^2/2}. Check: y′=xyy' = xy, y′′=y+xy′=y+x2yy'' = y + xy' = y + x^2y, so y′′−xy′−y=y+x2y−x2y−y=0y'' - xy' - y = y + x^2y - x^2y - y = 0.
    7. Third problem. an+2=−an(n+2)(n+1)a_{n+2} = -\frac{a_n}{(n+2)(n+1)} with a0=0a_0 = 0, a1=1a_1 = 1 gives a2m+1=(−1)m(2m+1)!a_{2m+1} = \frac{(-1)^m}{(2m+1)!}, so y=sin⁡ty = \sin t. The series of sine, recovered from the equation.

    Answer. α0ert\alpha_0e^{rt}; ex2/2e^{x^2/2}; sin⁡t\sin t.

    Theorem T MATH 376 practice final 7(f); Technau, April 15

    The Neumann series

    Let AA be a square matrix with ∥A∥=∑i,j∣aij∣<1\lVert A\rVert = \sum_{i,j}\lvert a_{ij}\rvert < 1. Then I−AI - A is invertible and (I−A)−1=I+A+A2+⋯(I - A)^{-1} = I + A + A^2 + \cdots.

    In one lineIf ∥A∥<1\lVert A\rVert < 1 for the matrix norm of this chapter, then I−AI - A is invertible and (I−A)−1=∑k≥0Ak(I - A)^{-1} = \sum_{k\ge0}A^k.

    Why it is trueThe geometric series of matrices converges because ∥Ak∥≤∥A∥k\lVert A^k\rVert \le \lVert A\rVert^k is a geometric series of numbers, and the telescoping sum shows the sum is the inverse.

    ProofMATH 376 practice final 7(f)
    The idea: Absolute convergence of the matrix geometric series by submultiplicativity, then multiply by I - A and telescope.
    ∑k∥Ak∥<∞\sum_k\lVert A^k\rVert < \infty.
    Submultiplicativity: ∥Ak∥≤∥A∥k\lVert A^k\rVert \le \lVert A\rVert^k. The geometric series ∑∥A∥k\sum\lVert A\rVert^k converges since ∥A∥<1\lVert A\rVert < 1 (1.6).
    So S=∑k≥0AkS = \sum_{k\ge0}A^k exists.
    Absolutely convergent matrix series converge (this chapter).
    (I−A)S=lim⁡N(I−AN+1)=I(I - A)S = \lim_{N}(I - A^{N+1}) = I.
    Multiplication by I−AI - A is continuous and linear, so it passes through the series. The terms telescope: ∑k≤NAk−∑k≤NAk+1=I−AN+1\sum_{k\le N}A^k - \sum_{k\le N}A^{k+1} = I - A^{N+1}, and ∥AN+1∥≤∥A∥N+1→0\lVert A^{N+1}\rVert \le \lVert A\rVert^{N+1} \to 0.
    Likewise S(I−A)=IS(I - A) = I, so S=(I−A)−1S = (I - A)^{-1}.
    The same computation with SS on the left: AA commutes with SS. A matrix with a two-sided inverse is invertible. ■\blacksquare

    This is the matrix version of the geometric series, and the reason that the iteration x↦Ax+bx \mapsto Ax + b of 4.2 converges to (I−A)−1b(I - A)^{-1}b when ∥A∥<1\lVert A\rVert < 1: the iterates are b+Ab+A2b+⋯b + Ab + A^2b + \cdots.

    Phase portraits: a first look

    We now explain the picture. Everything follows from the formulas for etAe^{tA}.

    Theorem B standard; preview of 7.6

    Classification of planar linear systems

    Let AA be a real 2×22 \times 2 matrix with trace τ\tau and determinant Δ≠0\Delta \neq 0; its eigenvalues are the roots of λ2−τλ+Δ\lambda^2 - \tau\lambda + \Delta. (a) Δ<0\Delta < 0: two real eigenvalues of opposite signs, a saddle. (b) Δ>0\Delta > 0 and τ2−4Δ>0\tau^2 - 4\Delta > 0: two real eigenvalues of the same sign, a node, stable if τ<0\tau < 0 (everything tends to OO) and unstable if τ>0\tau > 0. (c) Δ>0\Delta > 0 and τ2−4Δ<0\tau^2 - 4\Delta < 0: complex eigenvalues a±iba \pm ib with a=τ/2a = \tau/2, a spiral, stable if τ<0\tau < 0, unstable if τ>0\tau > 0; if τ=0\tau = 0 the orbits are closed curves, a centre. (d) τ2=4Δ\tau^2 = 4\Delta: a repeated eigenvalue, a degenerate node (straight-line orbits if AA is a multiple of II, bent curves round the one eigendirection if not). Every solution tends to OO as t→∞t \to \infty if and only if both eigenvalues have negative real part, that is τ<0<Δ\tau < 0 < \Delta.

    In one lineFor a real 2×22 \times 2 matrix with trace τ\tau and determinant Δ≠0\Delta \ne 0: Δ<0\Delta < 0 is a saddle; Δ>0\Delta > 0, τ2>4Δ\tau^2 > 4\Delta is a node; Δ>0\Delta > 0, τ2<4Δ\tau^2 < 4\Delta, τ≠0\tau \ne 0 is a spiral; τ=0<Δ\tau = 0 < \Delta is a centre. The origin attracts everything exactly when τ<0<Δ\tau < 0 < \Delta.

    Why it is trueThe eigenvalues are the roots of λ2−τλ+Δ\lambda^2 - \tau\lambda + \Delta. Their signs and whether they are real decide the solutions c1eλ1tv1+c2eλ2tv2c_1e^{\lambda_1t}v_1 + c_2e^{\lambda_2t}v_2 or eate^{at} times a rotation.

    Proofstandard
    The idea: Read the answer off the formulas for e^(tA) in each case.
    (a) The product of the eigenvalues is Δ\Delta; negative means opposite signs.
    Real distinct eigenvalues: x=c1eλ1tv1+c2eλ2tv2x = c_1e^{\lambda_1t}v_1 + c_2e^{\lambda_2t}v_2 by the eigenvector theorem. If λ1>0>λ2\lambda_1 > 0 > \lambda_2 the v1v_1-part grows and the v2v_2-part decays: orbits approach the v2v_2 line and then run off along v1v_1, a saddle. Their product is Δ\Delta, so (a) is Δ<0\Delta < 0.
    (b) Same sign: all orbits tend to OO (or all run off), according to the sign of τ\tau.
    Both eλite^{\lambda_it} tend to 00 if both λi<0\lambda_i < 0, and both blow up if both are positive. The sum is τ\tau.
    (c) Complex eigenvalues: orbits wind around OO while their distance changes by eate^{at}.
    By the 2×22\times2 theorem etA=eat(cos⁡bt I+sin⁡btb(A−aI))e^{tA} = e^{at}\big(\cos bt\,I + \frac{\sin bt}{b}(A - aI)\big): a bounded oscillating factor times eate^{at}. The factor eate^{at} shrinks or grows according to the sign of a=τ/2a = \tau/2; a=0a = 0 gives a periodic motion.
    (d) Repeated eigenvalue: the nilpotent theorem.
    A repeated eigenvalue gives eλt(I+tN)e^{\lambda t}(I + tN) with N2=ON^2 = O; the decay or growth is that of eλte^{\lambda t} with λ=τ/2\lambda = \tau/2, and the term tNtN bends the orbits when N≠ON \ne O.
    So all orbits tend to OO exactly when τ<0<Δ\tau < 0 < \Delta.
    In (b), (c), (d) the long-term behaviour is governed by Re⁡λ\operatorname{Re}\lambda, and τ=λ1+λ2\tau = \lambda_1 + \lambda_2, Δ=λ1λ2\Delta = \lambda_1\lambda_2. For real roots, both negative is τ<0<Δ\tau < 0 < \Delta; for complex roots the real part τ/2<0\tau/2 < 0 with Δ>0\Delta > 0. ■\blacksquare
    Worked example MATH 376 final 5(b), worksheets 24 to 26 and 28; new
    Classify the origin for: [[1, 2], [2, −1]]; [[1, 2], [−2, 3]]; [[3, 1], [1, 3]]; [[5, 2], [0, 1]]; [[2, 1], [0, 2]]; [[0, −1], [1, 0]]; [[−3, 1], [0, −1]].

    Solution.

    1. Compute τ\tau, Δ\Delta and τ2−4Δ\tau^2 - 4\Delta for each. The table below lists them. Trace and determinant are the only inputs.
    Matrixτ\tauΔ\Deltaτ2−4Δ\tau^2 - 4\DeltaEigenvaluesType
    [122−1]\begin{bmatrix}1 & 2\\2 & -1\end{bmatrix}00−5-52020±5\pm\sqrt5saddle
    [12−23]\begin{bmatrix}1 & 2\\-2 & 3\end{bmatrix}4477−12-122±i32 \pm i\sqrt3unstable spiral
    [3113]\begin{bmatrix}3 & 1\\1 & 3\end{bmatrix}6688444,24, 2unstable node
    [5201]\begin{bmatrix}5 & 2\\0 & 1\end{bmatrix}665516165,15, 1unstable node
    [2102]\begin{bmatrix}2 & 1\\0 & 2\end{bmatrix}4444002,22, 2unstable degenerate node
    [0−110]\begin{bmatrix}0 & -1\\1 & 0\end{bmatrix}0011−4-4±i\pm icentre
    [−310−1]\begin{bmatrix}-3 & 1\\0 & -1\end{bmatrix}−4-43344−3,−1-3, -1stable node
    1. Apply the classification. The determinant sign separates the saddle; the discriminant τ2−4Δ\tau^2 - 4\Delta separates node from spiral; the sign of τ\tau separates stable from unstable. Each row is a single read-off.

    Answer. As in the last column. Only the last matrix has all solutions tending to OO. The final’s 5(b) matrix (row 2) spirals outward, with growth rate e2te^{2t} since the real part of the eigenvalues is τ/2=2\tau/2 = 2.

    Quick checkA 2×22 \times 2 real matrix has trace −2-2 and determinant 55. What do the solutions of x′=Axx' = Ax do?
    Quick checkTwo different solutions of x′=Axx' = Ax pass through the same point of the plane at different times. What follows?
    Python labComputing e^(tA) two ways
    import numpy as np
    
    def expm_series(A, t, terms):
        # e^(tA) = I + tA + (tA)^2/2! + ...  (each new term = previous term times tA / k)
        S, term = np.eye(len(A)), np.eye(len(A))
        for k in range(1, terms):
            term = term @ (t * A) / k
            S = S + term
        return S
    
    def expm_eig(A, t):
        # e^(tA) = C e^(tD) C^(-1), valid when A has n independent eigenvectors
        lam, C = np.linalg.eig(A.astype(complex))
        return (C @ np.diag(np.exp(lam * t)) @ np.linalg.inv(C)).real
    
    A = np.array([[1.0, 2.0], [-2.0, 3.0]])   # final 5(b): eigenvalues 2 +- i sqrt(3)
    t = 1.0
    ref = expm_eig(A, t)
    print("series terms   largest entry error vs eigen method")
    for n in [2, 4, 8, 12, 16, 20, 25]:
        print(f"{n:6d}         {np.max(np.abs(expm_series(A, t, n) - ref)):.2e}")
    
    # the same code on a matrix that cannot be diagonalized
    S = np.array([[1.0, 1.0], [0.0, 1.0]])     # a shear: e^(tS) = e^t [[1, t], [0, 1]]
    exact = np.exp(t) * np.array([[1, t], [0, 1]])
    print("\nshear, series with 25 terms, error:", np.max(np.abs(expm_series(S, t, 25) - exact)))
    lam, C = np.linalg.eig(S)
    print("shear, eigenvector matrix C:\n", C, "\n det C =", np.linalg.det(C))
    print("shear, eigen method error:", np.max(np.abs(expm_eig(S, t) - exact)))

    Try this. Run it: the series reaches machine precision (4×10−154 \times 10^{-15}) with 25 terms, and the eigen method C etDC−1C\,e^{tD}C^{-1} gives the same matrix. Both handle the complex eigenvalues of the final's 5(b) matrix. Then the shear [1101]\begin{bmatrix}1 & 1\\0 & 1\end{bmatrix}, which cannot be diagonalized: the series is still correct (error 4×10−164 \times 10^{-16}), but the matrix of eigenvectors CC has determinant about 2×10−162 \times 10^{-16} (its two columns are the same direction) and the eigen method returns an answer wrong by 2.72=e2.72 = e. Now put a small number eps in the bottom-left corner, S = np.array([[1.0, 1.0], [eps, 1.0]]): the matrix is diagonalizable again, but its eigenvectors are almost parallel, and for eps equal to 1e-2, 1e-6, 1e-10 the eigen method's error grows from about 10−1510^{-15} to 10−1310^{-13} to 10−1110^{-11} (compared with a 40-term series), while the series stays accurate. A defective matrix is the limit of an ill-conditioned eigenvector basis (chapter 3.5 on conditioning).

    Where it is used

    Used inside maths· Inside maths: one-parameter groups, rotations and the determinant

    The family t↦etAt \mapsto e^{tA} is a one-parameter group: e(s+t)A=esAetAe^{(s+t)A} = e^{sA}e^{tA} and e0A=Ie^{0A} = I. For A=JA = J it is the group of rotations of the plane, t↦t \mapsto rotation by the angle tt, and the matrix JJ (the “infinitesimal rotation”) is its derivative at t=0t = 0. In general, matrices AA with AT=−AA^{\mathsf T} = -A exponentiate to orthogonal matrices (3.3): rotations of R3\mathbb R^3 are eAe^{A} for a skew-symmetric AA, which is how robotics and graphics store orientations. The identity det⁡eA=etr⁡A\det e^{A} = e^{\operatorname{tr}A} says that the flow of x′=Axx' = Ax multiplies areas (volumes) by ettr⁡Ae^{t\operatorname{tr}A}, and the Abel formula of 7.3 is its scalar case. A continuous-time Markov chain is p′=Qpp' = Qp with QQ a rate matrix (columns summing to 00, off-diagonal entries non-negative): for two states with rates aa and bb, Q=[−aba−b]Q = \begin{bmatrix}-a & b\\a & -b\end{bmatrix}, the null vector (b,a)/(a+b)(b, a)/(a + b) is the stationary distribution, and etQe^{tQ} is a stochastic matrix for every t≥0t \ge 0 (2.11).

    Used in the real world· Medicine: how a drug leaves the blood (two compartments)

    A drug is injected into the blood (compartment 1). It is eliminated at rate 0.50.5 per hour, passes into tissue (compartment 2) at rate 0.30.3 per hour, and returns from tissue at rate 0.20.2 per hour. With x=(x1,x2)x = (x_1, x_2) the amounts: x1′=−(0.5+0.3)x1+0.2x2x_1' = -(0.5 + 0.3)x_1 + 0.2x_2, x2′=0.3x1−0.2x2x_2' = 0.3x_1 - 0.2x_2, so A=[−0.80.20.3−0.2]A = \begin{bmatrix}-0.8 & 0.2\\0.3 & -0.2\end{bmatrix} with trace −1-1 and determinant 0.10.1. The eigenvalues are −0.887-0.887 and −0.113-0.113 per hour: a stable node with two time scales. The fast one has half-life ln⁡2/0.887=0.78\ln2/0.887 = 0.78 hours (the drug spreads from blood to tissue) and the slow one ln⁡2/0.113=6.15\ln2/0.113 = 6.15 hours (the drug leaves slowly from the tissue). A graph of blood concentration against time on a log scale therefore shows two straight lines, a steep one and then a shallow one: the two-phase decline that doctors observe for many drugs. The matrix exponential etAe^{tA} gives the amounts at any time, and the variation of constants formula handles a drip: with infusion rate g=(g0,0)g = (g_0, 0) the amounts settle at the equilibrium −A−1g-A^{-1}g.

    Used in the real world· Epidemiology: why 'R0 above 1' decides an epidemic (linearised SIR)

    In the model of Kermack and McKendrick (1927) a population of NN is divided into susceptible SS, infected II and recovered RR: S′=−βSI/NS' = -\beta SI/N, I′=βSI/N−γII' = \beta SI/N - \gamma I, R′=γIR' = \gamma I. At the start almost everyone is susceptible, S≈NS \approx N, so I′≈(β−γ)II' \approx (\beta - \gamma)I: a linear equation with solution I=I0e(β−γ)tI = I_0e^{(\beta - \gamma)t}. With β=0.3\beta = 0.3 per day and γ=0.1\gamma = 0.1 per day, the growth rate is 0.20.2 per day and the number of cases doubles every ln⁡2/0.2=3.47\ln2/0.2 = 3.47 days. The ratio R0=β/γ=3R_0 = \beta/\gamma = 3 is the number of people one case infects. If a fraction pp of the population is immune, S≈(1−p)NS \approx (1 - p)N and the growth rate becomes β(1−p)−γ\beta(1 - p) - \gamma, which is negative exactly when p>1−1R0=23p > 1 - \frac1{R_0} = \frac23. With p=0.6p = 0.6 the growth rate is still 0.3×0.4−0.1=0.020.3 \times 0.4 - 0.1 = 0.02 per day (slow growth), and above p=23p = \frac23 the epidemic dies out. The sign of one eigenvalue, the number β(1−p)−γ\beta(1 - p) - \gamma, is the whole question; this is the linearisation at the disease-free state that 7.6 treats in general.

    Used in the real world· Machine learning: stability of a linear recurrent layer

    A linear recurrent layer with hidden state hk+1=Whkh_{k+1} = Wh_k has hk=Wkh0h_k = W^kh_0, and the continuous-time version h′=Ahh' = Ah has h(t)=etAh(0)h(t) = e^{tA}h(0). Both fade away exactly when the eigenvalues of WW are inside the unit circle (respectively those of AA have negative real part). A network with an eigenvalue of WW of size 1.11.1 multiplies the signal by 1.1100≈137801.1^{100} \approx 13780 over a hundred steps, which is the exploding gradient problem; size 0.90.9 gives 0.9100≈2.7×10−50.9^{100} \approx 2.7\times10^{-5}, the vanishing gradient. The classification of this chapter (spiral if the eigenvalues are complex, node if real) tells you which of the two behaviours you will see.

    Traps

    Watch out· Write the plan when the computation does not finish

    On the 376 final (5(b)) you wrote the matrix A=[12−23]A = \begin{bmatrix}1 & 2\\-2 & 3\end{bmatrix} and stopped: no eigenvalues, no exponential, no real solution. The rubric gave 11 of 44. The cover page of every exam says that a method written in notation earns partial credit. One line, ‘eigenvalues 2±i32 \pm i\sqrt3, so y=e2t(…cos⁡3t+…sin⁡3t)y = e^{2t}(\ldots\cos\sqrt3t + \ldots\sin\sqrt3t)’, would have earned more than the matrix did. The fastest complete route for any 2×22 \times 2 with complex eigenvalues is the (A−aI)2=−b2I(A - aI)^2 = -b^2I shortcut above.

    Watch out· e^(A+B) is not e^A e^B unless A and B commute

    Homework 10 #4 gives the explicit counterexample: eAeB=[ee01]e^Ae^B = \begin{bmatrix}e & e\\0 & 1\end{bmatrix} but eA+B=[ee−101]e^{A+B} = \begin{bmatrix}e & e - 1\\0 & 1\end{bmatrix}. Being invertible, or being diagonalizable, does not rescue it: for A=diag⁡(2,1)A = \operatorname{diag}(2, 1) and B=[1102]B = \begin{bmatrix}1 & 1\\0 & 2\end{bmatrix} (both diagonalizable) one finds eA+B=e3[1101]e^{A+B} = e^3\begin{bmatrix}1 & 1\\0 & 1\end{bmatrix} but eAeB=e3[1e−101]e^Ae^B = e^3\begin{bmatrix}1 & e - 1\\0 & 1\end{bmatrix}. In every use of the law of exponents ask: do they commute? aIaI and anything commute; AA with itself, with 2A2A, with A2A^2, with eAe^A, with A−λIA - \lambda I commute. That is why et(λI+N)=eλtetNe^{t(\lambda I + N)} = e^{\lambda t}e^{tN} is allowed.

    Watch out· Do not exponentiate entry by entry

    etA≠[etaij]e^{tA} \neq \big[e^{ta_{ij}}\big]. For A=[0100]A = \begin{bmatrix}0 & 1\\0 & 0\end{bmatrix} the entrywise exponentials would give [1et11]\begin{bmatrix}1 & e^t\\1 & 1\end{bmatrix} but the true etA=[1t01]e^{tA} = \begin{bmatrix}1 & t\\0 & 1\end{bmatrix}. Only diagonal matrices exponentiate entrywise.

    Watch out· Order and matching in C e^(tD) C^(-1)

    The factor CC goes on the left and C−1C^{-1} on the right. The jj-th eigenvalue on the diagonal of DD must correspond to the jj-th column of CC. Check: e0⋅Ae^{0\cdot A} must come out as II. And CC needs nn independent eigenvectors; check det⁡C≠0\det C \ne 0, or a defective matrix (such as [2102]\begin{bmatrix}2 & 1\\0 & 2\end{bmatrix}) will give nonsense.

    Watch out· A defective matrix has polynomial factors as well as exponentials

    [1101]\begin{bmatrix}1 & 1\\0 & 1\end{bmatrix} has the single eigenvalue 11, but etA=et[1t01]e^{tA} = e^t\begin{bmatrix}1 & t\\0 & 1\end{bmatrix} is not etIe^tI. The tt in the corner comes from the nilpotent part. If a 2×22 \times 2 matrix has a repeated eigenvalue and is not a multiple of II, use eλt(I+t(A−λI))e^{\lambda t}(I + t(A - \lambda I)).

    Watch out· Give a real answer when the problem is real

    The final asked for ‘general real-valued solutions y1,y2:R→Ry_1, y_2 : \mathbb R \to \mathbb R’. An answer with e(2+i3)te^{(2+i\sqrt3)t} and complex constants is not what was asked. Use the real shortcut, or take real and imaginary parts, and keep c1,c2c_1, c_2 real.

    Watch out· Variation of constants: e^((t-s)A) inside, integrate in s, and do not forget e^(tA) x(0)

    In x(t)=etAx(0)+∫0te(t−s)Ag(s) dsx(t) = e^{tA}x(0) + \int_0^te^{(t-s)A}g(s)\,ds the matrix inside the integral has t−st - s in its exponent, gg is evaluated at ss, and tt is a constant for the integration. Dropping the first term (homogeneous part) is the commonest slip.

    Watch out· This matrix norm is the sum of all absolute values, not the operator norm

    Worksheet 24 uses ∥A∥=∑i,j∣aij∣\lVert A\rVert = \sum_{i,j}\lvert a_{ij}\rvert. For A=[1−230]A = \begin{bmatrix}1 & -2\\3 & 0\end{bmatrix} this is 66. It is not the largest singular value and not the largest row or column sum. It is submultiplicative, which is the property the convergence proof needs.

    Problems

    checkMATH 376 worksheet 24 #1

    Compute ∥A∥\lVert A\rVert for A=[1−230]A = \begin{bmatrix}1 & -2\\3 & 0\end{bmatrix} and for B=[110−124]B = \begin{bmatrix}1 & 1 & 0\\-1 & 2 & 4\end{bmatrix}. Bound ∥A3∥\lVert A^3\rVert using submultiplicativity.

    Solution

    ∥A∥=1+2+3+0=6\lVert A\rVert = 1 + 2 + 3 + 0 = 6 and ∥B∥=1+1+0+1+2+4=9\lVert B\rVert = 1 + 1 + 0 + 1 + 2 + 4 = 9. By submultiplicativity ∥A3∥≤63=216\lVert A^3\rVert \le 6^3 = 216. (The true value is ∥A3∥=42\lVert A^3\rVert = 42, with A2=[−5−23−6]A^2 = \begin{bmatrix}-5 & -2\\3 & -6\end{bmatrix} and A3=[−1110−15−6]A^3 = \begin{bmatrix}-11 & 10\\-15 & -6\end{bmatrix}; the bound is not tight.)

    checkMATH 376 worksheet 24 #6(a), worksheet 25 #1

    Give etAe^{tA} and the general solution of x′=Axx' = Ax for A=diag⁡(2,−1)A = \operatorname{diag}(2, -1).

    Solution

    etA=diag⁡(e2t,e−t)e^{tA} = \operatorname{diag}(e^{2t}, e^{-t}), and with x(0)=(c1,c2)x(0) = (c_1, c_2): x(t)=(e2tc1,e−tc2)x(t) = (e^{2t}c_1, e^{-t}c_2). One coordinate grows, the other decays: a saddle.

    checkMATH 376 practice final 7(b)

    True or false: for every square matrix AA, eAe^A is invertible. Give the reason.

    Solution

    True. AA and −A-A commute, so eAe−A=eA+(−A)=e0=Ie^Ae^{-A} = e^{A + (-A)} = e^0 = I. Hence (eA)−1=e−A(e^A)^{-1} = e^{-A}. (Also det⁡eA=etr⁡A≠0\det e^A = e^{\operatorname{tr}A} \ne 0.)

    check

    Classify the origin for x′=Axx' = Ax: (a) A=[−141−1]A = \begin{bmatrix}-1 & 4\\1 & -1\end{bmatrix}; (b) A=[03−30]A = \begin{bmatrix}0 & 3\\-3 & 0\end{bmatrix}; (c) A=[−200−2]A = \begin{bmatrix}-2 & 0\\0 & -2\end{bmatrix}.

    Solution

    (a) τ=−2\tau = -2, Δ=1−4=−3<0\Delta = 1 - 4 = -3 < 0: a saddle (eigenvalues −1±2-1 \pm 2, i.e. 11 and −3-3). (b) τ=0\tau = 0, Δ=9\Delta = 9: a centre (eigenvalues ±3i\pm3i); orbits are circles traversed clockwise. (c) τ=−4\tau = -4, Δ=4\Delta = 4, τ2=4Δ\tau^2 = 4\Delta: a stable degenerate node (a star): A=−2IA = -2I, every orbit is a straight line into OO, etA=e−2tIe^{tA} = e^{-2t}I.

    useMATH 376 worksheet 25 #4, #5

    Solve x′=[3113]xx' = \begin{bmatrix}3 & 1\\1 & 3\end{bmatrix}x, x(0)=(1,0)x(0) = (1, 0) by the eigenvalue method, without computing C−1C^{-1}.

    Solution

    Eigenpairs: 4,(1,1)4, (1, 1) and 2,(1,−1)2, (1, -1). Write (1,0)=12(1,1)+12(1,−1)(1, 0) = \frac12(1, 1) + \frac12(1, -1). Then x(t)=12e4t(1,1)+12e2t(1,−1)=12(e4t+e2t, e4t−e2t)x(t) = \frac12e^{4t}(1, 1) + \frac12e^{2t}(1, -1) = \frac12\big(e^{4t} + e^{2t},\ e^{4t} - e^{2t}\big), the same as before. The starting vector’s coordinates in the eigenbasis are all that is needed.

    useMATH 376 worksheet 25 #3

    Let A=CDC−1A = CDC^{-1} with DD diagonal and let x′=Axx' = Ax, x(0)=x0x(0) = x_0. Show that y=C−1xy = C^{-1}x satisfies y′=Dyy' = Dy, and use this to find xx.

    Solution

    C−1C^{-1} is a constant matrix, so it passes through the derivative: y′=C−1x′=C−1Ax=C−1CDC−1x=DC−1x=Dyy' = C^{-1}x' = C^{-1}Ax = C^{-1}CDC^{-1}x = DC^{-1}x = Dy. In the eigenvector coordinates yy the system falls apart into yj′=λjyjy_j' = \lambda_jy_j, with y(0)=C−1x0y(0) = C^{-1}x_0. So y(t)=etDC−1x0y(t) = e^{tD}C^{-1}x_0 and x=Cy=CetDC−1x0x = Cy = Ce^{tD}C^{-1}x_0, the formula of the diagonalizable theorem. For A=[3113]A = \begin{bmatrix}3 & 1\\1 & 3\end{bmatrix} this is the computation of the stepper above.

    usecourse notes on real and imaginary parts

    Find two real solutions of x′=[0−110]xx' = \begin{bmatrix}0 & -1\\1 & 0\end{bmatrix}x by taking real and imaginary parts of eλtve^{\lambda t}v, and check they agree with etJe^{tJ}.

    Solution

    The eigenvalue λ=i\lambda = i has eigenvector v=(1,−i)v = (1, -i) (first row: −iv1−v2=0-iv_1 - v_2 = 0). So u=(1,0)u = (1, 0), w=(0,−1)w = (0, -1), a=0a = 0, b=1b = 1. Then x1=cos⁡t u−sin⁡t w=(cos⁡t,sin⁡t)x_1 = \cos t\,u - \sin t\,w = (\cos t, \sin t) and x2=sin⁡t u+cos⁡t w=(sin⁡t,−cos⁡t)x_2 = \sin t\,u + \cos t\,w = (\sin t, -\cos t). The first is the first column of etJe^{tJ}, the rotation matrix. The second is minus its second column, −(−sin⁡t,cos⁡t)-(-\sin t, \cos t). Both are combinations of the columns of etJe^{tJ}, as they must be.

    useMATH 376 worksheet 26 #4; new numbers

    Solve x′=[0−220]xx' = \begin{bmatrix}0 & -2\\2 & 0\end{bmatrix}x with x(0)=(1,1)x(0) = (1, 1), and describe the orbit.

    Solution

    A=0I+2JA = 0I + 2J, so etA=[cos⁡2t−sin⁡2tsin⁡2tcos⁡2t]e^{tA} = \begin{bmatrix}\cos2t & -\sin2t\\\sin2t & \cos2t\end{bmatrix} and x(t)=(cos⁡2t−sin⁡2t, sin⁡2t+cos⁡2t)x(t) = (\cos2t - \sin2t,\ \sin2t + \cos2t). The length of xx is constant, 2\sqrt2: the point goes counter-clockwise round the circle of radius 2\sqrt2 with angular speed 22, one lap every π\pi seconds.

    useMATH 376 final 5(b) variant

    Solve x′=[1−51−3]xx' = \begin{bmatrix}1 & -5\\1 & -3\end{bmatrix}x with x(0)=(1,0)x(0) = (1, 0), by the shortcut of this chapter.

    Solution

    Trace −2-2, determinant −3+5=2-3 + 5 = 2, so λ2+2λ+2=0\lambda^2 + 2\lambda + 2 = 0 and λ=−1±i\lambda = -1 \pm i: a=−1a = -1, b=1b = 1. A+I=[2−51−2]A + I = \begin{bmatrix}2 & -5\\1 & -2\end{bmatrix} and (A+I)2=[4−5−10+102−2−5+4]=−I(A + I)^2 = \begin{bmatrix}4 - 5 & -10 + 10\\2 - 2 & -5 + 4\end{bmatrix} = -I. So etA=e−t(cos⁡t I+sin⁡t (A+I))e^{tA} = e^{-t}\big(\cos t\,I + \sin t\,(A + I)\big) and x(0)=(1,0)x(0) = (1, 0) gives x(t)=e−t(cos⁡t+2sin⁡t, sin⁡t)x(t) = e^{-t}\big(\cos t + 2\sin t,\ \sin t\big). A stable spiral.

    useMATH 376 worksheet 26 #1, #2 style

    Solve x′=[−100−2]x+[1e−2t]x' = \begin{bmatrix}-1 & 0\\0 & -2\end{bmatrix}x + \begin{bmatrix}1\\e^{-2t}\end{bmatrix} with x(0)=(0,0)x(0) = (0, 0).

    Solution

    e(t−s)A=diag⁡(e−(t−s),e−2(t−s))e^{(t-s)A} = \operatorname{diag}(e^{-(t-s)}, e^{-2(t-s)}). x1=∫0te−(t−s)⋅1 ds=e−t(et−1)=1−e−tx_1 = \int_0^te^{-(t-s)}\cdot1\,ds = e^{-t}(e^t - 1) = 1 - e^{-t}. x2=∫0te−2(t−s)e−2s ds=e−2t∫0t1 ds=te−2tx_2 = \int_0^te^{-2(t-s)}e^{-2s}\,ds = e^{-2t}\int_0^t1\,ds = te^{-2t}. (The forcing in the second coordinate is at the natural rate e−2te^{-2t}: resonance, hence the factor tt.) Check: x2′=e−2t−2te−2t=−2x2+e−2tx_2' = e^{-2t} - 2te^{-2t} = -2x_2 + e^{-2t}.

    proveMATH 376 worksheet 24 #2

    Prove: if ∑k∥Mk∥\sum_k\lVert M_k\rVert converges, then ∑kMk\sum_kM_k converges in the space of n×nn \times n matrices.

    Solution

    Plan. Show the partial sums are Cauchy, then use completeness.

    ∥Sm−Sn∥≤∑k=n+1m∥Mk∥\lVert S_m - S_n\rVert \le \sum_{k=n+1}^{m}\lVert M_k\rVert, which is as small as we like for large nn because the tails of the convergent number series go to 00. So (SN)(S_N) is Cauchy in Rn2\mathbb R^{n^2}, which is complete (4.2). Hence SNS_N converges. ■\blacksquare

    proveMATH 376 worksheet 24 #5, homework 10 #4

    Prove that e(s+t)A=esAetAe^{(s+t)A} = e^{sA}e^{tA} using only the series (not the uniqueness theorem).

    Solution

    Plan. Multiply the two absolutely convergent series and group by total degree; the binomial theorem applies because sAsA and tAtA commute.

    esAetA=∑p,q≥0sptqAp+qp! q!e^{sA}e^{tA} = \sum_{p,q\ge0}\frac{s^pt^qA^{p+q}}{p!\,q!} (a Cauchy product of two absolutely convergent series, justified as in 1.6 applied entrywise). Group by m=p+qm = p + q: ∑mAmm!∑p=0m(mp)sptm−p=∑m(s+t)mAmm!=e(s+t)A\sum_m\frac{A^m}{m!}\sum_{p=0}^{m}\binom mp s^pt^{m-p} = \sum_m\frac{(s+t)^mA^m}{m!} = e^{(s+t)A}. The binomial theorem (s+t)m=∑(mp)sptm−p(s + t)^m = \sum\binom mp s^pt^{m-p} is for numbers, so no commutativity of matrices is needed here: all the matrices are powers of the SAME AA. ■\blacksquare

    proveMATH 376 worksheet 25 #2, #6

    Prove that if A=CDC−1A = CDC^{-1} then Ak=CDkC−1A^k = CD^kC^{-1} for all k≥0k \ge 0, deduce etA=CetDC−1e^{tA} = Ce^{tD}C^{-1}, and prove that if Av=λvAv = \lambda v then etAv=eλtve^{tA}v = e^{\lambda t}v.

    Solution

    Plan. Induction for the power; then the series; then apply the series to vv.

    k=0k = 0: both sides are II. If Ak=CDkC−1A^k = CD^kC^{-1} then Ak+1=AkA=CDkC−1CDC−1=CDk+1C−1A^{k+1} = A^kA = CD^kC^{-1}CDC^{-1} = CD^{k+1}C^{-1}. So etA=∑tkCDkC−1k!=C(∑tkDkk!)C−1=CetDC−1e^{tA} = \sum\frac{t^kCD^kC^{-1}}{k!} = C\big(\sum\frac{t^kD^k}{k!}\big)C^{-1} = Ce^{tD}C^{-1}. If Av=λvAv = \lambda v then Akv=λkvA^kv = \lambda^kv by induction, so etAv=∑tkAkvk!=∑(λt)kk!v=eλtve^{tA}v = \sum\frac{t^kA^kv}{k!} = \sum\frac{(\lambda t)^k}{k!}v = e^{\lambda t}v. ■\blacksquare

    proveMATH 376 practice final 7(f)

    Let ∥A∥=∑i,j∣aij∣<1\lVert A\rVert = \sum_{i,j}\lvert a_{ij}\rvert < 1. Show that I−AI - A is invertible and (I−A)−1=∑k≥0Ak(I - A)^{-1} = \sum_{k\ge0}A^k.

    Solution

    Plan. Absolute convergence by submultiplicativity, then telescope.

    ∥Ak∥≤∥A∥k\lVert A^k\rVert \le \lVert A\rVert^k, a geometric series with ratio below 11, so S=∑AkS = \sum A^k converges absolutely. (I−A)∑k≤NAk=I−AN+1→I(I - A)\sum_{k\le N}A^k = I - A^{N+1} \to I since ∥AN+1∥≤∥A∥N+1→0\lVert A^{N+1}\rVert \le \lVert A\rVert^{N+1} \to 0. So (I−A)S=I(I - A)S = I, and likewise S(I−A)=IS(I - A) = I. ■\blacksquare (Submultiplicativity: ∣∑kaikbkj∣≤∑k∣aik∣∣bkj∣\big\lvert\sum_ka_{ik}b_{kj}\big\rvert \le \sum_k\lvert a_{ik}\rvert\lvert b_{kj}\rvert, then sum over i,ji, j and enlarge the sum to independent indices.)

    proveMATH 376 homework 10 #5

    Show that there is a constant CC with ∣log⁡(k!)−klog⁡k+k∣≤Clog⁡k\lvert\log(k!) - k\log k + k\rvert \le C\log k for all k≥2k \ge 2. Deduce that (k!)1/k≥k/e(k!)^{1/k} \ge k/e, and hence that (k!)1/k→∞(k!)^{1/k} \to \infty. (This is the fact the lecture uses to show that the series for etAe^{tA} has infinite radius of convergence by the root test.)

    Solution

    Plan. Compare the sum log⁡k!=∑i≤klog⁡i\log k! = \sum_{i \le k}\log i with the integral of log⁡\log, using that log⁡\log is increasing.

    On [i−1,i][i-1, i] we have log⁡t≤log⁡i\log t \le \log i, so log⁡i≥∫i−1ilog⁡t dt\log i \ge \int_{i-1}^{i}\log t\,dt. Add over i=2,…,ki = 2, \dots, k: log⁡k!≥∫1klog⁡t dt=klog⁡k−k+1\log k! \ge \int_1^k\log t\,dt = k\log k - k + 1. On [i,i+1][i, i+1] we have log⁡t≥log⁡i\log t \ge \log i, so log⁡i≤∫ii+1log⁡t dt\log i \le \int_i^{i+1}\log t\,dt. Add over i=1,…,ki = 1, \dots, k: log⁡k!≤∫1k+1log⁡t dt=(k+1)log⁡(k+1)−k\log k! \le \int_1^{k+1}\log t\,dt = (k+1)\log(k+1) - k. So

    1≤log⁡k!−klog⁡k+k≤(k+1)log⁡(k+1)−klog⁡k=klog⁡(1+1k)+log⁡(k+1).1 \le \log k! - k\log k + k \le (k+1)\log(k+1) - k\log k = k\log\Big(1 + \frac1k\Big) + \log(k+1).

    Now klog⁡(1+1k)≤1k\log(1 + \frac1k) \le 1 (because log⁡(1+x)≤x\log(1 + x) \le x), and log⁡(k+1)≤log⁡k2=2log⁡k\log(k+1) \le \log k^2 = 2\log k for k≥2k \ge 2. Also 1≤log⁡klog⁡21 \le \frac{\log k}{\log 2} for k≥2k \ge 2. So the middle quantity lies between 11 and 1+2log⁡k≤(2+1log⁡2)log⁡k≤4log⁡k1 + 2\log k \le (2 + \frac1{\log 2})\log k \le 4\log k, and C=4C = 4 works. For the second claim, the lower bound log⁡k!≥klog⁡k−k\log k! \ge k\log k - k gives k!≥(k/e)kk! \ge (k/e)^k and so (k!)1/k≥k/e→∞(k!)^{1/k} \ge k/e \to \infty. ■\blacksquare

    stretch

    Prove that for a real 2×22 \times 2 matrix with complex eigenvalues a±iba \pm ib (b≠0b \ne 0), every solution of x′=Axx' = Ax has the form x(t)=eat(cos⁡bt u+sin⁡bt w)x(t) = e^{at}\big(\cos bt\,u + \sin bt\,w\big) for fixed real vectors u,wu, w, and find uu and ww in terms of x(0)x(0).

    Solution

    By the 2×22\times2 theorem etAx(0)=eat(cos⁡bt x(0)+sin⁡bt 1b(A−aI)x(0))e^{tA}x(0) = e^{at}\big(\cos bt\,x(0) + \sin bt\,\frac1b(A - aI)x(0)\big). So u=x(0)u = x(0) and w=1b(A−aI)x(0)w = \frac1b(A - aI)x(0). Both are real vectors. For the final’s 5(b) matrix with x(0)=(c1,c2)x(0) = (c_1, c_2): u=(c1,c2)u = (c_1, c_2) and w=13(−c1+2c2, −2c1+c2)w = \frac1{\sqrt3}(-c_1 + 2c_2,\ -2c_1 + c_2), matching the formulas found there. ■\blacksquare

    stretch

    Show that the origin is a centre if and only if tr⁡A=0\operatorname{tr}A = 0 and det⁡A>0\det A > 0, and that in that case the function V(x)=xTMxV(x) = x^{\mathsf T}Mx is constant along solutions for some positive definite matrix MM. (Hint: for A=[abc−a]A = \begin{bmatrix}a & b\\c & -a\end{bmatrix} try M=[−caab]M = \begin{bmatrix}-c & a\\a & b\end{bmatrix} when b>0>cb > 0 > c.)

    Solution

    Trace 00 and determinant Δ>0\Delta > 0 means eigenvalues ±iΔ\pm i\sqrt\Delta, pure imaginary, so by the classification the orbits are closed. Conversely, the classification says a centre needs τ=0<Δ\tau = 0 < \Delta. For A=[abc−a]A = \begin{bmatrix}a & b\\c & -a\end{bmatrix} with Δ=−a2−bc>0\Delta = -a^2 - bc > 0 (so bc<−a2≤0bc < -a^2 \le 0, bb and cc of opposite signs) take b>0>cb > 0 > c (if b<0<cb < 0 < c, use −M-M with the same formula for MM; the computation below is unchanged and −M-M is positive definite) and M=[−caab]M = \begin{bmatrix}-c & a\\a & b\end{bmatrix}, which is positive definite (−c>0-c > 0 and det⁡M=−bc−a2=Δ>0\det M = -bc - a^2 = \Delta > 0, 3.2). Then ddtxTMx=x′TMx+xTMx′=xT(ATM+MA)x\frac{d}{dt}x^{\mathsf T}Mx = x'^{\mathsf T}Mx + x^{\mathsf T}Mx' = x^{\mathsf T}(A^{\mathsf T}M + MA)x. Multiplying out the four products, ATM+MAA^{\mathsf T}M + MA is the zero matrix (for instance, in position (1,1)(1, 1) the product ATMA^{\mathsf T}M gives a(−c)+ca=0a(-c) + ca = 0 and MAMA gives (−c)a+ac=0(-c)a + ac = 0; the other three positions cancel in the same way), so VV is constant along solutions: the orbits are the ellipses V=V = const. ■\blacksquare

    Summary

    • A system x′=Axx' = Ax with constant AA is solved by x(t)=e(t−a)Ax(a)x(t) = e^{(t-a)A}x(a), where the matrix exponential etA=∑tkAk/k!e^{tA} = \sum t^kA^k/k! converges for every matrix, because ∥Ak∥≤∥A∥k\lVert A^k\rVert \le \lVert A\rVert^k (submultiplicativity of the sum-of-entries norm) and k!k! beats any exponential.
    • Properties: ddtetA=AetA\frac{d}{dt}e^{tA} = Ae^{tA} (term-by-term differentiation); e(s+t)A=esAetAe^{(s+t)A} = e^{sA}e^{tA} and etAe^{tA} is invertible with inverse e−tAe^{-tA} (uniqueness of solutions, 7.1). eA+B=eAeBe^{A+B} = e^Ae^B only if AB=BAAB = BA, and etAe^{tA} is never the entrywise exponential.
    • Computing etAe^{tA}: diagonal, entrywise; diagonalizable, CetDC−1Ce^{tD}C^{-1} (or the eigenvalue method x=∑cjeλjtvjx = \sum c_je^{\lambda_jt}v_j); scalar plus nilpotent, eλt(I+tN+⋯ )e^{\lambda t}(I + tN + \cdots) (a Jordan block); real 2×22\times2 with eigenvalues a±iba \pm ib, eat(cos⁡bt I+sin⁡btb(A−aI))e^{at}\big(\cos bt\,I + \frac{\sin bt}{b}(A - aI)\big) because (A−aI)2=−b2I(A - aI)^2 = -b^2I; and in general Putzer’s method from the eigenvalues alone, proved with Cayley–Hamilton.
    • Inhomogeneous: x(t)=e(t−a)Ab+∫ate(t−s)Ag(s) dsx(t) = e^{(t-a)A}b + \int_a^te^{(t-s)A}g(s)\,ds (variation of constants), the system form of 7.3.
    • A power series ansatz recovers erte^{rt}, ex2/2e^{x^2/2} and sin⁡t\sin t; the Neumann series gives (I−A)−1=∑Ak(I - A)^{-1} = \sum A^k when ∥A∥<1\lVert A\rVert < 1.
    • Phase portraits in the plane: trace τ\tau and determinant Δ\Delta decide saddle (Δ<0\Delta < 0), node, spiral, centre (τ=0<Δ\tau = 0 < \Delta); everything decays exactly when τ<0<Δ\tau < 0 < \Delta. Orbits never cross (uniqueness).
    • Your 376 trap: on the final’s 5(b) you wrote only the matrix. Write eigenvalues and the form of the real solution first, then the shortcut (A−aI)2=−b2I(A - aI)^2 = -b^2I finishes it in four lines.

    Watch and read

    The same ideas explained by someone else. Use these when an explanation here does not land.

    Where this sits

    Comes from
    7.1 Existence and uniqueness for differential equations
    7.2 Linear differential equations
    7.3 The Wronskian, variation of parameters and undetermined coefficients
    3.5 Matrix norms, conditioning, and why numerics fail
    3.6 Cayley–Hamilton, Schur, and the Jordan form
    2.8 Eigenvalues and eigenvectors
    1.6 Series, power series, and uniform convergence
    Leads to
    7.5 Power series solutions, Legendre and Bessel
    7.6 Phase portraits, stability and linearization
    Same idea elsewhere
    MATH 376: Lectures of April 15 to 24 define e^A, prove that it converges and that d/dt e^(tA) = A e^(tA), and compute it for diagonalizable matrices. Worksheets 24 to 26 and homework 10 cover norms, the series, the law of exponents (and its failure), the nilpotent and rotation cases, and variation of constants. The final's 5(b) (4 points) was x' = Ax with complex eigenvalues.
    MATH 541 / Lie theory: The exponential maps a matrix A to e^A and turns the tangent space at the identity of a matrix group into the group itself: skew-symmetric matrices go to rotations. The identity det e^A = e^(tr A) says the determinant of the group element is the exponential of the trace.
    Control, physics, CS 532: A linear system x' = Ax is stable exactly when every eigenvalue of A has negative real part. Linear recurrent networks, coupled oscillators and linearised epidemic models are all analysed this way.