Pc18 - Coupled first order equations

Pc18 - Coupled first order equations

When two changing quantities affect one another, their differential equations must be solved together. Pc18 turns a coupled pair of first-order linear equations into one second-order equation, recovers the other variable and applies consistent initial data. You will also interpret population-rate models and explain the long-term behaviour of a coupled system.

Two quantities sharing two rate equations

Two processing compartments contain amounts xx and yy of a chemical. Their model is x˙=−2x+y+6\dot{x}=-2x+y+6, y˙=x−2y+3\dot{y}=x-2y+3. If they start at x=8x=8, y=5y=5, can the second amount initially rise even though both amounts eventually settle below their starting values? We will solve the model and find out.

The first rate is not determined by xx alone; it also depends on yy. The same is true in reverse. Population models work in a similar way: a species' own growth may be reduced by the presence of a competitor.

Coupled first-order linear equations

A coupled system uses the same independent variable, here time tt, with dependent variables xx and yy influencing the rate equations together. A constant-coefficient first-order linear system has the form

x˙=ax+by+f(t),y˙=cx+dy+g(t)\dot{x}=ax+by+f(t),\qquad \dot{y}=cx+dy+g(t)

where a,b,c,da,b,c,d are constants and f,gf,g are specified functions of time. Terms such as xyxy or x2x^2 would make the system non-linear. A dot means differentiation with respect to tt.

Translate each rate statement separately. Growth proportional to the same population gives a positive self-term; a competitor reducing that growth gives a negative term involving the other population. Do not confuse a rate with the population itself.

Worked example 1: competition and initial rates

Question. In a model, each of two species would grow at a rate 0.10.1 times its population per year if alone. Competition reduces the growth rate of species X by 0.2y0.2y and that of species Y by 0.05x0.05x. Form the rate equations and find the initial rates when x=100x=100, y=40y=40.

Plan. Write each independent growth term, subtract its competition term and substitute the starting populations.

x˙=0.1x−0.2yX growth minus Y effecty˙=0.1y−0.05xY growth minus X effectx˙(0)=0.1(100)−0.2(40)=2initial X ratey˙(0)=0.1(40)−0.05(100)=−1initial Y rate\begin{aligned} \dot{x}&=0.1x-0.2y && \text{X growth minus Y effect} \\ \dot{y}&=0.1y-0.05x && \text{Y growth minus X effect} \\ \dot{x}(0)&=0.1(100)-0.2(40)=2 && \text{initial X rate} \\ \dot{y}(0)&=0.1(40)-0.05(100)=-1 && \text{initial Y rate} \end{aligned}

Why this step? The competition term involves the other species, not the species whose rate is being calculated.

Answer. The displayed equations model the competition. Initially X increases by 22 animals per year and Y decreases by 11 animal per year.

Check. Without competition the rates would be 1010 and 44. The reductions are 88 and 55, giving the calculated net rates.

Worked example 2 changes only the initial Y population, from 4040 to 6060. Both rate signs reverse even though the model's coefficients are unchanged.

Worked example 2: a different starting balance

Question. For the same model, find the initial rates when x=100x=100, y=60y=60.

Plan. Retain both rate equations and substitute the new initial state.

x˙(0)=0.1(100)−0.2(60)=10−12=−2new competition on Xy˙(0)=0.1(60)−0.05(100)=6−5=1new Y growth\begin{aligned} \dot{x}(0)&=0.1(100)-0.2(60)=10-12=-2 && \text{new competition on X} \\ \dot{y}(0)&=0.1(60)-0.05(100)=6-5=1 && \text{new Y growth} \end{aligned}

Why this step? A system's behaviour depends on its starting state as well as its coefficients. A change in one population can change both rates.

Answer. X initially decreases by 22 animals per year and Y increases by 11 animal per year.

Check. Raising yy by 2020 changes x˙\dot{x} by −0.2(20)=−4-0.2(20)=-4 and y˙\dot{y} by 0.1(20)=20.1(20)=2, matching the changes from the first example.

These equations are mathematical approximations to competing populations. If a solution later predicts a negative population, it has left the physically meaningful range; do not interpret negative values as actual animals.

Watch out

Wrong: from x˙<0\dot{x}<0, conclude that x<0x<0. Right: a negative derivative means the population is decreasing at that instant; the population itself can still be positive.

The next model uses different growth and competition coefficients.

Eliminate one variable, then recover it

Differentiating one first-order equation introduces a second derivative; the other equation then lets you eliminate the unwanted variable.

You already know

A constant-coefficient second-order equation is solved using its auxiliary equation, with a particular integral when the right side is non-zero. The resulting two constants must describe the whole coupled system, not two unrelated solutions.

If the first equation is x˙=ax+by+f(t)\dot{x}=ax+by+f(t), with b≠0b\ne0, it also gives a way back to yy. Keep that rearrangement before differentiating: you will need it both for elimination and for recovery.

Elimination and recovery

From

x˙=ax+by+f(t),b≠0,\dot{x}=ax+by+f(t),\qquad b\ne0,

write

y=x˙−ax−f(t)by=\frac{\dot{x}-ax-f(t)}b

