Solve
for all real values of the constant .
Form the characteristic equation. Substituting the trial solution gives , so
Since , the roots satisfy . Everything now hinges on the sign of , because that decides whether has real or imaginary square roots.
Case : purely imaginary roots, oscillation. Then , so . A conjugate imaginary pair with zero real part converts to sine and cosine:
The motion is bounded and periodic with period — this is the simple-harmonic case. A numerical check with gives a residual below ✓.
Case : a repeated root at zero. The equation collapses to . Integrating twice,
The double root contributes the two independent solutions and — the extra factor of is the standard repeated-root rule, and it is why the answer is a line rather than a single constant.
Case : two real roots, exponential growth and decay. Now , so are real and opposite in sign:
Solutions are unbounded (unless ) and never oscillate. A numerical check with gives a residual below ✓. Equivalently .
Collect the three cases.
Each case has exactly two arbitrary constants, as a second-order equation must. Physically is a restoring force (a spring) and is a repelling one (an inverted pendulum).
Need to solve a different problem like this? Open the solver →