lacunary - Mathnotes

Solution of the Nonhomogeneous Linear Differential Equation by the Method of Variation of Parameters

Given the linear differential equation:

any(n)+a(n1)y(n1)++a1y+a0y=Q(x),(22.1)

We can not use the method of undetermined coefficients unless:

  1. The coefficients are constant
  2. Q(x) is a function which has a finite number of linearly independent derivatives

We can use the method of variation of parameters to solve (21.1) when Q(x) has an infinite number of linearly independent derivatives.

For purposes of demonstration, we will work with the second order linear equation with constant coefficients:

a2y+a1y+a0y=Q(x),a20(22.2)

where Q(x) is a continuous function of x on an interval I and is 0 on I.

If two independent solutions, y1 and y2, of the related homogenous equation:

a2y+a1y+a0y=0(22.21)

are known then we can form the equation of a particular solution:

=yp(x)=u1(x)y1(x)+u2(x)y2(x),(22.22)

where u1 and u2 are unknown functions of x which are to be determined.

By taking the derivatives of yp and substituting them into (22.2) and simplifying (see book for details) we arive at:

u1y1+u2y2=0,u1y1+u2y2=Q(x)a2(22.27)

We can then solve for u1 and u2 using algebra, and then use integration to find u1 and u2. The general solution to (22.2) will then be yc+yp=yc+u1y1+u2y2.

Note that we can also use determinants to find u1 and u2:

u1=|0y2 Q(x)a2y2||y1y2 y1y2|,u2=|y10 y1Q(x)a2||y1y2 y1y2|

We can generalize this method to higher order equations - see the book for details. We can also use this method for equations where Q(x) has finite linearly independent derivatives, although the method of undetermined coefficients is usually less effort to use in those cases (however, with the method of variation of parameters, we don't have to worry about the 3 different cases we have to handle in the method of undetermined coefficients, so it can still be easier). We can also use this method to find a particular solution when the coefficients in (22.2) are continuous functions of x, provided we know two independent solutions of the related homogenous equation.