Assume a solution of the form
. Differentiating both sides gives

with
and
.
Divide both sides by
and we have

Notice that


so the ODE is exact. Now we can look for a solution
with


Integrating the first PDE with respect to
gives

and differentiating this with respect to
gives

So this ODE has general solution

Given that
, we have

so the particular solution is


