Consider the function $$\int \frac{\sqrt{x}}{\sqrt{x}-3}$$ Using substitution we get $\begin{align*} u&= \sqrt{x}-3\\ x&=(u+3)^2 &dx= 2(u+3)du \end{align*}$
$(u+3)^2=$$u^2+6u+9$, plugging all this in we get $$\int\frac{u^2+6u+9}{u}du $$ This begin an even numbered question in my textbook, I used a online calculator which gave me $$\int\frac{2(u^2+6u+9)}{u}du$$ and I don't know where that $2$ came from. I think it is either from $dx$ but that would mean also having $(u+3)$ in there, or it could have come from $du=\frac{1}{2\sqrt{x}}$ but then where did that $\sqrt{x}$ go?
$\int \frac {\sqrt x} {\sqrt x-3}dx=\int \frac {u+3} {u} 2(u+3)du$ because $dx =2(u+3)du$. You just missed the $2$ in $dx$.