Lines in the Plane
Learning objectives
- Describe a line through two points using parametric form
- Understand that the parameter ranges over all real numbers for a line
- Determine when two lines are parallel or perpendicular from their direction vectors
A line is what you get when you let the parameter run free. Segments stop at the endpoints; rays have one endpoint; a line extends infinitely in both directions. By removing all restrictions on the parameter , the same parametric formula we have used for segments and rays now describes an entire line. With this final relaxation we get the basic object of synthetic and analytic geometry, the straight, unbounded path through two points.
The parametric form
The line through points and consists of all points
Negative produces points before (on the opposite side from ); recovers the segment from to ; continues past . So the parametric form unifies three different objects:
- Segment from to : .
- Ray from through : .
- Line through and : .
- Robotics: The line connecting two waypoints, extended infinitely, is used in motion planning to test whether a straight-line path between any two points lies inside the safe region; this is the segment-as-test-line application.
- Computer Vision: The Hough transform detects line segments in images by accumulating votes for all possible lines passing through each edge point; the parameter space is exactly the line's two-real-parameter description.
- Navigation: A great-circle route on the sphere is the analogue of a straight line; its parametric description (with running over all reals on a spherical line) is what airline routing software computes for optimal trajectories.
Click "line" in the mode selector. Adjust slope and intercept ; the line extends to both edges of the canvas. The dashed extension you see in segment or ray mode is now the solid line itself.
Direction vectors
The vector is a direction vector of the line. Any nonzero scalar multiple of also serves as a direction vector for the same line (because scaling by stretches but does not reorient the line). Two lines with direction vectors and are parallel when one is a nonzero scalar multiple of the other.
Parallel and perpendicular
Two clean tests, both using the components and :
- Parallel ⇔ the cross-product determinant .
- Perpendicular ⇔ the dot product .
For example, and : dot product , so the lines are perpendicular. These are the same dot- and cross-product tests you will see at the heart of linear algebra and vector calculus.
Euclidean facts you now have on coordinates
- Two distinct points determine a unique line through them.
- Two distinct lines in the plane either intersect in exactly one point or are parallel (and do not intersect).
- Through any point not on a given line, there is exactly one line parallel to it (Euclid's fifth postulate, made algebraic).
Try it
- Line through and . Direction . Parametric form: . Try : , on the opposite side of from .
- Are the lines through and through parallel? Direction vectors and . Yes, parallel.
- Are the lines with direction and perpendicular? Dot product . Yes.
A trap to watch for
Beginners sometimes assume that "two lines have the same equation @⇔ same line." But a line can be written by infinitely many different parametric formulas (any choice of on the line, any nonzero direction vector). Likewise, in slope-intercept form (next section), and describe the same line. Two lines are the same line when they pass through the same set of points, not when their equations are literally identical. To check sameness, pick two points on each and verify both lie on both.
What you now know
You can describe any line by a parametric formula, identify direction vectors, and test parallelism or perpendicularity using cross- and dot-product tests. The next section gives the more familiar slope-intercept form , which is the everyday way to write a line equation in school.
Quick check
Mark section complete →
References
- Lang, S. (1971). Basic Mathematics. Springer. Chapter 10, §3, lines via the parametric form.
- Euclid (c. 300 BCE). Elements, Book I, Postulates 1, 5 (Heath translation, Dover, 1956). The original synthetic axioms for lines.
- Coxeter, H. S. M. (1969). Introduction to Geometry, 2nd ed. Wiley. §1 develops lines and the parallel postulate.
- Artin, M. (2011). Algebra, 2nd ed. Pearson. Chapter 3 connects lines to linear algebra via the parametric form.