Skip to content

Inner Product Spaces

Attempt these from memory before reading.

  • State the three defining properties of an inner product.
  • Why is the conjugate symmetry ⟨u,v⟩=⟨v,u⟩‾\langle u, v\rangle = \overline{\langle v, u\rangle} rather than plain symmetry?
  • Write the norm induced by an inner product.
  • State the Cauchy-Schwarz inequality. What does it let you define?
  • What is the orthogonal complement of a subspace?

Check your answers against the text. Prompt 2 is the one that matters for quantum mechanics: without the conjugate, a complex vector space could not have ⟨v,v⟩≥0\langle v, v\rangle \ge 0.

Motivation: an inner product is the structure you have to add

Section titled “Motivation: an inner product is the structure you have to add”

A vector space has no lengths and no angles. You cannot ask whether two vectors are perpendicular, because nothing in the eight axioms mentions geometry. That is not an oversight — it is what makes the definition apply to so many things.

An inner product is the extra structure that supplies all of it. Given one, you get:

  • a norm, ∥v∥=⟨v,v⟩\lVert v\rVert = \sqrt{\langle v, v\rangle};
  • angles, through the Cauchy-Schwarz inequality ∣⟨u,v⟩∣≤∥u∥∥v∥\lvert\langle u,v\rangle\rvert \le \lVert u\rVert\lVert v\rVert, which makes cos⁡θ=⟨u,v⟩∥u∥∥v∥\cos\theta = \frac{\langle u,v\rangle}{\lVert u\rVert\lVert v\rVert} well defined;
  • orthogonality, ⟨u,v⟩=0\langle u, v\rangle = 0;
  • and, most usefully, the ability to decompose a vector into independent pieces.

Why the conjugate matters. Over R\mathbb{R} symmetry is enough. Over C\mathbb{C}, plain symmetry would force ⟨v,v⟩\langle v, v\rangle to be complex, and then ∥v∥\lVert v\rVert has no meaning. Requiring conjugate symmetry makes ⟨v,v⟩\langle v,v\rangle real, so positivity can be stated, and it is the reason quantum mechanical inner products are ⟨ϕ∣ψ⟩\langle\phi|\psi\rangle rather than ⟨ψ∣ϕ⟩\langle\psi|\phi\rangle.

Orthogonal projection is why any of this is practical. Given a subspace, every vector splits uniquely into a piece inside it and a piece perpendicular to it. The inside piece is the best approximation the subspace can offer — and “best approximation given a subspace” is precisely what least squares asks. The entire theory of fitting data to a model is an orthogonal projection.

An inner product on a vector space VV over FF (where F=RF = \mathbb{R} or C\mathbb{C}) is a Function ⟨⋅,⋅⟩:V×V→F\langle \cdot, \cdot \rangle : V \times V \to F satisfying:

  1. Conjugate symmetry: ⟨u,v⟩=⟨v,u⟩‾\langle \mathbf{u}, \mathbf{v} \rangle = \overline{\langle \mathbf{v}, \mathbf{u} \rangle}
  2. Linearity in the first argument: ⟨αu+βw,v⟩=α⟨u,v⟩+β⟨w,v⟩\langle \alpha\mathbf{u} + \beta\mathbf{w}, \mathbf{v} \rangle = \alpha\langle \mathbf{u}, \mathbf{v} \rangle + \beta\langle \mathbf{w}, \mathbf{v} \rangle
  3. Positive definiteness: ⟨v,v⟩≥0\langle \mathbf{v}, \mathbf{v} \rangle \geq 0 with equality iff v=0\mathbf{v} = \mathbf{0}

A vector space equipped with an inner product is called an inner product space.

Example. The standard inner product on Rn\mathbb{R}^n is ⟨x,y⟩=∑i=1nxiyi\langle \mathbf{x}, \mathbf{y} \rangle = \sum_{i=1}^n x_i y_i. On Cn\mathbb{C}^n ⟨x,y⟩=∑i=1nxiyi‾\langle \mathbf{x}, \mathbf{y} \rangle = \sum_{i=1}^n x_i \overline{y_i}.

Example. On C[a,b]C[a,b] The L2L^2 inner product is ⟨f,g⟩=∫abf(x)g(x) dx\langle f, g \rangle = \int_a^b f(x)g(x)\,dx.

Every inner product induces a norm:

∥v∥=⟨v,v⟩\lVert \mathbf{v} \rVert = \sqrt{\langle \mathbf{v}, \mathbf{v} \rangle}

Theorem 7.1 (Cauchy—Schwarz Inequality). For all u,v∈V\mathbf{u}, \mathbf{v} \in V

∣⟨u,v⟩∣≤∥u∥ ∥v∥\lvert\langle \mathbf{u}, \mathbf{v} \rangle\rvert \leq \lVert \mathbf{u} \rVert \, \lVert \mathbf{v} \rVert

