Find the maximum value of the second power - 2x + 3 of function y = x in the interval [0,3]

Find the maximum value of the second power - 2x + 3 of function y = x in the interval [0,3]

Y = (x-1) ^ 2 + 2 min 2 max 6