Disclaimer: I kind of work through and understand the solution a bit as I typed this problem out and my question morphs from one of "how does the author get the solution they've presented?" to one of "Is this procedure standard for this type of problem?"
I'm working through a variable mass projectile example in a classical mechanics text involving the following integral $$\int^{v(z)}_0 \frac{dv}{\frac{g}{v} - \alpha v}$$ The author doesn't provide a step-by-step solution to the problem but precedes the solution to the integral by saying "Integrating (test by substitution) the velocity solution is" $$-\frac{1}{2\alpha}\ln(g - \alpha v^{2}) \vert^{v(z)}_0$$ I am a little confused as to how we got the solution and was hoping for some insight.
To me, this form of solution looks like a u-substitution where we got the integral in the form $\frac{du}{u}$ however when performing a u-substitution with $u = \frac{g}{v}- \alpha v$ we find that $du = -\frac{g}{v^2} - \alpha\ dv \implies dv = \frac{du}{-\frac{g}{v^2} - \alpha}$ so that our integral becomes $$\int \frac{du}{-\frac{u}{v}u}$$
I see that the argument of the natural logarithm is $v(\frac{g}{v} - \alpha v)$ so I suspect that the author carried out this integration with this u-substitution instead of using the original since this seems to work when considering $du = 0 - 2\alpha v dv$. Then the extra $v$ term gets canceled out by the fact that when transferring from the $v$ integral to the $u$ integral we have $\frac{u}{v}$ in the denominator.
Question: So, my question is, when would one use this method? Is it commonplace to use in integrals which involve polynomials where the lowest order term is $-1$? Would you use a similar method if the lowest order term was say $-3$ but instead, multiplying the original expression by $v^3$? Is this even a "method" or just a trick that happened to work for this one integral? This problem had me stumped for a while but typing this up I finally see the solution I just don't understand if this is some class of procedure for solving certain integrals that I've not been exposed to or where it came from, exactly.