ODE Exact Equation Theorem

Theorem:

Given an ODE in the form of M(x,y)dx+N(xy)dy=0

If My and Nx are constants in x and y on an open set S,
then this ODE is exact on S iff My=Nx

dF=Fxdx+Fydy

with the goal to find such an F