Second-Order ODE with Repeated Roots

April 13, 2026

Problem

Solve y'' - 6y' + 9y = 0. Characteristic equation (r-3)^2 = 0 gives repeated root r = 3. Write the general solution y = (C1 + C2 x) e^(3x) and show why the x e^(3x) term is needed.

Explanation

Why the repeated-root case is tricky

For two distinct roots r1r2r_1 \ne r_2 the general solution is y=C1er1x+C2er2x.y = C_1 e^{r_1 x} + C_2 e^{r_2 x}. Each exponential is linearly independent — {er1x,er2x}\{e^{r_1 x}, e^{r_2 x}\} spans a 2D solution space.

When r1=r2=rr_1 = r_2 = r, writing "y=C1erx+C2erxy = C_1 e^{r x} + C_2 e^{r x}" collapses to (C1+C2)erx(C_1 + C_2) e^{r x} — a one-parameter family. We have lost a dimension of the solution space, and the ODE is still order 2, so there must be a second linearly independent solution we're missing. The question is how to find it.

Answer: y2(x)=xerxy_2(x) = x \, e^{r x}. We'll derive this and verify it.

The given equation

y6y+9y=0y'' - 6 y' + 9 y = 0

Step 1 — Characteristic equation. r26r+9=0    (r3)2=0    r=3  (double root)r^{2} - 6 r + 9 = 0 \implies (r - 3)^{2} = 0 \implies r = 3 \; \text{(double root)}

Discriminant Δ=3636=0\Delta = 36 - 36 = 0. The two roots coincide.

Step 2 — Take y1=e3xy_1 = e^{3 x} and find a second solution.

Derivation 1 — Reduction of order

