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 Systems of Differential Equations with Eigenvalues and Eigenvectors

A system of differential equations can describe several quantities that change over time. For example, the quantities might be animal populations, chemical concentrations, or positions and velocities in a mechanical system. When these quantities influence one another, solving the system directly can be difficult.

The central strategy is to find a new coordinate system in which the system becomes decoupled. Eigenvalues and eigenvectors provide exactly the coordinate transformation needed to accomplish this.

1. The General Matrix System

The systems under consideration have the form

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

Here:

  • xxx is a vector of state variables,
  • x˙\dot{x}x˙ is the vector of their time derivatives,
  • AAA is a matrix describing how the state variables affect one another.

For an nnn-dimensional system, the state vector is

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

and the system can be written component by component as

x˙1=a11x1+a12x2+⋯+a1nxn,x˙2=a21x1+a22x2+⋯+a2nxn, ⋮x˙n=an1x1+an2x2+⋯+annxn.\begin{aligned} \dot{x}_1 &= a_{11}x_1+a_{12}x_2+\cdots+a_{1n}x_n,\\ \dot{x}_2 &= a_{21}x_1+a_{22}x_2+\cdots+a_{2n}x_n,\\ &\ \vdots\\ \dot{x}_n &= a_{n1}x_1+a_{n2}x_2+\cdots+a_{nn}x_n. \end{aligned}x˙1​x˙2​x˙n​​=a11​x1​+a12​x2​+⋯+a1n​xn​,=a21​x1​+a22​x2​+⋯+a2n​xn​, ⋮=an1​x1​+an2​x2​+⋯+ann​xn​.​

This is a system of first-order linear ordinary differential equations.

Why “first-order”?

The system contains only first derivatives with respect to time, such as x˙1\dot{x}_1x˙1​ or x˙2\dot{x}_2x˙2​. No second derivatives, such as x¨1\ddot{x}_1x¨1​, appear.

Why “linear”?

Each derivative is a linear combination of the state variables. Matrix multiplication expresses precisely this kind of linear combination.

Why “coupled”?

The equations are coupled when the derivative of one state depends on other states. For example,

x˙1=a11x1+a12x2\dot{x}_1=a_{11}x_1+a_{12}x_2x˙1​=a11​x1​+a12​x2​

is coupled if a12≠0a_{12}\neq 0a12​=0, because the behavior of x1x_1x1​ depends not only on x1x_1x1​ but also on x2x_2x2​.

The matrix AAA contains all of these relationships. Its off-diagonal entries represent cross-effects between different state variables.

A matrix system x˙=Ax\dot{x}=Axx˙=Ax is linear because matrix multiplication forms linear combinations, and it is coupled when the derivatives of the components depend on multiple state variables.

2. The Simplest Case: Decoupled Dynamics

The easiest situation occurs when the matrix is diagonal. A diagonal matrix has nonzero entries only on its main diagonal:

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 system becomes

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

Written component by component, this is

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

Each equation involves only its own variable. Therefore, the equations are decoupled.

Animal-population example

Suppose each component of xxx represents the population of a different animal species. If the animals live in completely separate zones, the bunny population does not affect the wolf population, and the wolf population does not affect the antelope population.

In that case, each population can follow its own growth or decay law:

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

The parameter λi\lambda_iλi​ determines the behavior of the iiith population:

  • If λi>0\lambda_i>0λi​>0, the population grows exponentially.
  • If λi<0\lambda_i<0λi​<0, the population decays exponentially.
  • If λi=0\lambda_i=0λi​=0, the population remains constant.

Because the equations do not interact, each one can be solved independently.

3. Solving the Decoupled Equations

The standard scalar equation

x˙i=λixi\dot{x}_i=\lambda_i x_ix˙i​=λi​xi​

has solution

xi(t)=eλitxi(0),x_i(t)=e^{\lambda_i t}x_i(0),xi​(t)=eλi​txi​(0),

where xi(0)x_i(0)xi​(0) is the initial value.

Consequently, the entire vector solution is

