We are asked to find the equation of the parabola in the xy-plane that passes through the origin, has a vertical axis parallel to the y-axis, and passes closest - in the sense of least squares - to the points (-1,3), (1,1), and (2,5).
I tried to solve it by searching for $$ y=a_{0}+a_{1}x+a_{2}x^2,$$ but then I noticed that the axis of the parabola needs to be parallel to y'y, so I need to search for a parabola of the form $$x=a_{0}+a_{1}y+a_{2}y^2.$$ How should I proceed with the method of least squares now?

