Ask a mathematical problem of quadratic function. About taking the maximum and minimum If the maximum value of square + 2x + a of quadratic function y = x (0 is greater than or equal to X is less than or equal to 1) is 3, Then a is equal to?

Ask a mathematical problem of quadratic function. About taking the maximum and minimum If the maximum value of square + 2x + a of quadratic function y = x (0 is greater than or equal to X is less than or equal to 1) is 3, Then a is equal to?

The formula is y = (x + 1) 2 + A-1, the symmetry axis of the image is x = - 1, the opening is upward, so when x = 1, the maximum value of Y is 3 + A, so a = 0