I am trying to compute the following integral by parts.
$$I=\int (x+1)^{10}(x+2) \ dx$$
I put $u=x+2$ and $dv=(x+1)^{10} dx$, then
$$I=\frac{(x+2)(x+1)^{11}}{11}-\frac{1}{11}\frac{(x+1)^{12}}{12}+c$$
Which is obviously not correct. What did I do wrong?
As Thomas Andrews suggested, let $u= x+ 1$. Then $dx= du$ and $x+ 2= u+ 1$ so the integral becomes $$\int u^{10}(u+ 1)du= \int u^{11}+ u^{10} du= \dfrac{u^{12}}{12}+ \dfrac{u^{11}}{11}+ C$$
Substituting back the integral is $$\dfrac{(x+ 1)^{12}}{12}+ \dfrac{(x+ 1)^{11}}{11}+ C$$