Euler Hall — free maths guides

Test that a list of vectors is orthonormal

State the two conditions (perpendicular pairs, unit length) and check both. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.

Two words that look like one

Orthogonal means perpendicular: every two different vectors in the list have dot product00.

Orthonormal means orthogonal and unit length: the same dot products are00, and every vector has length11.

In one line, for a listq1,…,qnq_1,\dots,q_n: qiTqj={0i≠j1i=jq_i^Tq_j=\begin{cases}0 & i\neq j\\[2pt] 1 & i=j\end{cases}

The diagonal condition is where students lose marks. It is not decoration: without it, dividing by a length is still needed everywhere, and the whole point of the object — that the inverse becomes a transpose — disappears.

Put the vectors into the columns ofQQ. Then the two conditions are exactly one matrix equation: QTQ=I\boxed{Q^TQ=I}

The right-hand side is the identity of sizenn, the number of vectors, not the number of rows.

Why the two conditions are independent

Multiplication by a nonzero numbercc multiplies every dot product involving that vector bycc, and multiplies its squared length byc2c^2. So:

  • - scaling can break unit length and can repair it;
  • - scaling can never break orthogonality, becausec⋅0=0c\cdot 0=0.

That asymmetry is why the two conditions can fail separately, and why "orthogonal" is a statement about directions while "orthonormal" adds a statement about sizes.

For an orthonormal list,QTQ=IQ^TQ=I follows from the definition one entry at a time: the(i,j)(i,j) entry ofQTQQ^TQ is rowii ofQTQ^T times columnjj ofQQ, which isqiTqjq_i^Tq_j —00 when the indices differ,11 when they match.

Two vectors, both checks, all the arithmetic

Areq1=15[34]q_1=\tfrac15\begin{bmatrix}3\\4\end{bmatrix} andq2=15[−43]q_2=\tfrac15\begin{bmatrix}-4\\3\end{bmatrix} orthonormal?

Orthogonal:q1Tq2=125(3⋅(−4)+4⋅3)=125(−12+12)=0q_1^Tq_2=\tfrac{1}{25}\big(3\cdot(-4)+4\cdot3\big)=\tfrac{1}{25}(-12+12)=0 ✓

Unit length:∥q1∥2=125(9+16)=2525=1\|q_1\|^2=\tfrac{1}{25}(9+16)=\tfrac{25}{25}=1 ✓ and∥q2∥2=125(16+9)=1\|q_2\|^2=\tfrac{1}{25}(16+9)=1 ✓

Both hold, so the list is orthonormal.

Now the useful contrast: the undivided vectors(3,4)(3,4) and(−4,3)(-4,3) are perpendicular, since3⋅(−4)+4⋅3=03\cdot(-4)+4\cdot3=0, but each has length55. Orthogonal, not orthonormal — and the only thing missing is one division per vector.

By the end you can
  • State the two conditions (perpendicular pairs, unit length) and check both
  • Decide whether a pair or triple is orthonormal, orthogonal only, unit only, or neither
  • Read the two conditions off the single matrix equation Q^TQ = I
  • Repair an orthogonal list by dividing each vector by its length
Check yourself

Takec1=12[11]c_1=\tfrac1{\sqrt2}\begin{bmatrix}1\\1\end{bmatrix} andc2=12[1−1]c_2=\tfrac{1}{\sqrt2}\begin{bmatrix}1\\-1\end{bmatrix}.

Are they orthonormal? Compute both dot products and both squared lengths, and state the verdict as one of the four: orthonormal, orthogonal only, unit only, neither.

The check answer

Orthonormal.

c1Tc2=12((1)(1)+(1)(−1))=12(0)=0c_1^Tc_2=\tfrac12\big((1)(1)+(1)(-1)\big)=\tfrac12(0)=0 ✓

∥c1∥2=12(1+1)=1\|c_1\|^2=\tfrac12(1+1)=1 ✓ and∥c2∥2=12(1+1)=1\|c_2\|^2=\tfrac12(1+1)=1 ✓

Both conditions hold. Note the12\tfrac{1}{\sqrt2} in front of each vector: it is exactly the division by2\sqrt2 that turns(1,1)(1,1) and(1,−1)(1,-1) — perpendicular but of length2\sqrt2 — into an orthonormal list.

Work out where to start — free, no accountAnswer six real questions — free, no account