Given the function y = X2, - 2 ≤ x ≤ a, where a ≥ - 2, find the maximum and minimum value of the function, and find the value of the independent variable x corresponding to the maximum and minimum value of the function

Given the function y = X2, - 2 ≤ x ≤ a, where a ≥ - 2, find the maximum and minimum value of the function, and find the value of the independent variable x corresponding to the maximum and minimum value of the function


① If - 2 ≤ a < 0, the function is reduced in the interval [- 2, a], when x = - 2, ymax = 4, x = a, ymax = A2, ② if 0 ≤ a ≤ 2, x = - 2, ymax = 4, x = 0, ymax = 0, ③ if a > 2, x = a, ymax = A2, x = 0, ymax = 0



Given that 13 ≤ a ≤ 1, if f (x) = ax2-2x + 1 has the maximum m (a) and minimum n (a) in the interval [1,3], let g (a) = m (a) - n (a). (1) find the analytic expression of G (a); (2) judge the monotonicity of G (a) and find the minimum of G (a)


(1) When 13 ≤ a ≤ 12, n (a) = f (1a), m (a) = f (1), then G (a) = f (1) - f (1a) = a + 1a-2; when 12 < a ≤ 1, n (a) = f (1a), m (a) = f (3), then G (a) = f (3) - f (1a) = 9A + 1a-6; | g (a) = a + 1a − 2 & nbsp; & nbsp; & nbsp; & nbsp; & nbsp