The Method of Variation of Parameters for Higher Order Nonhomogeneous Differential Equations
Recall from The Method of Variation of Parameters page, we were able to solve many different types of second order linear nonhomogeneous differential equations with constant coefficients by first solving for the solution to the corresponding linear homogeneous differential equation for $y_h(t) = Cy_1(t) + Dy_2(t)$ (where $y_1(t)$ and $y_2(t)$ form a fundamental set of solutions), and then substituting the constants $C$ and $D$. We then assumed that a particular solution for the nonhomogeneous differential equation was of the form $Y(t) = u_1(t)y_1(t) + u_2(t)y(t)$, and we solved the following system of linear equations for $u_1'(t)$ and $u_2'(t)$:
(1)After we obtained the functions $u_1'(t)$ and $u_2'(t)$, we integrated the results to obtain $u_1(t)$ and $u_2(t)$, and then plugged them into the formula $Y(t) = u_1(t)y_1(t) + u_2(t)y_2(t)$ for a particular solution (the existence and uniqueness of a solution is guaranteed from $y_1(t)$ and $y_2(t)$ forming a fundamental set of solutions). The general solution to our second order nonhomogeneous differential equation was then:
(2)As well will now see - the method of variation of parameters can also be applied to higher order differential equations. The process can be derived similarly. Suppose that we have a higher order differential equation of the following form:
(3)We first solve the corresponding homogeneous differential equation to get $y_h(t) = C_1 y_1(t) + C_2y_2(t) + ... + C_ny_n(t)$. The functions $y_1(t)$, $y_2(t)$, …, $y_n(t)$ form a fundamental set. Assume a particular solution to the nonhomogeneous differential equation is of the form:
(4)We then solve the following system of equations for the functions $u_1'(t)$, $u_2'(t)$, …, $u_n'(t)$.
(5)Once again, a unique solution is guaranteed since $y_1(t)$, $y_2(t)$, …, $y_n(t)$ form a fundamental set of solutions implies the Wronskian $W(y_1, y_2, ..., y_n)$ is nonzero. Furthermore, it should be noted that the system above can be solved for with row reduction (if the process is simple) or more commonly by applying Cramer's rule once again.
We then integrate each of the functions $u_1'(t)$, $u_2'(t)$, …, $u_n'(t)$ to obtain $u_1(t)$, $u_2(t)$, …, $u_n(t)$. Lastly, we obtain that $Y(t) = u_1(t)y_1(t) + u_2(t)y_2(t) + ... + u_n(t)y_n(t)$ as our particular solution.
We will now look at an example of using the method of variation of parameters for higher order nonhomogeneous differential equations.
Example 1
Solve the third order linear nonhomogeneous differential equation $y''' + y' = \tan t$ using the method of variation of parameters.
For the corresponding homogeneous differential equation $y''' + y' = 0$ we have that the characteristic equation is $r^3 + r = 0$ which can be factored as $r(r^2 + 1) = 0$ and so $r = 0$ or $r = \pm i$. The solution to the corresponding homogeneous differential equation is therefore:
(6)Furthermore, $y_1 = e^{0t} = 1$, $y_2 = e^{0t} \cos t= \cos t$, and $y_3 = e^{0t} \sin t = \sin t$.
Now let's try to find a particular solution to this differential equation. We have that:
(7)Thus we want to solve the following system of equations:
(8)We will use Cramer's rule in order to solve for $u_1'$, $u_2'$, and $u_3'$. We first find the corresponding Wronskian:
(9)Now we have that:
(10)We will now integrate $u_1'$, $u_2'$, and $u_3'$ to get:
(13)Thus we have that:
(16)