Type a command or search the notes. Tab cycles completions. Up and down recall history when blank. Escape dismisses, then leaves the prompt.
MATH
[1251]

Linear ODE systems

First-order matrix ODEs solved by exponential eigenmodes.

This page solves coupled first-order equations x′=Ax\mathbf{x}'=A\mathbf{x} by the continuous analogue of matrix powers. An eigenvector gives a direction whose time dependence is a single exponential and its eigenvalue is the rate, read for growth or decay by stability of systems.

The page links the two strands. The Calculus ODE pages develop scalar methods, but the exponential modes needed here are derived below, so the page can be read first and compared with the scalar methods later.

First-order systems

With a single equation, the system is a first-order linear equation, which that page solves with an integrating factor.

[DEFINITION]

First-order linear equation

A first-order linear ODE in normal form is

y′+p(x)y=q(x).y'+p(x)y=q(x).
[DEFINITION]

First-order linear system

A first-order linear system with constant coefficient matrix AA has the form

x′(t)=Ax(t),\mathbf{x}'(t)=A\mathbf{x}(t),

where x(t)=(x1(t),…,xn(t))T\mathbf{x}(t)=(x_1(t),\ldots,x_n(t))^{\mathsf T} and AA is an n×nn\times n matrix. Specifying x(0)=x0\mathbf{x}(0)=\mathbf{x}_0 makes this an initial-value problem.

Writing the equations as one matrix equation records all couplings in AA. For example,

x1′=x1+3x2,x2′=3x1+x2⟺x′=(1331)x.\begin{aligned} x_1'&=x_1+3x_2,\\ x_2'&=3x_1+x_2 \end{aligned} \qquad\Longleftrightarrow\qquad \mathbf{x}'= \begin{pmatrix} 1&3\\ 3&1 \end{pmatrix}\mathbf{x}.

Eigenvectors as exponential modes

An eigenvector is a direction that AA does not mix with other directions, and its eigenvalue is the rate attached to that direction. An eigenbasis writes every initial vector as a combination of such modes.

[DEFINITION]

Diagonalisation

An n×nn\times n matrix AA over a field FF is diagonalisable over FF if there are an invertible matrix P∈Mn(F)P\in M_n(F) and a diagonal matrix D∈Mn(F)D\in M_n(F) such that

P−1AP=D,equivalentlyA=PDP−1.P^{-1}AP=D, \qquad\text{equivalently}\qquad A=PDP^{-1}.

The columns of PP are the eigenvectors in the chosen eigenbasis and the corresponding eigenvalues appear on the diagonal of DD.

[DEFINITION]

Eigenvalue

Let T:V→VT:V\to V be a linear map over a field FF. A scalar λ∈F\lambda\in F is an eigenvalue of TT if there is a non-zero vector v∈Vv\in V such that

T(v)=λv.T(v)=\lambda v.
[THEOREM]

Exponential modes

For a constant matrix AA and a non-zero vector u\mathbf u, the function

x(t)=ueλt\mathbf{x}(t)=\mathbf{u}e^{\lambda t}

is a solution of x′=Ax\mathbf{x}'=A\mathbf{x} if and only if λ\lambda is an eigenvalue of AA and u\mathbf{u} is a corresponding eigenvector. The zero solution is handled separately by taking u=0\mathbf u=\mathbf0.

When AA is real, the calculation may take place in Cn\mathbb C^n to use complex eigenvalues and eigenvectors. Combining a complex solution with its conjugate then gives real solutions, as in the oscillatory example below.

[PROOF]

Differentiating the proposed function gives

x′(t)=λueλt.\mathbf{x}'(t)=\lambda\mathbf{u}e^{\lambda t}.

The equation x′=Ax\mathbf{x}'=A\mathbf{x} therefore becomes

λueλt=Aueλt.\lambda\mathbf{u}e^{\lambda t} =A\mathbf{u}e^{\lambda t}.

Since eλt≠0e^{\lambda t}\neq0, this is equivalent to Au=λuA\mathbf{u}=\lambda\mathbf{u}. The reverse implication is the same calculation read backwards.

Superposing independent modes

[PROPOSITION]

Linear combinations of solutions

If x1(t)\mathbf{x}_1(t) and x2(t)\mathbf{x}_2(t) solve x′=Ax\mathbf{x}'=A\mathbf{x}, then every linear combination

αx1(t)+βx2(t)\alpha\mathbf{x}_1(t)+\beta\mathbf{x}_2(t)

also solves the system.

Differentiation and multiplication by AA are both linear:

ddt(αx1+βx2)=αAx1+βAx2=A(αx1+βx2).\frac{d}{dt}(\alpha\mathbf{x}_1+\beta\mathbf{x}_2) =\alpha A\mathbf{x}_1+\beta A\mathbf{x}_2 =A(\alpha\mathbf{x}_1+\beta\mathbf{x}_2).
[METHOD]

Solve a system by eigenmodes

