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

We simply substitute x=-2 into the expression for y:

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

y = -8 + 6 + 1

y = -1

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