Systems of differential equations

A rocket's altitude affects its fuel burn rate, which in turn affects its altitude; a predator population affects the prey population, which affects the predator population back. Whenever two or more quantities change together and feed into each other's rates of change, a single differential equation is not enough — we need a system of them, solved simultaneously. This closing topic of the MA10001 ODE unit shows that such systems, at least the linear constant-coefficient kind in two unknown functions of one variable, are not a new subject at all. Writing D≡d/dtD \equiv d/dt turns the two coupled equations into two algebraic-looking ones, and the same elimination trick used to solve pairs of simultaneous linear equations in school algebra collapses the system to a single higher-order ODE — one we already know how to solve.

The core insight

Writing D≡d/dtD \equiv d/dt and treating it as an algebraic symbol lets elimination reduce a linear constant-coefficient system in two unknowns to a single higher-order ODE solvable by the auxiliary-equation method, after which back-substitution into an original first-order equation recovers the second unknown without extra constants.

The core idea

Setting up the system. A linear system with constant coefficients in dependent variables x(t),y(t)x(t), y(t) and independent variable tt looks like

dxdt=a1x+b1y+f1(t),dydt=a2x+b2y+f2(t),\frac{dx}{dt} = a_1x + b_1y + f_1(t), \qquad \frac{dy}{dt} = a_2x + b_2y + f_2(t),

where: a1,b1,a2,b2a_1, b_1, a_2, b_2 are constants, and f1(t),f2(t)f_1(t), f_2(t) are given forcing functions (zero for a homogeneous system). Two coupled first-order equations describe one combined process with a single clock tt.

Operator form. Replacing d/dtd/dt by the symbol DD turns the system into

(D−a1)x−b1y=f1(t),−a2x+(D−b2)y=f2(t).(D-a_1)x - b_1y = f_1(t), \qquad -a_2x + (D-b_2)y = f_2(t).

where: DD acts on whatever follows it (Dx=dx/dtDx = dx/dt), but between operations it can be added, subtracted and multiplied just like an ordinary algebraic symbol — this is the entire trick that makes elimination possible.

Elimination. Exactly as you would eliminate a variable from two simultaneous linear algebraic equations, combine the two operator equations — by substitution or by multiplying through by suitable operator expressions and subtracting — to remove one dependent variable, say yy. What remains is a single higher-order linear ODE in x(t)x(t) alone, with constant coefficients, solvable by the familiar auxiliary-equation method for the complementary function, plus undetermined coefficients for a particular integral if the system is nonhomogeneous.

Back-substitution, not re-solving. Once x(t)x(t) is known, find y(t)y(t) by substituting back into one of the original first-order equations and solving algebraically — never by separately eliminating xx and solving its own higher-order equation for yy. The total number of independent arbitrary constants in the full solution must equal the order of the original system (here, two), and solving each variable independently would wrongly produce four.

Figure
Two coupled tanks labelled x and y with arrows showing each rate of change depending on both levels, next to the operator equations after elimination collapses to one higher order equation in x alone
A coupled system collapses to one higher order equation x(t) y(t) dy/dt depends on x dx/dt depends on y eliminate y single ODE in x(t) alone solved by auxiliary equation method Then back-substitute x(t) into an original first-order equation to recover y(t).
Derivation AReducing a linear 2x2 system to a single second-order ODE

The goal is to start from the general constant-coefficient system dx/dt=a1x+b1ydx/dt = a_1x + b_1y, dy/dt=a2x+b2ydy/dt = a_2x + b_2y (homogeneous, so the mechanics of elimination are visible without the extra bookkeeping of a forcing term) and show, purely by treating DD as an algebraic symbol, that x(t)x(t) obeys a single second-order linear ODE whose coefficients come directly from a1,b1,a2,b2a_1, b_1, a_2, b_2 — the same reduction used, worked-example by worked-example, throughout this topic.

Step 1. Write the system in operator form. With D≡d/dtD \equiv d/dt, the two equations become (D−a1)x−b1y=0(D-a_1)x - b_1y = 0 and −a2x+(D−b2)y=0-a_2x + (D-b_2)y = 0. Both are now algebraic-looking statements relating xx, yy and the symbol DD.

Step 2. Solve the first equation for yy in terms of xx (assuming b1≠0b_1 \neq 0). From (D−a1)x=b1y(D-a_1)x = b_1y, y=(D−a1)xb1y = \dfrac{(D-a_1)x}{b_1}. This is legitimate because (D−a1)x(D-a_1)x just means dx/dt−a1xdx/dt - a_1x, an ordinary function of tt once x(t)x(t) is known — dividing by the constant b1b_1 is nothing exotic.

Step 3. Substitute this expression for yy into the second equation. −a2x+(D−b2)((D−a1)xb1)=0-a_2x + (D-b_2)\left(\dfrac{(D-a_1)x}{b_1}\right) = 0. Multiply through by b1b_1 to clear the fraction: −a2b1x+(D−b2)(D−a1)x=0-a_2b_1x + (D-b_2)(D-a_1)x = 0.

Step 4. Expand the operator product (D−b2)(D−a1)=D2−(a1+b2)D+a1b2(D-b_2)(D-a_1) = D^2 - (a_1+b_2)D + a_1b_2, treating DD exactly like a variable when multiplying two linear factors. Substituting back gives D2x−(a1+b2)Dx+a1b2x−a2b1x=0D^2x - (a_1+b_2)Dx + a_1b_2x - a_2b_1x = 0, i.e.

D2x−(a1+b2)Dx+(a1b2−a2b1)x=0.D^2x - (a_1+b_2)Dx + (a_1b_2 - a_2b_1)x = 0.

Step 5. Read off the result. This is a single second-order constant-coefficient linear ODE in x(t)x(t) alone, solved by the usual auxiliary equation m2−(a1+b2)m+(a1b2−a2b1)=0m^2 - (a_1+b_2)m + (a_1b_2-a_2b_1) = 0. Once x(t)x(t) is found from its roots, y(t)y(t) is recovered by Step 2's formula y=(D−a1)xb1=x′−a1xb1y = \dfrac{(D-a_1)x}{b_1} = \dfrac{x' - a_1x}{b_1} — an original-equation back-substitution, not a fresh ODE, so no spurious constants appear.

Worked example

Solve the homogeneous system dxdt=3x−2y\dfrac{dx}{dt} = 3x - 2y, dydt=2x−2y\dfrac{dy}{dt} = 2x - 2y, matching the general reduction above with a1=3,b1=−2,a2=2,b2=−2a_1=3, b_1=-2, a_2=2, b_2=-2.

Step 1. Write the operator equations: (D−3)x+2y=0(D-3)x + 2y = 0 and −2x+(D+2)y=0-2x + (D+2)y = 0.

Step 2. Eliminate yy. From the first equation, y=(3−D)x2y = \dfrac{(3-D)x}{2}. Substituting into the second and clearing the factor of 22 gives −4x+(D+2)(3−D)x=0-4x + (D+2)(3-D)x = 0. Expanding (D+2)(3−D)=−D2+D+6(D+2)(3-D) = -D^2+D+6 leaves D2x−Dx−2x=0D^2x - Dx - 2x = 0, matching the general formula with a1+b2=1a_1+b_2 = 1 and a1b2−a2b1=−6−(−4)=−2a_1b_2-a_2b_1 = -6-(-4) = -2.

Step 3. Solve the auxiliary equation m2−m−2=0  ⟹  (m−2)(m+1)=0  ⟹  m=2,−1m^2-m-2=0 \implies (m-2)(m+1)=0 \implies m=2,-1, so

x(t)=C1e2t+C2e−t.x(t) = C_1e^{2t} + C_2e^{-t}.

Step 4. Back-substitute into dxdt=3x−2y\dfrac{dx}{dt}=3x-2y to get y=3x−x′2y=\dfrac{3x-x'}{2}. With x′=2C1e2t−C2e−tx' = 2C_1e^{2t}-C_2e^{-t},

y(t)=3(C1e2t+C2e−t)−(2C1e2t−C2e−t)2=C12e2t+2C2e−t.y(t) = \frac{3(C_1e^{2t}+C_2e^{-t}) - (2C_1e^{2t}-C_2e^{-t})}{2} = \frac{C_1}{2}e^{2t} + 2C_2e^{-t}.

Final answer: x(t)=C1e2t+C2e−tx(t) = C_1e^{2t}+C_2e^{-t}, y(t)=C12e2t+2C2e−ty(t) = \frac{C_1}{2}e^{2t}+2C_2e^{-t}, with only two arbitrary constants total, matching the system's order.

Competitive stretch

For the second Pass-1 system, dxdt=y\dfrac{dx}{dt}=y, dydt=−x\dfrac{dy}{dt}=-x with x(0)=1,y(0)=0x(0)=1, y(0)=0, the same machinery gives a1=0,b1=1,a2=−1,b2=0a_1=0, b_1=1, a_2=-1, b_2=0, so the reduced equation is D2x−0⋅Dx+(0−(−1))x=0D^2x - 0\cdot Dx + (0-(-1))x = 0, i.e. D2x+x=0D^2x+x=0. Its auxiliary roots are m=±im=\pm i, giving x(t)=C1cos⁡t+C2sin⁡tx(t)=C_1\cos t+C_2\sin t, and back-substitution via y=Dxy=Dx gives y(t)=−C1sin⁡t+C2cos⁡ty(t)=-C_1\sin t+C_2\cos t. The initial conditions fix C1=1,C2=0C_1=1, C_2=0, so x(t)=cos⁡tx(t)=\cos t, y(t)=−sin⁡ty(t)=-\sin t — a solution that traces a unit circle in the (x,y)(x,y) plane, a useful geometric check that this is a coupled oscillator, not two independent equations.

Common traps

  • Solving for xx and yy as if they were two independent second-order ODEs. This produces four arbitrary constants when the first-order system only supports as many as its total order (here two); always find the second variable by back-substitution into an original equation.
  • Back-substituting into the eliminated higher-order equation instead of an original first-order one. That reintroduces spurious constants that don't actually satisfy the original coupled system.
  • Sign or operator-algebra slips when expanding products like (D+2)(3−D)(D+2)(3-D). Treat DD as a formal symbol and expand term by term, exactly as with any quadratic factorisation.
  • Skipping the final check. Always substitute both x(t)x(t) and y(t)y(t) back into both original equations — this is the fastest way to catch an elimination or back-substitution error before it costs marks.

Ask the tutor: if you are stuck on eliminating a variable from a trickier system, or want to check whether your reduced ODE matches the shortcut formula, ask the AI tutor to walk through your elimination step by step.

Does this elimination method work for systems with more than two equations

The elementary elimination method extends in principle to three or more coupled linear equations with constant coefficients, using the same idea of treating D as an algebraic symbol and eliminating variables pairwise. In practice the algebra grows quickly, and larger systems are normally handled with matrix and eigenvalue methods instead, which lie beyond this MA10001 unit. For the two-equation systems in this syllabus, elimination stays the fastest and most transparent route.

What happens if the system is nonhomogeneous, with f1(t) and f2(t) present

The elimination steps are identical: write the operator equations, eliminate one variable, and you get a single higher-order linear ODE in the other variable, but now with a nonzero right-hand side built from f1, f2 and their derivatives. Solve it exactly as any nonhomogeneous constant-coefficient ODE — complementary function from the auxiliary equation, plus a particular integral by undetermined coefficients or another familiar method — then back-substitute into an original equation for the second variable, just as in the homogeneous case.

How do I know I have eliminated the right variable, or that I have not made an algebra slip

Two independent checks work well. First, compare the reduced equation's coefficients to the shortcut formula, D squared x minus (a1 plus b2)Dx plus (a1b2 minus a2b1)x equals 0, derived directly from the system's coefficients — if your elimination does not match this pattern, recheck the operator expansion. Second, and always worth doing regardless, substitute the final x(t) and y(t) back into both original first-order equations; any elimination or back-substitution error shows up immediately as a mismatch.

Before this

Where this leads