Inner Product Spaces: Functions as Vectors
Problem
Compute the inner product ⟨f, g⟩ = ∫₀¹ f(x)g(x) dx for f(x) = x and g(x) = x². Interpret the result geometrically.
Explanation
Generalizing the dot product
An inner product on a vector space is a function satisfying four axioms for all and scalars :
- Symmetric: .
- Linear in first slot: .
- Positive: .
- Definite: .
A vector space with an inner product is an inner product space. All the geometric concepts that work in (length, angle, orthogonality, projections) generalize immediately.
The standard inner products
- Euclidean on : — the ordinary dot product.
- on continuous functions: .
- Weighted: for positive-definite .
- Matrix (Frobenius): .
Step-by-step
, on .
Norms and angles
Once you have an inner product, you get a norm and an angle via:
For our example:
So the "angle" between and is about . They're almost parallel as functions on — both increasing and positive on the interval.
Cauchy–Schwarz inequality
For any in an inner product space:
Equality iff and are linearly dependent. This is the most important inequality in inner product spaces — it's what lets you define an angle at all.
For our : ✓
Orthogonality in function spaces
Two functions are orthogonal under when their product integrates to zero. Classic examples:
- and on for any : .
- and for : orthogonal.
- and for : orthogonal.
This is the foundation of Fourier series — functions are decomposed onto the orthogonal basis .
Where inner product spaces matter
- Fourier series and transforms: expand signals onto orthonormal function bases.
- Quantum mechanics: states are vectors in an inner product (Hilbert) space, observables are Hermitian operators.
- Statistics: variance is a squared norm, correlation is essentially on centered random variables.
- Machine learning: kernel methods define inner products in infinite-dimensional feature spaces without computing them directly.
Common mistakes
- Forgetting the axioms. Not every bilinear form is a valid inner product; it must be symmetric and positive-definite.
- Treating inner products of functions like of vectors. The computation now involves an integral, not a sum, but the geometric intuition transfers directly.
- Missing the weight. In weighted inner products , forgetting gives the wrong answer.
Try it in the visualization
Two functions are drawn on . Their product is shaded; the area under the product curve equals the inner product. Drag function parameters and watch how the area (and hence ) changes.
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.