The maximum and minimum values of the function y = x ^ 2-2x-2 in the interval [- 1,2] are - ---, and - ---

The maximum and minimum values of the function y = x ^ 2-2x-2 in the interval [- 1,2] are - ---, and - ---


y=x^2-2x-2=(x-1)^2-3
The axis of symmetry x = 1, the opening is upward, so the maximum value is f (- 1) = 1, and the minimum value is f (1) = - 3