8.7 Systems of first-order linear differential equations
Two equations in two variables
Consider the system of linear differential equations (with constant coefficients)| x'(t) | = ax(t) + by(t) |
| y'(t) | = cx(t) + dy(t). |
y(t) = x'(t)/b − ax(t)/b.
Now differentiate this equation, to give
y'(t) = x"(t)/b − ax'(t)/b.
Why is this step helpful? Because we can now substitute for y(t) and y'(t) in the second of the two equations in our system to yield
x"(t)/b − ax'(t)/b = cx(t) + d[x'(t)/b − ax(t)/b],
which we can write as
x"(t) − (a + d)x'(t) + (ad − bc)x(t) = 0,
an equation we know how to solve!
Having solved this linear second-order differential equation in x(t), we can go back to the expression for y(t) in terms of x'(t) and x(t) to obtain a solution for y(t). (We could alternatively have started by isolating x(t) in the second equation and creating a second-order equation in y(t).)
- Example 8.7.1
-
Consider the system of equations
Isolating y(t) in the first equation we have y(t) = x'(t) − 2x(t), so that y'(t) = x"(t) − 2x'(t). Substituting these expressions into the second equation we get
x'(t) = 2x(t) + y(t) y'(t) = −4x(t) − 3y(t). x"(t) − 2x'(t) = −4x(t) − 3x'(t) + 6x(t),orx"(t) + x'(t) − 2x(t) = 0.We have seen that the general solution of this equation isx(t) = Aet + Be−2t.Using the expression y(t) = x'(t) − 2x(t) we gety(t) = Aet − 2Be−2t − 2Aet − 2Be−2t,ory(t) = −Aet − 4Be−2t.
General linear systems
We may write the system| x'(t) | = ax(t) + by(t) |
| y'(t) | = cx(t) + dy(t) |
|
= |
|
|
. |
x'(t) = Ax(t),
where A is an n × n matrix.
Now, if n = 1, in which case A is simply a number, we know that for the initial condition x(0) = C the equation has a unique solution
x(t) = CeAt.
Here's a stunning result.
- Proposition 8.7.1 (Solution of system of first-order linear differential equations)
-
Let A be an n × n matrix. Then the unique solution of the system of homogeneous linear differential equations
x'(t) = Ax(t)subject to the initial condition x(0) = C (an n × 1 vector) isx(t) = eAtC.
- Source
- See Hirsch and Smale (1974), Theorem on p. 90.
ea = 1 + a/1! + a2/2! + ...,
or, more precisely,
ea = ∑∞
k=0(ak/k!).
Now, when A is a matrix we may define
k=0(ak/k!).
eA = ∑∞
k=0(Ak/k!),
where A0 is the identity matrix (and 0! = 1). (You know how to multiply matrices together, so you know how to compute the right hand side of this equation.) That's it! You can now find the solution of any homogeneous system of linear differential equations ... assuming that you can compute the infinite sum in the definition of eAt. Therein
lies the difficulty. Techniques exist for finding eAt, but they involve methods more advanced than the ones in this tutorial.
k=0(Ak/k!),
I give only one example, which shows how the trigonometric functions may emerge in the solution of a system of two simultaneous linear equations, which, as we saw above, is equivalent to a second-order equation.
- Example 8.7.2
-
Consider the system
We need to find Ak for each value of k, where

x'1(t) 
x'2(t) = 
0 −b 
b 0 
x1(t) 
x2(t) . You should be able to convince yourself (by computing A2, A3, and A4) that if k is odd we haveA = 
0 −b 
b 0 . whereas if k is even we haveAk = 
0 (−1)(k+1)/2bk 
(−1)(k−1)/2bk 0 , Given these results, we haveAk = 
(−1)k/2bk 0 
0 (−1)k/2bk . eA = 
1 − b2/2! + b4/4! − b6/6! + ... −b + b3/3! − b5/5! + ... 
b − b3/3! + b5/5! − ... 1 − b2/2! + b4/4! − b6/6! + ... . Now, recall thatwhereeA = 
a11 a12 
a21 a22 a11 = 1 − b2/2! + b4/4! − b6/6! + ... a12 = −b + b3/3! − b5/5! + ... a21 = b − b3/3! + b5/5! − ... a22 = 1 − b2/2! + b4/4! − b6/6! + .... sin b = b − b3/3! + b5/5! − ...andcos b = 1 − b2/2! + b4/4! − b6/6! + ...ThusWe conclude that the solution of the system of equations given the initial conditions x1(0) = C1 and x2(0) = C2 iseA = 
cos b −sin b 
sin b cos b . You are asked, in an exercise, to verify this solution by using the technique discussed at the start of this section to convert the two-equation system to a single second-order linear differential equation.x1(t) = C1cos bt − C2sin bt x2(t) = C1sin bt + C2cos bt.
eix = cos x + isin x
(where i is the square root of −1). But that is another story. An excellent, but advanced, exposition of the theory of systems of linear differential equations is contained in Hirsch and Smale (1974).