Determine coefficients of the equation for a second order polynomial in the format: $y = a x^2 + b x + c$
Here are the $x$-$y$ coordinates of three points:
- $(0.8143,0.3500)$
- $(0.2435,0.1966)$
- $(0.9293,0.2511)$
What are the steps needed to solve this?
Three equations in three unknowns $(a,b,c)$:
$${\bf X} {\bf a} = \left( \begin{array}{ccc} x_1^2 & x_1 & 1 \\ x_2^2 & x_2 & 1 \\ x_3^2 & x_3 & 1 \\ \end{array}\right) \left( \begin{array}{c} a \\ b \\ c \end{array} \right) = \left( \begin{array}{c} y_1 \\ y_2 \\ y_3 \end{array} \right) = {\bf y}$$
You have all values except $a,b,c$, so use standard linear algebra:
$${\bf a} = {\bf X}^{-1} {\bf y}$$
[You might need to use pseudo-inverse, or regularize... but this is the basic approach.]
Result: $a = -1.64181, b = 2.00498, c = -0.194267$