An inner product is a rule that assigns a scalar to a pair of vectors. It generalizes the ordinary dot product in Euclidean space. With an inner product, a vector space gains geometric structure: lengths, angles, orthogonality, projections, and distances become meaningful. Standard references define an inner product space as a real or complex vector space equipped with such a product satisfying linearity, symmetry or conjugate symmetry, and positive definiteness.
45.1 The Dot Product as the Model Example
In , the standard inner product is the dot product. If
then
Equivalently,
For example,
The dot product is the simplest inner product. It measures how much two vectors point in the same direction.
45.2 Definition
Let be a vector space over . An inner product on is a function
satisfying the following properties for all and all scalars .
First, it is linear in the first argument:
Second, it is symmetric:
Third, it is positive definite:
and
A vector space equipped with an inner product is called an inner product space.
45.3 Complex Inner Products
If is a vector space over , symmetry must be replaced by conjugate symmetry:
A common convention is that the inner product is linear in the first argument and conjugate-linear in the second:
and
Some books use the opposite convention. The mathematics is equivalent, but the convention must remain consistent.
For , the standard complex inner product is
The conjugates are necessary. Without them, may fail to be nonnegative.
For example, if , then
which cannot be a squared length. But
Thus conjugation is essential in complex inner product spaces.
45.4 Length from an Inner Product
An inner product defines the length, or norm, of a vector by
The positive definiteness axiom ensures that this expression is meaningful. It also ensures that only the zero vector has length zero.
In , this gives the usual Euclidean length:
For example,
has length
Thus inner products generalize the Pythagorean notion of length.
45.5 Orthogonality
Two vectors and are orthogonal if
Orthogonality generalizes perpendicularity.
In ,
Then
Therefore and are orthogonal.
Orthogonality is one of the main reasons inner products are useful. It allows vectors to be decomposed into independent geometric components.
45.6 Angles
In a real inner product space, the angle between two nonzero vectors and is defined by
This formula agrees with elementary geometry in and .
If , the angle is acute.
If , the angle is right.
If , the angle is obtuse.
The formula depends on the Cauchy-Schwarz inequality, which guarantees that
This ensures that the angle is well-defined.
45.7 Cauchy-Schwarz Inequality
The Cauchy-Schwarz inequality states that for all vectors and in an inner product space,
This is one of the fundamental inequalities in linear algebra.
It says that the inner product of two vectors cannot exceed the product of their lengths in absolute value.
Equality holds precisely when one vector is a scalar multiple of the other.
In , this becomes
The inequality is the algebraic foundation for angles, projections, and many estimates in analysis.
45.8 Distance
An inner product defines a norm, and a norm defines a distance.
The distance between and is
In , this is the Euclidean distance:
For example, if
then
Thus an inner product space is not only algebraic. It also has metric structure.
45.9 Projection onto a Vector
Let be a nonzero vector. The projection of onto is the component of in the direction of .
It is given by
The scalar
measures how much of lies in the direction of .
The difference
is orthogonal to .
Indeed,
Projection is the basic operation behind orthogonal decomposition, least squares, Fourier approximation, and many numerical algorithms.
45.10 Orthogonal Decomposition
Suppose is nonzero. Every vector can be decomposed as
where is parallel to and is orthogonal to .
The parallel part is
and the orthogonal part is
This decomposition separates a vector into a part explained by and a residual part perpendicular to .
In data fitting, the projection is the best approximation in the chosen direction. The residual is the error that remains after the approximation.
45.11 Orthonormal Vectors
A vector is a unit vector if
A collection of vectors is orthogonal if
It is orthonormal if it is orthogonal and each vector has length one:
Orthonormal vectors are especially convenient because coordinates are computed directly by inner products.
If is an orthonormal basis and , then
The coefficient of is simply .
45.12 Matrix Form of an Inner Product
On , not every inner product must be the standard dot product. Many inner products have the form
where is a symmetric positive definite matrix.
The symmetry of gives
Positive definiteness gives
For example, let
Then
This inner product weights the first coordinate twice as strongly as the second.
If
then
Different inner products impose different geometries on the same vector space.
45.13 Inner Products on Function Spaces
Inner products also appear on spaces of functions.
For continuous real-valued functions on an interval , a standard inner product is
This is analogous to the dot product. Instead of summing products of components, we integrate products of function values.
The corresponding norm is
Two functions and are orthogonal if
For example, on ,
and
are orthogonal because
This idea is central in Fourier series, approximation theory, probability, and differential equations.
45.14 Inner Products on Matrix Spaces
Matrices can also form inner product spaces.
For real matrices, the Frobenius inner product is
Equivalently,
This treats a matrix as a long vector formed from its entries.
The corresponding norm is the Frobenius norm:
This inner product is used in numerical linear algebra, statistics, optimization, and matrix approximation.
45.15 Weighted Inner Products
A weighted inner product assigns different importance to different coordinates or regions.
In , if are positive weights, define
This is an inner product because all weights are positive.
On a function space, a weighted inner product may have the form
where .
Weighted inner products are common when some coordinates, samples, or regions matter more than others.
45.16 Inner Products and Bases
Let be a finite-dimensional real vector space with basis
An inner product on is determined by the inner products of the basis vectors.
Define the Gram matrix
If
then
The Gram matrix records the geometry of the basis. If the basis is orthonormal, then . If the basis is not orthonormal, contains the correction terms needed to compute lengths and angles.
45.17 The Gram Matrix
For vectors in an inner product space, the Gram matrix is
The Gram matrix is symmetric in real spaces and Hermitian in complex spaces.
It is positive semidefinite:
for all coefficient vectors .
It is positive definite precisely when the vectors are linearly independent.
Thus the Gram matrix connects inner products with linear independence.
45.18 Polarization
An inner product determines a norm. In real inner product spaces, the inner product can also be recovered from the norm by the polarization identity:
This identity shows that the inner product contains exactly the information needed to compute lengths, and conversely the norm contains enough information to recover the inner product when the norm comes from an inner product.
Not every norm comes from an inner product. A norm comes from an inner product precisely when it satisfies the parallelogram law.
45.19 Parallelogram Law
In every inner product space,
This is the parallelogram law.
It expresses a geometric fact: in a parallelogram, the sum of the squares of the diagonal lengths equals the sum of the squares of all four side lengths.
The law is a signature property of norms induced by inner products. For example, the norm
on does not satisfy the parallelogram law, so it does not come from an inner product.
45.20 Examples and Nonexamples
The standard dot product on is an inner product.
The standard complex product
is an inner product on .
The integral formula
is an inner product on suitable real function spaces.
The formula
on is not an inner product because
It fails positive definiteness.
The formula
on is also not an inner product because
even though is not the zero vector.
It fails positive definiteness.
45.21 Summary
An inner product turns a vector space into a geometric object. It defines length, angle, orthogonality, projection, distance, and approximation.
The standard dot product is the basic example, but inner products also occur on complex vector spaces, matrix spaces, polynomial spaces, and function spaces.
The essential properties are linearity, symmetry or conjugate symmetry, and positive definiteness. These axioms are strong enough to support the main geometry of linear algebra.