1. Home
  2. Explore
  3. Mathematics
  4. Matrix Differential Equations

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Matrix Differential Equations

Solving Linear Matrix Differential Equations with Eigenvalues and Eigenvectors

1. The General System x˙=Ax\dot{x}=Axx˙=Ax

A linear system of first-order ordinary differential equations can be written compactly as

x˙=Ax,\dot{x}=Ax,x˙=Ax,

where:

  • x(t)x(t)x(t) is an nnn-dimensional state vector,

  • x˙(t)\dot{x}(t)x˙(t) is the time derivative of the state vector,

  • AAA is an n×nn\times nn×n constant matrix,

  • the entries of AAA describe how the components of the state influence one another.

The state vector has the form

x=[x1x2⋮xn],x= \begin{bmatrix} x_1\\ x_2\\ \vdots\\ x_n \end{bmatrix},x=​x1​x2​⋮xn​​​,

so the system represents nnn simultaneous differential equations.

Why the system is called first-order, coupled, and linear

  • First-order: Only first derivatives with respect to time appear, such as x˙1,x˙2,…,x˙n\dot{x}_1,\dot{x}_2,\ldots,\dot{x}_nx˙1​,x˙2​,…,x˙n​.

  • Coupled: The derivative of one state may depend on several or all of the other states.

  • Linear: Each derivative is a linear combination of the state variables. Matrix multiplication AxAxAx produces exactly such linear combinations.

For example, the first component of x˙=Ax\dot{x}=Axx˙=Ax is generally

x˙1=a11x1+a12x2+⋯+a1nxn.\dot{x}_1=a_{11}x_1+a_{12}x_2+\cdots+a_{1n}x_n.x˙1​=a11​x1​+a12​x2​+⋯+a1n​xn​.

Thus, off-diagonal entries of AAA represent interactions between different state variables.


2. The Simplest Case: Decoupled Dynamics

The easiest situation occurs when the matrix is diagonal. A diagonal system has the form

x˙=Dx,\dot{x}=Dx,x˙=Dx,

where

D=[λ10⋯00λ2⋯0⋮⋮⋱⋮00⋯λn].D= \begin{bmatrix} \lambda_1 & 0 & \cdots & 0\\ 0 & \lambda_2 & \cdots & 0\\ \vdots & \vdots & \ddots & \vdots\\ 0 & 0 & \cdots & \lambda_n \end{bmatrix}.D=​λ1​0⋮0​0λ2​⋮0​⋯⋯⋱⋯​00⋮λn​​​.

The diagonal entries λ1,λ2,…,λn\lambda_1,\lambda_2,\ldots,\lambda_nλ1​,λ2​,…,λn​ determine the behavior of the individual state variables.

Because all off-diagonal entries are zero, each state evolves independently:

x˙1=λ1x1,\dot{x}_1=\lambda_1x_1,x˙1​=λ1​x1​,
x˙2=λ2x2,\dot{x}_2=\lambda_2x_2,x˙2​=λ2​x2​,
⋮\vdots⋮
x˙n=λnxn.\dot{x}_n=\lambda_nx_n.x˙n​=λn​xn​.

There are no cross terms such as x2x_2x2​ appearing in the equation for x˙1\dot{x}_1x˙1​. Each equation depends only on its own state variable.

Example: Separate animal populations

Suppose the components of xxx represent populations of different animals in separate zoo enclosures:

x=[x1x2⋮xn].x= \begin{bmatrix} x_1\\ x_2\\ \vdots\\ x_n \end{bmatrix}.x=​x1​x2​⋮xn​​​.

If the populations do not interact, then:

  • The bunny population changes only according to the current bunny population.

  • The wolf population changes only according to the current wolf population.

  • The antelope population changes only according to the current antelope population.

  • No population affects any other population.

This is a model of decoupled dynamics.


3. Solving the Decoupled Equations

Each scalar equation

x˙k=λkxk\dot{x}_k=\lambda_kx_kx˙k​=λk​xk​

has the familiar exponential solution

xk(t)=eλktxk(0),x_k(t)=e^{\lambda_k t}x_k(0),xk​(t)=eλk​txk​(0),

where xk(0)x_k(0)xk​(0) is the initial value of the kkkth state.

