Check that a Gram-Schmidt residual is orthogonal to the previous vector
Dot a new vector with every earlier orthogonal vector, not just the last one. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.
To certify that a set is orthogonal you need every pair to vanish: That is dot products: 1 for two vectors, 3 for three, 6 for four.
In Gram-Schmidt the count is the same but the shape is convenient. A new vector is compared with all the ones already built, so the third vector needs two dots, the fourth three. Each new vector costs one dot per earlier vector, and total work is.
What the check proves. Mutual perpendicularity plus no zero vector forces independence: if, dot with and every term except dies, so. Each dot product isolates one coefficient.
What it does not prove. Unit length. An orthogonal set becomes orthonormal only after dividing each vector by its own length.
This is the mechanism, and it is the same one that makes orthonormal coordinates single dot products.
Take a relation.. Dot both sides with: If the set is orthogonal, the last two terms are zero, leaving, so. Repeat with and and every coefficient dies.
Why this is stronger than it looks. The argument works with no elimination, no rank computation and no size restriction — it is a proof that orthogonal nonzero sets are independent, and it is one line per coefficient.
And why normalisation is not needed for it. The step divides by, which is nonzero exactly when, so the argument works for orthogonal sets and not only orthonormal ones. Unit length matters for coordinates, not for independence.
What goes wrong if a vector is zero. Then and the division is illegal, which is the dot-product version of "a zero vector in the list makes it dependent". Same statement, different route.
For,,:
All three pairs vanish, so the set is orthogonal. The squared lengths are, none of which is, so the set is not orthonormal.
Now break one on purpose. Take instead: Two of the three pairs still pass, and the set is not orthogonal.
What produced that pattern. is with its third entry zeroed, which leaves a component along. In Gram-Schmidt terms the-projection did not come off. And notice still vanishes — which is exactly why checking only one pair is not enough, and why "the pair I happened to test passed" is not evidence.
The independence conclusion. Since all three dots vanish and no vector is zero, the three are independent, hence a basis for — but not an orthonormal one.
- Dot a new vector with every earlier orthogonal vector, not just the last one
- Count the perpendicular pairs in a set and reject a set where any pair fails
- Say what mutual perpendicularity proves (independence) and what it does not (orthonormality)
(a) How many dot products certify four vectors as orthogonal? (b) A set has and. Is it orthonormal? (c) Three nonzero vectors are pairwise perpendicular. Are they independent?
Answers
(a) Six:.
(b) For a pair, yes — both conditions hold. For a larger set you would need every pair, plus every length.
(c) Yes. Dot the relation with each vector in turn and each coefficient dies.