Solution:
It is given that
∫x2+2x+21dx=∫(x+1)2+(1)21dx
Take x+1=t
We get dx=dt
Integrating both sides
∫x2+2x+21dx=∫t2+11dt
On further calculation
=logt+t2+1+C
Substituting the value of t
=log(x+1)+(x+1)2+1+C
So we get
=log(x+1)+x2+2x+2+C