Example of exact equation
Solve $$ 6y(y-x) \frac{dy}{dx} + 2x - 3y^2 = 0. $$
We write it as $$ (2x-3y^2)\,dx + 6y(y-x)\,dy = 0. $$ We check whether this is an exact equation: $$\begin{align*} \frac{\partial(2x-3y^2)}{\partial y} &= -6y \\ \frac{\partial(6y(y-x))}{\partial x} &= -6y \end{align*}$$ which equals. Therefore this is exact in any simply-connected domain, such as $\R$.
We need to find a function $f(x,y)$ such that $\frac{\partial f}{\partial x} = 2x-3y^2$ and $\frac{\partial f}{\partial y} = 6y(y-x)$.
Integrating the first equation, $$ f = x^2 - 3xy^2 + h(y) $$ where $h(y)$ is constant with respect to $x$.
Substituting into the second equation, $$\begin{align*} -6xy + \frac{dh}{dy} &= 6y^2 - 6xy \\ \frac{dh}{dy} &= 6y^2 \\ h &= 2y^3 + C. \end{align*}$$
Therefore the solution is $$ f(x,y) = x^2 - 3xy^2 + 2y^3 = \text{const}. $$