Last time, we were able to define a line as the set of points that are equidistant from two points. Today, we will ask a slightly different question: what shape do we get by taking the set of points equidistant from a point and a line?
To start, we will look at the set of points equidistant from a point P, which we will call the focus point, and the line y = 0, commonly known as the x-axis. We do this because the distance between a point and the x-axis is simply the absolute value of the y-coordinate of that point. Our starting point is therefore:
sqrt[(X - Px)2 + (Y - Py)2] = |Y|
We apply a liberal portion of algebra to this equation:
(X - Px)2 + (Y - Py)2 = Y2
(X - Px)2 + y2 - 2PyY + Py2 = y2
(X - Px)2 + Py2 = 2PyY
At this point, we will consider a special case: that of the focus point being on the x-axis. Then, Py = 0, and the equation simplifies to (X - Px)2 = 0, which is only true when x = Px. The shape we get back, then, is the vertical line containing the focus point.
Let us then proceed, assuming that Py ≠ 0:
(X - Px)2 + Py2 = 2PyY
X2 + (-2Px) X + (Px2 + Py2) = 2PyY
The answer to our original question is thus shown to be a parabola, Y = Ax2 + Bx + C, with:
D = 2Py
A = 1 / D
B = -2Px / D
C = (Px2 + Py2) / D
A common question to ask of a parabola is what its roots are. If you think about the problem for a moment, the answer is self-evident. If you prefer not to think, you could just evaluate the determinant of the parabola:
det = B2 - 4AC
= [4Px2 - 4(Px2 + Py2)] / 4 Py2
= -4 Py2 / 4 Py2
= -1
A negative determinant tells us that the parabola has no real roots, which we expect. (Recall that we are looking for points the same distance away from a point P and the x-axis. If the parabola had a root, then there exists a point x = (Px, 0) on the parabola, which must be distance zero from our original anchor point , which is a contradiction of the assumption that the anchor point has a nonzero y-coordinate.)
Let us now reverse the question. Say we are given a parabola Y = Ax2 + Bx + C. Can we find the focus point for that parabola? The answer is sometimes. It is easy to solve for the points Px and Py in terms of A and B:
Py = 1 / 2A
Px = DB / -2 = -B / 2A
The problem is that this approach is only valid for parabolas with a determinant of -1. We will solve this problem in the next post.
No comments:
Post a Comment