With equality if and only if u\mathbf{u} and v\mathbf{v} are linearly dependent.

Proof. If v=0\mathbf{v} = \mathbf{0} Both sides are 0 and the result holds. Assume v≠0\mathbf{v} \neq \mathbf{0}. For any t∈Rt \in \mathbb{R} (or C\mathbb{C}), positive definiteness gives

0≤⟨u−tv,u−tv⟩=⟨u,u⟩−t⟨v,u⟩−t‾⟨u,v⟩+∣t∣2⟨v,v⟩0 \leq \langle \mathbf{u} - t\mathbf{v}, \mathbf{u} - t\mathbf{v} \rangle = \langle \mathbf{u}, \mathbf{u} \rangle - t\langle \mathbf{v}, \mathbf{u} \rangle - \overline{t}\langle \mathbf{u}, \mathbf{v} \rangle + \lvert t \rvert^2 \langle \mathbf{v}, \mathbf{v} \rangle

Set t=⟨u,v⟩⟨v,v⟩t = \frac{\langle \mathbf{u}, \mathbf{v} \rangle}{\langle \mathbf{v}, \mathbf{v} \rangle} (the value that minimises the right side):

0≤∥u∥2−∣⟨u,v⟩∣2∥v∥20 \leq \lVert \mathbf{u} \rVert^2 - \frac{\lvert\langle \mathbf{u}, \mathbf{v} \rangle\rvert^2}{\lVert \mathbf{v} \rVert^2}

Rearranging: ∣⟨u,v⟩∣2≤∥u∥2∥v∥2\lvert\langle \mathbf{u}, \mathbf{v} \rangle\rvert^2 \leq \lVert \mathbf{u} \rVert^2 \lVert \mathbf{v} \rVert^2. Taking square roots gives the result. Equality holds iff u−tv=0\mathbf{u} - t\mathbf{v} = \mathbf{0} I.e., u\mathbf{u} and v\mathbf{v} are linearly dependent. ■\blacksquare

Theorem 7.2 (Triangle Inequality).

∥u+v∥≤∥u∥+∥v∥\lVert \mathbf{u} + \mathbf{v} \rVert \leq \lVert \mathbf{u} \rVert + \lVert \mathbf{v} \rVert

Proof.

∥u+v∥2=⟨u+v,u+v⟩=∥u∥2+2 Re⟨u,v⟩+∥v∥2\lVert \mathbf{u} + \mathbf{v} \rVert^2 = \langle \mathbf{u} + \mathbf{v}, \mathbf{u} + \mathbf{v} \rangle = \lVert \mathbf{u} \rVert^2 + 2\,\mathrm{Re}\langle \mathbf{u}, \mathbf{v} \rangle + \lVert \mathbf{v} \rVert^2

By Cauchy—Schwarz, Re⟨u,v⟩≤∣⟨u,v⟩∣≤∥u∥∥v∥\mathrm{Re}\langle \mathbf{u}, \mathbf{v} \rangle \leq \lvert\langle \mathbf{u}, \mathbf{v} \rangle\rvert \leq \lVert \mathbf{u} \rVert \lVert \mathbf{v} \rVert So

∥u+v∥2≤∥u∥2+2∥u∥∥v∥+∥v∥2=(∥u∥+∥v∥)2\lVert \mathbf{u} + \mathbf{v} \rVert^2 \leq \lVert \mathbf{u} \rVert^2 + 2\lVert \mathbf{u} \rVert \lVert \mathbf{v} \rVert + \lVert \mathbf{v} \rVert^2 = (\lVert \mathbf{u} \rVert + \lVert \mathbf{v} \rVert)^2

Taking square roots gives the result. ■\blacksquare

Two vectors u,v\mathbf{u}, \mathbf{v} are orthogonal if ⟨u,v⟩=0\langle \mathbf{u}, \mathbf{v} \rangle = 0. We write u⊥v\mathbf{u} \perp \mathbf{v}.

An orthonormal set {e1,…,ek}\{e_1, \ldots, e_k\} satisfies ⟨ei,ej⟩=δij\langle e_i, e_j \rangle = \delta_{ij}.

Theorem 7.3 (Pythagorean Theorem). If u⊥v\mathbf{u} \perp \mathbf{v} Then

∥u+v∥2=∥u∥2+∥v∥2\lVert \mathbf{u} + \mathbf{v} \rVert^2 = \lVert \mathbf{u} \rVert^2 + \lVert \mathbf{v} \rVert^2

Proof. ∥u+v∥2=∥u∥2+2⟨u,v⟩+∥v∥2=∥u∥2+∥v∥2\lVert \mathbf{u} + \mathbf{v} \rVert^2 = \lVert \mathbf{u} \rVert^2 + 2\langle \mathbf{u}, \mathbf{v} \rangle + \lVert \mathbf{v} \rVert^2 = \lVert \mathbf{u} \rVert^2 + \lVert \mathbf{v} \rVert^2. ■\blacksquare

