find the area enclosed between the x-axis and the curve, if y=x^3+2x^2+x+1 between x=-1 and x=2

The range of the curve is entirely positive over that domain.

So you just need to find:

A = ∫{-1,2} x^3 + 2 x^2 + x + 1 dx