x(t)=[eλ1tx1(0)eλ2tx2(0)⋮eλntxn(0)].x(t)= \begin{bmatrix} e^{\lambda_1t}x_1(0)\\ e^{\lambda_2t}x_2(0)\\ \vdots\\ e^{\lambda_nt}x_n(0) \end{bmatrix}.x(t)=​eλ1​tx1​(0)eλ2​tx2​(0)⋮eλn​txn​(0)​​.

This can also be written in matrix 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 matrix containing the exponentials is denoted by

eDt.e^{Dt}.eDt.

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

Thus,

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​​.

The general solution of the diagonal system is therefore

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

A matrix exponential can be defined using the Taylor series for the ordinary exponential function:

eX=I+X+X22!+X33!+⋯ ,e^X=I+X+\frac{X^2}{2!}+\frac{X^3}{3!}+\cdots,eX=I+X+2!X2​+3!X3​+⋯,

where a matrix is substituted for the scalar variable. For a diagonal matrix, this series produces the diagonal matrix of ordinary exponentials shown above.

Think About It

If one population has λ=0.2\lambda=0.2λ=0.2 and another has λ=−0.2\lambda=-0.2λ=−0.2, what difference would the signs of these two parameters make over time? The first population grows exponentially, while the second decays exponentially.

4. Why General Systems Are More Difficult

In a real ecosystem, animals usually do interact. Wolves may reduce the bunny population, while the bunny population may provide food for the wolves. Such interactions create cross terms.

A two-variable system might look like

x˙1=a11x1+a12x2,x˙2=a21x1+a22x2.\begin{aligned} \dot{x}_1&=a_{11}x_1+a_{12}x_2,\\ \dot{x}_2&=a_{21}x_1+a_{22}x_2. \end{aligned}x˙1​x˙2​​=a11​x1​+a12​x2​,=a21​x1​+a22​x2​.​

The terms a12x2a_{12}x_2a12​x2​ and a21x1a_{21}x_1a21​x1​ couple the equations. The derivative of x1x_1x1​ depends on x2x_2x2​, and the derivative of x2x_2x2​ depends on x1x_1x1​.

In this situation, the matrix

A=[a11a12a21a22]A= \begin{bmatrix} a_{11}&a_{12}\\ a_{21}&a_{22} \end{bmatrix}A=[a11​a21​​a12​a22​​]

is not diagonal. The component equations cannot simply be solved independently as separate scalar equations.

The important observation is that the system is difficult only in the current coordinate system. A change of coordinates may reveal directions in which the system actually behaves independently.

5. The Goal: Find Coordinates That Decouple the System

The desired coordinate transformation is written as

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

where:

  • xxx is the original state vector,
  • zzz is the state vector in a new coordinate system,
  • TTT is the transformation matrix.

The matrix TTT must be invertible, meaning that it has a nonzero determinant:

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

Invertibility is essential because it allows movement in both directions between coordinate systems:

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

and

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

The goal is to choose TTT so that the equations for zzz become diagonal:

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

where DDD is a diagonal matrix.

This would transform the original coupled system into a decoupled system, which is already known how to solve:

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

The original variables can then be recovered using

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

Thus, the overall plan is:

  1. Find a coordinate transformation TTT.
  2. Transform the original system into the new coordinates zzz.
  3. Solve the resulting diagonal system.
  4. Transform the solution back to the original coordinates.

6. Deriving the Transformation Equation

Start with the coordinate transformation

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

Assuming TTT is constant in time, differentiate both sides with respect to time:

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

The original system says that

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

Substituting x=Tzx=Tzx=Tz gives

x˙=A(Tz)=ATz.\dot{x}=A(Tz)=ATz.x˙=A(Tz)=ATz.

Since both expressions equal x˙\dot{x}x˙,

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

The objective is 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.

Because T−1T=IT^{-1}T=IT−1T=I, this becomes

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

Therefore, the transformed system has system matrix

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

For the new system to be diagonal and decoupled, the transformation matrix must satisfy

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

where DDD is diagonal.

This is the matrix form of diagonalization. It says that the matrix AAA becomes the simpler matrix DDD when expressed in the new coordinates determined by TTT.

7. Deriving the Eigenvalue-Eigenvector Equation

Starting with

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

