I'm getting ready for my differential equations course, and I read that if you have an equation of the form
$$y' + p(x)y=f(x)$$
then this can be solved by multiplying the entire equation by an integrating factor $u(x)=e^{\int p(s)ds}$ so that it becomes
$$(uy)'=u(x)f(x)$$
then $y(x) = \frac{1}{u(x)} \int u(x)f(x) dx$.
On the other hand, if you have an equation of the form
$$M(x,y)dx+N(x,y)dy = 0$$ then first you check if the equation is exact (check if $M_y=N_x$). If the equation is not exact then you multiply $M$ and $N$ by an integrating factor $u(x,y)$ and force $[u(x,y)M(x,y)]_y=[u(x,y)N(x,y)]_x$. Then you go on to solve it.
My question is, are these two equations really the same? When we use an integrating factor in the first case it is already assumed to be of a certain form..... is it just a special case of the equation of the second type?
I suppose they could be equivalent because we could rewrite $y'+p(x)y=f(x)$ as $M(x)dx + Ndy=0$ where $M(x,y)=M(x)=[p(x)y(x)-f(x)]$ and $N(x,y)=1$ but then $M_y=0=N_x$ however we still need to manipulate the first equation by an integrating factor.