Variation of Parameters
Take and let the constants become functions: . Forcing the equation to hold pins down and , so two integrals give a particular solution for any forcing , not just the nice ones.
What the symbols mean
- Wronskian
y₁y₂′ − y₁′y₂.
- Forcing
With the equation written as y″ + p y′ + q y = g (leading coefficient 1).
Explanation
Variation of parameters is simply a method for finding a system's response to any outside push at all, even ones the guessing method can't handle. The name means exactly what it does: the constants (parameters) and in are allowed to vary with time. So you build the response to the push out of the motions the system already makes on its own, just in amounts that change from moment to moment. The formula looks scary, but it's only a few parts: and (the two homogeneous solutions you already found), (the push), and (the Wronskian, which you met last lesson). Each integral works out how much of or you need at each moment. Two integrals and you're done; bear with the setup, it's shorter than it looks.
The method that always works. Undetermined coefficients needs to be a polynomial, an exponential, a sine or cosine, or a product of these. Variation of parameters doesn't care what is: once you know , it produces a for any continuous forcing, , , , anything. In that sense it's the universal method for linear nonhomogeneous equations. The price is two integrals, which can get ugly, so when has one of the nice forms, undetermined coefficients is usually faster.
Most of the time you'll simply be asked to solve a nonhomogeneous second order linear equation, either with a method that's named or with whichever you choose, depending on how generous your professor is feeling. Knowing both means you're covered either way.
Where it comes from. It's the same move as reduction of order. The homogeneous solution is with constant , and constants can only ever give on the right side. So let them vary: try . Two unknown functions is more freedom than one equation needs, so we're allowed to ask for something extra. We ask for , which keeps free of terms and stops from ever showing up. Substituting into , the terms without derivatives on cancel (because and are solutions), and what's left is
Those two conditions are a 2×2 linear system for and . Notice that its determinant is the Wronskian , the same one that let us match initial conditions. It's never zero, so the system always has a solution, and solving it gives the formula above.
A common mistake. In an equation like , it's tempting to read off because that's what's sitting on the right. It isn't: the formula was derived with leading coefficient 1, so divide through first. Here that gives , and skipping the division would leave your answer off by a factor of .
Steps:
- Divide by the leading coefficient so the equation reads .
- Find and their Wronskian .
- Compute and (constants not needed).
- , and the general solution is .
See it
Worked examples
Find a particular solution of .
- 1
The roots of are , so and , with . The secant isn't on the undetermined coefficients table, so this is a job for variation of parameters.
Practice
Type your answer and check it. Solve them all to complete the lesson.
A kg mass on a spring with stiffness N/m and no damping is driven by a force newtons for . It starts at rest at its equilibrium position. Find its position .
What is the Wronskian of and ?
Find a particular solution of (any one works).
Use variation of parameters with , to find a particular solution of .
When is variation of parameters needed instead of undetermined coefficients?
Use variation of parameters to find the most general solution of on . Use and for the constants.
Find a particular solution of .
Find a particular solution of .
Find a particular solution of for .
The hardest one here. Get it, and you've got this lesson.
Solve for , with and .
Where it's used
Variation of parameters leads to Green's functions, which give the response of a system to any input by integrating its response to a single kick.