multiply both sides on the left by TTT:

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

Since TT−1=ITT^{-1}=ITT−1=I, the left-hand side simplifies to

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

Therefore,

AT=TD\boxed{AT=TD}AT=TD​

is the key equation.

This is the matrix eigenvalue-eigenvector equation.

At first glance, AT=TDAT=TDAT=TD may appear to be an abstract algebraic identity. Its meaning becomes clear by examining the columns of TTT.

Suppose the columns of TTT are

T=[∣∣∣t1t2⋯tn∣∣∣],T= \begin{bmatrix} |&|&&|\\ t_1&t_2&\cdots&t_n\\ |&|&&| \end{bmatrix},T=​∣t1​∣​∣t2​∣​⋯​∣tn​∣​​,

where each tit_iti​ is a column vector. Also suppose that

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 product TDTDTD is

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​∣​​.

The diagonal structure of DDD is crucial. The first column of TTT is multiplied only by λ1\lambda_1λ1​, the second column only by λ2\lambda_2λ2​, and so on. No mixing occurs between different columns.

On the other hand,

AT=[∣∣∣At1At2⋯Atn∣∣∣].AT= \begin{bmatrix} |&|&&|\\ At_1&At_2&\cdots&At_n\\ |&|&&| \end{bmatrix}.AT=​∣At1​∣​∣At2​∣​⋯​∣Atn​∣​​.

Equating the corresponding columns in AT=TDAT=TDAT=TD gives

At1=λ1t1,At_1=\lambda_1t_1,At1​=λ1​t1​, At2=λ2t2,At_2=\lambda_2t_2,At2​=λ2​t2​,

and, in general,

Atk=λktk.At_k=\lambda_kt_k.Atk​=λk​tk​.

This is the usual eigenvalue-eigenvector relationship.

For each column tkt_ktk​ of TTT, the matrix AAA acts by multiplying that vector by a scalar λk\lambda_kλk​:

Atk=λktk.At_k=\lambda_kt_k.Atk​=λk​tk​.

The vector tkt_ktk​ is an eigenvector of AAA, and the scalar λk\lambda_kλk​ is its corresponding eigenvalue.

8. What Eigenvectors Mean Geometrically

Most vectors change both direction and length when a matrix acts on them. An eigenvector is special because multiplication by AAA does not change its direction. It only scales the vector:

Atk=λktk.At_k=\lambda_kt_k.Atk​=λk​tk​.

The eigenvalue determines the scaling:

  • If λk>1\lambda_k>1λk​>1, the vector is stretched.
  • If 0<λk<10<\lambda_k<10<λk​<1, the vector is shortened without reversing direction.
  • If λk<0\lambda_k<0λk​<0, the vector is scaled and reversed.
  • If λk=0\lambda_k=0λk​=0, the vector is sent to the zero vector.

In the differential-equation setting, each eigenvector identifies a special direction in state space. Along that direction, the system behaves like a single scalar exponential equation.

If the state begins in an eigenvector direction,

x(0)=ctk,x(0)=ct_k,x(0)=ctk​,

then its time evolution remains in that direction and has the form

x(t)=ceλkttk.x(t)=ce^{\lambda_kt}t_k.x(t)=ceλk​ttk​.

Thus, the eigenvalue controls the exponential growth or decay along the corresponding eigenvector direction.

The collection of eigenvectors forms the columns of TTT. These vectors define the new coordinate axes. In those axes, the system becomes diagonal and the dynamics become decoupled.

9. Why Eigenvalues and Eigenvectors Solve the Differential Equation

The importance of eigenvalues and eigenvectors is not merely that they provide special algebraic numbers and vectors. Their real importance is that they produce the coordinate transformation needed to simplify the differential equation.

If the eigenvectors are placed into the matrix

T=[∣∣∣t1t2⋯tn∣∣∣],T= \begin{bmatrix} |&|&&|\\ t_1&t_2&\cdots&t_n\\ |&|&&| \end{bmatrix},T=​∣t1​∣​∣t2​∣​⋯​∣tn​∣​​,

and the corresponding eigenvalues are placed on the diagonal of DDD, then

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

Because TTT is invertible,

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

