First, find the focus and directrix of the parabola by moving the orange point and line to their correct positions. Then use that information to find the equation of the parabola.
The two green line segments you see when you point to the parabola are always the same length as each other. Use them to check that you've found the right focus and directrix.
Focus: (
0
,\quad
1
)
Directrix: y = {}
-1
Equation of the parabola:
y - {}
Y1{} = {}
A(x - {}
X1)^2
All points on a parabola are equidistant from the focus and directrix. There is only one place to put the orange focus point and directrix line where this is true.
The focus is (PRETTY_X1, PRETTY_FOCUS_Y)
and the directrix is y = PRETTY_DIR_Y
The equation for a parabola is y - y_1 = a (x - x_1)^2
, where x_1
and y_1
are the coordinates of the vertex of the parabola (halfway between the focus and directrix).
x_1
is the same as the x
coordinate of the focus.
y_1
is at the midpoint of PRETTY_FOCUS_Y
and PRETTY_DIR_Y
.
So x_1 = PRETTY_X1
.
And y_1 = \dfrac{PRETTY_FOCUS_Y + PRETTY_DIR_Y}{2} = PRETTY_Y1
.
The leading coefficient a
in the equation y - y_1 = a (x - x_1)^2
indicates how "wide" and
in what direction the parabola opens. It's always the reciprocal of 2
times the distance from the directrix to the focus.
a = \dfrac{1}{2 \times (PRETTY_FOCUS_Y {-} PRETTY_DIR_Y)} = PRETTY_A
So the equation of the parabola is y - PRETTY_Y1 = PRETTY_A(x - PRETTY_X1)^2
.