Skip to content

3302 First order Linear Systems

Models: Two Examples

Example 1. Farmer Jones and farmer McGregor each have a field full of rabbits; farmer Jones' field contains rabbits, and farmer McGregor's ones; , time, is measured in months. These rabbits breed fast: they show a net growth rate of 0.5 rabbits per rabbit per month. The rabbits can also hop over the hedge between the fields; the grass is greener in Farmer McGregor's field, so Jones' rabbits jump over a the rate of 0.2 per month, whereas McGregor's jump at the rate of 0.1 per month.
We can illustrate this with the following flow diagram:

Putting everything together, the equations governing and are: This is an example of a first order linear system.

Example 2. Consider the equations: This is another first order linear system. It is the result of an analysis by the MIT Humanities Department of the plot a famous Shakespeare play: denotes Romeo's love for Juliet, and Juliet's love for Romeo. What does this model mean? Let us try to work backwards.
The change in Romeo's feelings towards Juliet is mostly determined by how she feels about him: is the most important term in the expression for . His own feelings have a small reinforcing effect corresponding to the factor of 1/4 in front of the .
On the other hand, Juliet is more complex. She has a healthy selfawareness. If she loves Romeo, that very fact causes her to love him more: this is where the term comes from. On the other hand, if he seems to love her, she gets frightened and starts to love him less hence the term.
We shall revisit this example in sections text companion matrix and applet companion matrix, and analyze mathematically the solutions to this tragic model.

Solving a Linear System by Elimination

Definition. A two-by-two first order linear system of ODE's with constant coefficients is a collection of equations: where and are constants.
We'll shorten this to first order linear system or even linear system.
Remark. Say you have dependent variables ; one can define first order linear systems (with constant coefficients) in exactly the same way: where the are constants.
In the next few sessions, we shall develop many tools for understanding linear systems, both analytically and qualitatively. All these techniques generalize, in a fairly straightforward fashion, to systems. However, this goes beyond the scope of this course. The interested reader could for instance consult the textbook by Edwards and Penney.
The naive way to solve a linear system of ODE's with constant coefficients is by eliminating variables, so as to change it into a single higher order equation, in one dependent variable. One then solves this equation using the techniques for constant-coefficient ODE's learned in unit 2. This is best illustrated with a worked example.
Example. Let us consider the system of equations from example 1. Step 1. Transform the equations to get a second order ODE for .
Use to express in terms of : Plug this into . (From equation we get ). This gives Step 2. Solve the ODE for .
The characteristic equation for is: which has roots and . Thus we get two basic solutions, Step 3. Solution for .
Each basic solution for gives a corresponding solution for , using equa­tion Step 4. Using superposition we get the general solution Remarks. 1. It is important to understand that the constants and are the same for and ; this follows from equation . 2. For certain , there will be negatively-valued solutions; these are clearly not biologically significant: the model only holds for . 3. We chose to eliminate to have a second order equation in terms of ; we could just as well have chosen to eliminate to get an equation in . It might sometimes be computationally easier to go one way than the other; look out for this. 4. We started by solving systems by elimination because it reduces to our previous methods. This will not be our preferred technique. In fact, in both theoretical and especially numerical work it is usually preferable to go the opposite way and convert a higher order ODE into a system of first order equations and then use matrix methods.