When x^3+2x+1 is divided by x+1 the remainder is -2. Apply the remainder theorem to find f(-1) where f(x) = x^3 + 2x +1

The remainder theorem states that if a polynomial f(x) is divided by x - c, the remainder will be f(c).

In this case, we are dividing f(x) = x^3 + 2x + 1 by x + 1, and the remainder is -2.

So, to find f(-1), we can substitute -1 into f(x) and find the value.

f(-1) = (-1)^3 + 2(-1) + 1
= -1 - 2 + 1
= -2

Therefore, f(-1) = -2.