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.
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.
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.
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.