Tutorials › Linear Algebra › Coefficients Along an Orthonormal List

Orthogonal Sets and Gram-Schmidt · Tutorial 631 of 1000

Coefficients Along an Orthonormal List

Learn why the coefficient along a unit vector is the inner product with that vector, and how this formula changes with inner-product conventions.

Intermediate 9 min read

What You'll Learn

  • State the orthonormality conditions for a finite list in a real or complex inner-product space.
  • Derive the coefficient along a unit vector using the convention that the inner product is linear in its first slot.
  • Extract a coefficient from a decomposition with a residual orthogonal to the list.
  • Verify coefficients and orthogonal residuals in real and complex examples.
  • Recognize why reversing the inner-product arguments can conjugate a complex coefficient.

The Coefficient Along One Unit Vector

An orthonormal list gives a simple way to identify the scalar multiplying any one of its vectors. The key is to take an inner product with that particular vector: orthogonality makes the other list members contribute zero, while unit length leaves the desired scalar unchanged. Over \(\mathbb{C}\), the order of the inner-product arguments matters, so the formula depends on the convention for which slot is linear.

Throughout, the scalar field is \(\mathbb{R}\) or \(\mathbb{C}\). We use the convention that the inner product is linear in its first slot and conjugate-linear in its second slot. Thus \(\langle a\mathbf{x},\mathbf{y}\rangle=a\langle\mathbf{x},\mathbf{y}\rangle\) and \(\langle\mathbf{x},a\mathbf{y}\rangle=\overline{a}\langle\mathbf{x},\mathbf{y}\rangle\). Over \(\mathbb{R}\), conjugation has no effect. In either field, \(\langle\mathbf{u},\mathbf{u}\rangle=\|\mathbf{u}\|^2\).

Definition: A finite list \((\mathbf{u}_1,\dots,\mathbf{u}_p)\) in an inner-product space is orthonormal if \(\langle\mathbf{u}_j,\mathbf{u}_k\rangle=0\) whenever \(j\ne k\), and \(\|\mathbf{u}_k\|=1\) for every \(k\). Two vectors are orthogonal when their inner product is zero. A scalar \(\alpha\) is the coefficient of \(\mathbf{u}\) in a decomposition \(\mathbf{x}=\alpha\mathbf{u}+\mathbf{w}\) when \(\mathbf{w}\) is orthogonal to \(\mathbf{u}\).

For a unit vector \(\mathbf{u}\), the coefficient along \(\mathbf{u}\) is \(\langle\mathbf{x},\mathbf{u}\rangle\). The unit-length condition matters: it is what turns \(\langle\mathbf{u},\mathbf{u}\rangle\) into \(1\). For an orthonormal list, taking the inner product with \(\mathbf{u}_k\) isolates the coefficient of that member, provided the other part of the vector is orthogonal to the list.

Why the Formula Gives the Coefficient

Theorem: Let \(\mathbf{u}\) be a unit vector in an inner-product space over \(\mathbb{R}\) or \(\mathbb{C}\). For every vector \(\mathbf{x}\), the unique scalar \(\alpha\) for which \(\mathbf{x}-\alpha\mathbf{u}\) is orthogonal to \(\mathbf{u}\) is \(\alpha=\langle\mathbf{x},\mathbf{u}\rangle\).

Proof. Set \(\alpha=\langle\mathbf{x},\mathbf{u}\rangle\) and \(\mathbf{w}=\mathbf{x}-\alpha\mathbf{u}\). Since the inner product is linear in its first slot and \(\langle\mathbf{u},\mathbf{u}\rangle=1\),

$$ \langle\mathbf{w},\mathbf{u}\rangle =\langle\mathbf{x}-\alpha\mathbf{u},\mathbf{u}\rangle =\langle\mathbf{x},\mathbf{u}\rangle-\alpha\langle\mathbf{u},\mathbf{u}\rangle =\alpha-\alpha=0. $$

So this choice of \(\alpha\) makes the remainder orthogonal to \(\mathbf{u}\). To prove uniqueness, suppose also that \(\mathbf{x}-\beta\mathbf{u}\) is orthogonal to \(\mathbf{u}\). Then \(\langle\mathbf{x},\mathbf{u}\rangle-\beta\langle\mathbf{u},\mathbf{u}\rangle=0\), so \(\langle\mathbf{x},\mathbf{u}\rangle-\beta=0\), and hence \(\beta=\langle\mathbf{x},\mathbf{u}\rangle=\alpha\). \(\square\)

This result also identifies the vector component along \(\mathbf{u}\): it is \(\langle\mathbf{x},\mathbf{u}\rangle\mathbf{u}\). The rest, \(\mathbf{x}-\langle\mathbf{x},\mathbf{u}\rangle\mathbf{u}\), is orthogonal to \(\mathbf{u}\). This is a statement about one direction at a time; it does not require that \(\mathbf{u}\) span the whole space.

Worked Example: A Real Unit Vector

Let \(\mathbf{u}=(3/5,4/5)^{\top}\) and \(\mathbf{x}=(2,1)^{\top}\) in \(\mathbb{R}^2\). Find the coefficient of \(\mathbf{x}\) along \(\mathbf{u}\), and check the orthogonal remainder.

First, \(\|\mathbf{u}\|^2=9/25+16/25=1\), so \(\mathbf{u}\) is a unit vector. The coefficient is

$$ \langle\mathbf{x},\mathbf{u}\rangle =\mathbf{x}^{\top}\mathbf{u} =2\left(\frac35\right)+1\left(\frac45\right) =\frac65+\frac45=2. $$

The component along \(\mathbf{u}\) is \(2\mathbf{u}=(6/5,8/5)^{\top}\). Subtract it from \(\mathbf{x}\):

$$ \mathbf{x}-2\mathbf{u} =\begin{bmatrix}2\\1\end{bmatrix} -\begin{bmatrix}6/5\\8/5\end{bmatrix} =\begin{bmatrix}4/5\\-3/5\end{bmatrix}. $$

Check: the remainder is orthogonal to \(\mathbf{u}\), since \((3/5)(4/5)+(4/5)(-3/5)=12/25-12/25=0\). Thus \(\mathbf{x}=2\mathbf{u}+(\mathbf{x}-2\mathbf{u})\) has the claimed coefficient and an orthogonal remainder.

Isolating a Member of an Orthonormal List

Theorem: Let \((\mathbf{u}_1,\dots,\mathbf{u}_p)\) be an orthonormal list in an inner-product space over \(\mathbb{R}\) or \(\mathbb{C}\). Suppose \(\mathbf{x}=c_1\mathbf{u}_1+\cdots+c_p\mathbf{u}_p+\mathbf{r}\), where \(\mathbf{r}\) is orthogonal to every \(\mathbf{u}_j\). Then, for each \(k\), \(c_k=\langle\mathbf{x},\mathbf{u}_k\rangle\).

Proof. Fix an index \(k\). Take the inner product of the stated decomposition with \(\mathbf{u}_k\) in the second slot. Linearity in the first slot gives

$$ \langle\mathbf{x},\mathbf{u}_k\rangle =\sum_{j=1}^{p}c_j\langle\mathbf{u}_j,\mathbf{u}_k\rangle +\langle\mathbf{r},\mathbf{u}_k\rangle. $$

The residual term is zero because \(\mathbf{r}\) is orthogonal to \(\mathbf{u}_k\). Orthonormality gives \(\langle\mathbf{u}_j,\mathbf{u}_k\rangle=0\) for \(j\ne k\) and \(\langle\mathbf{u}_k,\mathbf{u}_k\rangle=1\). The sum therefore has only one nonzero possible term, namely \(c_k\), so \(\langle\mathbf{x},\mathbf{u}_k\rangle=c_k\). Since \(k\) was arbitrary, this holds for each member of the list. \(\square\)

The orthogonality of the residual is part of the hypothesis. If \(\mathbf{x}\) has additional components outside the span of the list, the theorem still applies when those components together form a residual orthogonal to every list member. It does not claim that every vector is a linear combination of the list. Also, the formula extracts a coefficient only relative to such a decomposition; the theorem does not require that the list be a basis of the whole space.

Worked Example: A Member of a Real Orthonormal List

In \(\mathbb{R}^3\), consider \(\mathbf{u}_1=(1,1,0)^{\top}/\sqrt{2}\) and \(\mathbf{u}_2=(1,-1,2)^{\top}/\sqrt{6}\). Find the coefficient along \(\mathbf{u}_2\) for \(\mathbf{x}=(1,2,3)^{\top}\), and verify the orthogonal remainder for that member.

The squared norms of the two vectors are \((1+1)/2=1\) and \((1+1+4)/6=1\). Their inner product is \((1-1+0)/\sqrt{12}=0\), so this is an orthonormal list. The coefficient along its second member is

$$ \langle\mathbf{x},\mathbf{u}_2\rangle =\frac{1-2+6}{\sqrt{6}} =\frac{5}{\sqrt{6}}. $$

The corresponding component and remainder are

$$ \frac{5}{\sqrt{6}}\mathbf{u}_2 =\begin{bmatrix}5/6\\-5/6\\5/3\end{bmatrix}, \qquad \mathbf{x}-\frac{5}{\sqrt{6}}\mathbf{u}_2 =\begin{bmatrix}1/6\\17/6\\4/3\end{bmatrix}. $$

Check: the inner product of the remainder with \(\mathbf{u}_2\) is \(\bigl(1/6-17/6+2(4/3)\bigr)/\sqrt{6}=(-16/6+16/6)/\sqrt{6}=0\). This verifies the coefficient along \(\mathbf{u}_2\). The remainder need not be orthogonal to \(\mathbf{u}_1\) here, because we have removed only the component along \(\mathbf{u}_2\).

The Complex Convention and Conjugation

Over \(\mathbb{C}\), the order in the formula is essential. With the convention used here, multiplying the first argument by a scalar pulls that scalar out unchanged. Therefore the coefficient \(\alpha\) in \(\alpha\mathbf{u}\) is recovered by \(\langle\alpha\mathbf{u},\mathbf{u}\rangle=\alpha\), not by its conjugate. Reversing the arguments generally conjugates the result: conjugate symmetry gives \(\langle\mathbf{u},\mathbf{x}\rangle=\overline{\langle\mathbf{x},\mathbf{u}\rangle}\).

Worked Example: A Complex Coefficient

Use the standard inner product on \(\mathbb{C}^2\), linear in the first slot: \(\langle\mathbf{x},\mathbf{y}\rangle=x_1\overline{y_1}+x_2\overline{y_2}\). Let \(\mathbf{u}=(1,i)^{\top}/\sqrt{2}\) and \(\mathbf{x}=(i,0)^{\top}\). Find the coefficient along \(\mathbf{u}\).

The vector is unit because \(\langle\mathbf{u},\mathbf{u}\rangle=(1+|i|^2)/2=1\). In the second slot, the first component of \(\mathbf{u}\) remains \(1/\sqrt{2}\), while the conjugate of its second component is \(-i/\sqrt{2}\). Thus

$$ \langle\mathbf{x},\mathbf{u}\rangle =\frac{i\cdot1+0\cdot(-i)}{\sqrt{2}} =\frac{i}{\sqrt{2}}. $$

The component along \(\mathbf{u}\) and the remainder are

$$ \frac{i}{\sqrt{2}}\mathbf{u} =\begin{bmatrix}i/2\\-1/2\end{bmatrix}, \qquad \mathbf{x}-\frac{i}{\sqrt{2}}\mathbf{u} =\begin{bmatrix}i/2\\1/2\end{bmatrix}. $$

Check: the inner product of the remainder with \(\mathbf{u}\) is \(\bigl((i/2)\cdot1+(1/2)(-i)\bigr)/\sqrt{2}=0\). By contrast, \(\langle\mathbf{u},\mathbf{x}\rangle=-i/\sqrt{2}\), the conjugate of the coefficient. The order used in the coefficient formula is therefore \(\langle\mathbf{x},\mathbf{u}\rangle\) for this convention.

Common Mistakes and a Useful Contrast

Reversing the arguments in a complex space. In the preceding example, a tempting calculation is to take \(\langle\mathbf{u},\mathbf{x}\rangle\) as the coefficient. It gives \(-i/\sqrt{2}\), not \(i/\sqrt{2}\). Indeed, multiplying \(\mathbf{u}\) by that mistaken scalar would not produce a remainder orthogonal to \(\mathbf{u}\). The correction is to use \(\langle\mathbf{x},\mathbf{u}\rangle\), consistent with linearity in the first slot, and then check that \(\langle\mathbf{x}-\langle\mathbf{x},\mathbf{u}\rangle\mathbf{u},\mathbf{u}\rangle=0\).

Forgetting that the vector must be unit length. If \(\mathbf{v}\ne\mathbf{0}\) is not a unit vector and \(\mathbf{x}=\alpha\mathbf{v}+\mathbf{w}\) with \(\mathbf{w}\perp\mathbf{v}\), then \(\langle\mathbf{x},\mathbf{v}\rangle=\alpha\|\mathbf{v}\|^2\). Thus the coefficient is \(\langle\mathbf{x},\mathbf{v}\rangle/\|\mathbf{v}\|^2\), not simply \(\langle\mathbf{x},\mathbf{v}\rangle\). For example, with \(\mathbf{v}=(2,0)^{\top}\) and \(\mathbf{x}=(3,1)^{\top}\), the coefficient is \(3/2\): the remainder \(\mathbf{x}-(3/2)\mathbf{v}=(0,1)^{\top}\) is orthogonal to \(\mathbf{v}\). The raw inner product is \(6\), which is not the coefficient because \(\|\mathbf{v}\|^2=4\).

For an orthonormal list, the rule is especially clean: take the inner product of the vector with the chosen list member in the second slot. Unit length removes a norm factor, and orthogonality removes contributions from the other list members when the remaining part is orthogonal to the list. In complex spaces, preserving the argument order ensures the coefficient itself—not its conjugate—is recovered.

Check Your Understanding

For each question, keep the inner-product convention in view and verify any proposed coefficient by checking orthogonality of the remainder.

  1. If \(\mathbf{u}\) is a unit vector and \(\mathbf{x}=\alpha\mathbf{u}+\mathbf{w}\) with \(\mathbf{w}\perp\mathbf{u}\), which inner product gives \(\alpha\) under the convention used here?
  2. Let \(\mathbf{u}=(1,0)^{\top}\) and \(\mathbf{x}=(4,3)^{\top}\) in \(\mathbb{R}^2\). Find the coefficient along \(\mathbf{u}\) and the remainder.
  3. For an orthonormal list and a decomposition with residual orthogonal to every member, explain why taking the inner product with \(\mathbf{u}_k\) removes all terms except \(c_k\).
  4. In \(\mathbb{C}^2\), with the convention linear in the first slot, how is \(\langle\mathbf{u},\mathbf{x}\rangle\) related to \(\langle\mathbf{x},\mathbf{u}\rangle\)?
  5. If \(\mathbf{v}\ne\mathbf{0}\) is not a unit vector, what norm factor must be included when finding the coefficient of \(\mathbf{x}\) along \(\mathbf{v}\)?

Test yourself: Linear Algebra final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon