Superposition Principle for Linear ODE
Problem
If y1 and y2 both solve y'' + y = 0, show that c1 y1 + c2 y2 is also a solution. Animate the sum of cos x and sin x combining into a new oscillation.
Explanation
The superposition principle
The superposition principle is the single most useful property of linear ODEs. It says:
If and are both solutions of a linear homogeneous ODE , then so is every linear combination , for any constants .
It's the reason the general solution is built as a sum of basis solutions. It's why Fourier series make sense. It's why linear circuits decompose into modes. Almost every computational technique for linear ODEs — characteristic equation, Laplace transform, variation of parameters — leans on this principle to assemble the final answer from simpler pieces.
Why it works — linearity unwrapped
A linear operator is one that respects scalar multiplication and addition:
For the operator (and more generally any with ), this linearity is a direct consequence of the linearity of differentiation: , and similarly for higher derivatives.
If both and satisfy , then so the linear combination is also a solution.
Critical: this is for homogeneous equations . For non-homogeneous , superposition holds in a slightly different form (see below).
The given problem
Basis: , (both solve the equation; see #184 for the characteristic-equation derivation).
Step-by-step verification
Consider .
Therefore
Linear combination works for all .
Applications — why superposition rules linear theory
1. General solution = linear combination of a basis. For a linear homogeneous -th order ODE, the solution space is -dimensional (see #195 — the Wronskian is nonzero for a linearly independent basis). Every solution is for some basis . Without superposition, the solution space wouldn't be a vector space.
2. Non-homogeneous = particular + homogeneous. For , if is any particular solution and solves , then solves . The general solution is .
3. Multiple forcing terms. For , find with and with ; then solves the sum. This is the principle of superposition of forces in physics (linear response to multiple sources).
4. Fourier / spectral methods. Decompose a complicated forcing into a sum of simple waves (sines/cosines, exponentials, eigenfunctions), solve for each piece, sum. Only possible because the linear operator distributes over sums.
5. Linear circuits and filters. The response of a linear circuit to a sum of inputs is the sum of responses. That's why you can break a complicated signal into frequency components, filter each, and recombine.
What breaks for non-linear ODEs
Consider (a non-linear first-order ODE). If and both solve it, their sum probably doesn't: but we'd need . Missing the cross term .
Non-linear ODEs have no general superposition. This is why they're so much harder — you can't build solutions from simpler pieces in a general way.
A more complete statement (general linearity)
For the linear operator acting on scalar-valued functions, the following are equivalent:
- is linear: for all smooth and scalars .
- The set of solutions of is a vector space (closed under linear combinations).
- The solution set of is an affine subspace — a shift of the vector space of homogeneous solutions.
All three statements are the formal expression of superposition at different levels of abstraction.
Wronskian recap
For two solutions of a linear homogeneous 2nd-order ODE, Wronskian at a point ⇒ they are linearly independent ⇒ they form a basis of the solution space ⇒ every solution is a superposition (see #195).
Cautionary example — superposition needs both homogeneous ingredients
Let . Suppose and . Do these satisfy ?
. So is not a homogeneous solution (it's a non-homogeneous one for ). Superposition won't give a valid homogeneous combo from these.
Moral: before applying superposition, verify each ingredient solves .
Initial-value problem — assembling the solution
For with , :
Two pieces of initial data pick out one member of the 2-parameter family.
Equivalent amplitude–phase form:
The sum of two sinusoids with the same frequency is another sinusoid — nothing new is added by the superposition beyond the 2D space spanned by .
Common mistakes
- Forgetting that superposition fails for non-linear ODEs. A common bug is applying it to "Riccati" or "Bernoulli" equations without first linearising.
- Superposing non-homogeneous solutions. Two solutions of don't add to give another solution of ; they give . The difference of two solutions of is homogeneous.
- Using linear combinations across different ODEs. Superposition is within one linear operator's solution space — combining solutions of different ODEs gives nothing useful.
- Mistaking the principle for additivity of initial conditions. Be careful: the IVP , , has a unique solution; superposition is about adding solutions, not about adding initial conditions.
Try it in the visualization
Slide and independently and watch shift its amplitude and phase continuously — the 2D space of solutions made visible. Toggle to see the amplitude–phase envelope live-update.
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.