Assume y2=u(x)e3xy_2 = u(x) \, e^{3 x} for some unknown function uu. (If uu is constant, we'd get a multiple of y1y_1; we need uu to be genuinely new.) Compute: y2=ue3x+3ue3x=(u+3u)e3xy_2' = u' e^{3x} + 3 u e^{3x} = (u' + 3 u) e^{3x} y2=(u+3u)e3x+3(u+3u)e3x=(u+6u+9u)e3xy_2'' = (u'' + 3 u') e^{3x} + 3 (u' + 3 u) e^{3x} = (u'' + 6 u' + 9 u) e^{3x}

Plug into y6y+9yy'' - 6 y' + 9 y: e3x[(u+6u+9u)6(u+3u)+9u]=e3x[u+6u+9u6u18u+9u]e^{3x} \bigl[(u'' + 6 u' + 9 u) - 6 (u' + 3 u) + 9 u\bigr] = e^{3x}\bigl[u'' + 6 u' + 9 u - 6 u' - 18 u + 9 u\bigr] =e3xu= e^{3x} \, u''

Setting this to 00: u=0u'' = 0, so u(x)=a+bxu(x) = a + b x for constants a,ba, b.

Therefore y2=(a+bx)e3xy_2 = (a + b x) e^{3 x}. The ae3xa \, e^{3x} piece is just a multiple of y1y_1, so the genuinely new part is bxe3xb \, x \, e^{3x}. Take y2=xe3xy_2 = x \, e^{3 x}. ✓

This is the reduction-of-order derivation. See #199 for the general method.

Derivation 2 — Limit from distinct roots

Perturb the ODE to have distinct roots rr and r+εr + \varepsilon (ε0\varepsilon \ne 0), solution yε=C1erx+C2e(r+ε)xy_\varepsilon = C_1 e^{r x} + C_2 e^{(r + \varepsilon) x}. Choose constants smartly: e(r+ε)xerxεε0ddrerx=xerx.\frac{e^{(r + \varepsilon) x} - e^{r x}}{\varepsilon} \xrightarrow{\varepsilon \to 0} \frac{d}{d r} e^{r x} = x \, e^{r x}.

So xerxx \, e^{r x} arises as the derivative with respect to rr of erxe^{r x}, and this recipe generalises: a root of multiplicity mm contributes {erx,xerx,x2erx,,xm1erx}\{e^{rx}, x e^{rx}, x^2 e^{rx}, \ldots, x^{m-1} e^{rx}\} as a limit of nearby distinct roots.

Same answer, different viewpoint.

Step 3 — General solution. y(x)=(C1+C2x)e3x\boxed{\, y(x) = (C_1 + C_2 \, x) \, e^{3 x} \,}

Verification

y=(C1+C2x)e3xy = (C_1 + C_2 x) e^{3x} y=C2e3x+3(C1+C2x)e3x=e3x(3C1+C2+3C2x)y' = C_2 e^{3x} + 3 (C_1 + C_2 x) e^{3x} = e^{3x}(3 C_1 + C_2 + 3 C_2 x) y=3e3x(3C1+C2+3C2x)+e3x(3C2)=e3x(9C1+6C2+9C2x)y'' = 3 e^{3x}(3 C_1 + C_2 + 3 C_2 x) + e^{3x}(3 C_2) = e^{3x}(9 C_1 + 6 C_2 + 9 C_2 x)

Plug: y6y+9y=e3x[(9C1+6C2+9C2x)6(3C1+C2+3C2x)+9(C1+C2x)]y'' - 6 y' + 9 y = e^{3x}\bigl[(9 C_1 + 6 C_2 + 9 C_2 x) - 6(3 C_1 + C_2 + 3 C_2 x) + 9 (C_1 + C_2 x)\bigr]

  • xx-coefficient: 9C218C2+9C2=09 C_2 - 18 C_2 + 9 C_2 = 0
  • constant: 9C1+6C218C16C2+9C1=09 C_1 + 6 C_2 - 18 C_1 - 6 C_2 + 9 C_1 = 0

So y6y+9y=0y'' - 6 y' + 9 y = 0. \checkmark

Initial value problem

y(0)=1y(0) = 1, y(0)=5y'(0) = 5.

y(0)=C1=1y(0) = C_1 = 1. y(0)=3C1+C2=5    C2=53=2y'(0) = 3 C_1 + C_2 = 5 \implies C_2 = 5 - 3 = 2. y(x)=(1+2x)e3x.y(x) = (1 + 2 x) e^{3 x}.

Long-term: both xx and e3xe^{3x} grow, so yy \to \infty exponentially. The linear factor 1+2x1 + 2x adds a mild overshoot to the fundamental exponential growth.

Physical interpretation — critical damping (revisited)

Spring-mass-damper my+cy+ky=0m y'' + c y' + k y = 0 with c2=4mkc^{2} = 4 m k (exactly critical) has a repeated root and solutions (C1+C2t)eγt(C_1 + C_2 t) e^{-\gamma t} with γ=c/(2m)\gamma = c/(2m). The teγtt \, e^{-\gamma t} term is the signature of critical damping — the system can cross the equilibrium once (the polynomial has one root) then decays. Any less damping and it oscillates; any more and it sluggishly drags to zero.

Higher multiplicity

A triple root rr contributes {erx,xerx,x2erx}\{e^{rx}, x e^{rx}, x^{2} e^{rx}\}. A quadruple root contributes {erx,xerx,x2erx,x3erx}\{e^{rx}, x e^{rx}, x^{2} e^{rx}, x^{3} e^{rx}\}. The rule is clean: multiplicity mm → first mm polynomial multiples of erxe^{rx}.

This extends to complex repeated roots: a double pair α±iβ\alpha \pm i \beta contributes {eαxcosβx,eαxsinβx,xeαxcosβx,xeαxsinβx}\{e^{\alpha x} \cos \beta x, e^{\alpha x} \sin \beta x, x e^{\alpha x} \cos \beta x, x e^{\alpha x} \sin \beta x\} — four independent solutions.

Common mistakes

  • Writing y=C1erx+C2erxy = C_1 e^{rx} + C_2 e^{rx} for a double root. That's a one-parameter family and fails to satisfy arbitrary initial conditions.
  • Including xmerxx^{m} e^{rx} for multiplicity mm (one too many). The rule is powers 00 through m1m - 1, not up to mm.
  • Forgetting that xerxx e^{rx} is a separate solution. When applying ICs, treat C1erxC_1 e^{rx} and C2xerxC_2 x e^{rx} as independent basis vectors, even though they share the exponential factor.

Try it in the visualization

Start with a distinct-root ODE and slide the discriminant to zero. Watch the two exponentials merge, and see the xerxx \, e^{r x} solution emerge as the limiting shape. Highlight how at Δ=0\Delta = 0 exactly, the solution family is two-dimensional precisely because of the polynomial factor xx.

Interactive Visualization

Parameters

1.00
2.00
0.00
1.50
80.00
3.00
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day
Second-Order ODE with Repeated Roots | MathSpin