If y =x^3-3x+1 calculate y when x =-2

When x=-2, we substitute the value of x in the expression for y:

y = (-2)^3 - 3(-2) + 1
y = -8 + 6 + 1
y = -1

Therefore, when x = -2, y = -1.