Nonhomogeneous Linear Second Order Equations — Formula & Example
A nonhomogeneous linear second order equation is a second order linear differential equation with a nonzero forcing term on the right side, such as . You solve it by adding the general solution of the matching homogeneous equation to any one solution of the full equation.
An equation of the form , where is not identically zero. On any interval where are continuous and , every solution has the form . Here is the general solution of the associated homogeneous equation (with ), and is any single particular solution.
Key Formula
Where:
- = Forcing term. It must be nonzero for the equation to be nonhomogeneous.
- = Two independent solutions of the homogeneous equation with g = 0
- = One particular solution of the full equation (second line: variation of parameters)
- = Wronskian of and . It is nonzero because the two solutions are independent.
- = Arbitrary constants fixed by initial or boundary conditions
Worked Example
Problem: Find the general solution of .
Step 1: Solve the associated homogeneous equation . Its characteristic equation factors, giving roots and .
Step 2: Find a particular solution. The forcing term is a degree-1 polynomial, and no polynomial solves the homogeneous equation. So guess . Then and . Substitute and match coefficients. Variation of parameters, with , gives the same .
Step 3: Add the two pieces. Check the particular solution: .
Answer: , where and are arbitrary constants.
Why It Matters
Forced vibrations are modeled by . Examples include a car suspension driven by a bumpy road, or an RLC circuit driven by an AC voltage. In these models with damping (), is the transient response that dies out, and is the steady-state response. The steady-state response is how engineers predict resonance.
Common Mistakes
Mistake: Guessing a particular solution that already solves the homogeneous equation. For example, someone tries for .
Correction: That guess makes the left side equal , so no value of works. Multiply the guess by and use , which gives , so . If that still overlaps a homogeneous solution, multiply by again. Variation of parameters avoids this issue entirely.
