Example: Solve the equation [Maple Math] .

First we check that this is indeed an exact equation and then we show how to find [Maple Math] .

> M:=(x,y)->1-sin(x)*tan(y);N:=(x,y)->cos(x)/(cos(y))^2;

Here Ex stands for exact.

[Maple Math]

[Maple Math]

> diff(M(x,y),y)-diff(N(x,y),x);

[Maple Math]

> simplify(%);

[Maple Math]

Since the difference is [Maple Math] , we see that the equation is an exact differential equation. Next, we find [Maple Math] by using the following formula

> Ex;

[Maple Math]

> simplify(%,trig);

[Maple Math]

> f:=unapply(Ex,(x,y));

[Maple Math]

]">