To elaborate, a parabola is of the form P(x) = ax²+bx+c, and 3 points define a parabola (like how 2 points define a line).
You're given 3 points, say (x
1, P(x
1)), (x
2, P(x
2)), and (x
3, P(x
3)). We want to find the coefficients a, b, and the constant c that give us a parabola through the three points.
Substitute these values of x and P(x) into the general equation of a Parabola so you have
x
1²a + x
2b + c = P(x1)
x
2²a + x
2b + c = P(x2)
x
3²a + x
3 b+ c = P(x3)
remembering the x's are all just numbers and a, b, c are the unknowns
You now have 3 unknowns and 3 equations so you can (usually) solve for all 3.
A fast way is to add or subtract the equations from each other to eliminate some unknowns.
Example: Find the parabola through (1, 13), (3, 30) and (-1, 10)
Our equations for the example become
a + b + c = 13 ........... (1)
9a + 3b + c = 30 ........(2)
a - b + c = 10 .............(3)
So you can see subtracting equation (3) from equation (1) we get
2b = 3
b = 1.5
So now we can use
a + 1.5 + c = 13 and 9a + 3(1.5) + c = 30, which simplify to
a + c = 11.5 ........(4)
9a + c = 25.5 .......(5)
by subtracting equation equation (4) from equation (5) we get
8a = 14
a = 1.75
So now we can use
1.75 + 1.5 + c = 13 which simplifies to
c = 9.75
So the parabola is y = 1.75x² + 1.5x + 9.75
Hope that makes sense