# Inner product space

Geometric interpretation of the angle between two vectors defined using an inner product

In linear algebra, an inner product space is a vector space with an additional structure called an inner product. This additional structure associates each pair of vectors in the space with a scalar quantity known as the inner product of the vectors. Inner products allow the rigorous introduction of intuitive geometrical notions such as the length of a vector or the angle between two vectors. They also provide the means of defining orthogonality between vectors (zero inner product). Inner product spaces generalize Euclidean spaces (in which the inner product is the dot product, also known as the scalar product) to vector spaces of any (possibly infinite) dimension, and are studied in functional analysis.

An inner product naturally induces an associated norm, thus an inner product space is also a normed vector space. A complete space with an inner product is called a Hilbert space. An incomplete space with an inner product is called a pre-Hilbert space, since its completion with respect to the norm induced by the inner product is a Hilbert space. Inner product spaces over the field of complex numbers are sometimes referred to as unitary spaces.

## Definition

In this article, the field of scalars denoted F is either the field of real numbers R or the field of complex numbers C.

Formally, an inner product space is a vector space V over the field F together with an inner product, i.e., with a map

${\displaystyle \langle \cdot ,\cdot \rangle :V\times V\to F}$

that satisfies the following three axioms for all vectors ${\displaystyle x,y,z\in V}$ and all scalars ${\displaystyle a\in F}$:[1][2]

${\displaystyle \langle x,y\rangle ={\overline {\langle y,x\rangle }}.}$
Note that when F = R, conjugate symmetry reduces to symmetry. That is, ${\displaystyle \langle x,y\rangle =\langle y,x\rangle }$ for F = R; while for F = C, ${\displaystyle \langle x,y\rangle }$ is equal to the complex conjugate[Note 1] of the number ${\displaystyle \langle y,x\rangle }$.
${\displaystyle \langle ax,y\rangle =a\langle x,y\rangle .}$
${\displaystyle \langle x+y,z\rangle =\langle x,z\rangle +\langle y,z\rangle .}$
Together with conjugate symmetry, this implies conjugate linearity in the second argument (below).
${\displaystyle \langle x,x\rangle \geq 0}$
${\displaystyle \langle x,x\rangle =0\Rightarrow x=0}$

### Alternative definitions, notations and remarks

Some authors, especially in physics and matrix algebra, prefer to define the inner product and the sesquilinear form with linearity in the second argument rather than the first. Then the first argument becomes conjugate linear, rather than the second. In those disciplines we would write the product ${\displaystyle \langle x,y\rangle }$ as ${\displaystyle \langle y|x\rangle }$ (the bra–ket notation of quantum mechanics), respectively ${\displaystyle y^{\dagger }x}$ (dot product as a case of the convention of forming the matrix product AB as the dot products of rows of A with columns of B). Here the kets and columns are identified with the vectors of V and the bras and rows with the dual vectors or linear functionals of the dual space V, with conjugacy associated with duality. This reverse order is now occasionally followed in the more abstract literature,[3] taking ${\displaystyle \langle x,y\rangle }$ to be conjugate linear in x rather than y. A few instead find a middle ground by recognizing both ${\displaystyle \langle \cdot ,\cdot \rangle }$ and ${\displaystyle \langle \cdot |\cdot \rangle }$ as distinct notations differing only in which argument is conjugate linear.

There are various technical reasons why it is necessary to restrict the basefield to R and C in the definition. Briefly, the basefield has to contain an ordered subfield in order for non-negativity to make sense,[4] and therefore has to have characteristic equal to 0 (since any ordered field has to have such characteristic). This immediately excludes finite fields. The basefield has to have additional structure, such as a distinguished automorphism. More generally any quadratically closed subfield of R or C will suffice for this purpose, e.g., the algebraic numbers, but when it is a proper subfield (i.e., neither R nor C) even finite-dimensional inner product spaces will fail to be metrically complete. In contrast all finite-dimensional inner product spaces over R or C, such as those used in quantum computation, are automatically metrically complete and hence Hilbert spaces.

In some cases we need to consider non-negative semi-definite sesquilinear forms. This means that ${\displaystyle \langle x,x\rangle }$ is only required to be non-negative. We show how to treat these below.

### Elementary properties

Notice that conjugate symmetry implies that ${\displaystyle \langle x,x\rangle }$ is real for all x, since we have:

${\displaystyle \langle x,x\rangle ={\overline {\langle x,x\rangle }}.}$

Moreover, sesquilinearity (see below) implies that

${\displaystyle \langle -x,x\rangle =-1\langle x,x\rangle ={\overline {-1}}\langle x,x\rangle =\langle x,-x\rangle .}$

Conjugate symmetry and linearity in the first variable gives

${\displaystyle \langle x,ay\rangle ={\overline {\langle ay,x\rangle }}={\overline {a}}{\overline {\langle y,x\rangle }}={\overline {a}}\langle x,y\rangle }$
${\displaystyle \langle x,y+z\rangle ={\overline {\langle y+z,x\rangle }}={\overline {\langle y,x\rangle }}+{\overline {\langle z,x\rangle }}=\langle x,y\rangle +\langle x,z\rangle ,}$

so an inner product is a sesquilinear form. Conjugate symmetry is also called Hermitian symmetry, and a conjugate symmetric sesquilinear form is called a Hermitian form. While the above axioms are more mathematically economical, a compact verbal definition of an inner product is a positive-definite Hermitian form.

In the case of F = R, conjugate-symmetry reduces to symmetry, and sesquilinear reduces to bilinear. So, an inner product on a real vector space is a positive-definite symmetric bilinear form.

From the linearity property it is derived that x = 0 implies ${\displaystyle \langle x,x\rangle =0,}$ while from the positive-definiteness axiom we obtain the converse, ${\displaystyle \langle x,x\rangle =0}$ implies x = 0. Combining these two, we have the property that ${\displaystyle \langle x,x\rangle =0}$ if and only if x = 0.

Combining the linearity of the inner product in its first argument and the conjugate symmetry gives the following important generalization of the familiar square expansion:

${\displaystyle \langle x+y,x+y\rangle =\langle x,x\rangle +\langle x,y\rangle +\langle y,x\rangle +\langle y,y\rangle .}$

Assuming the underlying field to be R, the inner product becomes symmetric, and we obtain

${\displaystyle \langle x\pm y,x\pm y\rangle =\langle x,x\rangle \pm 2\langle x,y\rangle +\langle y,y\rangle ,}$

The property of an inner product space V that

${\displaystyle \langle x+y,z\rangle =\langle x,z\rangle +\langle y,z\rangle ,}$
${\displaystyle \langle x,y+z\rangle =\langle x,y\rangle +\langle x,z\rangle }$

## Examples

• A simple example is the real numbers with the standard multiplication as the inner product
${\displaystyle \langle x,y\rangle :=xy.}$
More generally, the real n-space Rn with the dot product is an inner product space, an example of a Euclidean n-space.
${\displaystyle \left\langle {\begin{bmatrix}x_{1}\\\vdots \\x_{n}\end{bmatrix}},{\begin{bmatrix}y_{1}\\\vdots \\y_{n}\end{bmatrix}}\right\rangle :=x^{\text{T}}y=\sum _{i=1}^{n}x_{i}y_{i}=x_{1}y_{1}+\cdots +x_{n}y_{n},}$
where xT is the transpose of x.
• The general form of an inner product on Cn is known as the Hermitian form and is given by
${\displaystyle \langle \mathbf {x} ,\mathbf {y} \rangle :=\mathbf {y} ^{\dagger }\mathbf {M} \mathbf {x} ={\overline {\mathbf {x} ^{\dagger }\mathbf {M} \mathbf {y} }},}$
where M is any Hermitian positive-definite matrix and y is the conjugate transpose of y. For the real case this corresponds to the dot product of the results of directionally different scaling of the two vectors, with positive scale factors and orthogonal directions of scaling. Up to an orthogonal transformation it is a weighted-sum version of the dot product, with positive weights.
• The article on Hilbert space has several examples of inner product spaces wherein the metric induced by the inner product yields a complete metric space. An example of an inner product which induces an incomplete metric occurs with the space C([ab]) of continuous complex valued functions on the interval [ab]. The inner product is
${\displaystyle \langle f,g\rangle :=\int _{a}^{b}f(t){\overline {g(t)}}\,dt.}$
This space is not complete; consider for example, for the interval Template:Closed-closed the sequence of continuous "step" functions, {fk}k, defined by:
${\displaystyle f_{k}(t)={\begin{cases}0&t\in [-1,0]\\1&t\in \left[{\tfrac {1}{k}},1\right]\\kt&t\in \left(0,{\tfrac {1}{k}}\right)\end{cases}}}$
This sequence is a Cauchy sequence for the norm induced by the preceding inner product, which does not converge to a continuous function.
${\displaystyle \langle X,Y\rangle :=\operatorname {E} (XY)}$
is an inner product. In this case, <X, X> = 0 if and only if Pr(X = 0) = 1 (i.e., X = 0 almost surely). This definition of expectation as inner product can be extended to random vectors as well.
${\displaystyle \left(\langle A,B\rangle =\langle B^{\text{T}},A^{\text{T}}\rangle \right)}$
is an inner product.

## Norms on inner product spaces

A linear space with a norm such as:

${\displaystyle \|x\|_{p}=\left(\sum _{i=1}^{\infty }\left|\xi _{i}\right|^{p}\right)^{\frac {1}{p}}\qquad x=\left\{\xi _{i}\right\}\in \ell ^{p},p\neq 2,}$

is a normed space but not an inner product space, because this norm does not satisfy the parallelogram equality required of a norm to have an inner product associated with it.[5][6]

However, inner product spaces have a naturally defined norm based upon the inner product of the space itself that does satisfy the parallelogram equality:

${\displaystyle \|x\|={\sqrt {\langle x,x\rangle }}.}$

This is well defined by the nonnegativity axiom of the definition of inner product space. The norm is thought of as the length of the vector x. Directly from the axioms, we can prove the following:

${\displaystyle |\langle x,y\rangle |\leq \|x\|\cdot \|y\|}$
with equality if and only if x and y are linearly dependent. This is one of the most important inequalities in mathematics. It is also known in the Russian mathematical literature as the Cauchy–Bunyakovsky–Schwarz inequality.
• Orthogonality: The geometric interpretation of the inner product in terms of angle and length, motivates much of the geometric terminology we use in regard to these spaces. Indeed, an immediate consequence of the Cauchy–Schwarz inequality is that it justifies defining the angle between two non-zero vectors x and y in the case F = R by the identity
${\displaystyle \operatorname {angle} (x,y)=\arccos {\frac {\langle x,y\rangle }{\|x\|\cdot \|y\|}}.}$
We assume the value of the angle is chosen to be in the interval Template:Closed-closed. This is in analogy to the situation in two-dimensional Euclidean space.
In the case F = C, the angle in the interval Template:Closed-closed is typically defined by
${\displaystyle \operatorname {angle} (x,y)=\arccos {\frac {|\langle x,y\rangle |}{\|x\|\cdot \|y\|}}.}$
Correspondingly, we will say that non-zero vectors x and y of V are orthogonal if and only if their inner product is zero.
${\displaystyle \|r\cdot x\|=|r|\cdot \|x\|.}$
The homogeneity property is completely trivial to prove.
${\displaystyle \|x+y\|\leq \|x\|+\|y\|.}$
The last two properties show the function defined is indeed a norm.
Because of the triangle inequality and because of axiom 2, we see that ||·|| is a norm which turns V into a normed vector space and hence also into a metric space. The most important inner product spaces are the ones which are complete with respect to this metric; they are called Hilbert spaces. Every inner product V space is a dense subspace of some Hilbert space. This Hilbert space is essentially uniquely determined by V and is constructed by completing V.
${\displaystyle \|x\|^{2}+\|y\|^{2}=\|x+y\|^{2}.}$
The proof of the identity requires only expressing the definition of norm in terms of the inner product and multiplying out, using the property of additivity of each component.
The name Pythagorean theorem arises from the geometric interpretation of this result as an analogue of the theorem in synthetic geometry. Note that the proof of the Pythagorean theorem in synthetic geometry is considerably more elaborate because of the paucity of underlying structure. In this sense, the synthetic Pythagorean theorem, if correctly demonstrated, is deeper than the version given above.
An induction on the Pythagorean theorem yields:
${\displaystyle \sum _{i=1}^{n}\|x_{i}\|^{2}=\left\|\sum _{i=1}^{n}x_{i}\right\|^{2}.}$
In view of the Cauchy-Schwarz inequality, we also note that ${\displaystyle \langle \cdot ,\cdot \rangle }$ is continuous from V × V to F. This allows us to extend Pythagoras' theorem to infinitely many summands:
• Parseval's identity: Suppose V is a complete inner product space. If {xk} are mutually orthogonal vectors in V then
${\displaystyle \sum _{i=1}^{\infty }\|x_{i}\|^{2}=\left\|\sum _{i=1}^{\infty }x_{i}\right\|^{2},}$
provided the infinite series on the left is convergent. Completeness of the space is needed to ensure that the sequence of partial sums
${\displaystyle S_{k}=\sum _{i=1}^{k}x_{i},}$
which is easily shown to be a Cauchy sequence, is convergent.
${\displaystyle \|x+y\|^{2}+\|x-y\|^{2}=2\|x\|^{2}+2\|y\|^{2}.}$
The Parallelogram law is, in fact, a necessary and sufficient condition for the existence of a scalar product corresponding to a given norm. If it holds, the scalar product is defined by the polarization identity:
${\displaystyle \|x+y\|^{2}=\|x\|^{2}+\|y\|^{2}+2\Re \langle x,y\rangle .}$
which is a form of the law of cosines.

## Orthonormal sequences

Let V be a finite dimensional inner product space of dimension n. Recall that every basis of V consists of exactly n linearly independent vectors. Using the Gram–Schmidt process we may start with an arbitrary basis and transform it into an orthonormal basis. That is, into a basis in which all the elements are orthogonal and have unit norm. In symbols, a basis ${\displaystyle \textstyle {\{e_{1},\ldots ,e_{n}\}}}$ is orthonormal if ${\displaystyle \textstyle \langle e_{i},e_{j}\rangle =0}$ if ${\displaystyle \textstyle i\neq j}$ and ${\displaystyle \textstyle \langle e_{i},e_{i}\rangle =\|e_{i}\|=1}$ for each i.

This definition of orthonormal basis generalizes to the case of infinite-dimensional inner product spaces in the following way. Let V be any inner product space. Then a collection

${\displaystyle E=\left\{e_{\alpha }\right\}_{\alpha \in A}}$

is a basis for V if the subspace of V generated by finite linear combinations of elements of E is dense in V (in the norm induced by the inner product). We say that E is an orthonormal basis for V if it is a basis and

${\displaystyle \left\langle e_{\alpha },e_{\beta }\right\rangle =0}$

Using an infinite-dimensional analog of the Gram-Schmidt process one may show:

Theorem. Any separable inner product space V has an orthonormal basis.

Using the Hausdorff maximal principle and the fact that in a complete inner product space orthogonal projection onto linear subspaces is well-defined, one may also show that

Theorem. Any complete inner product space V has an orthonormal basis.

The two previous theorems raise the question of whether all inner product spaces have an orthonormal basis. The answer, it turns out is negative. This is a non-trivial result, and is proved below. The following proof is taken from Halmos's A Hilbert Space Problem Book (see the references).

Parseval's identity leads immediately to the following theorem:

Theorem. Let V be a separable inner product space and {ek}k an orthonormal basis of V. Then the map

${\displaystyle x\mapsto \{\langle e_{k},x\rangle \}_{k\in \mathbb {N} }}$

is an isometric linear map V 2 with a dense image.

This theorem can be regarded as an abstract form of Fourier series, in which an arbitrary orthonormal basis plays the role of the sequence of trigonometric polynomials. Note that the underlying index set can be taken to be any countable set (and in fact any set whatsoever, provided  2 is defined appropriately, as is explained in the article Hilbert space). In particular, we obtain the following result in the theory of Fourier series:

Theorem. Let V be the inner product space ${\displaystyle C[-\pi ,\pi ]}$. Then the sequence (indexed on set of all integers) of continuous functions

${\displaystyle e_{k}(t)={\frac {e^{ikt}}{\sqrt {2\pi }}}}$

is an orthonormal basis of the space ${\displaystyle C[-\pi ,\pi ]}$ with the L2 inner product. The mapping

${\displaystyle f\mapsto {\frac {1}{\sqrt {2\pi }}}\left\{\int _{-\pi }^{\pi }f(t)e^{-ikt}\,dt\right\}_{k\in \mathbb {Z} }}$

is an isometric linear map with dense image.

Orthogonality of the sequence {ek}k follows immediately from the fact that if k ≠ j, then

${\displaystyle \int _{-\pi }^{\pi }e^{-i(j-k)t}\,dt=0.}$

Normality of the sequence is by design, that is, the coefficients are so chosen so that the norm comes out to 1. Finally the fact that the sequence has a dense algebraic span, in the inner product norm, follows from the fact that the sequence has a dense algebraic span, this time in the space of continuous periodic functions on ${\displaystyle [-\pi ,\pi ]}$ with the uniform norm. This is the content of the Weierstrass theorem on the uniform density of trigonometric polynomials.

## Operators on inner product spaces

Several types of linear maps A from an inner product space V to an inner product space W are of relevance:

From the point of view of inner product space theory, there is no need to distinguish between two spaces which are isometrically isomorphic. The spectral theorem provides a canonical form for symmetric, unitary and more generally normal operators on finite dimensional inner product spaces. A generalization of the spectral theorem holds for continuous normal operators in Hilbert spaces.

## Generalizations

Any of the axioms of an inner product may be weakened, yielding generalized notions. The generalizations that are closest to inner products occur where bilinearity and conjugate symmetry are retained, but positive-definiteness is weakened.

### Degenerate inner products

If V is a vector space and ${\displaystyle \langle \cdot ,\cdot \rangle }$ a semi-definite sesquilinear form, then the function:

${\displaystyle \|x\|={\sqrt {\langle x,x\rangle }}}$

makes sense and satisfies all the properties of norm except that ‖x‖ = 0 does not imply x = 0 (such a functional is then called a semi-norm). We can produce an inner product space by considering the quotient W = V/{ x : ‖x‖ = 0}. The sesquilinear form ${\displaystyle \langle \cdot ,\cdots \rangle }$ factors through W.

This construction is used in numerous contexts. The Gelfand–Naimark–Segal construction is a particularly important example of the use of this technique. Another example is the representation of semi-definite kernels on arbitrary sets.

### Nondegenerate conjugate symmetric forms

{{#invoke:main|main}} Alternatively, one may require that the pairing be a nondegenerate form, meaning that for all non-zero x there exists some y such that ${\displaystyle \langle x,y\rangle \neq 0,}$ though y need not equal x; in other words, the induced map to the dual space VV* is injective. This generalization is important in differential geometry: a manifold whose tangent spaces have an inner product is a Riemannian manifold, while if this is related to nondegenerate conjugate symmetric form the manifold is a pseudo-Riemannian manifold. By Sylvester's law of inertia, just as every inner product is similar to the dot product with positive weights on a set of vectors, every nondegenerate conjugate symmetric form is similar to the dot product with nonzero weights on a set of vectors, and the number of positive and negative weights are called respectively the positive index and negative index. Product of vectors in Minkowski space is an example of indefinite inner product, although, technically speaking, it is not an inner product according to the standard definition above. Minkowski space has four dimensions and indices 3 and 1 (assignment of "+" and "−" to them differs depending on conventions).

Purely algebraic statements (ones that do not use positivity) usually only rely on the nondegeneracy (the injective homomorphism VV*) and thus hold more generally.

## Related products

The term "inner product" is opposed to outer product, which is a slightly more general opposite. Simply, in coordinates, the inner product is the product of a 1×n covector with an n×1 vector, yielding a 1×1 matrix (a scalar), while the outer product is the product of an m×1 vector with a 1×n covector, yielding an m×n matrix. Note that the outer product is defined for different dimensions, while the inner product requires the same dimension. If the dimensions are the same, then the inner product is the trace of the outer product (trace only being properly defined for square matrices).

On an inner product space, or more generally a vector space with a nondegenerate form (so an isomorphism VV*) vectors can be sent to covectors (in coordinates, via transpose), so one can take the inner product and outer product of two vectors, not simply of a vector and a covector.

In a quip: "inner is horizontal times vertical and shrinks down, outer is vertical times horizontal and expands out".

More abstractly, the outer product is the bilinear map ${\displaystyle W\times V^{*}\to \operatorname {Hom} (V,W)}$ sending a vector and a covector to a rank 1 linear transformation (simple tensor of type (1,1)), while the inner product is the bilinear evaluation map ${\displaystyle V^{*}\times V\to F}$ given by evaluating a covector on a vector; the order of the domain vector spaces here reflects the covector/vector distinction.

The inner product and outer product should not be confused with the interior product and exterior product, which are instead operations on vector fields and differential forms, or more generally on the exterior algebra.

As a further complication, in geometric algebra the inner product and the exterior (Grassmann) product are combined in the geometric product (the Clifford product in a Clifford algebra) – the inner product sends two vectors (1-vectors) to a scalar (a 0-vector), while the exterior product sends two vectors to a bivector (2-vector) – and in this context the exterior product is usually called the "outer (alternatively, wedge) product". The inner product is more correctly called a scalar product in this context, as the nondegenerate quadratic form in question need not be positive definite (need not be an inner product).

## References

1. {{#invoke:citation/CS1|citation |CitationClass=book }}
2. {{#invoke:citation/CS1|citation |CitationClass=book }}
3. {{#invoke:citation/CS1|citation |CitationClass=book }}
4. {{#invoke:citation/CS1|citation |CitationClass=citation }}.
5. {{#invoke:citation/CS1|citation |CitationClass=book }}
6. {{#invoke:citation/CS1|citation |CitationClass=book }}

## References

• {{#invoke:citation/CS1|citation

|CitationClass=book }}

• {{#invoke:citation/CS1|citation

|CitationClass=book }}

• {{#invoke:citation/CS1|citation

|CitationClass=book }}

{{#invoke: Navbox | navbox }}