Tutorials › Linear Algebra › Pythagorean Identity for Orthogonal Sums

Orthogonal Sets and Gram-Schmidt · Tutorial 629 of 1000

Pythagorean Identity for Orthogonal Sums

Learn why the squared norm of a finite orthogonal sum is the sum of the individual squared norms, and how to verify and apply the identity.

Intermediate 8 min read

What You'll Learn

  • State the Pythagorean identity for a finite pairwise orthogonal list
  • Prove the identity by expanding the inner product of the sum with itself
  • Apply the identity to vectors in real and complex inner product spaces
  • Verify orthogonality and squared norms in a polynomial space
  • Identify when the identity cannot be applied and correct a common error

From Right Angles to Orthogonal Sums

For two perpendicular vectors in the plane, the Pythagorean theorem relates the length of their sum to their individual lengths. Inner product spaces extend this relationship beyond the plane: vectors may be polynomials or complex coordinate vectors, and a finite list may contain more than two vectors. The key condition is orthogonality. When every distinct pair in a list is orthogonal, the cross terms in the squared norm of the sum all vanish.

Let \(V\) be an inner product space over \(\mathbb{F}\), where \(\mathbb{F}=\mathbb{R}\) or \(\mathbb{C}\). The inner product is written \(\langle\mathbf{u},\mathbf{v}\rangle\), with the convention that it is linear in the first slot and conjugate-linear in the second. The induced norm is \(\|\mathbf{v}\|=\sqrt{\langle\mathbf{v},\mathbf{v}\rangle}\), so \(\|\mathbf{v}\|^2=\langle\mathbf{v},\mathbf{v}\rangle\). In a real inner product space, orthogonality means \(\langle\mathbf{u},\mathbf{v}\rangle=0\); in a complex inner product space, the same definition applies.

Definition: A finite list \(\mathbf{v}_1,\dots,\mathbf{v}_p\) in an inner product space is pairwise orthogonal if \(\langle\mathbf{v}_i,\mathbf{v}_j\rangle=0\) whenever \(i\ne j\). The list need not consist of nonzero vectors. Its sum is \(\mathbf{v}_1+\cdots+\mathbf{v}_p\).

The phrase “pairwise orthogonal” matters: each vector must be orthogonal to every other distinct vector in the list. It is not enough for the vectors to be orthogonal to one chosen member, nor does the definition require a vector to be orthogonal to itself. In particular, a list with just one vector is pairwise orthogonal because there are no distinct pairs to check.

The Pythagorean Identity

Theorem (Pythagorean identity for orthogonal sums): Let \(V\) be an inner product space over \(\mathbb{R}\) or \(\mathbb{C}\), and let \(\mathbf{v}_1,\dots,\mathbf{v}_p\) be a finite pairwise orthogonal list in \(V\). Then $$ \left\|\mathbf{v}_1+\cdots+\mathbf{v}_p\right\|^2 = \|\mathbf{v}_1\|^2+\cdots+\|\mathbf{v}_p\|^2. $$

Proof. Write \(\mathbf{s}=\mathbf{v}_1+\cdots+\mathbf{v}_p\). By the definition of the induced norm and linearity in the first slot, followed by conjugate-linearity in the second slot,

$$ \|\mathbf{s}\|^2 =\langle\mathbf{s},\mathbf{s}\rangle =\sum_{i=1}^{p}\sum_{j=1}^{p}\langle\mathbf{v}_i,\mathbf{v}_j\rangle. $$

Separate the terms with \(i=j\) from those with \(i\ne j\). The diagonal terms are \(\langle\mathbf{v}_i,\mathbf{v}_i\rangle=\|\mathbf{v}_i\|^2\). Every off-diagonal term is zero because the list is pairwise orthogonal. Thus the double sum is exactly \(\sum_{i=1}^{p}\|\mathbf{v}_i\|^2\), as required. If \(p=0\), the sum is the zero vector and the sum of squared norms is the empty sum \(0\), so the identity also holds under the usual empty-sum convention. \(\square\)

This proof works over both fields. In the complex case, the conjugation in the second slot does not create an extra term: every cross inner product is already zero. Also, if \(\langle\mathbf{v}_i,\mathbf{v}_j\rangle=0\), conjugate symmetry gives \(\langle\mathbf{v}_j,\mathbf{v}_i\rangle=\overline{\langle\mathbf{v}_i,\mathbf{v}_j\rangle}=0\). Therefore both orders of each cross term vanish.

