Reduction of Order
Problem
Given that y1 = e^x solves y'' - 2 y' + y = 0, find a second linearly independent solution using reduction of order. Show that y2 = x e^x emerges naturally.
Explanation
When reduction of order is the right tool
If you already know one solution of a second-order linear homogeneous ODE, reduction of order lets you find a second, linearly independent solution without guessing. It works for any second-order linear homogeneous ODE (constant or variable coefficients), making it more general than the characteristic-equation trick (#181–#185) which only handles constant coefficients.
The key idea: guess with non-constant and plug in. The ODE collapses from a 2nd-order equation on to a 1st-order equation on — hence the name, "reduction of order."
This also provides the cleanest derivation of why is the second solution at a repeated root (#185).
The given problem
Given that solves this. (You can verify: ✓. The characteristic equation is , so this is a repeated-root case with .)
Step-by-step recipe
Step 1 — Ansatz.
Assume for some unknown function .
Step 2 — Compute derivatives (product rule).
Step 3 — Substitute into the ODE.
Setting this to zero:
Integrate twice: where are integration constants.
Step 4 — Assemble.
The constant term is just a scalar multiple of — it's not linearly independent. Throw it away (set ) and take the non-constant part . Pick :
Verification
, , .
Plug:
General solution
With both independent solutions in hand:
Exactly the repeated-root form we claimed in #185, now derived rather than pulled from a table.
Why it always works — the structural reason
For a 2nd-order linear homogeneous ODE with known solution , plug in and simplify. The coefficient of is (since solves the ODE), which kills the -term. What survives is a 2nd-order linear ODE in with no term — equivalent to a 1st-order ODE in :
Divide by (where ):
Substitute :
This is a first-order linear ODE in , solved by the integrating-factor formula:
Abel's formula emerges! Integrating gives , and .
In our problem , , so and :
Giving — same answer, via the general formula.
Variable-coefficient example
Cauchy-Euler (see #188). Indicial , second solution by inspection. Let's get it by reduction of order instead.
. Then , . Substitute:
Set to zero and divide by : , i.e. . Let : . Integrate: . Take (dropping constants):
Comparison to the limit derivation (for repeated roots)
In #185 we also derived as a limit of the distinct-roots formula:
Reduction of order works without needing to perturb and take a limit — it's a direct algorithm. Both perspectives produce the same answer, but reduction of order is the preferred method in practice because it:
- Works for any known , not just exponentials.
- Works for variable-coefficient ODEs.
- Doesn't require the perturbation setup.
Common mistakes
- Trying with constant. That just gives another multiple of . The non-trivial content lives in the non-constant part of .
- Forgetting to discard the redundant constant. After solving for , the part of that's a constant times just produces a multiple of ; drop it.
- Algebra errors in the product rule. has three terms from the second derivative of a product — plus , , and — and they combine with the ODE's and to produce the simplification. Track each piece.
- Dividing by near its zeros. If has zeros inside your interval, the derivation breaks there and you need to work on connected sub-intervals where .
Try it in the visualization
Slide a "perturbation" parameter that moves the two roots of the characteristic equation apart. At the merged position, watch how the usual distinct-root solution bifurcates into the basis — reduction of order shown as a continuous limit.
Interactive Visualization
Parameters
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.