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.Here:
- x is a vector of state variables,
- x˙ is the vector of their time derivatives,
- A is a matrix describing how the state variables affect one another.
For an n-dimensional system, the state vector is
x=x1x2⋮xn,and the system can be written component by component as
x˙1x˙2x˙n=a11x1+a12x2+⋯+a1nxn,=a21x1+a22x2+⋯+a2nxn, ⋮=an1x1+an2x2+⋯+annxn.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 or x˙2. No second derivatives, such as x¨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+a12x2is coupled if a12=0, because the behavior of x1 depends not only on x1 but also on x2.
The matrix A contains all of these relationships. Its off-diagonal entries represent cross-effects between different state variables.
A matrix system x˙=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.The system becomes
x˙=Dx.Written component by component, this is
x˙1x˙2x˙n=λ1x1,=λ2x2, ⋮=λnxn.Each equation involves only its own variable. Therefore, the equations are decoupled.
Animal-population example
Suppose each component of x 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.The parameter λi determines the behavior of the ith population:
- If λi>0, the population grows exponentially.
- If λi<0, the population decays exponentially.
- If λ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=λixihas solution
xi(t)=eλitxi(0),where xi(0) is the initial value.
Consequently, the entire vector solution is
x(t)=eλ1tx1(0)eλ2tx2(0)⋮eλntxn(0).This can also be written in matrix form:
x(t)=eλ1t0⋮00eλ2t⋮0⋯⋯⋱⋯00⋮eλntx(0).The matrix containing the exponentials is denoted by
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.The general solution of the diagonal system is therefore
x(t)=eDtx(0).A matrix exponential can be defined using the Taylor series for the ordinary exponential function:
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 and another has λ=−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˙1x˙2=a11x1+a12x2,=a21x1+a22x2.The terms a12x2 and a21x1 couple the equations. The derivative of x1 depends on x2, and the derivative of x2 depends on x1.
In this situation, the matrix
A=[a11a21a12a22]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,where:
- x is the original state vector,
- z is the state vector in a new coordinate system,
- T is the transformation matrix.
The matrix T must be invertible, meaning that it has a nonzero determinant:
det(T)=0.Invertibility is essential because it allows movement in both directions between coordinate systems:
z=T−1xand
x=Tz.The goal is to choose T so that the equations for z become diagonal:
z˙=Dz,where D 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).The original variables can then be recovered using
x(t)=Tz(t).Thus, the overall plan is:
- Find a coordinate transformation T.
- Transform the original system into the new coordinates z.
- Solve the resulting diagonal system.
- Transform the solution back to the original coordinates.
6. Deriving the Transformation Equation
Start with the coordinate transformation
x=Tz.Assuming T is constant in time, differentiate both sides with respect to time:
x˙=Tz˙.The original system says that
x˙=Ax.Substituting x=Tz gives
x˙=A(Tz)=ATz.Since both expressions equal x˙,
Tz˙=ATz.The objective is to isolate z˙. Multiply both sides on the left by T−1:
T−1Tz˙=T−1ATz.Because T−1T=I, this becomes
z˙=T−1ATz.Therefore, the transformed system has system matrix
T−1AT.For the new system to be diagonal and decoupled, the transformation matrix must satisfy
T−1AT=D,where D is diagonal.
This is the matrix form of diagonalization. It says that the matrix A becomes the simpler matrix D when expressed in the new coordinates determined by T.
7. Deriving the Eigenvalue-Eigenvector Equation
Starting with
T−1AT=D,multiply both sides on the left by T:
T(T−1AT)=TD.Since TT−1=I, the left-hand side simplifies to
AT=TD.Therefore,
AT=TDis the key equation.
This is the matrix eigenvalue-eigenvector equation.
At first glance, AT=TD may appear to be an abstract algebraic identity. Its meaning becomes clear by examining the columns of T.
Suppose the columns of T are
T=∣t1∣∣t2∣⋯∣tn∣,where each ti is a column vector. Also suppose that
D=λ10⋮00λ2⋮0⋯⋯⋱⋯00⋮λn.The product TD is
TD=∣λ1t1∣∣λ2t2∣⋯∣λntn∣.The diagonal structure of D is crucial. The first column of T is multiplied only by λ1, the second column only by λ2, and so on. No mixing occurs between different columns.
On the other hand,
AT=∣At1∣∣At2∣⋯∣Atn∣.Equating the corresponding columns in AT=TD gives
At1=λ1t1, At2=λ2t2,and, in general,
Atk=λktk.This is the usual eigenvalue-eigenvector relationship.
For each column tk of T, the matrix A acts by multiplying that vector by a scalar λk:
Atk=λktk.
The vector tk is an eigenvector of A, and the scalar λ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 A does not change its direction. It only scales the vector:
Atk=λktk.The eigenvalue determines the scaling:
- If λk>1, the vector is stretched.
- If 0<λk<1, the vector is shortened without reversing direction.
- If λk<0, the vector is scaled and reversed.
- If λ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,then its time evolution remains in that direction and has the form
x(t)=ceλkttk.Thus, the eigenvalue controls the exponential growth or decay along the corresponding eigenvector direction.
The collection of eigenvectors forms the columns of T. 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=∣t1∣∣t2∣⋯∣tn∣,and the corresponding eigenvalues are placed on the diagonal of D, then
AT=TD.Because T is invertible,
T−1AT=D.Under the coordinate change
x=Tz,the original system
x˙=Axbecomes
z˙=Dz.The transformed system is
z˙1z˙2z˙n=λ1z1,=λ2z2, ⋮=λnzn.Each transformed variable can be solved independently:
zk(t)=eλktzk(0).In vector form,
z(t)=eDtz(0).Since z=T−1x, the initial transformed state is
z(0)=T−1x(0).The original solution is then reconstructed through
x(t)=Tz(t).Combining these relationships gives
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 z-coordinates rather than directly in x-coordinates? The z-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 A 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=λktksays that each natural direction tk evolves independently with rate λk.
The matrix equation
AT=TDcollects all of these individual relationships into one statement.
The diagonalization equation
T−1AT=Dexpresses 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).Comprehensive Review
- A system of the form x˙=Ax is a first-order linear system of ordinary differential equations.
- The vector x contains the system’s state variables.
- The matrix A 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).
- A general matrix system may be coupled because its off-diagonal entries create cross-effects.
- The transformation x=Tz changes from the original coordinates to new coordinates.
- The matrix T must be invertible so that both x and z can be recovered from one another.
- In the new coordinates, the system matrix is T−1AT.
- The desired transformation makes this matrix diagonal: T−1AT=D.
- Multiplying by T gives AT=TD.
- If the columns of T are t1,t2,…,tn, and the diagonal entries of D are λ1,λ2,…,λn, then Atk=λktk.
- Therefore, the diagonal entries of D are the eigenvalues of A, and the columns of T 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).
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.