Chapter 19
Hard

Differential Equations — Second Order and Systems

00 · Symbol Glossary

$ay''+by'+cy=0$second-order linear homogeneous equation with constant coefficients

An equation involving yy, yy', and yy'', with a,b,ca,b,c fixed real constants and a0a\neq0. "Homogeneous" means every term contains yy or a derivative of yy — no leftover term depending on xx alone.

$ar^2+br+c=0$characteristic equation

An ordinary quadratic equation in a new unknown rr, built directly from the coefficients of the differential equation. Its roots determine the shape of every solution — introduced in Section 01.

$r_1, r_2$roots of the characteristic equation

The two solutions of the characteristic equation (found by factoring or the quadratic formula, exactly as in ordinary algebra). Each root rr produces a building-block solution erxe^{rx}.

$\Delta = b^2-4ac$discriminant

The same quantity from the quadratic formula that determines whether r1,r2r_1,r_2 are real and distinct, real and repeated, or complex — Section 02 covers all three cases.

$c_1, c_2$the two free constants of a second-order general solution

Second-order equations require two arbitrary constants in the general solution (matching two rounds of integration, one for each order), unlike the single CC of Chapter 18's first-order equations.


01 · Second-Order Linear Equations and the Characteristic Equation

Chapter 18 solved equations built from yy and yy'. Adding yy'' requires a new idea: guessing a specific exponential shape for the solution, then finding out exactly which exponential works.

Definition — Characteristic Equation

For ay+by+cy=0ay''+by'+cy=0, try a solution of the form y=erxy=e^{rx}. Then y=rerxy'=re^{rx} and y=r2erxy''=r^2e^{rx} (Chapter 03's chain rule, applied twice). Substituting:

ar2erx+brerx+cerx=0    erx(ar2+br+c)=0ar^2e^{rx}+bre^{rx}+ce^{rx}=0 \implies e^{rx}(ar^2+br+c)=0

Since erxe^{rx} is never 00, this requires ar2+br+c=0ar^2+br+c=0 — the characteristic equation, an ordinary quadratic in rr.

Step-by-step — Solve $y''-5y'+6y=0$
1
Write the characteristic equation: matching coefficients a=1,b=5,c=6a=1,b=-5,c=6: r25r+6=0r^2-5r+6=0.
2
Factor: r25r+6=(r2)(r3)r^2-5r+6=(r-2)(r-3), since (2)(3)=6(-2)(-3)=6 and 2+(3)=5-2+(-3)=-5 match the coefficients.
3
Solve for the roots: r=2r=2 or r=3r=3.
4
Build one solution per root: y1=e2xy_1=e^{2x}, y2=e3xy_2=e^{3x}.
5
Assemble the general solution using two free constants: y=c1e2x+c2e3xy = c_1e^{2x}+c_2e^{3x}.
6
Verify: y=2c1e2x+3c2e3xy'=2c_1e^{2x}+3c_2e^{3x}; y=4c1e2x+9c2e3xy''=4c_1e^{2x}+9c_2e^{3x}. Check y5y+6y=(4c1e2x+9c2e3x)5(2c1e2x+3c2e3x)+6(c1e2x+c2e3x)y''-5y'+6y = (4c_1e^{2x}+9c_2e^{3x}) - 5(2c_1e^{2x}+3c_2e^{3x}) + 6(c_1e^{2x}+c_2e^{3x}). Collecting the e2xe^{2x} terms: 4c110c1+6c1=04c_1-10c_1+6c_1=0 ✓. Collecting the e3xe^{3x} terms: 9c215c2+6c2=09c_2-15c_2+6c_2=0 ✓.

02 · Repeated and Complex Roots

The characteristic equation is an ordinary quadratic, so its discriminant Δ=b24ac\Delta=b^2-4ac determines which of three cases applies.

Definition — Three Cases by Discriminant
  • Δ>0\Delta>0: two distinct real roots r1,r2r_1,r_2. General solution: y=c1er1x+c2er2xy=c_1e^{r_1x}+c_2e^{r_2x} (Section 01).
  • Δ=0\Delta=0: one repeated root rr. General solution: y=c1erx+c2xerxy = c_1e^{rx}+c_2xe^{rx}.
  • Δ<0\Delta<0: complex roots r=α±βir=\alpha\pm\beta i. General solution: y=eαx(c1cos(βx)+c2sin(βx))y=e^{\alpha x}\big(c_1\cos(\beta x)+c_2\sin(\beta x)\big).
Step-by-step — Solve the repeated-root case $y''-6y'+9y=0$
1
Characteristic equation: r26r+9=0r^2-6r+9=0.
2
Compute the discriminant: Δ=(6)24(1)(9)=3636=0\Delta = (-6)^2-4(1)(9) = 36-36=0 — repeated root case.
3
Solve (factor as a perfect square): r26r+9=(r3)2=0    r=3r^2-6r+9=(r-3)^2=0 \implies r=3 (a double root).
4
Apply the repeated-root formula from Section 02: y=c1e3x+c2xe3xy = c_1e^{3x}+c_2xe^{3x}.
❌ Writing c1·e^(rx) + c2·e^(rx) for a repeated root

On the same equation, a tempting but incorrect shortcut: since there's only one root r=3r=3, writing y=c1e3x+c2e3xy=c_1e^{3x}+c_2e^{3x}.

Why it breaks: c1e3x+c2e3x=(c1+c2)e3xc_1e^{3x}+c_2e^{3x} = (c_1+c_2)e^{3x} — algebraically, this is just one arbitrary constant (c1+c2c_1+c_2 combined) multiplying e3xe^{3x}, not two genuinely independent constants. A second-order equation's general solution needs two constants that cannot be merged into one, matching the two rounds of integration a second-order equation represents (Section 00's symbol glossary note).

Consequence: with only one effective constant, this incorrect form cannot satisfy an arbitrary pair of initial conditions y(0)=y0y(0)=y_0, y(0)=y0y'(0)=y_0' — plugging in generally produces a contradiction unless y0y_0' happens to equal 3y03y_0. The correct extra building-block solution is xe3xxe^{3x}, not a second copy of e3xe^{3x}; verify ddx[xe3x]=e3x+3xe3x\dfrac{d}{dx}[xe^{3x}] = e^{3x}+3xe^{3x} (product rule, Chapter 02) actually satisfies the original equation, which a repeated e3xe^{3x} term cannot independently contribute.

Step-by-step — Solve the complex-root case $y''+4y=0$
1
Characteristic equation: r2+0r+4=0r^2+0r+4=0, i.e. r2=4r^2=-4.
2
Compute the discriminant: Δ=024(1)(4)=16<0\Delta = 0^2-4(1)(4)=-16<0 — complex root case.
3
Solve for rr: r=±4=±2ir=\pm\sqrt{-4} = \pm2i, so α=0\alpha=0, β=2\beta=2 (matching r=α±βir=\alpha\pm\beta i).
4
Apply the complex-root formula from Section 02: y=e0x(c1cos(2x)+c2sin(2x))=c1cos(2x)+c2sin(2x)y = e^{0\cdot x}\big(c_1\cos(2x)+c_2\sin(2x)\big) = c_1\cos(2x)+c_2\sin(2x).
5
Verify using Chapter 02, Section 09's trig derivatives: y=2c1sin(2x)+2c2cos(2x)y'=-2c_1\sin(2x)+2c_2\cos(2x) (chain rule, Chapter 03); y=4c1cos(2x)4c2sin(2x)y''=-4c_1\cos(2x)-4c_2\sin(2x). Check y+4y=(4c1cos2x4c2sin2x)+4(c1cos2x+c2sin2x)=0y''+4y = (-4c_1\cos2x-4c_2\sin2x)+4(c_1\cos2x+c_2\sin2x) = 0 ✓.
Why sine and cosine appear from complex roots

Substituting r=βir=\beta i directly gives the building-block solution eiβxe^{i\beta x}, a complex-valued expression — not itself one of the two real solutions wanted here. The identity eiβx=cos(βx)+isin(βx)e^{i\beta x} = \cos(\beta x)+i\sin(\beta x) (stated here as a given fact, not derived) shows that the real and imaginary parts of eiβxe^{i\beta x}, namely cos(βx)\cos(\beta x) and sin(βx)\sin(\beta x), are themselves both real-valued solutions of the original equation — which is why they appear directly in the general solution instead of the complex exponential itself.


03 · Nonhomogeneous Equations — A Compressed Look

Definition — Nonhomogeneous Equation and Particular Solution

ay+by+cy=g(x)ay''+by'+cy=g(x) with g(x)0g(x)\neq0 is nonhomogeneous. Its general solution is y=yh+ypy=y_h+y_p, where yhy_h solves the corresponding homogeneous equation (g(x)=0g(x)=0, Sections 01–02) and ypy_p is any single solution of the full equation, typically found by guessing a form matching g(x)g(x) and solving for its coefficients.

Example — A single worked case, kept compressed

For y5y+6y=12y''-5y'+6y=12 (same left side as Section 01's example), guess a constant particular solution yp=Ay_p=A (since the right side is a constant): yp=0y_p'=0, yp=0y_p''=0, so the equation becomes 00+6A=12    A=20-0+6A=12 \implies A=2. Combined with Section 01's homogeneous solution: y=c1e2x+c2e3x+2y = c_1e^{2x}+c_2e^{3x}+2.


04 · Systems of First-Order Equations — Solving by Elimination

Some problems involve two unknown functions changing together, each one's rate of change depending on both. This is solved here using substitution and elimination — reducing the system to a single, higher-order equation in one unknown, exactly the kind already solved in Sections 01–02 — rather than any specialized machinery for handling several equations simultaneously.

Definition — System of First-Order Equations and the Elimination Method

A system dxdt=ax+by\dfrac{dx}{dt} = ax+by, dydt=cx+dy\dfrac{dy}{dt}=cx+dy (constants a,b,c,da,b,c,d) can be reduced to one equation in xx alone: differentiate the first equation with respect to tt, then substitute the second equation (and the first, solved for yy) to eliminate yy and yy' entirely.

Step-by-step — Solve $\dfrac{dx}{dt}=x+2y,\ \dfrac{dy}{dt}=2x+y$ by elimination
1
Differentiate the first equation with respect to tt: x=x+2yx'' = x'+2y'.
2
Substitute the second equation (y=2x+yy'=2x+y) to remove yy': x=x+2(2x+y)=x+4x+2yx'' = x'+2(2x+y) = x'+4x+2y.
3
Solve the first original equation for yy in terms of x,xx,x': from x=x+2yx'=x+2y: y=xx2y = \dfrac{x'-x}{2}.
4
Substitute this expression for yy into step 2's equation, removing yy entirely: x=x+4x+2(xx2)=x+4x+xx=2x+3xx'' = x'+4x+2\left(\dfrac{x'-x}{2}\right) = x'+4x+x'-x = 2x'+3x.
5
Rearrange into standard second-order form: x2x3x=0x''-2x'-3x=0.
6
Solve using Section 01's characteristic-equation method: r22r3=0    (r3)(r+1)=0    r=3r^2-2r-3=0 \implies (r-3)(r+1)=0 \implies r=3 or r=1r=-1. So x(t)=c1e3t+c2etx(t) = c_1e^{3t}+c_2e^{-t}.
7
Recover y(t)y(t) using step 3's relation y=xx2y=\dfrac{x'-x}{2}: x(t)=3c1e3tc2etx'(t) = 3c_1e^{3t}-c_2e^{-t}. So y=(3c1e3tc2et)(c1e3t+c2et)2=2c1e3t2c2et2=c1e3tc2ety = \dfrac{(3c_1e^{3t}-c_2e^{-t})-(c_1e^{3t}+c_2e^{-t})}{2} = \dfrac{2c_1e^{3t}-2c_2e^{-t}}{2} = c_1e^{3t}-c_2e^{-t}.
8
Verify against the second original equation, y=2x+yy'=2x+y: y=3c1e3t+c2ety' = 3c_1e^{3t}+c_2e^{-t} (differentiating step 7's result). Compute 2x+y=2(c1e3t+c2et)+(c1e3tc2et)=3c1e3t+c2et2x+y = 2(c_1e^{3t}+c_2e^{-t}) + (c_1e^{3t}-c_2e^{-t}) = 3c_1e^{3t}+c_2e^{-t} — matches yy' exactly. ✓
❌ Stopping the elimination before every trace of the second unknown is removed

On the same system, a common error at step 4: substituting the second equation for yy' (step 2) but forgetting to also replace the leftover bare yy term, leaving an equation like x=x+4x+2yx''=x'+4x+2y still containing yy.

Why it breaks: the whole point of elimination is to end with a single equation in a single unknown function — an equation still containing both xx and yy cannot be solved by Section 01's characteristic-equation method, which only applies to one function of one variable.

Consequence: step 3's extra substitution (solving the original first equation for yy itself, not just yy') is not optional busywork — it's the step that finishes removing every trace of yy. Skipping it leaves a mixed equation that looks superficially similar to a solvable one but cannot actually be solved by the tools in this chapter.


05 · Exercises

EXERCISE 19.1

Form the characteristic equation from the coefficients, factor it, and combine the two exponential building-block solutions.

yy6y=0y''-y'-6y=0: r2r6=0    (r3)(r+2)=0    r=3,2r^2-r-6=0 \implies (r-3)(r+2)=0 \implies r=3,-2. General solution: y=c1e3x+c2e2xy=c_1e^{3x}+c_2e^{-2x}.

Solve yy6y=0y''-y'-6y=0.

EXERCISE 19.2

Compute the discriminant first to identify which of the three cases applies, then build the general solution using the matching formula from Section 02.

y+4y+4y=0y''+4y'+4y=0: r2+4r+4=0r^2+4r+4=0, Δ=1616=0\Delta=16-16=0 — repeated root. (r+2)2=0    r=2(r+2)^2=0 \implies r=-2. General solution: y=c1e2x+c2xe2xy=c_1e^{-2x}+c_2xe^{-2x}.

Solve y+4y+4y=0y''+4y'+4y=0.

EXERCISE 19.3

Find the complex roots via the quadratic formula, identify α\alpha and β\beta, then apply the complex-root general solution formula.

y2y+5y=0y''-2y'+5y=0: r22r+5=0r^2-2r+5=0. Quadratic formula: r=2±4202=2±162=1±2ir = \dfrac{2\pm\sqrt{4-20}}{2} = \dfrac{2\pm\sqrt{-16}}{2} = 1\pm2i. So α=1\alpha=1, β=2\beta=2. General solution: y=ex(c1cos2x+c2sin2x)y = e^x(c_1\cos2x+c_2\sin2x).

Solve y2y+5y=0y''-2y'+5y=0.

EXERCISE 19.4

Use the initial conditions to solve for both constants — you'll need both y(0)y(0) and y(0)y'(0) to pin down two constants.

From Exercise 19.1, y=c1e3x+c2e2xy=c_1e^{3x}+c_2e^{-2x}, y=3c1e3x2c2e2xy'=3c_1e^{3x}-2c_2e^{-2x}. Given y(0)=1y(0)=1, y(0)=8y'(0)=8: c1+c2=1c_1+c_2=1 and 3c12c2=83c_1-2c_2=8. From the first, c2=1c1c_2=1-c_1. Substitute: 3c12(1c1)=8    3c12+2c1=8    5c1=10    c1=23c_1-2(1-c_1)=8 \implies 3c_1-2+2c_1=8 \implies 5c_1=10 \implies c_1=2, so c2=1c_2=-1. Particular solution: y=2e3xe2xy=2e^{3x}-e^{-2x}.

Solve the initial value problem yy6y=0y''-y'-6y=0, y(0)=1y(0)=1, y(0)=8y'(0)=8 (building on Exercise 19.1).

EXERCISE 19.5

Differentiate one equation, substitute the other to remove its derivative, then solve the remaining equation for the other unknown to remove every trace of it too.

dxdt=4x2y\dfrac{dx}{dt}=4x-2y, dydt=x+y\dfrac{dy}{dt}=x+y. Differentiate the first: x=4x2yx''=4x'-2y'. Substitute y=x+yy'=x+y: x=4x2(x+y)=4x2x2yx''=4x'-2(x+y)=4x'-2x-2y. Solve the first equation for yy: 2y=4xx    y=2xx22y=4x-x' \implies y=2x-\dfrac{x'}{2}. Substitute: x=4x2x2(2xx2)=4x2x4x+x=5x6xx''=4x'-2x-2\left(2x-\dfrac{x'}{2}\right)=4x'-2x-4x+x'=5x'-6x. Rearrange: x5x+6x=0x''-5x'+6x=0. Characteristic equation: r25r+6=0    r=2,3r^2-5r+6=0 \implies r=2,3 (matching Section 01's example exactly). x(t)=c1e2t+c2e3tx(t)=c_1e^{2t}+c_2e^{3t}.

Reduce the system dxdt=4x2y\dfrac{dx}{dt}=4x-2y, dydt=x+y\dfrac{dy}{dt}=x+y to a single second-order equation in xx using elimination, and solve for x(t)x(t).

EXERCISE 19.6

Two coupled inventories where each one's growth rate depends on both current levels is exactly the elimination-method system setup from Section 04.

Two coupled asset positions follow dxdt=x+2y\dfrac{dx}{dt}=x+2y, dydt=2x+y\dfrac{dy}{dt}=2x+y (matching Section 04's worked system exactly). From Section 04, x(t)=c1e3t+c2etx(t)=c_1e^{3t}+c_2e^{-t}, y(t)=c1e3tc2ety(t)=c_1e^{3t}-c_2e^{-t}. As tt\to\infty, the e3te^{3t} term dominates both, so both positions grow without bound at the same exponential rate, proportionally converging toward x(t)y(t)c1e3tx(t)\approx y(t)\approx c_1e^{3t} for large tt (assuming c10c_1\neq0) — the two positions become asymptotically equal in scale.

Two coupled asset positions follow dxdt=x+2y\dfrac{dx}{dt}=x+2y, dydt=2x+y\dfrac{dy}{dt}=2x+y. Using Section 04's solution, describe the long-run behavior of x(t)x(t) and y(t)y(t) as tt\to\infty.


06 · Chapter Summary

ConceptFormula / Rule
Characteristic equationar2+br+c=0ar^2+br+c=0, from trying y=erxy=e^{rx}
Distinct real roots (Δ>0\Delta>0)y=c1er1x+c2er2xy=c_1e^{r_1x}+c_2e^{r_2x}
Repeated root (Δ=0\Delta=0)y=c1erx+c2xerxy=c_1e^{rx}+c_2xe^{rx}
Complex roots (Δ<0\Delta<0, r=α±βir=\alpha\pm\beta i)y=eαx(c1cosβx+c2sinβx)y=e^{\alpha x}(c_1\cos\beta x+c_2\sin\beta x)
Nonhomogeneousy=yh+ypy=y_h+y_p
Systems via eliminationDifferentiate one equation, substitute to remove the other unknown and its derivative, solve the resulting single equation

Next: Chapter 20 — Taylor Expansions and Approximation in Applied Contexts, which puts Chapters 10–11's series machinery to direct practical use.