1. Home
  2. Explore
  3. Mathematics
  4. Diagonalization in Differential Equations

Study methods

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

Diagonalization in Differential Equations

Diagonalization and Change of Variables for Linear Systems

A linear change of variables can turn a coupled differential-equation system into independent equations that are easier to solve. When the coefficient matrix is diagonalizable, its eigenvectors provide the new coordinate directions, and its eigenvalues describe the system’s behavior along those directions.


1. The Example System and Its Eigenvalues

Consider the system

Y′=AY,A=(2341),Y=(xy).\mathbf{Y}'=A\mathbf{Y}, \qquad A= \begin{pmatrix} 2&3\\ 4&1 \end{pmatrix}, \qquad \mathbf{Y}= \begin{pmatrix} x\\ y \end{pmatrix}.Y′=AY,A=(24​31​),Y=(xy​).

In scalar form,

x′=2x+3y,y′=4x+y.x'=2x+3y, \qquad y'=4x+y.x′=2x+3y,y′=4x+y.

The characteristic polynomial of a 2×22\times 22×2 matrix is

λ2−(tr⁡A)λ+det⁡A.\lambda^2-(\operatorname{tr}A)\lambda+\det A.λ2−(trA)λ+detA.

For this matrix, the trace is 333 and the determinant is 2−12=−102-12=-102−12=−10, so

λ2−3λ−10=(λ+2)(λ−5).\lambda^2-3\lambda-10 =(\lambda+2)(\lambda-5).λ2−3λ−10=(λ+2)(λ−5).

Thus the eigenvalues are λ1=−2\lambda_1=-2λ1​=−2 and λ2=5\lambda_2=5λ2​=5. Corresponding eigenvectors are

λ1=−2:(−34),λ2=5:(11).\lambda_1=-2: \begin{pmatrix} -3\\ 4 \end{pmatrix}, \qquad \lambda_2=5: \begin{pmatrix} 1\\ 1 \end{pmatrix}.λ1​=−2:(−34​),λ2​=5:(11​).

Because the eigenvalues are distinct, their eigenvectors are linearly independent and can be used as a basis.


2. Diagonalization

Place the eigenvectors in the columns of a matrix, in the same order as their eigenvalues:

P=(−3141),D=(−2005).P= \begin{pmatrix} -3&1\\ 4&1 \end{pmatrix}, \qquad D= \begin{pmatrix} -2&0\\ 0&5 \end{pmatrix}.P=(−34​11​),D=(−20​05​).

The diagonalization relation is

P−1AP=D,P^{-1}AP=D,P−1AP=D,

or, equivalently,

A=PDP−1.A=PDP^{-1}.A=PDP−1.

The determinant of PPP is −7-7−7, so

P−1=1−7(1−1−4−3)=(−17174737).P^{-1} = \frac{1}{-7} \begin{pmatrix} 1&-1\\ -4&-3 \end{pmatrix} = \begin{pmatrix} -\frac17&\frac17\\ \frac47&\frac37 \end{pmatrix}.P−1=−71​(1−4​−1−3​)=(−71​74​​71​73​​).

The diagonal matrix DDD places each eigenvalue alongside its corresponding eigenvector’s coordinate. This representation makes the system’s independent modes explicit.


3. Changing Variables to Decouple the System

Introduce new coordinates U=(u,v)T\mathbf{U}=(u,v)^{\mathsf T}U=(u,v)T through

Y=PU.\mathbf{Y}=P\mathbf{U}.Y=PU.

This means that the original state vector is expressed as a combination of the eigenvectors, with coefficients uuu and vvv. Solving for the new coordinates gives

U=P−1Y.\mathbf{U}=P^{-1}\mathbf{Y}.U=P−1Y.

In scalar form, the two transformations are

x=−3u+v,y=4u+v,x=-3u+v, \qquad y=4u+v,x=−3u+v,y=4u+v,

and

u=−x+y7,v=4x+3y7.u=\frac{-x+y}{7}, \qquad v=\frac{4x+3y}{7}.u=7−x+y​,v=74x+3y​.

The matrices PPP and P−1P^{-1}P−1 are constant, while xxx, yyy, uuu, and vvv vary with time. Thus, if Y\mathbf{Y}Y depends on time, so does U\mathbf{U}U.

Differentiate Y=PU\mathbf{Y}=P\mathbf{U}Y=PU with respect to time:

Y′=PU′.\mathbf{Y}'=P\mathbf{U}'.Y′=PU′.

Since Y′=AY\mathbf{Y}'=A\mathbf{Y}Y′=AY and Y=PU\mathbf{Y}=P\mathbf{U}Y=PU,

PU′=APU.P\mathbf{U}'=AP\mathbf{U}.PU′=APU.

Multiplying on the left by P−1P^{-1}P−1 gives

U′=P−1APU=DU.\mathbf{U}'=P^{-1}AP\mathbf{U}=D\mathbf{U}.U′=P−1APU=DU.

Therefore, the transformed system is

