An inner product on E is a map⟨⋅,⋅⟩:E×E→R that is bilinear, symmetric, and positive definite (⟨x,x⟩>0 for x=0). A finite-dimensional space so equipped is a Euclidean space. The norm of x is ∥x∥=⟨x,x⟩, and d(x,y)=∥x−y∥.
Examples
Example 23.2
On Rn: the canonical product ⟨x,y⟩=∑xiyi. On C([a,b]): ⟨f,g⟩=∫abfg (positive definiteness is Theorem 15.7 (4)). On Rn[X]: ⟨P,Q⟩=∫01PQ, or ∑iP(xi)Q(xi) over n+1 distinct points.
Example 23.3(The angle between two polynomials)
Once an inner product is chosen, any two nonzero vectors have an angle, via cosθ=∥x∥∥y∥⟨x,y⟩ (a legitimate cosine by Cauchy–Schwarz). For X and X2 in ∫01:
an angle of about 14.5 degrees — on [0,1], the graphs of x and x2 are “nearly parallel” in the quadratic-mean sense, which is why removing that shared direction (Gram–Schmidt, below) leaves only the small correction X2−X+61.
Example 23.7(Orthonormal coordinates, with a Parseval check)
Certification by the norm formula of the proposition:
29+625+316=627+25+32=14=∥x∥2=1+4+9.
This sum-of-squared-coordinates check (a finite Parseval identity) costs seconds and catches sign and normalization errors with near certainty — make it a habit whenever an orthonormal expansion is computed; its infinite-dimensional version, for the Fourier coefficients of Example 23.14, is a theorem of the Year 3 volume.
Read in context →
Definition 13.1University Mathematics — Year 3 · Chapter 13 — Hilbert Spaces
An inner product is a map ⟨⋅,⋅⟩:H×H→K, linear in the second variable, with ⟨y,x⟩=⟨x,y⟩ and ⟨x,x⟩>0 for x=0. It induces the norm ∥x∥=⟨x,x⟩1/2, the Cauchy–Schwarz inequality∣⟨x,y⟩∣≤∥x∥∥y∥ (Year 2’s proof — the discriminant — is unchanged), and the parallelogram law
∥x+y∥2+∥x−y∥2=2∥x∥2+2∥y∥2.
A Hilbert space is an inner-product space complete for this norm. Examples: ℓ2 (Problem 8.1) and, the fundamental one, L2(μ) with ⟨f,g⟩=∫fˉgdμ — complete by Riesz–Fischer (Theorem 12.4); the inner product is finite by Cauchy–Schwarz (= Hölder at p=q=2).
Examples
Example 13.5(A projection, computed to the end)
In H=L2([0,1]), what is the best approximation of f(x)=x2 by an affine function? The subspace F=Vect(1,x) is closed (finite-dimensional), and pF(f)=a+bx is characterized by orthogonality of the residual to 1 and to x:
∫01(x2−a−bx)dx=0,∫01x(x2−a−bx)dx=0,
i.e. 31=a+2b and 41=2a+3b: a=−61, b=1. So pF(x2)=x−61, and the error is
d(f,F)2=∫01(x2−x+61)2dx=1801,d(f,F)=651.
Two remarks worth internalizing. First, the computation is nothing but a 2×2 linear system — the normal equations; for the monomial basis their matrix (i+j+11) is the notoriously ill-conditioned Hilbert matrix, and orthogonalizing first (Legendre polynomials, Problem 13.1) is the cure. Second, the best uniform approximation of x2 by affine functions is different (x−81, by equioscillation): each norm has its own geometry, and only the Hilbertian one answers with a linear system.