For a linear first-order differential equation y +P(x)y=Q(x), work on an interval where the coefficient functions are continuous. First divide by the coefficient of y, if necessary, to obtain this standard form. Method Choose the integrating factor I(x)=e (x),dx. Any one antiderivative of P may be used. Iy +IPy=IQ ddx(Iy)=IQ Iy=,dx+C y= 1I(,dx+C). Use an initial condition to determine C. Check the resulting solution in the original equation and keep the interval on which that equation is defined. Why the method works The chain rule gives I =PI. Therefore the product rule makes the left side the derivative of Iy: ddx(Iy)=Iy +I y=I(y +Py). To obtain the factor, solve I I=P. Integration gives ln|I|=,dx+c, so every nonzero constant multiple of e,dx is an integrating factor. Multiplying the factor by a nonzero constant multiplies the whole transformed equation by that constant. It does not change the solution family; choose the positive exponential factor for convenience.