When AA has an eigenbasis v1,…,vnv_1,\ldots,v_n with eigenvalues λ1,…,λn\lambda_1,\ldots,\lambda_n:

  1. find the eigenvalues and corresponding eigenvectors;
  2. write the initial vector as x0=c1v1+⋯+cnvn\mathbf{x}_0=c_1v_1+\cdots+c_nv_n;
  3. replace each eigenmode vjv_j by eλjtvje^{\lambda_jt}v_j;
  4. combine the modes: x(t)=c1eλ1tv1+⋯+cneλntvn.\mathbf{x}(t) =c_1e^{\lambda_1t}v_1+\cdots+c_ne^{\lambda_nt}v_n.

This is the matrix-power calculation with the discrete factor λjn\lambda_j^n replaced by the continuous factor eλjte^{\lambda_jt}. A matrix without an eigenbasis instead produces terms such as teλtte^{\lambda t}, as in the repeated-root case for scalar equations.

[EXAMPLE]

A system with a limiting state

Consider

x′=(−333−3)x,x(0)=(40).\mathbf{x}'= \begin{pmatrix} -3&3\\ 3&-3 \end{pmatrix}\mathbf{x}, \qquad \mathbf{x}(0)= \begin{pmatrix}4\\0\end{pmatrix}.

The eigenvalues are 00 and −6-6, with eigenvectors

v1=(11),v2=(1−1).v_1=\begin{pmatrix}1\\1\end{pmatrix}, \qquad v_2=\begin{pmatrix}1\\-1\end{pmatrix}.

Since

(40)=2(11)+2(1−1),\begin{pmatrix}4\\0\end{pmatrix} =2\begin{pmatrix}1\\1\end{pmatrix} +2\begin{pmatrix}1\\-1\end{pmatrix},

the solution is

x(t)=2(11)+2e−6t(1−1)=(2+2e−6t2−2e−6t).\mathbf{x}(t) =2\begin{pmatrix}1\\1\end{pmatrix} +2e^{-6t}\begin{pmatrix}1\\-1\end{pmatrix} = \begin{pmatrix} 2+2e^{-6t}\\ 2-2e^{-6t} \end{pmatrix}.

The e−6te^{-6t} mode decays to zero, so x(t)\mathbf{x}(t) tends to the equilibrium (2,2)T(2,2)^{\mathsf T}. The solution does not tend to zero, because the λ=0\lambda=0 mode stays constant.

[EXAMPLE]

Complex eigenvalues and a real solution

For

x′=(1−221)x,x(0)=(10),\mathbf{x}'= \begin{pmatrix} 1&-2\\ 2&1 \end{pmatrix}\mathbf{x}, \qquad \mathbf{x}(0)= \begin{pmatrix}1\\0\end{pmatrix},

the eigenvalues are 1+2i1+2i and 1−2i1-2i. Corresponding eigenvectors may be chosen as

v+=(i1),v−=(−i1).v_+=\begin{pmatrix}i\\1\end{pmatrix}, \qquad v_-=\begin{pmatrix}-i\\1\end{pmatrix}.

At t=0t=0, the coefficients must satisfy

c+(i1)+c−(−i1)=(10).c_+\begin{pmatrix}i\\1\end{pmatrix} +c_-\begin{pmatrix}-i\\1\end{pmatrix} =\begin{pmatrix}1\\0\end{pmatrix}.

Solving these two scalar equations gives c+=−i/2c_+=-i/2 and c−=i/2c_-=i/2. Therefore

x(t)=−i2e(1+2i)t(i1)+i2e(1−2i)t(−i1).\mathbf{x}(t) = -\frac{i}{2}e^{(1+2i)t}\begin{pmatrix}i\\1\end{pmatrix} +\frac{i}{2}e^{(1-2i)t}\begin{pmatrix}-i\\1\end{pmatrix}.

Using Euler's formula eiθ=cos⁡θ+isin⁡θe^{i\theta}=\cos\theta+i\sin\theta with θ=2t\theta=2t and simplifying yields the real solution

x(t)=et(cos⁡(2t)sin⁡(2t)).\mathbf{x}(t) =e^t \begin{pmatrix} \cos(2t)\\ \sin(2t) \end{pmatrix}.

Direct differentiation checks that x′=Ax\mathbf{x}'=A\mathbf{x} and x(0)=(1,0)T\mathbf{x}(0)=(1,0)^{\mathsf T}.

The factor ete^t makes the amplitude grow, while the sine and cosine rotate the state with angular frequency 22. The trajectory therefore spirals outward from the origin: the imaginary parts of the eigenvalues produce the oscillation and their positive real part produces the instability.

Higher-order equations as systems

Constant-coefficient scalar equations are solved with a characteristic equation and its roots. Each such equation can also be rewritten as a first-order system.

[DEFINITION]

Constant-coefficient equation

A second-order constant-coefficient linear ODE has the form

ay′′+by′+cy=f(x),a≠0,ay''+by'+cy=f(x), \qquad a\neq0,

