It is known that the quadratic function y = f (x) and G (x) = x ^ 2 have the same image opening size and direction, and the minimum value of y = f (x) at x = m is - 1 If the maximum value of the function y = f (x) on the interval [- 2,1] is 3, find M

It is known that the quadratic function y = f (x) and G (x) = x ^ 2 have the same image opening size and direction, and the minimum value of y = f (x) at x = m is - 1 If the maximum value of the function y = f (x) on the interval [- 2,1] is 3, find M

F (x) = (x-m) & # 178; - 1
The axis of symmetry of quadratic function y = f (x) is x = M
When m ≤ - 1 / 2, f (1) = 3
  ∴(1-m)²-1=3
‖ M = - 1 or M = 3 (rounding)
  ∴m=-1
When m > - 1 / 2, f (- 2) = 3
  ∴(-2-m)²-1=3
‖ M = 0 or M = - 4 (rounding)
  ∴m=0
The value of M is - 1 or 0