Differentiate the first equation, substitute the given equation for y˙\dot{y}, then substitute this expression for yy. Solve the resulting second-order equation for xx, and recover yy from the original first-order equation. If b=0b=0, use the other equation for elimination when possible, or solve the resulting one-way system in sequence.

Not in the formula booklet: learn it.

Recovering the second variable from an original equation ensures the constants remain linked. It also gives a useful check against the other original equation.

Worked example 3: two distinct exponential modes

Question. Find the general solution of

x˙=2x+y,y˙=x+2y.\dot{x}=2x+y,\qquad \dot{y}=x+2y.

Plan. Eliminate yy using y=x˙−2xy=\dot{x}-2x, solve for xx, then recover yy.

x¨=2x˙+y˙differentiate the first equation=2x˙+x+2ysubstitute the second=2x˙+x+2(x˙−2x)eliminate yx¨−4x˙+3x=0collect termsr2−4r+3=(r−1)(r−3)=0auxiliary equationx=Aet+Be3tgeneral solutiony=x˙−2x=−Aet+Be3trecover with the same constants\begin{aligned} \ddot{x}&=2\dot{x}+\dot{y} && \text{differentiate the first equation} \\ &=2\dot{x}+x+2y && \text{substitute the second} \\ &=2\dot{x}+x+2(\dot{x}-2x) && \text{eliminate }y \\ \ddot{x}-4\dot{x}+3x&=0 && \text{collect terms} \\ r^2-4r+3&=(r-1)(r-3)=0 && \text{auxiliary equation} \\ x&=Ae^t+Be^{3t} && \text{general solution} \\ y&=\dot{x}-2x=-Ae^t+Be^{3t} && \text{recover with the same constants} \end{aligned}

Why this step? Differentiation alone does not eliminate yy; both original equations are needed before the second-order equation contains only xx.

Answer. x=Aet+Be3tx=Ae^t+Be^{3t}, y=−Aet+Be3ty=-Ae^t+Be^{3t}.

Check. Differentiating yy gives −Aet+3Be3t-Ae^t+3Be^{3t}, while x+2yx+2y gives exactly the same expression.

Worked example 4 changes only the coefficient of xx in the second equation from 11 to 44. One auxiliary root becomes zero, so the corresponding term is a constant.

Worked example 4: a zero auxiliary root

Question. Find the general solution of x˙=2x+y\dot{x}=2x+y, y˙=4x+2y\dot{y}=4x+2y.

Plan. Use the same recovery relation but repeat the elimination with the changed coefficient.

x¨=2x˙+4x+2ydifferentiate and substitute=2x˙+4x+2(x˙−2x)eliminate yx¨−4x˙=0the x terms cancelr(r−4)=0⟹r=0,4auxiliary rootsx=A+Be4te0t=1y=x˙−2x=−2A+2Be4trecover the second variable\begin{aligned} \ddot{x}&=2\dot{x}+4x+2y && \text{differentiate and substitute} \\ &=2\dot{x}+4x+2(\dot{x}-2x) && \text{eliminate }y \\ \ddot{x}-4\dot{x}&=0 && \text{the }x\text{ terms cancel} \\ r(r-4)&=0\quad\Longrightarrow\quad r=0,4 && \text{auxiliary roots} \\ x&=A+Be^{4t} && e^{0t}=1 \\ y&=\dot{x}-2x=-2A+2Be^{4t} && \text{recover the second variable} \end{aligned}

Why this step? A zero root supplies a constant solution mode. Omitting it would leave only one arbitrary constant for a system needing two.

Answer. x=A+Be4tx=A+Be^{4t}, y=−2A+2Be4ty=-2A+2Be^{4t}.

Check. y˙=8Be4t=4x+2y\dot{y}=8Be^{4t}=4x+2y; the constant terms cancel.

Under “Show that”, the eliminated differential equation and its auxiliary equation must be visible. Jumping directly to a supplied exponential expression does not establish it.

Exam tip

Show the differentiation, both substitutions and the second-order equation before solving it. After recovery, simplify the expression for the second variable rather than leaving an avoidable unsimplified derivative.

The next system changes the diagonal coefficients as well as the coupling, so repeat the elimination.

Watch out

Wrong: after x=A+Be4tx=A+Be^{4t}, take y=C+De4ty=C+De^{4t} with independent C,DC,D. The original equations link the constants. The correct recovery is y=x˙−2x=−2A+2Be4ty=\dot x-2x=-2A+2Be^{4t}, so C=−2AC=-2A and D=2BD=2B.

Use an original equation to recover the second variable with the same constants.

Initial data must describe one shared state

Giving x(0)x(0) and y(0)y(0) already determines both initial derivatives through the original equations.

For x˙=2x+y\dot{x}=2x+y, y˙=x+2y\dot{y}=x+2y, the general solution found above gives

x(0)=A+B,y(0)=−A+B.x(0)=A+B,\qquad y(0)=-A+B.

These are two equations for the same two constants. Alternatively, use the original system to calculate x˙(0)\dot{x}(0), then apply x(0)x(0) and x˙(0)\dot{x}(0) to the second-order solution.

Key idea

There are two arbitrary constants for the coupled pair as a whole. The recovered yy must use the same constants as xx; it does not introduce two new independent constants.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account