Solution:
Let us take,
(x+2)=t
We get,
dx=dt
Now,
∫xx+2dx
We get,
=∫(t−2)tdt
On further calculating, we get
=∫(t23−2t21)dt
By taking separately, we get
=∫t23dt−2∫t21dt
So,
=25t25−2(23t23)+C
By further calculation, we get
=52t25−34t23+C=52(x+2)25−34(x+2)23+C