Solution:
Completing the square,
x2+2x+5=(x+1)2+22
Let
x+1=t
Then
dx=dt
New limits: when x=−1, t=0; when x=1, t=2.
Therefore,
∫−11x2+2x+5dx=∫02t2+22dt
Integrating,
=21[tan−12t]02=21(tan−11−tan−10)=21⋅4π
Therefore,
∫−11x2+2x+5dx=8π
Hence, the value of the integral is 8π.