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 where K 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(1) |
Now we look at an inhomogeneous equation
y'+p(t)y=g(t). | (2) |
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.