- Variation of parameters
-
In mathematics, variation of parameters, also known as variation of constants, is a general method to solve inhomogeneous linear ordinary differential equations. It was developed by Joseph Louis Lagrange[citation needed].
For first-order inhomogeneous linear differential equations it is usually possible to find solutions via integrating factors or undetermined coefficients with considerably less effort, although those methods leverage heuristics that involve guessing and don't work for all inhomogenous linear differential equations.
Variation of parameters extends to linear partial differential equations as well, specifically to inhomogeneous problems for linear evolution equations like the heat equation, wave equation, and vibrating plate equation. In this setting, the method is more often known as Duhamel's principle, named after Jean-Marie Duhamel who first applied the method to solve the inhomogeneous heat equation. Sometimes variation of parameters itself is called Duhamel's principle and vice-versa.
Contents
Description of method
Given an ordinary non-homogeneous linear differential equation of order n
- (i)
let be a fundamental system of the corresponding homogeneous equation
- (ii)
Then a particular solution to the non-homogeneous equation is given by
- (iii)
where the ci(x) are continuous functions which satisfy the equations
- (iv)
By substituting (iii) into (i) and applying (iv) it follows that
- (v)
ci'(x) = 0 for all x and i is the only way to satisfy the condition, since all yi(x) are linearly independent. It implies that all ci(x) are independent of x in the homogeneous case b(x)=0. )
This linear system of n equations can then be solved using Cramer's rule yielding
where W(x) is the Wronskian determinant of the fundamental system and Wi(x) is the Wronskian determinant of the fundamental system with the i-th column replaced by
The particular solution to the non-homogeneous equation can then be written as
Examples
Specific second order equation
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
From 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
Because the Wronskian is non-zero, the two functions are linearly independent, so this is in fact the general solution for the homogeneous differential equation (and not a mere subset of it).
We seek functions A(x) and B(x) so A(x)u1 + B(x)u2 is a general solution of the non-homogeneous equation. We need only calculate the integrals
that is,
where C1 and C2 are constants of integration.
General second order equation
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.
We must solve first the corresponding homogeneous equation:
by the technique of our choice. Once we've obtained two linearly independent solutions to this homogeneous differential equation (because this ODE is second-order) — call them u1 and u2 — we can proceed with variation of parameters.
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
where W denotes the Wronskian of u1 and u2. (We know that W is nonzero, from the assumption that u1 and u2 are linearly independent.)
So,
While 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.
References
- Coddington, Earl A.; Levinson, Norman (1955). Theory of Ordinary Differential Equations. New York: McGraw-Hill.
- Boyce, W. E.; DiPrima, R. C. (1965). Elementary Differential Equations and Boundary Value Problems 8th Edition. Wiley Interscience., pages 186-192, 237-241
- Teschl, Gerald. Ordinary Differential Equations and Dynamical Systems. Providence: American Mathematical Society. http://www.mat.univie.ac.at/~gerald/ftp/book-ode/.
External links
Categories:- Ordinary differential equations
Wikimedia Foundation. 2010.