next up previous
Next: The method of undetermined Up: Linear First Order Differential Previous: Linear First Order Differential

The variation of constants method

We start with the homogeneous equation

y'+p(t)y=0.

To solve this, we simply divide by y,

y'/y+p(t)=0,

and then integrate

\begin{displaymath}
\ln\vert y\vert+\int^t p(s)\,ds=K,\end{displaymath}

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

\begin{displaymath}
\vert y\vert\exp(\int^t p(s)\,ds)=e^K.\end{displaymath}

This yields

\begin{displaymath}
y=\pm e^K\exp(-\int^t p(s)\,ds).\end{displaymath}

We define a new constant $C=\pm e^K$, so we can put the solution in the form  
 \begin{displaymath}
y=C\exp(-\int^t p(s)\,ds).\end{displaymath} (1)

Now we look at an inhomogeneous equation

 
y'+p(t)y=g(t). (2)

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

\begin{displaymath}
y=C(t)\exp(-\int^t p(s)\,ds).\end{displaymath}

We differentiate using the product and chain rules to find

\begin{displaymath}
y'=C'(t)\exp(-\int^t p(s)\,ds)-C(t)p(t)\exp(-\int^t p(s)\,ds),\end{displaymath}

and

\begin{displaymath}
y'+p(t)y=C'(t)\exp(-\int^t p(s)\,ds).\end{displaymath}

Thus our differential equation becomes

\begin{displaymath}
C'(t)\exp(-\int^t p(s)\,ds)=g(t),\end{displaymath}

so that

\begin{displaymath}
C'(t)=g(t)\exp(\int^t p(s)\,ds).\end{displaymath}

We can then find C(t) by integrating this equation.

The result is evidently the same as what we found using the integrating factor method, 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.


next up previous
Next: The method of undetermined Up: Linear First Order Differential Previous: Linear First Order Differential
Michael Renardy
1998-08-27