Equations of Lines and Planes
Every plane in space is captured by ONE linear equation , and the coefficient vector is no accident: it is the NORMAL, perpendicular to the plane. For example, has normal and contains , since .
Why: if lies on the plane and is any other plane point, the displacement lies in the plane, and the equation says exactly — the normal is perpendicular to every in-plane direction. So building planes is mechanical: given a point and a normal, dot them; given three points, form two edge vectors and take their CROSS PRODUCT for the normal. Given the equation, read the normal straight off the coefficients. Parallel planes share a normal and differ only in ; perpendicular planes have perpendicular normals — every geometric relationship between planes translates into a dot- or cross-product statement about their normals.
In 3D a single linear equation removes ONE degree of freedom, leaving a 2-dimensional plane — so a line (1-dimensional) needs TWO equations, or more usefully a parametric form : start at a point, walk along a direction. The dimension count () is rank–nullity from linear algebra wearing geometric clothes — one of many places these two courses are secretly the same course.
Distance from a point to the plane : . The logic: take any plane point , and project the displacement onto the unit normal — only the normal component carries you away from the plane.
The numerator is the (signed) un-normalized projection; dividing by finishes it. The same idea handles parallel planes () and, with a cross product replacing the dot, point-to-line distances. One projection, every distance formula in the chapter.
Find the plane through , and .
Show the answerHide the answer
Two edge vectors from the first point lie in the plane: and . Their cross product is perpendicular to both, so it is a normal: . The plane is , and the point fixes . Check the other two points: and . A shortcut worth knowing: intercepts give at once; here , which is the same plane multiplied through by .
Lines in Space and How Two Lines Meet
The line through with direction is , that is , , . Eliminating gives the symmetric form (when ). Two lines in space are parallel (proportional directions), intersecting, or skew: not parallel and never meeting.
Why a parameter: a line has one degree of freedom, and is that freedom. Each value of picks one point, and equal steps in are equal steps along the line. Skew lines are the case with no counterpart in the plane: there, two lines that are not parallel must cross, but in space one line can pass over another like two roads at an overpass. To decide which case holds, set the two parametrizations equal. That gives three equations in only two unknowns, and , and the question is whether all three can hold at once.
Find the line through and , and the point where it crosses the -plane. The direction is the displacement , so , or .
As a check, gives and gives . The -plane is where , so solve : . The crossing point is . Any line question reduces to choosing : first write the condition on the point, then solve for .
Do and meet? The directions are not proportional, so the lines are not parallel. Setting the coordinates equal gives three equations: , , .
The first equation gives , and the second then gives . The third equation has not been used yet, so it is the real test: holds. All three equations are satisfied, so the lines meet, at on : the point , which is also on .
Take and . The shortest segment between them is perpendicular to both directions, so it runs along , with .
Every segment joining the two lines has the same component along : moving either endpoint along its line adds a multiple of or , and both are perpendicular to . So take the easiest segment, from to : it is , and . The distance is . It is not zero, and the directions are not proportional, so the lines are skew. The closest points are on and on , namely and .
Take and . The and equations, and , give , and it is tempting to stop there and say the lines meet. But at , is at height , while is at height for every . The point on sits directly below on : same and , different height. With three equations and two unknowns, the equation left over is the whole test.
Do and intersect? If not, how far apart are they?
Show the answerHide the answer
Set the coordinates equal. From : , so . From : , so and . Now test : would need , which is false. The directions and are not proportional either, so the lines are skew. For the distance, , with . The segment between the base points is , and . The distance is .
Angles, Intersections, and Distances
The angle between two planes is the angle between their normals: . A line meets the plane where , one linear equation for ; if the line is parallel to the plane. A point is at distance from the plane.
Why normals: a plane's tilt is completely described by its normal, so a question about how two planes sit is a question about two vectors. Substituting a line into a plane works because the plane's equation is linear and each coordinate of is linear in , so is a linear equation in . It has exactly one solution unless the coefficient of , which is , is zero; that happens exactly when the line runs perpendicular to the normal, that is, parallel to the plane.
Where does meet the plane ? Substitute the coordinates of into the plane: , so and .
The point is ; check . The angle between the line and the plane uses a sine, , so . It is a sine because the angle between and the normal is the complement of the angle between and the plane.
Find the angle between the planes and . Their normals are and , with dot product and lengths each, so .
So . The two planes meet in a line, and its direction must be perpendicular to both normals, so it is their cross product: . Normals answer both questions: the dot product gives the angle, the cross product gives the hinge.
How far is from the plane ? The normal has length , and .
The distance is ; the negative sign only says that lies on the side the normal points away from. To find the nearest point of the plane, walk from along the normal: . It lies on the plane, since , and , as the formula said.
Using the numerator alone as the distance. For and the numerator is , but the same plane written as gives . A distance cannot depend on how the equation is scaled. Dividing by — in the first form, in the second — gives both times.
How far apart are the planes and ?
Show the answerHide the answer
First give both planes the same normal: dividing the second by gives . Now both have with , and the distance is . Check with a point: lies on the first plane, and its distance to the second is . Subtracting from without rescaling would give , which is wrong because the two equations were written with different normals.
Proofs & Why It Matters
Let be any point on the plane () and the outside point. The distance is the length of the projection of onto the unit normal: — the arbitrary vanished into , which is why the formula needs no particular plane point. SIGNIFICANCE: this projection pattern is the template for every "distance to a flat object" problem — and in machine learning it is literally the margin of a linear classifier.
Planes are the first example of the general idea "linear equation = flat object + normal vector." In linear algebra the same picture becomes hyperplanes and the row space; in optimization, constraint surfaces and Lagrange multipliers; in graphics, every triangle of every 3D model carries its normal for lighting. The dot-product test you just learned is computed billions of times per frame in a video game.
Going Deeper: Worked Problems
Find parametric equations for the intersection of and .
Step 1 — the direction of the line is perpendicular to BOTH normals, so take the cross product .
Step 2 — find one point on both planes: set and solve , : , .
Step 3 — assemble: .
Step 4 — verify at : the point gives ✓ and ✓. Two planes, one cross product, one small system.
Find the distance from to the line through with direction .
Step 1 — displacement .
Step 2 — the perpendicular distance is (the parallelogram area divided by its base). Compute , magnitude .
Step 3 — divide by : distance .
Step 4 — cross-check by projection: the component of along is , and ✓ — Pythagoras agrees with the cross product.