Method of variation of parameters
Encyclopedia : M : ME : MET : Method of variation of parameters
In mathematics, variation of parameters is a technique used to solve inhomogeneous ordinary differential equations. In our examples we will use second order equations for convenience, but the method works for equations of any order, as well as systems of equations.
Technique
We have a differential equation of the form- [u''+p(x)u'+q(x)u=f(x)\,]
- [L=D^2+p(x)D+q(x)\,]
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 [ u_G(x)] which we assume to be of the form
- [u_G(x)=A(x)u_1(x)+B(x)u_2(x).\,]
- [A'(x)u_1(x)+B'(x)u_2(x)=0.\,]
- [u_G'(x)=(A(x)u_1(x)+B(x)u_2(x))'=(A(x)u_1(x))'+(B(x)u_2(x))'\,]
- [=A'(x)u_1(x)+A(x)u_1'(x)+B'(x)u_2(x)+B(x)u_2'(x)\,]
- [=A'(x)u_1(x)+B'(x)u_2(x)+A(x)u_1'(x)+B(x)u_2'(x)\,]
- [u_G'(x)=A(x)u_1'(x)+B(x)u_2'(x).\,]
- [u_G(x)=A(x)u_1(x)+B(x)u_2''(x)+A'(x)u_1'(x)+B'(x)u_2'(x).\,]
- [Lu_G=A(x)Lu_1(x)+B(x)Lu_2(x)+A'(x)u_1'(x)+B'(x)u_2'(x).\,]
- [Lu_G=A'(x)u_1'(x)+B'(x)u_2'(x).\,]
- [\begin
- [\beginA'(x)u_1(x)+B'(x)u_2(x)\\A'(x)u_1'(x)+B'(x)u_2'(x)\end =\begin0\\f\end.]
- [A'(x)u_1(x)+B'(x)u_2(x)=0\,]
- [A'(x)u_1'(x)+B'(x)u_2'(x)=Lu_G=f.\,]
- [\begin
- [\beginA'(x) \\B'(x)\end=\begin
- [=\begin
So,
- [A'(x) = - u_2(x) f(x),\; B'(x) = u_1(x)f(x)]
- [A(x) = - \int u_2(x) f(x)\,dx,\; B(x) = \int u_1(x)f(x)\,dx.]
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 [Lu_G(x)] because [L] is linear.
Example usage
Let us solve- [ y''+4y'+4y=\cosh.\;\!]
- [y''+4y'+4y=0.\;\!]
- [\lambda^2+4\lambda+4=(\lambda+2)^2=0\;\!]
- [\lambda=-2,-2.\;\!]
So, we obtain u1=e-2x, and u2=xe-2x. The Wronskian of these two functions is
- [\begin e^ & xe^ \\-2e^ & -e^(2x-1)\\\end = -e^e^(2x-1)+2xe^e^ ]
- [= -e^(2x-1)+2xe^= (-2x+1+2x)e^ = e^.\;\!]
- [A(x) = - \int u_2(x) f(x)\,dx,\; B(x) = \int u_1(x)f(x)\,dx]
- [A(x) = - \int } xe^ \cosh\,dx = - \int xe^\cosh\,dx = -e^x(9(x-1)+e^(3x-1))+C_1]
- [B(x) = \int } e^ \cosh\,dx = \int e^\cosh\,dx =e^(3+e^)+C_2 ]
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.
From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.
