Introduction
The method of variation of parameters is to change a constant value parameter like into a variable function , and see whether we can cook up an appropriate so that the solution is still a solution with this variable parameter .
Discovering a second solution
Suppose we are given a single solution to the homogeneous equation . We know that is also a solution, but it isn’t independent of . We would like to find another, independent, solution which will span (along with ) the complete set of solutions.
Let us propose the hypothesis that there is a solution for some function of .
This solution will be independent of provided is not constant. The trick is to supply some additional constraints on that make it feasible to solve for what must be, given that solves the equation. These constraints emerge from the process of plugging into the equation and expanding the product and chain rules.
which we continue to solve as by separation of variables:
(We have allowed an abuse of notation by letting indicate any particular antiderivative, understood to be a function of .) By running these equations backwards, we find that if , then is indeed a second solution.
This method always works! That is, it provides a second solution in terms of a first solution and two integrations.
This method is enough to explain the factor appearing in our secondary solutions to linear equations with constant coefficients and repeated roots:
Particular solution of inhomogeneous
The same strategy, with a complication, will provide a particular solution to an inhomogeneous equation by variation of the parameters of the complete set of solutions to its corresponding homogeneous equation.
Suppose is the complete family of solutions to . We seek a particular solution to . Let us propose the hypothesis that a particular solution has the form
As before, we substitute this form for into the equation and eliminate the consequences of and being solutions. We compute:
Now for the new complication of this method. It will be very convenient to add the additional constraint that . This is a constraint on the possibilities we are hypothetically contemplating for , meaning for and . We are not required to add this constraint, but we will discover that it is not too strong in the sense that we can always succeed in finding a solution with this constraint, and it greatly simplifies the algebra, so we do so. The first terms in brackets in the expressions for and therefore disappear.
Plugging the rest back into the equation, we find:
So it will be enough to solve this last equation simultaneously with our constraint equation, namely to solve the system:
Given , this is a simple system of linear equations in two unknowns and we can solve for them explicitly:
Therefore, setting
we have a solution .