35. Eigenapplications, 1: Differential equations

35. Eigenapplications, 1: Differential equations

Sketch of the idea

This is the first of three applications of eigenvectors and eigenvalues. Let x(t),y(t) be functions of t , and consider the simultaneous linear ordinary differential equations ˙x=ax+by  ˙y=cx+dy, where ˙x denotes dx/dt and a,b,c,d are constants.

These equations are coupled: each equation involves x and y . Our goal is to decouple them, turning them into a pair of equations, each involving only one unknown function. We first rewrite the equations as ˙v=Av using: v(t)=(x(t)y(t)),˙v=(˙x˙y),A=(abcd). Let λ1,λ2 be the eigenvalues of A and assume they are distinct; let u1 and u2 be eigenvectors for these eigenvalues. Write v as α(t)u1+β(t)u2 . In other words, α and β are the components of v when in the u1 - and u2 -directions (compare with v=x(10)+y(01) ).

Substituting v=αu1+βu2 into the left-hand side of ˙v=Av gives: ˙v=˙αu1+˙βu2 (because u1,u2 are constant).

Substituting it into the right-hand side gives Av=αAu1+βAu2=λ1αu1+λ2βu2 (because uk is a λk -eigenvector for k=1,2 ).

Comparing the components in the u1 -direction, we get ˙α=λ1α. The u2 -components tells us that ˙β=λ2β. These equations now involve only α and β separately. We have decoupled the equations.

An example in detail

Consider the equations: ˙x=y,˙y=-x. This is equivalent to the simple harmonic oscillator equation ¨x=-x . To see this, differentiate ˙x=y to get ¨x=˙y=-x .

In general, if you have a second-order equation like this, you can define y=˙x (which gives you one equation) and then use the second-order equation to express ˙y in terms of x and y : this is a good trick for converting second-order equations into pairs of first order equations.

Remark:

The equation ¨x=-x describes physical situations like a particle on a spring:

  • one end of the spring is fixed at the origin;

  • the particle sits at a distance x from the origin;

  • Newton's law tells us that if m is the mass of the particle then m¨x equals the force experience by the particle, which is -kx by Hooke's law (for some constant k ), so the equation of motion is m¨x=-kx ;

  • if we work in units where m=k=1 then this gives us back our equation ¨x=-x .

Let's solve this equation. We have A=(01-10) . This has characteristic polynomial det ( - t 1 - 1 - t ) = t 2 + 1 , which has roots λ 1 = i and λ 2 = - i .

The eigenvectors are:

  • for λ 1 = i , ( 1 i ) ,

  • for λ 2 = - i , ( 1 - i ) .

(We're just picking particular eigenvectors, not writing down the general eigenvector).

We write ( x y ) in the form α u 1 + β u 2 = α ( 1 i ) + β ( 1 - i ) = ( α + β i ( α - β ) ) . Thus α = ( x - i y ) / 2 and β = ( x + i y ) / 2 .

Our equations are now: α ˙ = λ 1 α = i α , β ˙ = λ 2 β = - i β . Dividing the first equation by α gives α ˙ α = d d t ( log α ) = i , so log α = i t + const , so α ( t ) = C 1 e i t . Similarly, β ( t ) = C 2 e - i t .

Therefore ( x y ) = C 1 e i t ( 1 i ) + C 2 e - i t ( 1 - i ) , so x = C 1 e i t + C 2 e - i t y = i ( C 1 e i t - C 2 e - i t ) . This is the general solution to x ˙ = y , y ˙ = - x . You may be worried about the fact that there are i s here: this is supposed to describe the motion of a particle on a spring, so x and y should be real numbers. The i s will all cancel out if we pick appropriate initial conditions.

Suppose x ( 0 ) = 1 and y ( 0 ) = 0 (particle at rest at distance 1 from the origin). Substituting t = 0 into our general solution, we get x ( 0 ) = 1 = C 1 + C 2 , y ( 0 ) = 0 = i ( C 1 - C 2 ) . This implies C 1 = C 2 = 1 / 2 . Therefore x ( t ) = 1 2 ( e i t + e - i t ) , y ( t ) = i 2 ( e i t - e - i t ) . This means that x ( t ) = cos ( t ) , y ( t ) = - sin ( t ) using the formulae for trigonometric functions in terms of complex exponentials. The minus sign in y is because our particle starts moving towards the origin as time increases.

The moral of this story is that you can use eigenvectors to decouple systems of linear differential equations.