There's probably a more elegant way, but this does work:
This is essentially a Bernoulli equation, so if we go ahead and letwe obtain a linear equation:
So
Now,depends only on x, so the integrating factor will be:
Sois an exact differential equation.
Thus
or
Thus
-Dan