The coefficients a , b , c {\displaystyle a,b,c} of the least squares fit are given by
where
and
Now
Solving the resulting linear system, we find that a = 1 2 , b = 1 2 , c = 1 2 {\displaystyle a={\frac {1}{2}},b={\frac {1}{2}},c={\frac {1}{2}}} , so the least squares fit is y = 1 2 + 1 2 x + 1 2 x 2 {\displaystyle \color {blue}y={\frac {1}{2}}+{\frac {1}{2}}x+{\frac {1}{2}}x^{2}} .