Orthogonal Vectors and Subspaces
Problem
Verify that u = [1, 2, −1] and v = [3, 0, 3] are orthogonal by computing u · v. Show the right angle geometrically.
Explanation
Orthogonality from the dot product
Two vectors are orthogonal (written ) if their dot product is zero:
This is equivalent to the geometric statement "the angle between them is " — because
and .
Step-by-step
.
Step 1 — Compute the dot product.
Step 2 — Evaluate.
So ✓
Angle: , so .
Norms and normalization
The norm (length) of a vector is .
For our : . For : .
A unit vector has norm 1. Two unit vectors are orthonormal iff they are orthogonal.
Properties of the dot product
- Commutative: .
- Distributive: .
- Scalar: .
- Positive-definite: , with equality iff .
Orthogonal subspaces
Two subspaces are orthogonal if every vector in is orthogonal to every vector in . They need not span the whole space; they just can't share any direction.
The orthogonal complement of , written , is the set of all vectors orthogonal to every vector in . It satisfies:
Important identities for any matrix :
These are the four fundamental subspaces.
Why orthogonality matters
- Pythagorean theorem: .
- Projection: projecting onto a subspace uses orthogonal decomposition.
- Gram-Schmidt: builds an orthogonal basis from any set of linearly independent vectors.
- Fourier analysis: the sines and cosines are mutually orthogonal under the integral inner product.
Common mistakes
- Calling vectors orthogonal when one is zero. By convention, is orthogonal to every vector (dot product is zero).
- Confusing orthogonality with parallelism. Orthogonal: dot product 0. Parallel: cross product 0 (in ) or vectors are scalar multiples.
- Forgetting to square-root the norm. ; the length itself takes a square root.
Try it in the visualization
Drag two vectors in 3D. The angle display updates; the two vectors are colored to show orthogonality (green) vs. acute/obtuse angles (yellow/red). A small right-angle square appears at the origin when the dot product is zero.
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.