Where does the characteristic equation come from?
Assume y=e^(rx), substitute, and cancel e^(rx) to get r²+ar+b=0.
How to tell the three cases?
By the discriminant Δ=a²−4b: positive two real roots, zero repeated root, negative conjugate complex roots.
Why multiply by x for a repeated root?
e^(rx) alone gives one independent solution; the second is xe^(rx) by reduction of order.
Why sin and cos for complex roots?
The real and imaginary parts of e^((α+βi)x) are e^(αx)cos βx and e^(αx)sin βx.
What if the coefficient of y″ is not 1?
Divide through by it first to obtain the standard form.