Please tell me how to solve this quadratic function, and how to find their quadratic function analytic expressions when the image passes through (1,0) (- 1,8) and (0,2)

Please tell me how to solve this quadratic function, and how to find their quadratic function analytic expressions when the image passes through (1,0) (- 1,8) and (0,2)

The general formula of quadratic function is:
y=ax²+bx+c
By substituting the above three points into this analytic expression, we get
0=a+b+c
8=a-b+c
2=c
The solution is: a = 2, B = - 4, C = 2
So the analytic expression is: y = 2x & sup2; - 4x + 2
thank you