Technique #3: Variation of Parameters:
We have dealt with non-homogeneous equations where

had the form of

. However, what if

was

?

?

? We would now need a new technique to conquer these non-homogeneous equations. That technique is known as
variation of parameters.
If we have a differential equation in the form

, we want

. But how do we find

and

?? We will substitute

into the differential equation. This will give us the following:
Since we seek

and

, we need two equations. To get these equations, we need to impose 2 conditions onto

and

The first condition is that
![L\left[y_p\right]=f(x) L\left[y_p\right]=f(x)](http://www.mathhelpforum.com/math-help/latex2/img/3a69ea8d6f259bf3fb51a25e6297aae1-1.gif)
. The second one we can apply is not given, thus, we need to come up with one.
Recall that

. Rearranging, we get

.
To avoid the appearance of the second derivatives

and

, we impose the second condition that the second sum must equal zero:
With these assumptions, the DE becomes

.
Now, we have a system of equations:
To solve this, we will use
Cramer's Rule:
If
Ax =
b is a system of
n linear equations in
n unknowns such that

, then the system has a unique solution. This solution is

,...,

,...,
where
is the matrix obtained by replacing the terms in the
column of A by the entries in matrix b.
To apply Cramer's Rule, we write the system in matrix form:
![\left[ {\begin{array}{*{20}c} {y_1 } & {y_2 } \\ {y_1^/ } & {y_2^/ } \\ \end{array} } \right]\left[ {\begin{array}{*{20}c} {u_1^/ } \\ {u_2^/ } \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} 0 \\ {f(x)} \\ \end{array} } \right] \left[ {\begin{array}{*{20}c} {y_1 } & {y_2 } \\ {y_1^/ } & {y_2^/ } \\ \end{array} } \right]\left[ {\begin{array}{*{20}c} {u_1^/ } \\ {u_2^/ } \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} 0 \\ {f(x)} \\ \end{array} } \right]](http://www.mathhelpforum.com/math-help/latex2/img/db82476e42ccf2bf1536c13cb6917cb8-1.gif)
Thus, according to Cramer's rule,
![u_1^/ = \frac{{\det \left[ {\begin{array}{*{20}c} 0 & {y_2 } \\ {f(x)} & {y_2^/ } \\ \end{array} } \right]}}{{\det \left[ {\begin{array}{*{20}c} {y_1 } & {y_2 } \\ {y_1^/ } & {y_2^/ } \\ \end{array} } \right]}} u_1^/ = \frac{{\det \left[ {\begin{array}{*{20}c} 0 & {y_2 } \\ {f(x)} & {y_2^/ } \\ \end{array} } \right]}}{{\det \left[ {\begin{array}{*{20}c} {y_1 } & {y_2 } \\ {y_1^/ } & {y_2^/ } \\ \end{array} } \right]}}](http://www.mathhelpforum.com/math-help/latex2/img/162b762ec5e190d1af1a6066dc37650f-1.gif)
and
We represent the determinant matrices as

,

, and

. Particularly,
![W_1^{} = \det \left[ {\begin{array}{*{20}c} 0 & {y_2 } \\ {f(x)} & {y_2^/ } \\ \end{array} } \right] W_1^{} = \det \left[ {\begin{array}{*{20}c} 0 & {y_2 } \\ {f(x)} & {y_2^/ } \\ \end{array} } \right]](http://www.mathhelpforum.com/math-help/latex2/img/1250e906f5ce98de7aae83a33bd43c8c-1.gif)
,
![W_2^{} = \det \left[ {\begin{array}{*{20}c} {y_1 } & 0 \\ {y_1^/ } & {f(x)} \\ \end{array} } \right] W_2^{} = \det \left[ {\begin{array}{*{20}c} {y_1 } & 0 \\ {y_1^/ } & {f(x)} \\ \end{array} } \right]](http://www.mathhelpforum.com/math-help/latex2/img/ed6976ac379893727981185697670393-1.gif)
, and
We recongnize

as the
Wronskian of

and

. Due to the linear independence of

and

,

.
We can now find

and

.
Example 19:
Solve 
.
Solve the homogeneous equation:
Thus,

.
Now that we have

and

we can use variation of parameters.
Therefore

and

.
Now find

and

.
Therefore, our particular solution will be:
My next couple posts will be on applications of non-homogeneous differential equations (in particular, the spring mass systems)...