(u′v′)=(−2005)(uv),\begin{pmatrix} u'\\ v' \end{pmatrix} = \begin{pmatrix} -2&0\\ 0&5 \end{pmatrix} \begin{pmatrix} u\\ v \end{pmatrix},(u′v′​)=(−20​05​)(uv​),

or, as two independent scalar equations,

u′=−2u,v′=5v.u'=-2u, \qquad v'=5v.u′=−2u,v′=5v.

The original equations are coupled because each derivative depends on both original variables. In the new coordinates, each derivative depends only on its own variable. This is the purpose of the change of basis.


4. Solving the Transformed System

Each transformed equation is a simple scalar differential equation. Given initial values u(0)=u0u(0)=u_0u(0)=u0​ and v(0)=v0v(0)=v_0v(0)=v0​, the solutions are

u(t)=u0e−2t,v(t)=v0e5t.u(t)=u_0e^{-2t}, \qquad v(t)=v_0e^{5t}.u(t)=u0​e−2t,v(t)=v0​e5t.

For an original initial condition

Y(0)=(x0y0),\mathbf{Y}(0)= \begin{pmatrix} x_0\\ y_0 \end{pmatrix},Y(0)=(x0​y0​​),

the initial values in the new coordinates are

(u0v0)=P−1(x0y0)=(−x0+y074x0+3y07).\begin{pmatrix} u_0\\ v_0 \end{pmatrix} = P^{-1} \begin{pmatrix} x_0\\ y_0 \end{pmatrix} = \begin{pmatrix} \frac{-x_0+y_0}{7}\\ \frac{4x_0+3y_0}{7} \end{pmatrix}.(u0​v0​​)=P−1(x0​y0​​)=(7−x0​+y0​​74x0​+3y0​​​).

To return to the original coordinates, use Y=PU\mathbf{Y}=P\mathbf{U}Y=PU. This gives

x(t)=−3u0e−2t+v0e5t,y(t)=4u0e−2t+v0e5t.x(t)=-3u_0e^{-2t}+v_0e^{5t}, \qquad y(t)=4u_0e^{-2t}+v_0e^{5t}.x(t)=−3u0​e−2t+v0​e5t,y(t)=4u0​e−2t+v0​e5t.

Equivalently, substituting the initial-coordinate formulas,

x(t)=3x0−3y07e−2t+4x0+3y07e5t,x(t)=\frac{3x_0-3y_0}{7}e^{-2t} +\frac{4x_0+3y_0}{7}e^{5t},x(t)=73x0​−3y0​​e−2t+74x0​+3y0​​e5t,
y(t)=−4x0+4y07e−2t+4x0+3y07e5t.y(t)=\frac{-4x_0+4y_0}{7}e^{-2t} +\frac{4x_0+3y_0}{7}e^{5t}.y(t)=7−4x0​+4y0​​e−2t+74x0​+3y0​​e5t.

The same process works for any initial condition: convert it to the eigenvector coordinates, solve the independent equations, and convert the result back.


5. Connection to the Matrix Exponential

The solution of a constant-coefficient system Y′=AY\mathbf{Y}'=A\mathbf{Y}Y′=AY with initial condition Y(0)=Y0\mathbf{Y}(0)=\mathbf{Y}_0Y(0)=Y0​ can be written as

Y(t)=etAY0.\mathbf{Y}(t)=e^{tA}\mathbf{Y}_0.Y(t)=etAY0​.

If A=PDP−1A=PDP^{-1}A=PDP−1, then the matrix exponential can be computed using the diagonal matrix:

etA=PetDP−1.e^{tA}=Pe^{tD}P^{-1}.etA=PetDP−1.

Because DDD is diagonal,

etD=(e−2t00e5t).e^{tD} = \begin{pmatrix} e^{-2t}&0\\ 0&e^{5t} \end{pmatrix}.etD=(e−2t0​0e5t​).

Thus,

Y(t)=PetDP−1Y0.\mathbf{Y}(t) = Pe^{tD}P^{-1}\mathbf{Y}_0.Y(t)=PetDP−1Y0​.

This agrees with the change-of-variables method: P−1Y0P^{-1}\mathbf{Y}_0P−1Y0​ gives the initial coordinates (u0,v0)(u_0,v_0)(u0​,v0​), the diagonal exponential evolves them independently, and PPP converts the result back to the original coordinates.

For this example, the matrix exponential is

etA=17(3e−2t+4e5t−3e−2t+3e5t−4e−2t+4e5t4e−2t+3e5t).e^{tA} = \frac17 \begin{pmatrix} 3e^{-2t}+4e^{5t}&-3e^{-2t}+3e^{5t}\\ -4e^{-2t}+4e^{5t}&4e^{-2t}+3e^{5t} \end{pmatrix}.etA=71​(3e−2t+4e5t−4e−2t+4e5t​−3e−2t+3e5t4e−2t+3e5t​).

The change of variables is therefore not a different solution method from the matrix exponential so much as another way to understand and carry out the same calculation.

Key idea: Diagonalization changes to coordinates in which the system’s independent exponential modes are visible and easy to solve.


6. Geometric Meaning: Eigenvector Directions and the Phase Plane

