We start with the homogeneous equation

.

To solve this, we simply divide by ,

,

and then integrate

,

where is an integration constant. We take the exponential on both sides

.

This yields

.

We define a new constant , so we can put the solution in the form

.

Now we look at an inhomogeneous equation

.

The idea of the *variation of constants method* is to look for a solution in a form similar to the solution of homogeneous case. Obviously, something has to change since the equation has changed. The change is that the constant is replaced by a function . So we set

.

We differentiate using the product and chain rules to find

.

and

.

Thus our differential equation becomes

so that

.

We can then find by integrating this equation.

Let us consider the following situation. If we want to find the general solution of the form

then

Consequently,

.

This leads us to an equivalent ODE

of variable instead of . Based on this observation, one can easily see that the general solution to the non-homogeneous problem has a common factor

.

This is why we need to find the general solution of the form

.

For further information, we refer the reader to the method of separation of variables in PDEs.

The result is evidently the same as what we found using the integrating factor method (see also here), but the ideas leading to the result were different. While for first order linear equations the integrating factor method and the variation of constants method are the same, the difference is in how they can be generalized. The integrating factor method can be generalized to some nonlinear equations of first order. The variation of constants method, on the other hand, can be generalized to linear equations of higher order and to linear systems.

Source: http://www.math.vt.edu/people/renardym/class_home/firstorder/node1.html

## Leave a Reply