Variation of Parameters
Variation of parameters is a general method for finding particular solutions to nonhomogeneous linear differential equations. Unlike undetermined coefficients, it works for any continuous forcing function.
Given the nonhomogeneous equation:
with homogeneous solutions and , the method seeks a particular solution of the form:
where and are functions to be determined (the "parameters" that "vary").
Derivation of the Method
The idea is to replace the constants in with functions and .
Imposing the constraint:
and requiring to satisfy the differential equation yields:
These two equations can be solved for and using Cramer's rule.
Formula for Particular Solution
For the standard form :
where is the Wronskian.
Integrating:
Solve .
Homogeneous solution: gives , .
Wronskian:
Using the formulas with :
Integrating:
Therefore:
General solution:
The variation of parameters method always works for any continuous , but the required integrals may not have closed forms. In contrast, undetermined coefficients is limited to special forms of but is often computationally simpler.
Consider .
Method 1 - Variation of Parameters:
Homogeneous solutions: ,
Wronskian:
Method 2 - Undetermined Coefficients (with resonance):
Since is in , try .
Substituting gives , so .
(Note: We can drop the term as it's part of .)
Both methods work, but undetermined coefficients is simpler here.
The Wronskian is never zero when and are linearly independent solutions. This guarantees that the formulas for and are well-defined.
Variation of parameters is the most general method for solving nonhomogeneous linear ODEs and provides theoretical insight into the structure of solutions.