If for an equation of the form
the cross derivatives of the coefficients are equal; then the equation is exact.The solution of an exact equation is:
g(x,y) = C
where g(x,y) is found by solving You do that by first solving the easier of the two, giving an integration constant that depends on the other variable. For example, solving gives an integration constant depend on y. Next you take that solution and put it into the other equation.If an equation is not exact, you may sometimes be able to find an ``integrating factor'' in a table.