$ \int{\frac{x^2+4x+4}{(x+1)^2(x^2+3x+3)}}dx$
The question: Integrate the above, using partial fraction decomposition.
Getting the partial fraction is fine:
$=-{\displaystyle\int}\dfrac{x+2}{x^2+3x+3}\,\mathrm{d}x+{\displaystyle\int}\dfrac{1}{x+1}\,\mathrm{d}x+{\displaystyle\int}\dfrac{1}{\left(x+1\right)^2}\,\mathrm{d}x$
The problem: After doing the partial fraction decomposition, there is an integral that needs to be evaluated using u-substitution:
${\displaystyle\int}\dfrac{1}{x^2+3x+3}\,\mathrm{d}x$
Mathematica and other solvers all give this u-substitution:
Complete the square:
$={\displaystyle\int}\dfrac{1}{\left(x+\frac{3}{2}\right)^2+\frac{3}{4}}\,\mathrm{d}x$
Substitute $u=\dfrac{2x+3}{\sqrt{3}} \longrightarrow \dfrac{\mathrm{d}u}{\mathrm{d}x}=\dfrac{2}{\sqrt{3}}$ ( <--WTF?!)
$=\class{steps-node}{\cssId{steps-node-6}{\dfrac{2}{\sqrt{3}}}}{\displaystyle\int}\dfrac{1}{u^2+1}\,\mathrm{d}u$
I have no idea why or how this substitution works and more importantly, the approach one would take it to come up with it. This is driving me nuts. My lecturers are useless.
S.O.S
Note that $$\left(x+\frac 32\right)^2+\frac 34=\frac 34\left(\frac 43\left(x+\frac 32\right)^2+1\right)=\frac 34\left(\left(\frac {2x}{\sqrt 3}+\frac 3{\sqrt 3}\right)^2+1\right)$$You are looking for a substitution that gets you $u^2+1$ hence taking out the factor $\frac 34$ and then taking the $\frac 43$ into the bracket. The suggested substitution gets you to $$\frac 34(u^2+1)$$ for the original integrand, and you also need to take the derivative into account, as always with substitutions.