Inner Products

Subtopic: Vector Spaces

An inner product generalizes the dot product to abstract vector spaces, providing notions of length, angle, and orthogonality. Any inner product induces a norm and allows geometric reasoning—even in spaces of functions or matrices. Inner product spaces are the setting for Fourier analysis, quantum mechanics, and least squares.

Introduction

The dot product on Rn R to the n-th power gives us length, angle, and perpendicularity. But what about spaces of polynomials or functions? We need a generalization that works in abstract vector spaces while preserving these geometric concepts.

An inner product is that generalization. Once you define an inner product, you automatically get a notion of length (the induced norm) and angle (via the generalized cosine formula).

Definition

An inner product on a vector space V V over R R is a function ⟨⋅,⋅⟩:V×V→R left angle bracket times comma times right angle bracket colon V times V right arrow R satisfying:

  • Symmetry: ⟨u,v⟩=⟨v,u⟩ left angle bracket u comma v right angle bracket equals left angle bracket v comma u right angle bracket

  • Linearity in the first argument: ⟨a⁢u+b⁢w,v⟩=a⁡⟨u,v⟩+b⁡⟨w,v⟩ left angle bracket a u plus b w comma v right angle bracket equals a of left angle bracket u comma v right angle bracket plus b of left angle bracket w comma v right angle bracket

  • Positive definiteness: ⟨v,v⟩≥0 left angle bracket v comma v right angle bracket is greater than or equal to 0, with equality if and only if v=0 v equals 0

For complex vector spaces, symmetry becomes conjugate symmetry: ⟨u,v⟩=⟨v,u⟩∗ left angle bracket u comma v right angle bracket equals left angle bracket v comma u right angle bracket raised to the asterisk power (complex conjugate).

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

Examples

Standard Inner Product on ℝⁿ

⟨x,y⟩=x1⁢y1+x2⁢y2+⋯+xn⁢yn=xT⁢y left angle bracket x comma y right angle bracket equals x sub 1 y sub 1 plus x sub 2 y sub 2 plus dot dot dot plus x sub n y sub n equals x to the T power y

This is just the dot product.

Weighted Inner Product

⟨x,y⟩W=xT⁢W⁢y left angle bracket x comma y right angle bracket sub W equals x to the T power W y where W W is a positive definite matrix. Different components get different weights.

Inner Product on Functions

For continuous functions on [a,b] open bracket a comma b close bracket: ⟨f,g⟩=∫abf⁡(x)⁢g⁡(x)⁢dx left angle bracket f comma g right angle bracket equals the integral from a to b of f of x g of x d x

This inner product underlies Fourier series—sine and cosine functions are orthogonal under this product.

Frobenius Inner Product on Matrices

⟨A,B⟩=tr⁡(AT⁢B)=∑(Ai⁢j)⁢Bi⁢j left angle bracket A comma B right angle bracket equals the trace of open paren A to the T power B close paren equals the sum of open paren A sub i j close paren B sub i j

The sum of element-wise products, treating the matrix as a long vector.

Induced Norm

Every inner product induces a norm: ‖v‖=⟨v,v⟩ the metric of v equals the square root of left angle bracket v comma v right angle bracket

This generalizes length. For the standard inner product on Rn R to the n-th power, this gives the Euclidean norm.

Angle and Orthogonality

The angle θ theta between vectors u u and v v is defined by:

cos⁡θ=⟨u,v⟩‖u‖⁢‖v‖ cosine theta equals the fraction with numerator left angle bracket u comma v right angle bracket and denominator the metric of u times the metric of v

Vectors are orthogonal (perpendicular) if ⟨u,v⟩=0. left angle bracket u comma v right angle bracket equals 0 period

A set of vectors is orthogonal if every pair is orthogonal. It's orthonormal if also each vector has norm 1 1.

Cauchy-Schwarz Inequality

For any inner product: |⟨u,v⟩|≤‖u‖⁢‖v‖ the absolute value of left angle bracket u comma v right angle bracket is less than or equal to the metric of u times the metric of v

Equality holds iff u and v are linearly dependent. This is perhaps the most important inequality in analysis—it guarantees the angle formula makes sense (the ratio is between -1 negative 1 and 1 1).

Worked Example

In the function space C[0, 1] with inner product ⟨f, g⟩ = ∫₀¹ f(x)g(x) dx, are f(x) = 1 and g(x) = x − 1/2 orthogonal?

In the function space C⁡[0,1] C of open bracket 0 comma 1 close bracket with inner product ⟨ƒ,g⟩=∫01ƒ⁡(x)⁢g⁡(x)⁢dx left angle bracket f with hook comma g right angle bracket equals the integral from 0 to 1 of f with hook of x g of x d x,
are ƒ⁡(x)=1 f with hook of x equals 1 and g⁡(x)=x−12 g of x equals x minus one half orthogonal?

Compute:

⟨ƒ,g⟩=∫01(1⋅(x−1/2)⁢dx)=∫01((x−1/2)⁢dx)=[x22−x2]01=12−12=0 left angle bracket f with hook comma g right angle bracket equals the integral from 0 to 1 of open paren 1 times open paren x minus 1 divided by 2 close paren times d x close paren equals the integral from 0 to 1 of open paren open paren x minus 1 divided by 2 close paren times d x close paren equals open bracket the fraction with numerator x squared and denominator 2 minus x over 2 close bracket sub 0 to the first power equals one half minus one half equals 0

Yes, ƒ f with hook and g g are orthogonal. The constant function 1 1 is perpendicular to the centered linear function x-12 x minus one half.

Orthogonal Projection

The projection of v v onto u u is:

proju⁡(v)=⟨v,u⟩⟨u,u⟩⁢u proj sub u of v equals the fraction with numerator left angle bracket v comma u right angle bracket and denominator left angle bracket u comma u right angle bracket u

This is the component of v v in the direction of u u. The residual v−proju⁡(v) v minus proj sub u of v is orthogonal to u u.

Applications

In Fourier analysis, functions are decomposed into orthogonal sine/cosine components using the function inner product.

In quantum mechanics, states are vectors in a Hilbert space (complete inner product space). The inner product gives probability amplitudes.

In least squares, the best approximation minimizes the norm of the residual—finding the point in a subspace closest to the target.

In machine learning, kernel methods implicitly work in high-dimensional inner product spaces.

Summary

An inner product generalizes the dot product to abstract spaces, satisfying symmetry, linearity, and positive definiteness. It induces a norm and defines orthogonality. The Cauchy-Schwarz inequality ensures angles are well-defined. Common inner products include the standard dot product, weighted products, function integrals, and matrix trace products. Inner product spaces enable geometric reasoning in settings far beyond Rn R to the n-th power.