Motivation
A line requires both a location and a direction. A plane likewise requires a location, but its orientation is often specified by a perpendicular vector. The distinction determines which equations describe the object and which component of a displacement measures its distance from a point.
We identify a point with its position vector after choosing an origin. Differences of positions are displacements: if have positions , then . Keeping this subtraction order explicit prevents a point coordinate from being confused with a direction vector. The norm and orthogonal projection developed in the previous chapter will turn geometric shortest-distance questions into exact algebraic calculations.
Lines and their equations
Definition
An affine line with a nonzero direction
Let , , and . The line through in direction is
Its coordinate equations are for . The same real parameter must satisfy all coordinates simultaneously.
The restriction ensures that the set is a line rather than a single point. Every point can replace as the base point: . Replacing by , where , also preserves the line because ranges through every real number. Neither the base point nor the direction vector is unique; the resulting set of points is what defines the line.
If every , eliminate the parameter to obtain
When , its coordinate equation is instead . Use ratios only for nonzero direction components. If there is just one such component, that coordinate is free and every other coordinate is fixed. Parameter form works uniformly in all of these cases, without dividing by a direction component.
Worked example
Different equations of the same line
The equation
has base point and direction : the middle denominator is implicitly . At parameter , the point is . Thus
describes the same line, with a shifted parameter. Substituting either base point into the other equation confirms membership, while the common direction ensures the entire lines agree. Matching only one point would not be sufficient to identify two lines.
Counterexample mode
A zero direction component is a fixed coordinate
For and , the tempting expression is undefined. Even at points where , its last ratio is , not a usable parameter.
The correct equation is
or . For example, gives , which satisfies the repaired equations. Omitting altogether would allow arbitrary heights and describe a plane, so the fixed coordinate must be retained rather than discarded.
Distance from a point to a line
Theorem
The perpendicular foot gives the nearest point on a line
Let with , and let . Put . Then the unique nearest point and the distance are
Equivalently,
Let . The chosen coefficient makes . For any other parameter , the displacement from the line point to is . Its squared length is
The mixed term vanishes by orthogonality. The second term is nonnegative and, since , vanishes only at . This proves both the minimum and uniqueness of the foot, not just that a perpendicular candidate exists. Expanding gives the alternate distance formula. Distance zero means already lies on the line.
The foot is independent of the chosen base point. Replacing by changes the displacement to and the minimizing parameter to . Consequently
Thus different parameter descriptions give the same geometric nearest point. The formula must project , not the position vector alone. For example, on , the foot from is . Projecting directly onto would give , which is not on . Subtract the base before projecting a displacement, then add it back to obtain a point on the affine line.
Worked example
A shortest distance from a point to a line
Consider
Read the base point from all three numerators: , with . Then , , and . Therefore
The check confirms the residual is perpendicular to the line. The foot is , and the distance is
Every component matters: changing the constant in the third numerator would change the line's position and hence this distance calculation.
Distance between two nonparallel lines
Let and in , with nonzero, nonparallel directions. Write
This is the displacement from a point on to a point on . Solve for . The coefficient determinant is nonzero because strict Cauchy–Schwarz gives for nonparallel directions. Thus the candidate pair is uniquely determined.
To prove it minimizes distance, perturb the parameters by . The new connector is , whose squared norm is
Orthogonality removes the mixed term. Nonparallel directions make equality possible only when . The distance is : zero for intersecting lines, positive for skew lines. For parallel lines the determinant vanishes; instead take any point on one line and find its distance to the other line.
Worked example
The shortest connector between skew lines
Let
The connector from to is . Perpendicularity to the two directions gives
Solving yields , . The closest points are and , so . Direct checks give and . Hence the distance is . Its positive value also confirms that the nonparallel lines do not intersect.
Planes and normal vectors
Definition
Point-normal and Cartesian equations of a plane
For and nonzero normal , the plane is
Expanding gives , where and .
The displacement between any two points of the plane is orthogonal to . Multiplying all four Cartesian coefficients by the same nonzero scalar preserves the plane. If the normal were zero, the equation would describe all of when , or the empty set when , rather than a plane. Thus its nonzero condition is geometrical as well as algebraic.
Concept lensGeometric
A line direction lies along an object; a normal points across it
For a line, describes allowed displacements: points differ by multiples of . For a plane, describes a forbidden component: every allowed displacement has zero dot product with . A plane's normal is therefore not a direction along the plane.
This explains the two distance constructions. For point-to-line distance, remove the component along the line and measure the residual. For point-to-plane distance, measure the normal component and retain the perpendicular residual as a displacement inside the plane. The same orthogonal decomposition serves two different geometric targets.
Theorem
Nearest point and distance to a plane
Let with . For any point ,
Substitution verifies , and is parallel to the normal. For any , is orthogonal to . Therefore
This is minimized uniquely at . Taking the norm of the displayed normal component proves the distance formula, including its absolute value. The signed numerator changes sign if the normal orientation is reversed; the distance does not. Rescaling the whole plane equation also leaves the quotient unchanged because its numerator and denominator acquire the same absolute scalar factor.
Worked example
Distance from the origin to a plane
For , take , so . The origin has distance . Its perpendicular foot is
Substitution gives , verifying that the foot lies in the plane. Its norm is , agreeing with the distance calculation.
Intersecting, measuring, and projecting a line
Theorem
All line-plane intersection cases
Let , , and , . Substitution gives
If , there is exactly one intersection, at . If and , the entire line is contained in . If the first quantity is zero but the second is not, there is no intersection.
These are exactly the three cases of one scalar linear equation. Check the coefficient before dividing: the zero case is meaningful information about the geometry, not a numerical failure to suppress.
The unoriented angle between the line and plane satisfies
To see this, take the angle between the line and the plane’s normal direction, defined by ; then . Absolute value makes the result independent of the chosen signs of and . The endpoints give angle zero for a line parallel to the plane's directions, including a contained line, and for a line perpendicular to the plane.
Project each point using the plane's nearest-point formula. Collecting the constant and parameter terms gives
Here and . If , the image is a line. If , equivalently is parallel to , the image is the single point . Projecting a line therefore need not produce a line. The point formula includes , while the direction formula does not: a direction is a displacement, not a point to be placed on an affine plane.
Worked example
Intersection, angle, and projection in one calculation
Let and . Here , , and substitution gives . Thus and the intersection is .
Since , , and , , with . For the projected line,
Consequently its equation is . It passes through the intersection at , so an equivalent symmetric equation is
Both the base point and direction satisfy the appropriate plane conditions: and . Merely finding a parallel direction would not locate the projected line.
Affine hyperplanes
In , the same point-normal construction gives an affine hyperplane
At least one normal component is nonzero, so its coordinate can be solved uniquely in terms of the other free coordinates. This explains why the hyperplane has dimension . It is a line in , a plane in , and a single point when . The distance and nearest-point proofs use only dot products, so they apply unchanged in every dimension. In particular, a planar line , with , has normal and distance formula .
Quick checks
Checkpoint
Q1. A line direction has a zero third component. What replaces the third ratio in a symmetric equation?
Return to the parameter equation for that coordinate.
Solution · Quick-check Q1
The equation is . The coordinate is fixed, not divided by zero and not omitted.
Checkpoint
Q2. If the line direction is orthogonal to the plane normal, must the line miss the plane?
Distinguish the directional condition from the base-point condition.
Solution · Quick-check Q2
No. If , the whole line lies in the plane. Otherwise the line is disjoint from it. Both cases have .
Summary
Parameter equations specify a point and a nonzero direction; normal equations specify an affine constraint. Orthogonal residuals prove the distance formulas and their minimizing properties. Line-plane questions reduce to a scalar intersection equation and the normal component of the direction. Always retain fixed coordinates, check nonzero divisors, and distinguish a projected point from a projected direction.
Exercises
- Derive the normal and distance formula for the planar line , assuming . Apply it to and the origin.
- Find the foot from to the line in the second worked example. Verify both line membership and residual orthogonality.
- For , classify the intersections with and .
- Project the line onto . Is the image a line or a point? Give its coordinates.
Guided solutions
Solution · Solution 1
Subtract the equations of two points on the line to obtain . Thus is a nonzero normal, and the hyperplane distance formula applies. For the given line, distance is , and the foot is .
Solution · Solution 2
The foot is , where and . All three symmetric ratios equal . The displacement from the foot to is , whose dot product with is zero.
Solution · Solution 3
Both directions have dot product zero with . The first base point has coordinate sum zero, so is contained in the plane. The second base point has sum one, so has no intersection with it.
Solution · Solution 4
The direction equals the normal, so its projected direction is zero. Projecting the base point subtracts , giving . Every parameter value has this same image; the projection is one point.