$$ \int \frac{\sqrt{x}}{\sqrt{x}-3}dx $$
What is the most dead simple way to do this?
My professor showed us a trick for problems like this which I was able to use for the following simple example:
$$ \int \frac{1}{1+\sqrt{2x}}dx $$
Substituting:
$u-1=\sqrt{x}$
being used to create
$\int\frac{u-1}{u}$
which simplifies to the answer which is:
$1+\sqrt{2x}-\ln|1+\sqrt{2x}|+C$
Can I use a similar process for the first problem?
With $\sqrt x = u$
Let $\sqrt x = u$, then we have $x = u^2$ and $\mathrm{d}x=2u\,\mathrm{d}u$.
\begin{align} \int\frac{u}{u-3}\times 2u\,\mathrm{d}u &= 2\int\frac{u^2}{u-3}\,\mathrm{d}u\\ &= 2\int\frac{u^2-9+9}{u-3}\,\mathrm{d}u\\ &= 2\int\frac{u^2-9}{u-3}\,\mathrm{d}u + 18\int\frac{1}{u-3}\,\mathrm{d}u\\ &= 2\int(u+3)\,\mathrm{d}u + 18\int\frac{1}{u-3}\,\mathrm{d}u\\ &= u^2 + 6 u+18\ln(u-3)+C_1\\ &= x+6\sqrt x +18\ln (\sqrt x -3) +C_1 \end{align}
With $\sqrt x - 3 = t$
Let $\sqrt x -3 = t$, then we have $x = (t+3)^2$ and $\mathrm{d}x=2(t+3)\,\mathrm{d}t$.
\begin{align} \int\frac{t+3}{t}\times 2(t+3)\,\mathrm{d}t &= 2\int\frac{(t+3)^2}{t}\,\mathrm{d}t \\ &= 2\int\frac{t^2+6t+9}{t}\,\mathrm{d}t \\ &= \int\left(2t+12+\frac{18}{t}\right)\,\mathrm{d}t \\ &= t^2 + 12 t + 18 \ln t +C_2\\ &= (\sqrt x-3)^2 +12(\sqrt x -2) + 18\ln(\sqrt x- 3) +C_2\\ &= x +6\sqrt x +18\ln(\sqrt x -3) + C_2-15 \end{align}
Here $C_1=C_2-15$. You can choose either way and the difference is only in the constant.
With $\frac{\sqrt x}{\sqrt x -3}=v$
It is intentionally left for the readers as an exercise.