Method of variation of parameters
From Exampleproblems
In mathematics, variation of parameters is a technique used in solving certain second order linear inhomogeneous ordinary differential equations. Variation of parameters is not commonly used in pure mathematics, but is a useful tool in engineering applications.
Technique
We have a differential equation of the form
and we define the linear operator
where D represents the differential operator. We therefore have to solve the equation Lu(x) = f(x) for u(x), where L and f(x) are known.
Suppose we have two linearly independent solutions to the given differential equation, u1 and u2. Let W be the Wronskian of these two functions, and W must be nonzero since we have supposed the solutions are linearly independent.
Now, we seek the general solution to the differential equation uG(x) which we assume to be of the form
Here, A(x) and B(x) are unknown and u1(x) and u2(x) are the solutions to the homogeneous equation. Observe that if A(x) and B(x) are constants, then LuG(x) = 0. We desire A=A(x) and B=B(x) to be of the form
Now,
and since we have required the above condition, then we have
Differentiating again (omitting intermediary steps)
Now we can write the action of L upon uG as
Since u1 and u2 are solutions, then
We have the system of equations
Expanding,
So the above system determines precisely the conditions
We seek A(x) and B(x) from these conditions, so, given
we can solve for (A′(x), B′(x))T, so
So,
Whilst homogeneous equations are relatively easy to solve, this method allows the calculation of the coefficients of the general solution of the inhomogeneous equation, and thus the complete general solution of the inhomogeneous equation can be determined.
Note that A(x) and B(x) are each determined only up to an arbitrary additive constant (the constant of integration); one would expect two constants of integration because the original equation was second order. Adding a constant to A(x) or B(x) does not change the value of LuG(x) because L is linear.
Example usage
Let us solve
We want to find the general solution to the differential equation, that is, we want to find solutions to the homogeneous differential equation
Form the characteristic equation
Since we have a repeated root, we have to introduce a factor of x for one solution to ensure linear independence.
So, we obtain u1=e-2x, and u2=xe-2x. The Wronskian of these two functions is
We seek functions A(x) and B(x) so A(x)u1+B(x)u2 is a general solution of the inhomogeneous equation. We need only calculate the integrals
that is,
where C1 and C2 are constants of integration.
A note on first-order differential equations
Variation of parameters may also be used for first-order differential equations, though other methods such as integrating factors and undetermined coefficients are usually used to obtain the same results with considerably less effort.