Therefore, the complete solution is

x1(t)=eλ1tx1(0),x_1(t)=e^{\lambda_1t}x_1(0),x1​(t)=eλ1​tx1​(0),
x2(t)=eλ2tx2(0),x_2(t)=e^{\lambda_2t}x_2(0),x2​(t)=eλ2​tx2​(0),
⋮\vdots⋮
xn(t)=eλntxn(0).x_n(t)=e^{\lambda_nt}x_n(0).xn​(t)=eλn​txn​(0).

In vector form,

x(t)=[eλ1t0⋯00eλ2t⋯0⋮⋮⋱⋮00⋯eλnt]x(0).x(t)= \begin{bmatrix} e^{\lambda_1t} & 0 & \cdots & 0\\ 0 & e^{\lambda_2t} & \cdots & 0\\ \vdots & \vdots & \ddots & \vdots\\ 0 & 0 & \cdots & e^{\lambda_nt} \end{bmatrix} x(0).x(t)=​eλ1​t0⋮0​0eλ2​t⋮0​⋯⋯⋱⋯​00⋮eλn​t​​x(0).

The diagonal matrix containing the exponentials is denoted by

eDt=[eλ1t0⋯00eλ2t⋯0⋮⋮⋱⋮00⋯eλnt].e^{Dt}= \begin{bmatrix} e^{\lambda_1t} & 0 & \cdots & 0\\ 0 & e^{\lambda_2t} & \cdots & 0\\ \vdots & \vdots & \ddots & \vdots\\ 0 & 0 & \cdots & e^{\lambda_nt} \end{bmatrix}.eDt=​eλ1​t0⋮0​0eλ2​t⋮0​⋯⋯⋱⋯​00⋮eλn​t​​.

Thus, the solution can be written as

x(t)=eDtx(0).x(t)=e^{Dt}x(0).x(t)=eDtx(0).

Key idea: A diagonal matrix produces decoupled equations, and decoupled equations can be solved independently using scalar exponential solutions.

Matrix exponentials

The notation eDte^{Dt}eDt is a matrix exponential. For a general matrix AAA, it is defined through the Taylor series for the exponential function:

eAt=I+At+(At)22!+(At)33!+⋯ .e^{At}=I+At+\frac{(At)^2}{2!}+\frac{(At)^3}{3!}+\cdots.eAt=I+At+2!(At)2​+3!(At)3​+⋯.

For a diagonal matrix, evaluating the matrix exponential is especially simple: exponentiate each diagonal entry separately.


4. Why General Systems Are More Difficult

In most applications, the matrix AAA is not diagonal. For example, populations in the wild may interact:

  • Wolves affect the number of bunnies.

  • Bunnies affect the available food supply.

  • Antelope may compete with other animals.

  • Each population may influence the growth or decline of other populations.

The equations could look like

x˙1=a11x1+a12x2+⋯+a1nxn,\dot{x}_1=a_{11}x_1+a_{12}x_2+\cdots+a_{1n}x_n,x˙1​=a11​x1​+a12​x2​+⋯+a1n​xn​,

with similar equations for the other components.

The off-diagonal terms create coupling between the equations. Consequently, the scalar equations cannot be solved independently in the original coordinates.

The central strategy is therefore:

Find a new coordinate system in which the coupled system becomes diagonal and decoupled.

This is the role of eigenvalues and eigenvectors.


5. Changing Coordinates

Suppose the original state vector is xxx. A new state vector, denoted by zzz, is introduced through the linear coordinate transformation

x=Tz,x=Tz,x=Tz,

where TTT is an invertible matrix.

The matrix TTT must be invertible so that the transformation can be reversed:

z=T−1x.z=T^{-1}x.z=T−1x.

Invertibility means that TTT has a nonzero determinant:

det⁡(T)≠0.\det(T)\neq 0.det(T)=0.

The original and transformed coordinates describe the same physical state, but they use different coordinate bases.

The objective is to choose TTT so that the dynamics in the new coordinates become

z˙=Dz,\dot{z}=Dz,z˙=Dz,

where DDD is diagonal.

If this can be achieved, then the transformed system is easy to solve:

z(t)=eDtz(0).z(t)=e^{Dt}z(0).z(t)=eDtz(0).

The original solution can then be recovered from

x(t)=Tz(t).x(t)=Tz(t).x(t)=Tz(t).

6. Deriving the Coordinate Transformation

Begin with the transformation

x=Tz.x=Tz.x=Tz.

Assuming TTT is constant in time, differentiate both sides:

x˙=Tz˙.\dot{x}=T\dot{z}.x˙=Tz˙.

The original system states that

x˙=Ax.\dot{x}=Ax.x˙=Ax.

Substituting both relationships gives

Tz˙=Ax.T\dot{z}=Ax.Tz˙=Ax.

Since x=Tzx=Tzx=Tz, substitute again:

Tz˙=ATz.T\dot{z}=ATz.Tz˙=ATz.

To isolate z˙\dot{z}z˙, multiply both sides on the left by T−1T^{-1}T−1:

T−1Tz˙=T−1ATz.T^{-1}T\dot{z}=T^{-1}ATz.T−1Tz˙=T−1ATz.

Therefore,

z˙=T−1ATz.\dot{z}=T^{-1}ATz.z˙=T−1ATz.

The transformed system is diagonal precisely when

T−1AT=D,T^{-1}AT=D,T−1AT=D,

where DDD is diagonal.

This equation states that TTT must be chosen so that it diagonalizes AAA.


7. Deriving the Eigenvalue–Eigenvector Equation

Starting with the diagonalization condition

T−1AT=D,T^{-1}AT=D,T−1AT=D,

multiply both sides on the left by TTT:

T(T−1AT)=TD.T\left(T^{-1}AT\right)=TD.T(T−1AT)=TD.

Because TT−1=ITT^{-1}=ITT−1=I, this simplifies to

AT=TD.AT=TD.AT=TD.

This is the matrix eigenvalue–eigenvector equation.

Central result:

AT=TDAT=TDAT=TD

The diagonal entries of DDD are the eigenvalues of AAA, and the columns of TTT are the corresponding eigenvectors of AAA.

This equation is not merely an abstract linear algebra definition. It arises naturally from the goal of simplifying and solving the differential equation x˙=Ax\dot{x}=Axx˙=Ax.


8. Interpreting TTT and DDD by Columns

Write the transformation matrix TTT in terms of its columns:

T=[∣∣∣T1T2⋯Tn∣∣∣],T= \begin{bmatrix} | & | & & |\\ T_1&T_2&\cdots&T_n\\ | & | & & | \end{bmatrix},T=​∣T1​∣​∣T2​∣​⋯​∣Tn​∣​​,

where each TkT_kTk​ is a column vector.

Write the diagonal matrix DDD as

D=[λ10⋯00λ2⋯0⋮⋮⋱⋮00⋯λn].D= \begin{bmatrix} \lambda_1&0&\cdots&0\\ 0&\lambda_2&\cdots&0\\ \vdots&\vdots&\ddots&\vdots\\ 0&0&\cdots&\lambda_n \end{bmatrix}.D=​λ1​0⋮0​0λ2​⋮0​⋯⋯⋱⋯​00⋮λn​​​.

Then

AT=[AT1AT2⋯ATn].AT= \begin{bmatrix} AT_1&AT_2&\cdots&AT_n \end{bmatrix}.AT=[AT1​​AT2​​⋯​ATn​​].

Because DDD is diagonal,

TD=[λ1T1λ2T2⋯λnTn].TD= \begin{bmatrix} \lambda_1T_1&\lambda_2T_2&\cdots&\lambda_nT_n \end{bmatrix}.TD=[λ1​T1​​λ2​T2​​⋯​λn​Tn​​].

Equating corresponding columns of AT=TDAT=TDAT=TD produces the individual equations

AT1=λ1T1,AT_1=\lambda_1T_1,AT1​=λ1​T1​,
AT2=λ2T2,AT_2=\lambda_2T_2,AT2​=λ2​T2​,
⋮\vdots⋮
ATn=λnTn.AT_n=\lambda_nT_n.ATn​=λn​Tn​.

The general kkkth equation is

ATk=λkTk.AT_k=\lambda_kT_k.ATk​=λk​Tk​.

This is the standard eigenvalue–eigenvector relationship.

