Evaluate the integral ∫(x2+2)x+1dx
I = ∫x2+2x+1dx=∫(x2−1)+3x+1dx=∫(x−1+3x+1)dx=∫(x−1)dx+3∫1x+1dx=x22−x+3 log|(x+1)|+C