Under the coordinate change

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

the original system

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

becomes

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

The transformed system is

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

Each transformed variable can be solved independently:

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

In vector form,

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

Since z=T−1xz=T^{-1}xz=T−1x, the initial transformed state is

z(0)=T−1x(0).z(0)=T^{-1}x(0).z(0)=T−1x(0).

The original solution is then reconstructed through

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

Combining these relationships gives

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

This expression shows the entire method in one line: transform the initial condition into eigenvector coordinates, evolve each independent coordinate exponentially, and transform the result back.

Think About It

Why is it useful to solve the system in zzz-coordinates rather than directly in xxx-coordinates? The zzz-coordinates are aligned with the eigenvectors, so each coordinate evolves independently according to a scalar exponential equation.

10. The Complete Conceptual Picture

The method can be understood as a change in viewpoint.

In the original coordinates, the matrix AAA may appear complicated because the chosen coordinate axes do not align with the system’s natural directions. The variables interact, so the equations are coupled.

The eigenvectors identify directions that the matrix maps back into themselves. These directions are the system’s natural modes. When they are used as the coordinate axes, the matrix becomes diagonal.

The eigenvalue-eigenvector equation

Atk=λktkAt_k=\lambda_kt_kAtk​=λk​tk​

says that each natural direction tkt_ktk​ evolves independently with rate λk\lambda_kλk​.

The matrix equation

AT=TDAT=TDAT=TD

collects all of these individual relationships into one statement.

The diagonalization equation

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

expresses the same idea as a coordinate transformation.

Finally, the solution process is summarized by

x˙=Ax⟶z˙=Dz⟶z(t)=eDtz(0)⟶x(t)=Tz(t).\dot{x}=Ax \quad\longrightarrow\quad \dot{z}=Dz \quad\longrightarrow\quad z(t)=e^{Dt}z(0) \quad\longrightarrow\quad x(t)=Tz(t).x˙=Ax⟶z˙=Dz⟶z(t)=eDtz(0)⟶x(t)=Tz(t).

Comprehensive Review

  • A system of the form x˙=Ax\dot{x}=Axx˙=Ax is a first-order linear system of ordinary differential equations.
  • The vector xxx contains the system’s state variables.
  • The matrix AAA describes how the state variables affect the derivatives.
  • A diagonal matrix produces decoupled equations because each derivative depends only on its corresponding variable.
  • A diagonal system has scalar exponential solutions such as xi(t)=eλitxi(0).x_i(t)=e^{\lambda_it}x_i(0).xi​(t)=eλi​txi​(0).
  • A general matrix system may be coupled because its off-diagonal entries create cross-effects.
  • The transformation x=Tzx=Tzx=Tz changes from the original coordinates to new coordinates.
  • The matrix TTT must be invertible so that both xxx and zzz can be recovered from one another.
  • In the new coordinates, the system matrix is T−1AT.T^{-1}AT.T−1AT.
  • The desired transformation makes this matrix diagonal: T−1AT=D.T^{-1}AT=D.T−1AT=D.
  • Multiplying by TTT gives AT=TD.AT=TD.AT=TD.
  • If the columns of TTT are t1,t2,…,tnt_1,t_2,\ldots,t_nt1​,t2​,…,tn​, and the diagonal entries of DDD are λ1,λ2,…,λn\lambda_1,\lambda_2,\ldots,\lambda_nλ1​,λ2​,…,λn​, then Atk=λktk.At_k=\lambda_kt_k.Atk​=λk​tk​.
  • Therefore, the diagonal entries of DDD are the eigenvalues of AAA, and the columns of TTT are the corresponding eigenvectors.
  • Eigenvectors provide the coordinate directions in which the dynamics decouple.
  • Eigenvalues determine the exponential growth or decay rates along those directions.
  • After solving in the transformed coordinates, the original variables are recovered using x(t)=TeDtT−1x(0).x(t)=Te^{Dt}T^{-1}x(0).x(t)=TeDtT−1x(0).

Eigenvalues and eigenvectors matter because they turn a coupled matrix differential equation into independent scalar exponential equations by revealing the system’s natural coordinate directions.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent