Login
📚 Linear Algebra, Interactive Edition
Chapters ▾
⇩ Download ▾

6.2 A Line and Its Complement

The projection of the last section split a vector into two perpendicular pieces: one in the plane, one along the normal line. That pairing — plane and normal line — is no accident of the example. Every subspace V has an orthogonal complement V: the set of all vectors perpendicular to every vector of V. The complement is itself a subspace (perpendicularity survives adding and scaling), and the two mesh so tightly that each determines the other completely.

The figure makes the pairing mechanical. The red line consists of all multiples of the direction vector (a,b,1), with a and b on sliders. Which vectors (x,y,z) are perpendicular to it? Exactly those with (x,y,z)·(a,b,1)=0, that is, ax+by+z=0 — the equation of a plane through the origin, drawn in the scene as the surface z=axby. The scene never computes an angle; the plane is perpendicular to the line by construction, because its equation is the perpendicularity condition itself.

A solid red line through the origin piercing a semi-transparent plane, meeting it at a perfect right angle. Two sliders a and b tilt the line's direction; the plane automatically re-tilts to stay exactly perpendicular to the line, so the pair always looks like a pole through a sheet.Explore in 3D (opens in a new tab)
The red line of all multiples of (a,b,1) and its orthogonal complement, the plane z=axby, whose normal is the line's own direction. The sliders a and b tilt the line; the plane re-tilts in lockstep to stay exactly perpendicular.

Explore the figure

  1. At the defaults a=0.6, b=0.4, orbit until the plane is edge-on. Line and plane meet like a pole through a sheet — the right angle holds from every viewing direction that shows the plane as a line.
  2. Drag a slowly across its range. The line swings one way; the plane counter-tilts instantly. No slider position breaks the perpendicularity, because the plane's formula is the perpendicularity condition.
  3. Set a=0 and b=0. The line becomes the z-axis and the complement flattens into the xy-plane — the most familiar line–plane pair in the book, revealed as an orthogonal complement pair.
  4. Count dimensions as you drag: one for the line, two for the plane, three in total, at every slider position. The complement absorbs every direction the line does not use.

Every vector splits, uniquely

The complement pairing is what makes projection bookkeeping exact. Given any vector 𝐰 and the line direction 𝐝=(a,b,1), the piece of 𝐰 along the line is ((𝐰·𝐝)/(𝐝·𝐝))𝐝 — the projection onto the line — and what remains is perpendicular to 𝐝, hence in the plane. So 𝐰 = line part + plane part, always. Uniqueness comes from the only vector the two subspaces share: a vector in both is perpendicular to itself, so 𝐰·𝐰=0 forces it to be the zero vector. Two decompositions would differ by a shared nonzero vector, and there is none to differ by.

An original work of XYZ Homework, built around interactive XYZ 3D figures. Its chapter sequence is aligned to Interactive Linear Algebra (Margalit & Rabinoff, Georgia Tech, GNU FDL); this work is original, copies nothing from it, and is not affiliated with or endorsed by its authors. License: CC-BY-NC-SA-4.0.