
Let

, so that

. Then the ODE becomes linear in

with

Find an integrating factor:

Multiply both sides of the ODE by

:

The left side can be consolidated as a derivative:

Integrate both sides with respect to

to get

where the right side can be computed with a simple substitution. Then

Back-substitute to solve for

.
