2 Systems of first order differential equations

Systems of first order ordinary differential equations arise in many areas of mathematics and engineering, for example in control theory and in the analysis of electrical circuits. In each case the basic unknowns are each a function of the time variable t . A number of techniques have been developed to solve such systems of equations; for example the Laplace transform. Here we shall use eigenvalues and eigenvectors to obtain the solution. Our first step will be to recast the system of ordinary differential equations in the matrix form = A X where A is an n × n coefficient matrix of constants, X is the n × 1 column vector of unknown functions and is the n × 1 column vector containing the derivatives of the unknowns.. The main step will be to use the modal matrix of A to diagonalise the system of differential equations. This process will transform = A X into the form = D Y where D is a diagonal matrix . We shall find that this new diagonal system of differential equations can be easily solved. This special solution will allow us to obtain the solution of the original system.

Task!

Obtain the solutions of the pair of first order differential equations

= 2 x = 5 y ( 1 )

given the initial conditions

x ( 0 ) = 3  i.e. x = 3  at t = 0 y ( 0 ) = 2  i.e. y = 2  at t = 0

(The notation is that d x d t , d y d t  )

[Hint: Recall, from your study of differential equations, that the general solution of the differential equation d y d t = K y is y = y 0 e K t .]

Using the hint: x = x 0 e 2 t y = y 0 e 5 t where x 0 = x ( 0 ) and y 0 = y ( 0 ) .

From the given initial condition x 0 = 3 y 0 = 2 so finally x = 3 e 2 t y = 2 e 5 t . In the above Task although we had two differential equations to solve they were really quite separate. We needed no knowledge of matrix theory to solve them. However, we should note that the two differential equations can be written in matrix form.

Thus if X = x y = A = 2 0 0 5

the two equations (1) can be written as

= 2 0 0 5 x y

i.e. = A X .

Task!

Write in matrix form the pair of coupled differential equations

= 4 x + 2 y = x + y ( 2 )

= 4 2 1 1 x y

= A X

The essential difference between the two pairs of differential equations just considered is that the pair (1) were really separate equations whereas pair (2) were coupled:

Clearly the second system here is more difficult to deal with than the first and this is where we can use our knowledge of diagonalization.

Consider a system of differential equations written in matrix form: = A X where

X = x ( t ) y ( t )  and = ( t ) ( t )

We now introduce a new column vector of unknowns Y = r ( t ) s ( t ) through the relation

X = P Y

where P is the modal matrix of A . Then, since P is a matrix of constants:

= P  so = A X  becomes P = A ( P Y )

Then, multiplying by P 1  on the left, = ( P 1 A P ) Y

But, because of the properties of the modal matrix, we know that P 1 A P is a diagonal matrix . Thus if λ 1 , λ 2 are distinct eigenvalues of A then:

P 1 A P = λ 1 0 0 λ 2

Hence = ( P 1 A P ) Y becomes

= λ 1 0 0 λ 2 r s .

That is, when written out we have

= λ 1 r = λ 2 s .

These equations are decoupled . The first equation only involves the unknown function r ( t ) and has solution r ( t ) = C e λ 1 t . The second equation only involves the unknown function s ( t ) and has solution s ( t ) = K e λ 2 t . [ C , K are arbitrary constants.]

Once r , s are known the original unknowns x , y can be found from the relation X = P Y .

Note that the theory outlined above is more widely applicable as specified in the next Key Point:

Key Point 3

For any system of differential equations of the form

= A X
where A is an n × n matrix with distinct eigenvalues λ 1 , λ 2 , , λ n , and t is the independent variable the solution is
X = P Y
where P is the modal matrix of A and
Y = [ C 1 e λ 1 t , C 2 e λ 2 t , , C n e λ n t ] T
Example 10

Find the solution of the coupled differential equations

= 4 x + 2 y

= x + y  with initial conditions x ( 0 ) = 1 y ( 0 ) = 0

Here d x d t and d y d t .

Solution

Here A = 4 2 1 1 . It is easily checked that A has distinct eigenvalues λ 1 = 3 λ 2 = 2 and corresponding eigenvectors X 1 = 2 1 , X 2 = 1 1 .

Therefore, taking P = 2 1 1 1  then P 1 A P = 3 0 0 2

and using Key Point 3, r ( t ) = C e 3 t s ( t ) = K e 2 t .

 So x y X = P Y = 2 1 1 1 r s = 2 1 1 1 C e 3 t K e 2 t = 2 C e 3 t + K e 2 t C e 3 t K e 2 t .

Therefore x = 2 C e 3 t + K e 2 t and y = C e 3 t K e 2 t .

We can now impose the initial conditions x ( 0 ) = 1 and y ( 0 ) = 0 to give

1 = 2 C + K 0 = C K .

Thus C = K = 1 and the solution to the original system of differential equations is

x ( t ) = 2 e 3 t e 2 t y ( t ) = e 3 t + e 2 t

The approach we have demonstrated in Example 10 can be extended to

  1. Systems of first order differential equations with n unknowns (Key Point 3)
  2. Systems of second order differential equations (described in the next subsection).

The only restriction, as we have said, is that the matrix A in the system = A X has distinct eigenvalues.