Proposition 7.4. Every orthonormal set is linearly independent.

Proof. If ∑i=1kαiei=0\sum_{i=1}^k \alpha_i e_i = \mathbf{0} Then taking the inner product with eje_j: αj=⟨∑αiei,ej⟩=⟨0,ej⟩=0\alpha_j = \langle \sum \alpha_i e_i, e_j \rangle = \langle \mathbf{0}, e_j \rangle = 0 for each jj. ■\blacksquare

The Gram—Schmidt process converts a linearly independent set {v1,…,vn}\{\mathbf{v}_1, \ldots, \mathbf{v}_n\} into an orthonormal set {e1,…,en}\{e_1, \ldots, e_n\}:

u1=v1,e1=u1∥u1∥\mathbf{u}_1 = \mathbf{v}_1, \quad e_1 = \frac{\mathbf{u}_1}{\lVert \mathbf{u}_1 \rVert} uk=vk−∑i=1k−1⟨vk,ei⟩ei,ek=uk∥uk∥\mathbf{u}_k = \mathbf{v}_k - \sum_{i=1}^{k-1} \langle \mathbf{v}_k, e_i \rangle e_i, \quad e_k = \frac{\mathbf{u}_k}{\lVert \mathbf{u}_k \rVert}

Proposition 7.5. At each step, span{e1,…,ek}=span{v1,…,vk}\mathrm{span}\{e_1, \ldots, e_k\} = \mathrm{span}\{\mathbf{v}_1, \ldots, \mathbf{v}_k\}.

Proof. By construction, uk\mathbf{u}_k is vk\mathbf{v}_k minus its projection onto span{e1,…,ek−1}=span{v1,…,vk−1}\mathrm{span}\{e_1, \ldots, e_{k-1}\} = \mathrm{span}\{\mathbf{v}_1, \ldots, \mathbf{v}_{k-1}\}. So uk∈span{v1,…,vk}\mathbf{u}_k \in \mathrm{span}\{\mathbf{v}_1, \ldots, \mathbf{v}_k\} and vk=uk+∑i=1k−1⟨vk,ei⟩ei∈span{u1,…,uk}\mathbf{v}_k = \mathbf{u}_k + \sum_{i=1}^{k-1}\langle \mathbf{v}_k, e_i \rangle e_i \in \mathrm{span}\{\mathbf{u}_1, \ldots, \mathbf{u}_k\}. Since each eie_i is a scalar multiple of ui\mathbf{u}_i The spans coincide. ■\blacksquare

The orthogonal projection of v\mathbf{v} onto a subspace WW with orthonormal basis {e1,…,ek}\{e_1, \ldots, e_k\} is

projW(v)=∑i=1k⟨v,ei⟩ei\mathrm{proj_W}(\mathbf{v}) = \sum_{i=1}^k \langle \mathbf{v}, e_i \rangle e_i

Theorem 7.6 (Best Approximation). Among all vectors in WW The orthogonal projection projW(v)\mathrm{proj_W}(\mathbf{v}) minimises the distance to v\mathbf{v}:

∥v−projW(v)∥≤∥v−w∥for all w∈W\lVert \mathbf{v} - \mathrm{proj_W}(\mathbf{v}) \rVert \leq \lVert \mathbf{v} - \mathbf{w} \rVert \quad \mathrm{for}~all~ \mathbf{w} \in W

Proof. For any w∈W\mathbf{w} \in W Write v−w=(v−projW(v))+(projW(v)−w)\mathbf{v} - \mathbf{w} = (\mathbf{v} - \mathrm{proj_W}(\mathbf{v})) + (\mathrm{proj_W}(\mathbf{v}) - \mathbf{w}). The first term is orthogonal to WW (hence to the second term, which lies in WW), so by the Pythagorean theorem:

∥v−w∥2=∥v−projW(v)∥2+∥projW(v)−w∥2≥∥v−projW(v)∥2\lVert \mathbf{v} - \mathbf{w} \rVert^2 = \lVert \mathbf{v} - \mathrm{proj_W}(\mathbf{v}) \rVert^2 + \lVert \mathrm{proj_W}(\mathbf{v}) - \mathbf{w} \rVert^2 \geq \lVert \mathbf{v} - \mathrm{proj_W}(\mathbf{v}) \rVert^2

With equality iff w=projW(v)\mathbf{w} = \mathrm{proj_W}(\mathbf{v}). ■\blacksquare

A fundamental application of orthogonal projection is fitting functions to data. Given a subspace WW of an inner product space VV and a target v∈V\mathbf{v} \in V The best approximation in WW Is the orthogonal projection projW(v)\mathrm{proj_W}(\mathbf{v}).