where aa, bb and cc are constants. It is homogeneous when f(x)≡0f(x)\equiv0.

[DEFINITION]

Characteristic equation

For the homogeneous equation

ay′′+by′+cy=0,ay''+by'+cy=0,

the exponential trial function y=erxy=e^{rx} gives the characteristic equation

ar2+br+c=0.ar^2+br+c=0.
[METHOD]

Read the characteristic roots

Solve the characteristic equation and choose the real homogeneous modes according to the roots:

  • If r1≠r2r_1\neq r_2 are distinct real roots, use yh=Aer1x+Ber2x.y_h=Ae^{r_1x}+Be^{r_2x}.
  • If rr is a repeated real root, use yh=(A+Bx)erx.y_h=(A+Bx)e^{rx}.
  • If the roots are r=α±iβr=\alpha\pm i\beta with β≠0\beta\neq0, use yh=eαx(Acos⁡(βx)+Bsin⁡(βx)).y_h=e^{\alpha x} \bigl(A\cos(\beta x)+B\sin(\beta x)\bigr).
[EXAMPLE]

Converting a higher-order equation

The third-order equation

y′′′+ay′′+by′+cy=0y'''+ay''+by'+cy=0

becomes a first-order system after setting

x1=y,x2=y′,x3=y′′.x_1=y,\qquad x_2=y',\qquad x_3=y''.

Then

ddt(x1x2x3)=(010001−c−b−a)(x1x2x3).\frac{d}{dt} \begin{pmatrix} x_1\\x_2\\x_3 \end{pmatrix} = \begin{pmatrix} 0&1&0\\ 0&0&1\\ -c&-b&-a \end{pmatrix} \begin{pmatrix} x_1\\x_2\\x_3 \end{pmatrix}.

The first two rows record x1′=x2x_1'=x_2 and x2′=x3x_2'=x_3, while the third row is the original equation solved for y′′′y'''.

A coupled economic model

[EXAMPLE]

A two-variable economic model

Let y1y_1 be the inflation level and y2y_2 the interest-rate level. Consider the model

dy1dt=12y1−15y2,dy2dt=35y1−25y2,\frac{dy_1}{dt}=\frac12y_1-\frac15y_2, \qquad \frac{dy_2}{dt}=\frac35y_1-\frac25y_2,

with

y(0)=(4/1006/100),A=(1/2−1/53/5−2/5).\mathbf{y}(0)= \begin{pmatrix}4/100\\6/100\end{pmatrix}, \qquad A= \begin{pmatrix} 1/2&-1/5\\ 3/5&-2/5 \end{pmatrix}.

The characteristic polynomial is

det⁡(A−λI)=λ2−110λ−225,\det(A-\lambda I) =\lambda^2-\frac1{10}\lambda-\frac2{25},

so

λ1=1+3320,λ2=1−3320.\lambda_1=\frac{1+\sqrt{33}}{20}, \qquad \lambda_2=\frac{1-\sqrt{33}}{20}.

Eigenvectors with second component 11 are

v1=((9+33)/121),v2=((9−33)/121).v_1= \begin{pmatrix} (9+\sqrt{33})/12\\1 \end{pmatrix}, \qquad v_2= \begin{pmatrix} (9-\sqrt{33})/12\\1 \end{pmatrix}.

Writing the initial vector as y(0)=c1v1+c2v2\mathbf{y}(0)=c_1v_1+c_2v_2 gives

c1=33−331100,c2=33+331100.c_1=\frac{33-\sqrt{33}}{1100}, \qquad c_2=\frac{33+\sqrt{33}}{1100}.

Hence

y(t)=33−331100e(1+33)t/20v1+33+331100e(1−33)t/20v2.\mathbf{y}(t) =\frac{33-\sqrt{33}}{1100} e^{(1+\sqrt{33})t/20}v_1 +\frac{33+\sqrt{33}}{1100} e^{(1-\sqrt{33})t/20}v_2.

The first exponent is positive and the second is negative, so one eigenmode grows and the other decays.

The growing mode is the model's unstable direction: any non-zero component of the initial state along v1v_1 eventually dominates. The decaying mode along v2v_2 is a short-run adjustment.

[THEOREM]

Continuous stability from real parts

For a characteristic root r=α+iβr=\alpha+i\beta,

∣ert∣=eαt.|e^{rt}|=e^{\alpha t}.

Therefore α<0\alpha<0 gives decay, α>0\alpha>0 gives an unbounded mode and, for a simple root, α=0\alpha=0 gives a non-decaying oscillatory or constant mode. A repeated root on the imaginary axis introduces a term tertt e^{rt}, whose magnitude is unbounded.

For a mode eλte^{\lambda t}, Re⁡(λ)\operatorname{Re}(\lambda) controls growth or decay, as in the continuous stability criterion for scalar characteristic roots. The time factor is the same exponential that appears in second-order constant-coefficient equations.

On this page