Let's take the following differential equation:
A(x,y)dy+B(x,y)dx⇒dxdy=0=−A(x,y)B(x,y).
It would be a very nice coincidence that there was a function F(x,y) such that
dxdy=−∂y∂F(x,y)∂x∂F(x,y)=−∂x∂y.
A differential equation is said to be exact iif there exists a C2 function F(x,y) such that A(x,y)=∂y∂F(x,y) and B(x,y)=∂x∂F(x,y).
To prove that such a function exists we can use partial derivatives:
A(x,y)=∂y∂F(x,y)B(x,y)=∂x∂F(x,y)⇒∂x∂A(x,y)=∂x∂y∂2F(x,y)⇒∂y∂B(x,y)=∂y∂x∂2F(x,y).
As F is C2, we can conclude
∂y∂x∂2F(x,y)⇒∂x∂A(x,y)=∂x∂y∂2F(x,y)=∂y∂B(x,y).
And that is the most important requirement for saying a differential equation is exact.
When the function F is found, the solution to the differential equation is given, implicitly, by
F(x,y)=0.
Solve the differential equation
ln(x2y)dy+x2ln(y)dx=0.
On the way to prove that is an exact equation is to take
∂x∂(ln(x2y))xy2=∂y∂(x2ln(y))=xy2.
So it is exact, and we know
ln(x2y)=∂y∂F(x,y)⇒F(x,y)=∫ln(x2y)dy=yln(x2y)−∫dy=y(ln(x2y)+1)+C(x)
and
x2ln(y)x2ln(y)C(x)F(x,y)=∂x∂F(x,y)=x2+C′(x)=2ln(x)ln(y)−2ln(x)+C=y(ln(x2y)+1)+2ln(x)(ln(y)+1)+C.
So the solution to the differential equation is given by
y(ln(x2y)+1)+2ln(x)(ln(y)+1)+C=0. □