One can solve equation (\ref{integratingfactor}) by multiplying through by \(\mu(x)\) or \(\mu(y)\), and then forcing that the mixed partials of \(F\) be equal. Note that multiplying through by \(\mu(x,y)\) leads to a partial differential equation, which is not desired in this context.
In this derivation, multiply through by \(\mu(x)\),
\begin{align*}
\mu(x)M(x,y)dx + \mu(x)N(x,y)dy = 0\,,
\end{align*}
and then set
\begin{align}
\frac{\partial}{\partial y}[\mu(x)M(x,y)] &= \frac{\partial}{\partial x}[\mu(x)N(x,y)] \notag\\
\mu \frac{\partial M}{\partial y} &= \frac{d\mu}{dx} N + \mu \frac{\partial N}{\partial x}\notag\\
\frac{d\mu}{dx} N&= \mu \bigg[\frac{\partial M}{\partial y} - \frac{\partial N}{\partial x} \bigg] \notag\\
\frac{1}{\mu}\frac{d\mu}{dx} &= \frac{\partial M/\partial y - \partial N/\partial x}{N}\tag{i}\label{interatheraway}
\end{align}
Equation (\ref{interatheraway}) can be integrated and solved for \(\mu\). Thus \(\mu\) is called the integrating factor, and this method is called the ''integrating factor method.''
Note that the right-hand side of equation (\ref{interatheraway}) must be only a function of \(x\), in the case above. If it is not (i.e., if it is a function of \(y\) as well), then try multiplying the original equation by \(\mu_y\), for which
\begin{align*}
\frac{1}{\mu}\frac{d\mu}{dy} &= \frac{\partial N/\partial x- \partial M/\partial y}{M}
\end{align*}