Second-Order Linear Differential Equations
What you will be able to do
Given
Orientation
A guess that turns out to be forced
The first-order unit solved equations by separating variables or by an integrating factor. Neither helps with
where a second derivative appears. There is nothing to separate, and no factor makes the left side a single derivative.
The move that works is a guess: try
and since
Solving that quadratic is the method. Solving
The last two cases are where the interest lies. A repeated root supplies only one exponential, and a solution with one constant cannot satisfy the two conditions a second-order equation requires, so a genuinely different second solution has to be found. Complex roots look like a failure and are not: Euler's identity turns them into a real answer, with the complex numbers cancelling from the result exactly as the conjugate-pairing unit described.
This is also the unit that supplies what four linear-algebra units borrowed. Each used the solutions of
Definition
Why each case takes the form it does
Why
No other guess collapses so cleanly. A polynomial's derivatives lower its degree and never cancel; a sine's derivatives cycle through cosine.
Why constant coefficients are required. If
Why two constants. A second-order equation needs two integrations to undo, and each introduces a constant. The general solution is therefore a two-parameter family, which is why two conditions are needed to pin down one member, usually a value and a slope at the same point.
Equivalently, as the vector spaces unit puts it: the solution set is a vector space of dimension 2, and the two constants are coordinates in a basis.
Why the two solutions must be independent. A combination
Why a repeated root needs
Why complex roots give a real answer. Real coefficients force complex roots into conjugate pairs
and combining the conjugate pair with conjugate coefficients cancels every imaginary part. The result
What the parts of that form mean.
Theorem
The solution space has dimension two
Theorem (structure of the solution set). Let
is a vector space of dimension 2 over
Why it is a vector space. If
The zero function solves it, and closure under addition and scaling follows the same way. This is the property the vector spaces unit cites when it calls the solutions of
Why the dimension is exactly 2. Existence and uniqueness for second-order linear equations says that for each pair
That is also why two conditions are needed and sufficient: fewer leaves a family, more is generally inconsistent.
The three cases produce a basis in each.
| Basis | Independent because | |
|---|---|---|
| ratio | ||
| ratio is | ||
| ratio |
Verification of all three. Substituting the claimed general solutions back and evaluating
with : the expression is within of zero at with : withinof zero with : within of zero
The residuals are finite-difference error, not disagreement.
Why the repeated case cannot be patched with a second copy.
The inhomogeneous case. For
Derivation
The characteristic equation and the repeated-root case
The characteristic equation. Substitute
The exponential is never zero, so it may be divided out, leaving
Verification. For
Repair 1 — the repeated root. When
Differentiating with the product rule:
Substituting, with
Every term cancels. The cancellation uses
Numerical check.
Repair 2 — complex roots. When
Adding the pair and halving gives
Worked instance. For
Check. With
Why the complex numbers cancel. They entered because the quadratic had no real roots and left when the conjugate pair was recombined. That pattern of complex numbers in the working and real numbers in the answer is the same one the complex-numbers unit identifies for real-coefficient polynomials generally.
Procedure
Solving a second-order constant-coefficient equation
Input. An equation
Step 1 — Put the equation in standard form. The coefficient of
Step 2 — Write the characteristic equation. Replace
This substitution is shorthand for trying
Step 3 — Compute the discriminant
Step 4 — Write the general solution for that case.
| Case | Roots | General solution |
|---|---|---|
If there are no initial conditions, stop here: the general solution is the answer.
Step 5 — Differentiate the general solution. Both conditions are needed, and the second constrains
Step 6 — Apply both conditions. Substitute
Step 7 — Verify. Substitute the finished solution into the original equation and confirm it reduces to zero, then check both conditions. This verification is always available and does not depend on the route that produced the answer, the same point the first-order unit makes.
Where it goes wrong.
- Skipping step 1. With
the characteristic equation is , not , though here both have roots , so the error hides. It does not hide when the leading coefficient fails to divide the others. - Omitting the
factor when . The result has one effective constant and generally cannot satisfy both conditions. - Leaving the answer complex. When
,and are real and the answer contains no . An in the final line means the conjugate pair was not recombined. - Applying
twice instead of differentiating first. The second condition constrains the slope, and using the value equation again gives a dependent pair with no unique solution. - Using this method on variable coefficients.
has no characteristic equation; substitutingleaves behind.
Worked example
One initial value problem, worked in full
Problem. Solve
Step 1 — Standard form. The coefficient of
Step 2 — Characteristic equation.
Step 3 — Discriminant.
Step 4 — Roots and general solution.
The factorisation
Step 5 — Differentiate.
Step 6 — Apply both conditions. At
From the first,
and then
Step 7 — Verify. Both conditions first:
Now the equation itself. Computing
Algebraically the cancellation is exact. With
so
Each exponential's coefficient vanishes separately, as it must, since
The solution starts at 1 with zero slope, then falls:
Example
The other two cases, side by side
The worked example covered distinct real roots. Here are the repeated and complex cases on the same pattern, so the differences stand out.
---
Repeated root. Solve
Characteristic equation
Differentiating with the product rule:
At
Check.
Note what the
---
Complex roots. Solve
Characteristic equation
So
Differentiating, product rule on the envelope and the bracket together:
At
Check.
Behaviour. The solution oscillates and decays:
---
What varies across the three cases.
| Solution | Long-run | ||
|---|---|---|---|
| diverges, largest root wins | |||
| diverges, | |||
| decays to zero, oscillating |
Only the third decays, and the reason is visible in the roots alone:
Non-example
Expressions that are not solutions
The repeated root used twice. Faced with
on the grounds that a second-order equation needs two terms. Both terms do solve the equation, so nothing looks amiss. The failure is not in the terms but in the count of free constants.
Why it fails. The expression collapses:
a family with one constant wearing two names. Two symbols are on the page; only one degree of freedom exists.
A case it cannot solve. Take
The correct form
The general test. Two solutions are usable as a basis only if neither is a constant multiple of the other. Here the ratio
---
Other things that are not second-order constant-coefficient solutions.
A single exponential where two are needed.
A complex answer. Writing the solution of
Variable coefficients. For
A nonzero right side.
Figure
Under-, critically, and over-damped responses
The same mass and spring,
Under-damped,
Critically damped,
Over-damped,
The discriminant predicts which of these occurs before any solving happens, and the three pictures are what its sign means physically.
Application
Damping: the three cases as three physical behaviours
A mass on a spring with friction is described by
where
Dividing by
| Equation | Case | Behaviour | ||
|---|---|---|---|---|
| complex | under-damped — oscillates while decaying | |||
| repeated | critically damped — returns fastest, no overshoot | |||
| distinct real | over-damped — returns slowly, no oscillation |
The three root cases are not an algebraic curiosity. They are three qualitatively different physical outcomes, and the discriminant predicts which occurs before any solving is done.
Under-damped (
Over-damped (
Critically damped (
Why the sign of the real part is the whole stability question. Every solution above decays, because every root has negative real part. Reverse that, giving a root with positive real part, and the corresponding term grows without bound whatever the initial conditions, apart from the measure-zero case where its coefficient is exactly zero. This is why control engineers check root locations rather than solve: for
Undamped (
The same mathematics elsewhere. An