Problem. Apply the Gram—Schmidt process to v1=(1,1,0)\mathbf{v}_1 = (1, 1, 0) v2=(1,0,1)\mathbf{v}_2 = (1, 0, 1), v3=(0,1,1)\mathbf{v}_3 = (0, 1, 1) in R3\mathbb{R}^3 with the standard inner Product.

Solution

u1=v1=(1,1,0)\mathbf{u}_1 = \mathbf{v}_1 = (1, 1, 0), ∥u1∥=2\lVert \mathbf{u}_1 \rVert = \sqrt{2}, e1=12(1,1,0)e_1 = \frac{1}{\sqrt{2}}(1, 1, 0).

u2=v2−⟨v2,e1⟩e1=(1,0,1)−12⋅12(1,1,0)=(1,0,1)−12(1,1,0)=(12,−12,1)\mathbf{u}_2 = \mathbf{v}_2 - \langle \mathbf{v}_2, e_1 \rangle e_1 = (1, 0, 1) - \frac{1}{\sqrt{2}} \cdot \frac{1}{\sqrt{2}}(1, 1, 0) = (1, 0, 1) - \frac{1}{2}(1, 1, 0) = (\frac{1}{2}, -\frac{1}{2}, 1)

∥u2∥=1/4+1/4+1=3/2\lVert \mathbf{u}_2 \rVert = \sqrt{1/4 + 1/4 + 1} = \sqrt{3/2}, e2=13/2(12,−12,1)=16(1,−1,2)e_2 = \frac{1}{\sqrt{3/2}}(\frac{1}{2}, -\frac{1}{2}, 1) = \frac{1}{\sqrt{6}}(1, -1, 2).

u3=v3−⟨v3,e1⟩e1−⟨v3,e2⟩e2\mathbf{u}_3 = \mathbf{v}_3 - \langle \mathbf{v}_3, e_1 \rangle e_1 - \langle \mathbf{v}_3, e_2 \rangle e_2

⟨v3,e1⟩=12(0+1+0)=12\langle \mathbf{v}_3, e_1 \rangle = \frac{1}{\sqrt{2}}(0 + 1 + 0) = \frac{1}{\sqrt{2}}

⟨v3,e2⟩=16(0−1+2)=16\langle \mathbf{v}_3, e_2 \rangle = \frac{1}{\sqrt{6}}(0 - 1 + 2) = \frac{1}{\sqrt{6}}

u3=(0,1,1)−12⋅12(1,1,0)−16⋅16(1,−1,2)=(0,1,1)−12(1,1,0)−16(1,−1,2)\mathbf{u}_3 = (0, 1, 1) - \frac{1}{\sqrt{2}} \cdot \frac{1}{\sqrt{2}}(1, 1, 0) - \frac{1}{\sqrt{6}} \cdot \frac{1}{\sqrt{6}}(1, -1, 2) = (0, 1, 1) - \frac{1}{2}(1, 1, 0) - \frac{1}{6}(1, -1, 2)

=(−12−16,1−12+16,1−13)=(−23,23,23)= (-\frac{1}{2} - \frac{1}{6}, 1 - \frac{1}{2} + \frac{1}{6}, 1 - \frac{1}{3}) = (-\frac{2}{3}, \frac{2}{3}, \frac{2}{3})

∥u3∥=4/9+4/9+4/9=4/3=2/3\lVert \mathbf{u}_3 \rVert = \sqrt{4/9 + 4/9 + 4/9} = \sqrt{4/3} = 2/\sqrt{3}, e3=32(−23,23,23)=13(−1,1,1)e_3 = \frac{\sqrt{3}}{2}(-\frac{2}{3}, \frac{2}{3}, \frac{2}{3}) = \frac{1}{\sqrt{3}}(-1, 1, 1).

Verification: ⟨e1,e2⟩=112(1−1+0)=0\langle e_1, e_2 \rangle = \frac{1}{\sqrt{12}}(1 - 1 + 0) = 0. ✓\checkmark ⟨e1,e3⟩=16(−1+1+0)=0\langle e_1, e_3 \rangle = \frac{1}{\sqrt{6}}(-1 + 1 + 0) = 0. ✓\checkmark ⟨e2,e3⟩=118(−1−1+2)=0\langle e_2, e_3 \rangle = \frac{1}{\sqrt{18}}(-1 - 1 + 2) = 0. ✓\checkmark

The orthonormal basis is {12(1,1,0), 16(1,−1,2), 13(−1,1,1)}\left\{\frac{1}{\sqrt{2}}(1,1,0),\ \frac{1}{\sqrt{6}}(1,-1,2),\ \frac{1}{\sqrt{3}}(-1,1,1)\right\}. ■\blacksquare