When x belongs to [0,3], the maximum value of y = minus x squared plus 4x minus 2 is

When x belongs to [0,3], the maximum value of y = minus x squared plus 4x minus 2 is

y=-x^2+4x-2
=-x^2+4x-4+2
=-(x-2)^2+2
The axis of symmetry x = 2 on [0,3], the coefficient of quadratic term - 1