Meaning of an eigenpair

An eigenvector TkT_kTk​ is a nonzero vector whose direction is unchanged when multiplied by AAA. The matrix only scales it by a corresponding scalar λk\lambda_kλk​:

ATk=λkTk.AT_k=\lambda_kT_k.ATk​=λk​Tk​.

The pair (λk,Tk)(\lambda_k,T_k)(λk​,Tk​) is called an eigenpair:

  • λk\lambda_kλk​ is the eigenvalue.

  • TkT_kTk​ is the associated eigenvector.

The eigenvalues and eigenvectors occur in corresponding pairs. The kkkth diagonal entry of DDD must be paired with the kkkth column of TTT.


9. Why Eigenvector Coordinates Decouple the Dynamics

If TTT is formed from eigenvectors of AAA, then

AT=TD.AT=TD.AT=TD.

Since TTT is invertible,

T−1AT=D.T^{-1}AT=D.T−1AT=D.

The transformed state zzz satisfies

z˙=T−1ATz.\dot{z}=T^{-1}ATz.z˙=T−1ATz.

Using the diagonalization relation gives

z˙=Dz.\dot{z}=Dz.z˙=Dz.

Because DDD is diagonal, the transformed system becomes

z˙1=λ1z1,\dot{z}_1=\lambda_1z_1,z˙1​=λ1​z1​,
z˙2=λ2z2,\dot{z}_2=\lambda_2z_2,z˙2​=λ2​z2​,
⋮\vdots⋮
z˙n=λnzn.\dot{z}_n=\lambda_nz_n.z˙n​=λn​zn​.

Each transformed coordinate evolves independently:

zk(t)=eλktzk(0).z_k(t)=e^{\lambda_kt}z_k(0).zk​(t)=eλk​tzk​(0).

Thus, the eigenvectors define a coordinate system in which the original coupled dynamics become decoupled.

The main purpose of eigenvectors in linear systems: Eigenvectors provide a change of coordinates that diagonalizes the system matrix, allowing the differential equations to be solved independently.


10. Solving the Original System Once TTT and DDD Are Known

Once the matrix has been diagonalized,

A=TDT−1,A=TDT^{-1},A=TDT−1,

the solution process is:

  1. Transform the original initial condition into eigenvector coordinates: $$ z(0)=T^{-1}x(0). $$

  2. Solve the decoupled system: $$ z(t)=e^{Dt}z(0). $$

  3. Transform back to the original coordinates: $$ x(t)=Tz(t). $$

Combining these expressions gives

x(t)=TeDtT−1x(0).x(t)=Te^{Dt}T^{-1}x(0).x(t)=TeDtT−1x(0).

The matrix exponential of AAA can therefore be expressed as

eAt=TeDtT−1,e^{At}=Te^{Dt}T^{-1},eAt=TeDtT−1,

provided that AAA is diagonalizable and TTT is invertible.

This converts the difficult problem of solving the coupled system into:

  • finding eigenvalues,

  • finding eigenvectors,

  • solving independent scalar exponential equations,

  • transforming between coordinate systems.


11. Conceptual Summary

The complete reasoning is:

  1. A general linear system has the form $$ \dot{x}=Ax. $$

  2. Diagonal systems are easy because they represent independent scalar equations.

  3. A general matrix AAA usually contains off-diagonal terms, which create coupling.

  4. Introduce a new coordinate system using $$ x=Tz. $$

  5. The transformed dynamics are $$ \dot{z}=T^{-1}ATz. $$

  6. Choose TTT so that $$ T^{-1}AT=D, $wherewherewhereD$ is diagonal.

  7. Rearranging produces $$ AT=TD. $$

  8. The columns of TTT are eigenvectors of AAA, and the diagonal entries of DDD are their corresponding eigenvalues.

  9. In the eigenvector coordinate system, the system becomes $$ \dot{z}=Dz, $$ which can be solved using independent exponentials.

  10. The solution in the original coordinates is recovered through $$ x(t)=Te^{Dt}T^{-1}x(0). $$

Central insight: Eigenvalues and eigenvectors are useful for differential equations because they transform a coupled linear system into a diagonal, decoupled system whose components can be solved separately.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent