Show that if $\frac{N_x - M_y}{M} = Q$, where Q is a function of $y$ only, the the differential equation
$M + Ny' = 0$ (*)
has an integrating factor of the form
$u(y) = exp$$\int Q(y) \, dy$.
(The subscripts in the first equation are partial derivatives). I've done quite a few examples and see that it indeed works, but I'm not sure how to prove this general formula.
(So we need to show that multiplying through by $u(y)$ makes (*) exact.)