The system has a unique equilibrium at the origin. Equilibria satisfy AY=0A\mathbf{Y}=\mathbf{0}AY=0, and since det⁡A=−10≠0\det A=-10\ne 0detA=−10=0, the only solution is Y=0\mathbf{Y}=\mathbf{0}Y=0.

The eigenvectors identify straight-line solution directions in the phase plane:

  • Along the eigenvector (−34)\begin{pmatrix}-3\\4\end{pmatrix}(−34​), the eigenvalue is −2-2−2. Solutions in this direction decay like e−2te^{-2t}e−2t and approach the origin as ttt increases.

  • Along the eigenvector (11)\begin{pmatrix}1\\1\end{pmatrix}(11​), the eigenvalue is 555. Solutions in this direction grow like e5te^{5t}e5t and move away from the origin as ttt increases.

The origin is therefore a saddle point: it attracts solutions along the negative-eigenvalue direction and repels them along the positive-eigenvalue direction. These eigenvector lines are the coordinate axes for the new (u,v)(u,v)(u,v) system, even though they appear slanted in the original (x,y)(x,y)(x,y) plane.

In the new coordinates, the line v=0v=0v=0 is the stable direction, while u=0u=0u=0 is the unstable direction. The corresponding solution behavior follows directly from u(t)=u0e−2tu(t)=u_0e^{-2t}u(t)=u0​e−2t and v(t)=v0e5tv(t)=v_0e^{5t}v(t)=v0​e5t.

Nullclines

The nullclines are the locations where one component of the velocity is zero:

  • The x′x'x′-nullcline satisfies x′=0x'=0x′=0, so 2x+3y=02x+3y=02x+3y=0. Along it, motion has no horizontal component.

  • The y′y'y′-nullcline satisfies y′=0y'=0y′=0, so 4x+y=04x+y=04x+y=0. Along it, motion has no vertical component.

These lines help interpret the vector field in the original phase plane. The signs of x′x'x′ and y′y'y′ determine whether a trajectory moves right or left and up or down.


7. Skew Coordinates and the Grid

The new coordinate axes are the eigenvector directions, so a grid of constant uuu and vvv values appears slanted when drawn in the original (x,y)(x,y)(x,y) plane. This is a skew coordinate system: points are still represented by two coordinates, but the coordinate directions are not the usual horizontal and vertical axes.

For example:

  • The point with new coordinates (u,v)=(1,0)(u,v)=(1,0)(u,v)=(1,0) has original coordinates

    Y=P(10)=(−34).\mathbf{Y}=P \begin{pmatrix} 1\\ 0 \end{pmatrix} = \begin{pmatrix} -3\\ 4 \end{pmatrix}.Y=P(10​)=(−34​).
  • The point with new coordinates (u,v)=(0,1)(u,v)=(0,1)(u,v)=(0,1) has original coordinates

    Y=P(01)=(11).\mathbf{Y}=P \begin{pmatrix} 0\\ 1 \end{pmatrix} = \begin{pmatrix} 1\\ 1 \end{pmatrix}.Y=P(01​)=(11​).

Conversely, the original point (−3,4)(-3,4)(−3,4) has new coordinates (1,0)(1,0)(1,0), and the original point (1,1)(1,1)(1,1) has new coordinates (0,1)(0,1)(0,1). This illustrates why the eigenvectors are the new coordinate directions.


8. Interpreting the Change-of-Basis Matrix Carefully

The equation

Y=PU\mathbf{Y}=P\mathbf{U}Y=PU

converts a coordinate vector in the new basis into the corresponding vector written in the original coordinates. The columns of PPP show where the two new coordinate unit vectors point in the original plane:

P(10)=(−34),P(01)=(11).P \begin{pmatrix} 1\\ 0 \end{pmatrix} = \begin{pmatrix} -3\\ 4 \end{pmatrix}, \qquad P \begin{pmatrix} 0\\ 1 \end{pmatrix} = \begin{pmatrix} 1\\ 1 \end{pmatrix}.P(10​)=(−34​),P(01​)=(11​).

Thus, (1,0)(1,0)(1,0) in the new coordinate system represents the original-plane vector (−3,4)(-3,4)(−3,4), while (0,1)(0,1)(0,1) represents (1,1)(1,1)(1,1). The notation can be confusing because the same geometric point can have different coordinate pairs in different bases. The transformation changes the coordinate description; it does not change the point itself.

The determinant of PPP is −7-7−7. Its absolute value, 777, is the area-scaling factor, and its negative sign means the transformation reverses orientation. For example, the ordered coordinate directions are flipped in orientation when mapped through PPP. The transformation also changes lengths and angles, so it is not merely a rotation.


9. Why the Method Is Useful

A change of variables is useful when it turns a complicated expression or system into a simpler one. This is the same general strategy as substitution in calculus: express the problem in more convenient variables, solve it there, and translate back.

For a diagonalizable linear differential system, the eigenvector coordinates are especially useful because they separate the modes of motion. In this example, one mode decays and the other grows, and the diagonal system displays both behaviors directly. The same diagonalization also provides an efficient way to compute the matrix exponential and solve arbitrary initial-value problems.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent