Let a,b∈R and f:I→R continuous. The equation
(E):y′′+ay′+by=f(x)
is a second-order linear equation with constant coefficients; (H):y′′+ay′+by=0 is its homogeneous equation, and χ(r)=r2+ar+b its characteristic polynomial.
Examples
Example 5.11 (A Cauchy problem, start to finish)
Solve y′′−3y′+2y=0 with y(0)=0, y′(0)=1. The characteristic polynomial r2−3r+2=(r−1)(r−2) has the real roots 1 and 2: general solution y=λex+μe2x. The two conditions give the linear system
λ+μ=0,λ+2μ=1,
so μ=1, λ=−1:
y(x)=e2x−ex.
Check: y(0)=0; y′=2e2x−ex has y′(0)=1; and y′′−3y′+2y=(4−6+2)e2x+(−1+3−2)ex=0. Note the shape of the answer: near −∞ the slow mode −ex dominates; near +∞ the fast mode e2x does. Reading solutions as superpositions of modes with different decay or growth rates is the profitable habit — it is how the transient/steady-state split of the weekend problem is organized.
Example 5.14 (Superposition in action)
Solve y′′−y=ex+4 on R. Homogeneous: χ(r)=r2−1, roots ±1, so yh=λex+μe−x. Split the right-hand side and treat each piece by the method box. Piece ex: here γ=1 is a simple root of χ, so try y1=cxex: then y1′′−y1=c(x+2)ex−cxex=2cex, giving c=21. Piece 4: γ=0 is not a root; the constant y2=−4 works. By superposition (Theorem 5.12 (2)):
y=2xex−4+λex+μe−x,(λ,μ)∈R2.
Note how the two pieces demanded different shapes (m=1 versus m=0): the multiplicity test is applied to each exponent separately, which is the whole point of splitting the right-hand side before guessing.
Example 5.15 (The multiplicity rule at work)
Solve y′′+y′=x on R. The right-hand side is P(x)e0⋅x with P(x)=x, and γ=0 is a simple root of χ(r)=r2+r=r(r+1): so m=1, and the correct guess is yp=x(αx+β)=αx2+βx, one degree higher than P. Substituting:
yp′′+yp′=2α+(2αx+β)=2αx+(2α+β),
and identification with x gives α=21, β=−1: yp=2x2−x. General solution: y=2x2−x+λ+μe−x. Had we guessed yp=αx+β (ignoring the multiplicity), substitution would give yp′′+yp′=α, a constant — no choice of α,β can match x, and the failure is structural: constants already solve the homogeneous equation, so they are invisible to the left-hand side. The factor xm exists precisely to climb out of the homogeneous solution space.