Solution:
Write the numerator in terms of the derivative of x2+2x+3, which is 2x+2:
x+2=21(2x+2)+1
Therefore,
∫x2+2x+3x+2dx=21∫x2+2x+32x+2dx+∫x2+2x+3dx=21I1+I2
In I1, put x2+2x+3=t, so that (2x+2)dx=dt.
I1=∫tdt=2x2+2x+3+C1
For I2, complete the square:
x2+2x+3=(x+1)2+(2)2
Using ∫x2+a2dx=logx+x2+a2+C,
I2=logx+1+x2+2x+3+C2
Substituting I1 and I2,
∫x2+2x+3x+2dx=x2+2x+3+logx+1+x2+2x+3+C