Coupled first order equations

Coupled first order equations

Spec I9 · AQA A-Level Further Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A coupled system has dxdt=ax+by\dfrac{dx}{dt}=ax+by and dydt=cx+dy\dfrac{dy}{dt}=cx+dy.
  • Signs show the model: a negative coefficient means that variable reduces the rate.
  • Eliminate a variable to get x′′−(a+d)x′+(ad−bc)x=0x''-(a+d)x'+(ad-bc)x=0.
  • Solve for xx first, then find yy from the first equation, with no new constants.
  • Real roots give growth or decay; complex roots give cycles, with predators lagging prey.

Coupled equations and what they model

Each rate of change depends on both variables; the signs of the coefficients show how they interact.

A coupled system has one independent variable tt and two dependent variables x(t)x(t) and y(t)y(t), each rate of change depending on both:

dxdt=ax+by,dydt=cx+dy\frac{dx}{dt}=ax+by,\quad\frac{dy}{dt}=cx+dy

The signs of the coefficients tell the story. In a predator-prey model with xx prey and yy predators:

  • a term −by-by in dxdt\frac{dx}{dt} means predators reduce the prey
  • a term +cx+cx in dydt\frac{dy}{dt} means more prey help the predators grow
  • a term −dy-dy in dydt\frac{dy}{dt} means predators die off without food.

Models of connected tanks, chemical reactions and competing species have the same form.

The point x=y=0x=y=0 is an equilibrium, where both rates are zero.

2468101220406080100120140xyprey xpredators y
Illustrative predator-prey cycles: the predator peak comes after the prey peak, because predators grow only once prey are plentiful.

−by-by in dxdt\frac{dx}{dt}

  • Predators reduce the prey

+cx+cx in dydt\frac{dy}{dt}

  • More prey help the predators grow

−dy-dy in dydt\frac{dy}{dt}

  • Predators die off without food

With xx prey and yy predators, which term in dydt\frac{dy}{dt} shows that more prey help the predators grow?

Eliminating a variable

Differentiate the first equation and substitute to get one second-order equation in xx.

To solve, turn the pair into one second order equation. Take x′=ax+byx'=ax+by and y′=cx+dyy'=cx+dy.

The coefficient of x′x' in the result is minus the trace and the constant is the determinant of the coefficient matrix.

  1. 1

    Rearrange for y

    y=x′−axby=\frac{x'-ax}{b} from the first equation (or differentiate it first).

  2. 2

    Differentiate

    x′′=ax′+by′x''=ax'+by'.

  3. 3

    Substitute

    Put in y′=cx+dyy'=cx+dy, then replace yy using the first step.

  4. 4

    Collect terms

    x′′−(a+d)x′+(ad−bc)x=0x''-(a+d)x'+(ad-bc)x=0.

Eliminating yy

x′=3x+2yx'=3x+2y and y′=x+2yy'=x+2y. Which second order equation does xx satisfy?

Solving and finding the second variable

Solve for xx with the auxiliary equation, then find yy from the first equation.

Solve the second order equation for xx with the auxiliary equation.

Then find yy from the first equation, y=x′−axby=\frac{x'-ax}{b}, not by solving a second equation independently, because that would add two more constants that are not free.

  1. 1

    Eliminate y

    gives a second order equation for x

  2. 2

    Solve the auxiliary equation

    gives x(t) with constants A and B

  3. 3

    Find y from the first equation

    y = (x′ − ax) ÷ b, with no new constants

Solving a coupled system.
  • Find xx firstthen y=x′−axby=\dfrac{x'-ax}{b}

Worked example

Solve x′=3x+2yx'=3x+2y, y′=x+2yy'=x+2y.

After finding xx for x′=ax+byx'=ax+by, how do you find yy?

Initial conditions

Use t=0t=0 in both xx and yy, converting y(0)y(0) into x′(0)x'(0) with the original equation.

Two conditions, such as x(0)x(0) and y(0)y(0), fix AA and BB. Substitute t=0t=0 into both xx and yy to get two simultaneous equations.

If you have solved a second order equation for xx, use the original equation to convert y(0)y(0) into x′(0)x'(0).

0.20.40.60.811.21.41.61.82−5510152025xyx = Ae⁻ᵗ + Be²ᵗ
Illustrative: x = Ae⁻ᵗ + Be²ᵗ. Different A and B give different solutions, and x(0) = A + B. Initial conditions fix A and B.
  • y(0)y(0)becomes x′(0)x'(0) using the original equation

Worked example

Solve x′=−2x+yx'=-2x+y, y′=2x−3yy'=2x-3y with x(0)=3x(0)=3 and y(0)=0y(0)=0.

In the system x′=−2x+yx'=-2x+y, with x(0)=3x(0)=3 and y(0)=0y(0)=0, what is x′(0)x'(0)?

Interpreting the solutions

Real roots give growth or decay; complex roots give cycles, and the predator peak lags the prey peak.

  • Real distinct roots: a sum of exponentials, so the populations grow or decay without oscillating. For large tt the larger root dominates.
  • Complex roots p±iqp\pm iq: oscillating solutions ept(…cos⁡qt+…sin⁡qt)e^{pt}(\ldots\cos qt+\ldots\sin qt). With p<0p<0 the cycles die away to equilibrium; with p>0p>0 they grow, which is unrealistic for long times.
  • In predator-prey cycles the predator peak lags the prey peak, because predators grow only once prey are plentiful.

Always say what the result means in context (populations, masses) and use the correct units. A model with negative populations has passed beyond its limit of validity.

12345678910−8−6−4−22468xyx = eᵖᵗ cos 2t
Complex roots p ± iq give x = eᵖᵗcos 2t here (illustrative). Slide p: negative cycles die away, positive cycles grow.

Real distinct roots

  • Sum of exponentials
  • No oscillation
  • Larger root dominates

Complex roots p±iqp\pm iq

  • Oscillating solutions
  • p<0p<0: cycles die away
  • p>0p>0: cycles grow

The roots of the auxiliary equation are −1±2i-1\pm2i. What happens to the populations?

Try an exam question

The variables xx and yy satisfy dxdt=4x+y\dfrac{dx}{dt}=4x+y and dydt=−2x+y\dfrac{dy}{dt}=-2x+y. Show that d2xdt2−5dxdt+6x=0\dfrac{d^2x}{dt^2}-5\dfrac{dx}{dt}+6x=0 and hence find the general solution for xx.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Eliminating yy gives a second order differential equation for xx. Which is it?

1 mark, marked against the mark scheme

Revision notes