
Divide through the ODE by the largest power of
, assuming
:

By the chain rule,
. So substitute
and
to get

which is linear in
. Multiply both sides by
:

Now the left side is the derivative of a product, so we can condense this as

Integrate both sides with respect to
:


Solve for
:
