(Note: Refresh the page to see the original equations / raw calculations!)
Part 1 - Fitting 3 points to a quadratic equation
Enter three points:
Remember, standard form is: y = ax2 + bx + c
For each point above, we substitute the x and y values to get these three equations:
y = a(x2) + b(x) + c
![]()
![]()
xa + xb + 1c = y
y = a(x2) + b(x) + c
![]()
![]()
xa + xb + 1c = y
y = a(x2) + b(x) + c
![]()
![]()
xa + xb + 1c = y
Now we use these equation's coefficients to create a 3x3 matrix
| [A] | [B] | [C] |
| [D] | [E] | [F] |
| [G] | [H] | [I] |
Next, we solve this matrix for the determinant:
Det = ( ( A * E * I) + ( B * F * G) + ( C * D * H) ) - ( ( A * F * H) + ( B * D * I) + ( C * E * G) )
Det = ( ( A * E * I) + ( B * F * G) + ( C * D * H) ) - ( ( A * F * H) + ( B * D * I) + ( C * E * G) )
Det = ( ( A * E * I) + ( B * F * G) + ( C * D * H) ) - ( ( A * F * H) + ( B * D * I) + ( C * E * G) )
Next, we create the matrix that allows us to find the "a" coefficient.
For this, we replace the first column of the matrix above with the "y" values:
| [Y1] | [B] | [C] |
| [Y2] | [E] | [F] |
| [Y3] | [H] | [I] |
Solving this matrix for the determinate gives us:
(we won't do all the steps, use the model above!)
Deta = Deta
Likewise:
Detb = Detb
and:
Detc = Detc
To find the coefficients for our final equation:
Coefficient a = Deta / Det =
Coefficient b = Detb / Det =
Coefficient c = Detc / Det =
So the final quadratic equation looks like:
y = ax2 + bx + c