.

This is a Bernoulli Equation. So make the substitution .

Then and

.

Then the DE becomes

.

This is now first order linear, so use the integrating factor method.

The integrating factor is

.

Multiplying through by the integrating factor gives

.

Since