For this I tried using the substitution technique, but it got me nowhere near the right answer.
What my notepad looks like: $$f(x) = \dfrac{\sqrt{x}}{\sqrt{x}+1}$$ and $$F(x) = \int f(x) = \begin{cases} \sqrt{x} &= t \\ dx &= 2t\cdot dt \end{cases} = \int\frac{t}{t+1}\cdot2t\cdot dt = \boxed{\dfrac{4t(t+1)-2t^2}{(t+1)^2}+c}$$
After swapping $t$ with $x$ again the answer is not even close; where did I go wrong?
Also as a follow up question:
- How do I know when the proper situation is to use integration by substitution above integration by parts?
In answer to the first question, the basic expression inside the OP's boxed formula, $4t(t+1)-2t^2\over(t+1)^2$, is the derivative of $2t^2\over t+1$, not its integral.
As for the second question, there's no hard and fast rule (at least none that I know of), but in this case using a substitution to get rid of the square root signs was a good idea.