4.6.9 · D3Ordinary Differential Equations

Worked examples — Second-order linear ODEs — superposition principle, general theory

2,342 words11 min readBack to topic

This page is the "no case left behind" companion to Second-order Linear ODEs — Superposition Principle & General Theory. We built the machinery there; here we run it against every kind of input a second-order linear ODE can hand you.


The scenario matrix

Read this as a checklist. Every cell below is covered by at least one worked example.

Cell What makes it special Solution shape Example
A — real distinct roots () discriminant Ex 1
B — repeated real root () discriminant , degenerate Ex 2
C — complex roots () discriminant , oscillation Ex 3
D — non-homogeneous, ordinary forcing RHS , no overlap Ex 4
E — resonance (forcing = homogeneous soln) naive guess fails, multiply by Ex 5
F — variable coefficients (Euler) depend on power-law solutions Ex 6
G — sign of discriminant at the boundary limiting behaviour as case B→A/C Ex 7
H — real-world word problem spring / RLC circuit case C in disguise Ex 8

Cells to watch for degeneracy/limits: B (roots collide), E (particular guess collides with homogeneous), G (what happens between cases).


Ex 1 — Cell A: real distinct roots


Ex 2 — Cell B: repeated (degenerate) root


Ex 3 — Cell C: complex roots (oscillation)


Ex 4 — Cell D: non-homogeneous, ordinary forcing


Ex 5 — Cell E: resonance (the guess collides)


Ex 6 — Cell F: variable coefficients (Euler equation)


Ex 7 — Cell G: the boundary between cases (limiting behaviour)


Ex 8 — Cell H: real-world spring/RLC word problem


Recall Which root case gives which shape?

Two real distinct roots → sum of exponentials ::: (Cell A) Repeated real root → ::: (Cell B, multiply by ) Complex → ::: (Cell C) Forcing equals a homogeneous solution → ::: resonance, multiply trial by (Cell E)

Back to the parent: Second-order Linear ODEs — Superposition Principle & General Theory. For the existence guarantee behind every "this captures all solutions", see Existence and uniqueness theorems for ODEs; for the vector-space framing of the two-constant family, Linear algebra — vector spaces and bases.