We started out the last post by looking at the shape of a set of points equidistant from the focus point and the x-axis. Let us now take a different approach and examine the shape of a set of points equidstant from a focus point and any horizontal line with y = Ly, which we will call the directrix:
sqrt[(X - Px)2 + (Y - Py)2] = |Y - Ly|
(X - Px)2 + (Y - Py)2 = Y2 - 2LyY + Ly2
(X - Px)2 + Y2 - 2PyY + Py2 = Y2 - 2LyY + Ly2
(X - Px)2 + Py2 - Ly2 = 2(Py - Ly)Y
Here we do the same special case examination: if Py = Ly, then a bit of algebra will show us that, as before, x = Px, and we have a vertical line again. We now proceed under the assumption that the focus does not lie on the directrix, or Py ≠ Ly:
(X - Px)2 + Py2 - Ly2 = 2(Py - Ly)Y
X2 - 2PxX + Px2 + Py2 - Ly2 = 2(Py - Ly)Y
Our shape is once again a parabola, Y = Ax2 + Bx + C, with:
D = 2(Py - Ly)
A = 1 / D
B = -2Px / D
C = (Px2 + Py2 - Ly2) / D
As a check on our algebra, we can substitute Ly into the above coefficients, and as expected, they transform into the coefficients from the previous case. Armed with this more general result, we again ask the question: given a parabola Y = Ax2 + Bx + C, can we find a focus point P and directrix line y = Ly?
This time, we can. The equation for Px is relatively straightforward:
B = -2Px / D
Px = -DB / 2
Px = -B / 2A
This answer is the same result as we got for the special case parabola where the directrix was fixed as the x-axis. Its presence here is no surprise to anyone who tries to find the root of the derivative of Y = Ax2 + Bx + C.
Solving for Py and Ly is a bit more involved. We start by rearranging the equation for A, to get an equation for their difference:
A = 1/ 2(Py - Ly)
(Py - Ly) = 1 / 2A
We then manipulate the equation for C, and we can find an equation for their sum:
C = (Px2 + Py2 - Ly2) / D
C = Px2 / D + (Py2 - Ly2) / D
C = B2 / 4A + (Py - Ly)(Py + Ly) / D
C = B2 / 4A + (Py + Ly) / 2
(4AC - B2) / 4A = (Py + Ly) / 2
(Py + Ly) = -det / 2A
Now that we know the sum and difference of Py and Ly, we can find their values with ease:
(Py + Ly) + (Py - Ly) = 2Py |
(Py + Ly) - (Py - Ly) = 2Ly -det/2A - 1/2a = 2Ly Ly = (-det - 1) / 4A |
As a check of our algebra, we observe that when det = -1, we get back the equations we had in the previous post.
To summarize: given a horizontal line y = Ly, called the directrix, and a point P not on the directrix, calld the focus, there exists a unique parabola Y = Ax2 + Bx + C with the following coefficients:
D = 2(Py - Ly)
A = 1 / D
B = -2Px / D
C = (Px2 + Py2 - Ly2) / D
The reverse is also true: any parabola of the form Y = Ax2 + Bx + C (with A ≠ 0, otherwise it would just be a straight line) has a unique focus point P and directrix line y = Ly given by:
det = B2 - 4AC
Px = -B / 2A
Py = (-det + 1) / 4A
Ly = (-det - 1) / 4A
The usefulness of this duality is that it works even if the directrix is not horizontal: if you take a directrix line and a focus point P in the 2D plane, they will define a unique parabola, regardless of the orientation of the line. The equation of that parabola is no longer Y = Ax2 + Bx + C, but a more complex expression which we will not dwell on anymore here.
No comments:
Post a Comment