I am missing one piece of how to integrate the following:
$\int \frac{\mathrm{d}x}{\sqrt{3 x} (3 x+1)}$
I found a solution to a similar problem which I entirely understand:

I can usually use Wolfram Alpha's step-by-step solutions to clarify if I'm having trouble understanding a problem but sometimes it doesn't use the most efficient and/or understandable steps and it's not much help in this case:

The part that I'm not understanding is how the 3 ends up in the denominator of the leading coefficient as in the step circled above. My goal here is not to just get the answer (which I obviously already have) but rather to completely understand how to solve this and similar problems. I'm also not necessarily interested in an explanation of the Wolfram steps but rather the most logical method(s) for solving it.
Thanks for any help.
P.S. I apologize in advance if this is a duplicate. I looked through a ton of problems using search and didn't see anything that addressed this specific type of problem.
Note that $u=\frac{s}{\sqrt{3}}$ and $u^2=\frac{s^2}{3}$ and that $3u^2 = s^2$. Further note that $ds=\frac{du}{\sqrt{3}}$
So after making the substitution, what you have is:
$$ \frac{2}{\sqrt{3}} \int\frac{1}{s^2+1}\frac{ds}{\sqrt{3}} $$
Does it make more sense now?