When the independent variable of a quadratic function is 0, the function value is 1, and when the independent variable is equal to - 1 and 2, the function value is 0, then the analytic expression of the quadratic function is

When the independent variable of a quadratic function is 0, the function value is 1, and when the independent variable is equal to - 1 and 2, the function value is 0, then the analytic expression of the quadratic function is

Let y = ax ^ 2 + BX + C, C = 1
0=a-b+1
0=4a+2b+1 ,0=6a+3 ,a=-1/2 ,b=1/2
y=-1/2x^2+1/2x+1