Higher Order Linear Nonhomogeneous Differential Equations with Variable Coefficients
To complete the picture we must also consider the nonhomogeneous equations with variable coefficients. Equations of this type can be written as
where the coefficients a1(x), ..., an(x) and the right-hand side f (x) are continuous functions on some interval [a, b].
With the help of a linear differential operator L this equation can be written in compact form:
where L includes the operations of differentiation, multiplication by the coefficients ai (x), and addition.
As it is known, the general solution \(y\left( x \right)\) of a nonhomogeneous differential equation is the sum of the general solution \({y_0}\left( x \right)\) of the corresponding homogeneous equation and a particular solution \({y_1}\left( x \right)\) of the nonhomogeneous equation:
Methods of finding the general solution of the homogeneous equation are considered here. Therefore, we focus our attention on constructing solutions of the nonhomogeneous equations.
The method of variation of constants also known as the Lagrange method is commonly used for this purpose. With this method, we can obtain the general solution of the nonhomogeneous equation, if the general solution of the homogeneous equation is known.
Method of Variation of Constants
Suppose we want to solve an \(n\)th order nonhomogeneous differential equation:
We will assume that the general solution of the associated homogeneous equation is found and expressed by the formula
containing \(n\) arbitrary constants \({C_1},\) \({C_2}, \ldots ,\) \({C_n}.\)
The idea of this method is to replace the constants \({C_1},\) \({C_2}, \ldots ,\) \({C_n}\) with continuously differentiable functions \({C_1}\left( x \right),\) \({C_2}\left( x \right), \ldots ,\) \({C_n}\left( x \right),\) which are chosen so that the solution
satisfies the nonhomogeneous differential equation.
The first derivatives of the functions \({{C_i}\left( x \right)}\) are determined from the system of \(n\) equations of the form
Note that the main determinant of this system is the Wronskian \(W\left( x \right)\) constructed on the basis of the fundamental system of solutions \({Y_1},\) \({Y_2}, \ldots ,\) \({Y_n}.\) As the solutions \({Y_1},\) \({Y_2}, \ldots ,\) \({Y_n}\) are linearly independent, the Wronskian is not zero.
The unknown derivatives \({C'_i}\left( x \right)\) are calculated by Cramer's rule:
where the determinant \({{W_i}\left( x \right)}\) is obtained from the Wronskian \(W\left( x \right)\) by replacing the \(i\)th column with the column \(\left[ {0,0, \ldots, f\left( x \right)} \right]\) on the right side.
Further, the expressions for \({C_i}\left( x \right)\) can be found by integration:
Here \({A_i}\) denote constants of integration.
As a result, the general solution of the nonhomogeneous equation can be written as
In the last expression, the first sum corresponds to the general solution \({y_0}\left( x \right)\) of the homogeneous equation (with arbitrary numbers \({A_i}\)), and the second sum describes a particular solution \({y_1}\left( x \right)\) of the nonhomogeneous equation.