Learning goals and prerequisites
Use an orthonormal Cartesian coordinate system in , with ; in choose its right-handed orientation. Compute vector operations, project onto a direction, and describe lines and planes. Prerequisites are arithmetic, square roots and elementary equations. Coordinates represent a vector after a choice of axes; a point and a displacement play different geometric roles.
Definitions and structure
A vector in is added componentwise and multiplied by a real scalar componentwise. The dot product and length are
Two nonzero vectors are perpendicular when their dot product is zero. A unit vector has length one. For nonzero , the projection of onto the line spanned by is . A line through a point with nonzero direction is , . In , a plane with nonzero normal through is the set of points satisfying . The same equation in defines a hyperplane, which has dimension . To verify the dimension assertion, choose with . The equation uniquely determines after the other coordinates have been chosen arbitrarily. These are exactly independent affine parameters.
Theorem: Cauchy–Schwarz and the triangle inequality
For , and . Equality in Cauchy–Schwarz holds exactly when the vectors are linearly dependent, including a zero vector.
Proof. If , the result is immediate. Otherwise let . Expanding the nonnegative square gives
Rearranging proves the first inequality; equality holds exactly when . Now expand and bound above by . Both sides are nonnegative, so taking square roots proves the second. This also ensures that defining an angle by makes sense for nonzero vectors.
In , define
Direct substitution gives . Expanding squares gives . Thus the cross-product magnitude is the parallelogram area; reversing the order reverses orientation.
Concept lensGeometric
Cauchy–Schwarz as a statement about a right triangle
For , the number in the proof is the projection coefficient, and splits into a part along and a residual with . Expanding for these two perpendicular parts kills the cross term and leaves the Pythagorean identity
Hence a projection is never longer than the vector projected: , and multiplying by gives exactly Cauchy–Schwarz. Equality means that the residual vanishes, so already lies on the line spanned by . The algebraic proof above is this right-triangle picture with the lengths written out.
Counterexample mode
The cross product is not associative
It is tempting to regroup a triple cross product as one would an ordinary product. Take and . Since , the grouping equals . The component formula gives and then . Brackets are therefore essential. The correct expansion is ; here it gives , matching the computation.
Worked examples
Projection and distance. Let and . Then , , so the projection is . The residual is perpendicular to , and the distance from to its line is . The projection is a vector, not the scalar coefficient .
A plane from three points. Through , and , take and . Their cross product is . The plane is . The nonzero cross product verifies that the three points are not collinear, so the plane is unique.
Worked example 3.1.1
(Distance from a point to a plane)
Find the point of the plane from the previous example that is closest to , and the distance from to the plane.
The plane passes through and has normal , with . Project onto the line spanned by . The coefficient is
Remove this normal part from :
Check that lies in the plane: . For any point of the plane, , while is parallel to . Hence and
with equality only at . The distance is . The same steps give the general formula for the distance from to the plane .
Worked example 3.1.2
(Where a line meets a plane)
Find where the line , , meets the plane .
Substitute the coordinates , , into the plane equation:
Thus , and the intersection point is ; indeed . The coefficient of is for the direction and the normal . In general, substituting into gives
If there is exactly one parameter, hence exactly one intersection point. If the direction is perpendicular to the normal, so the line is parallel to the plane: it lies in the plane when and misses it otherwise.
Worked example 3.1.3
(Distance from a point to a line in space, computed twice)
Find the distance from to the line through the origin with direction .
By projection. Here and , so the projection is and the residual is . Its dot product with is , as it must be, and the distance is .
By area. The component formula gives
of length . This is the area of the parallelogram spanned by and , which also equals the base times the height from to the line. Hence the height is .
The agreement is not a coincidence. With , the identity gives , and the projection residual satisfies .
Graded practice
- Foundation. For and , compute , both lengths, and their angle.
- Core. Find the closest point on to .
- Core. Find the area of the triangle with vertices .
- Proof. Prove that the projection residual minimizes over all real , and that the minimizer is unique when .
Full solutions
- The dot product is . The lengths are and . Both are nonzero, so the angle is .
- Project onto . The coefficient is . The closest point is ; the residual is perpendicular to and has length .
- The cross product is , with length . A triangle has half the parallelogram area, so the answer is .
- Put . Since , expansion gives . The last term is nonnegative and vanishes exactly when . This proves both claims without relying on a diagram.
Quick checks
Quick check
(Find both unit vectors that are perpendicular to and to .)
Write the two perpendicularity conditions for , or use a cross product, and then normalize.
Solution · Answer
A vector is perpendicular to both exactly when and , so for some real . The cross product gives the same direction: . Its length is , so the two unit vectors are
Quick check
(For which real numbers are and perpendicular?)
Both vectors are nonzero for every , so only the dot product needs to be examined.
Solution · Answer
The dot product is . The first vector has first entry and the second has middle entry , so neither is ever zero. They are perpendicular exactly when , that is, for only.
Quick check
(Does the line meet the plane ? If not, find the distance between them.)
Substitute the line into the plane equation and look at the coefficient of .
Solution · Answer
Substitution gives , so the equation becomes , which has no solution: the line misses the plane. The coefficient of is for and , so the line is parallel to the plane and all its points are equally far from it. Using the point and the point of the plane, the formula from the worked example gives
Summary and term definitions
The dot product detects perpendicularity and supports metric estimates. Projection separates parallel and perpendicular parts; cross products encode oriented area in three dimensions. A normal is perpendicular to every direction in a plane; a projection is the closest component in a prescribed subspace; linear dependence means one vector is a scalar multiple of the other, or one is zero. Do not normalize a zero vector or divide by its squared length.