The standard form of a linear first order differential equation is (dy)/(dx) + P(x)y = Q(x). The equation contains the variable y and its first derivative. P(x) and Q(x) are either numeric constants or function of x. It is generally not variable separable. To solve for y, we first let I(x) be the **integrating factor** that will help us solve the equation. Multiply throughout by I(x) and we get I(x)(dy)/(dx) + I(x)P(x)y = I(x)Q(x) Now, if we choose I(x) such that I'(x) = I(x)P(x), note that the equation can be re-written as I(x)(dy)/(dx) + I'(x)y = I(x)Q(x) Use the product rule in reverse: d dx(I(x)y)=I(x)Q(x). I(x)y = I(x)Q(x), dx And hence y = (1)/(I(x)) I(x)Q(x), dx. This is of course provided we know what the integrating factor I(x) is. To find I(x), consider I'(x) = I(x)P(x) (by construction) (I'(x))/(I(x)) = P(x) (I'(x))/(I(x)), dx = P(x), dx ln|I(x)| = P(x), dx I(x) = e P(x), dx or -e P(x), dx However we can just take I(x) = e P(x), dx without loss of generality (because of symmetry). **Summary** To solve a first order linear differential equation of the form (dy)/(dx) + P(x)y = Q(x), - Find the integrating factor I(x) using the formula I(x) = e P(x), dx - Multiply throughout by the integrating factor and observe that the LHS can be re-written as the derivative of the product I(x)y - Integrate both sides directly.