Variation of Parameters — Definition, Formula & Examples
Variation of parameters is a method for finding a particular solution to a nonhomogeneous linear differential equation by replacing the constants in the homogeneous solution with unknown functions and solving for them.
Given a second-order linear ODE with known homogeneous solutions and , variation of parameters constructs a particular solution , where and are determined by simultaneously solving and .
Key Formula
Where:
- = Particular solution to the nonhomogeneous equation
- = Linearly independent solutions of the homogeneous equation
- = Nonhomogeneous (forcing) term
- = Wronskian, equal to y₁y₂' − y₂y₁'
How It Works
First, solve the corresponding homogeneous equation to find two linearly independent solutions and . Next, compute the Wronskian . Then use the formulas and , and integrate each to find and . The particular solution is . The general solution is .
Worked Example
Problem: Find a particular solution to y'' + y = sec(t).
Step 1: The homogeneous equation y'' + y = 0 has solutions y₁ = cos(t) and y₂ = sin(t).
Step 2: Compute the Wronskian.
Step 3: Find u₁' and u₂', then integrate. Here g(t) = sec(t).
Step 4: Similarly for u₂.
Step 5: Assemble the particular solution.
Answer:
Why It Matters
Unlike undetermined coefficients, variation of parameters works for any continuous forcing function g(t), including sec(t), tan(t), and other terms that do not have a finite family of derivatives. It is essential in engineering and physics courses whenever forcing terms fall outside the standard exponential-polynomial-sinusoidal forms.
Common Mistakes
Mistake: Forgetting to write the ODE in standard form (leading coefficient 1) before applying the formulas.
Correction: Always divide the entire equation by the leading coefficient so that the equation reads y'' + p(t)y' + q(t)y = g(t). The g(t) used in the formulas must come from this standard form.