For two orthogonal vectors, the theorem says \(\|\mathbf{u}+\mathbf{v}\|^2=\|\mathbf{u}\|^2+\|\mathbf{v}\|^2\). The finite-list version is not a different assumption applied repeatedly: its proof directly accounts for every pair of terms in the expansion. No finite-dimensionality assumption is needed; only a finite list and an inner product are required.

Worked Example: Three Orthogonal Vectors in R³

Consider \(\mathbf{u}=(1,1,0)^{\top}\), \(\mathbf{v}=(1,-1,2)^{\top}\), and \(\mathbf{w}=(1,-1,-1)^{\top}\) with the usual dot product in \(\mathbb{R}^3\). First check every distinct pair:

$$ \mathbf{u}\cdot\mathbf{v}=1-1+0=0,\qquad \mathbf{u}\cdot\mathbf{w}=1-1+0=0,\qquad \mathbf{v}\cdot\mathbf{w}=1+1-2=0. $$

Thus the list is pairwise orthogonal. Its squared norms are

$$ \|\mathbf{u}\|^2=1^2+1^2+0^2=2,\quad \|\mathbf{v}\|^2=1^2+(-1)^2+2^2=6,\quad \|\mathbf{w}\|^2=1^2+(-1)^2+(-1)^2=3. $$

The identity predicts that the squared norm of the sum is \(2+6+3=11\). Compute the sum and check directly:

$$ \mathbf{u}+\mathbf{v}+\mathbf{w} =(1+1+1,\;1-1-1,\;0+2-1)^{\top} =(3,-1,1)^{\top}, $$ $$ \|\mathbf{u}+\mathbf{v}+\mathbf{w}\|^2 =3^2+(-1)^2+1^2=11. $$

The direct calculation agrees with the sum of the three individual squared norms. This example also illustrates why checking all three dot products matters: a list of three vectors is pairwise orthogonal only if all three distinct pairs pass the test.

Using the Identity in a Polynomial Space

The same calculation applies when vectors are not coordinate columns. For real polynomials on \([-1,1]\), use the inner product \(\langle f,g\rangle=\int_{-1}^{1}f(x)g(x)\,dx\). The induced squared norm is \(\|f\|^2=\int_{-1}^{1}f(x)^2\,dx\). To apply the identity, verify orthogonality with this inner product, rather than by comparing polynomial coefficients.

Worked Example: An Orthogonal Polynomial Sum

In the real polynomial space with the integral inner product above, let \(f_1(x)=1\), \(f_2(x)=x\), and \(f_3(x)=x^2-\tfrac13\). Verify that these three polynomials are pairwise orthogonal.

$$ \langle f_1,f_2\rangle=\int_{-1}^{1}x\,dx=0, $$ $$ \langle f_1,f_3\rangle =\int_{-1}^{1}\left(x^2-\frac13\right)dx =\frac23-\frac23=0, $$ $$ \langle f_2,f_3\rangle =\int_{-1}^{1}\left(x^3-\frac{x}{3}\right)dx=0. $$

The first and third integrands in the first and last calculations are odd, so their integrals over \([-1,1]\) are zero. The middle integral follows from \(\int_{-1}^{1}x^2\,dx=\tfrac23\) and \(\int_{-1}^{1}1\,dx=2\). Next compute the squared norms:

$$ \|f_1\|^2=\int_{-1}^{1}1\,dx=2,\qquad \|f_2\|^2=\int_{-1}^{1}x^2\,dx=\frac23, $$ $$ \|f_3\|^2 =\int_{-1}^{1}\left(x^2-\frac13\right)^2dx =\frac25-\frac49+\frac29 =\frac{8}{45}. $$

The Pythagorean identity gives \(\|f_1+f_2+f_3\|^2=2+\tfrac23+\tfrac{8}{45}=\tfrac{128}{45}\). To check, the sum is \(x^2+x+\tfrac23\), and its square is \(x^4+2x^3+\tfrac73x^2+\tfrac43x+\tfrac49\). Integrating, the odd terms have zero integral, while the remaining terms give

$$ \int_{-1}^{1}\left(x^2+x+\frac23\right)^2dx =\frac25+\frac73\cdot\frac23+\frac49\cdot2 =\frac25+\frac{14}{9}+\frac89 =\frac{128}{45}. $$

This direct check matches the identity. It also shows that the terms in the theorem are squared norms, not norms: here the sum is \(\|f_1\|^2+\|f_2\|^2+\|f_3\|^2\), not \(\|f_1\|+\|f_2\|+\|f_3\|\).

Complex Inner Products and Cross Terms

In \(\mathbb{C}^n\), the standard inner product under the course convention is \(\langle\mathbf{u},\mathbf{v}\rangle=\sum_k u_k\overline{v_k}\). Because one slot is conjugated, a complex orthogonality check should use the inner product itself; real dot-product intuition alone does not determine the calculation. Once the inner product is zero, however, the Pythagorean identity applies just as it does over \(\mathbb{R}\).

Worked Example: Two Orthogonal Vectors in C²

Take \(\mathbf{u}=(1,i)^{\top}\) and \(\mathbf{v}=(i,1)^{\top}\). Under the standard complex inner product,

$$ \langle\mathbf{u},\mathbf{v}\rangle =1\overline{i}+i\overline{1} =-i+i=0. $$

The squared norms are \(\|\mathbf{u}\|^2=1\overline{1}+i\overline{i}=1+1=2\) and \(\|\mathbf{v}\|^2=i\overline{i}+1\overline{1}=1+1=2\). So the identity predicts \(\|\mathbf{u}+\mathbf{v}\|^2=4\). In fact, \(\mathbf{u}+\mathbf{v}=(1+i,1+i)^{\top}\), and

$$ \|\mathbf{u}+\mathbf{v}\|^2 =(1+i)\overline{(1+i)}+(1+i)\overline{(1+i)} =2+2=4. $$

The check uses \((1+i)\overline{(1+i)}=(1+i)(1-i)=2\) in each coordinate. Both the inner-product test and the norm calculation therefore agree with the theorem.

When the Identity Does Not Apply

Pairwise orthogonality is a hypothesis, not a conclusion that follows from having a sum. If two vectors are not orthogonal, their inner products remain in the expansion. For two vectors in a real inner product space, the full expansion is \(\|\mathbf{u}+\mathbf{v}\|^2=\|\mathbf{u}\|^2+2\langle\mathbf{u},\mathbf{v}\rangle+\|\mathbf{v}\|^2\). In a complex space, the two cross terms combine as \(2\operatorname{Re}\langle\mathbf{u},\mathbf{v}\rangle\), where \(\operatorname{Re}\) denotes real part. Thus they vanish for an orthogonal pair, but need not vanish otherwise.

Common mistake: applying the identity without checking orthogonality. Let \(\mathbf{a}=(1,0)^{\top}\) and \(\mathbf{b}=(1,1)^{\top}\) in \(\mathbb{R}^2\). A tempting but incorrect calculation is to add their squared norms and claim \(\|\mathbf{a}+\mathbf{b}\|^2=1+2=3\). The condition fails because \(\mathbf{a}\cdot\mathbf{b}=1\), not \(0\). The actual sum is \((2,1)^{\top}\), whose squared norm is \(2^2+1^2=5\). The missing cross contribution is \(2(\mathbf{a}\cdot\mathbf{b})=2\), so the correct expansion gives \(1+2+2=5\).

Takeaway: Before using the Pythagorean identity, establish that every pair of distinct vectors in the finite list is orthogonal. Then square the norm of the sum and add the individual squared norms; no cross terms remain.

The identity is useful because it converts one norm calculation into several smaller ones whenever orthogonality is known. It applies to real and complex inner product spaces and does not require coordinates or finite dimension. For a finite list, the proof is always the same: expand the inner product of the sum with itself, retain the diagonal terms, and use pairwise orthogonality to eliminate the rest.

Check Your Understanding

For each question, identify which inner products or squared norms must be checked before applying the identity.

  1. In \(\mathbb{R}^2\), let \(\mathbf{u}=(2,1)^{\top}\) and \(\mathbf{v}=(-1,2)^{\top}\). Verify orthogonality, then compute \(\|\mathbf{u}+\mathbf{v}\|^2\) in two ways.
  2. Explain why a one-vector list satisfies the pairwise orthogonality condition, and state the identity for that list.
  3. In the polynomial space with \(\langle f,g\rangle=\int_{-1}^{1}f(x)g(x)\,dx\), check whether \(1\) and \(x^2\) are orthogonal. Can the identity be used for their sum?
  4. For the complex inner product convention used here, if \(\langle\mathbf{u},\mathbf{v}\rangle=0\), what is \(\langle\mathbf{v},\mathbf{u}\rangle\), and why?
  5. Find the missing cross term in the squared norm of \((1,0)^{\top}+(1,1)^{\top}\), and use it to explain why the orthogonal-sum identity does not apply.

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