"Inner product" redirects here. For the inner product of coordinate vectors, seeDot product.
Geometric interpretation of the angle between two vectors defined using an inner productScalar product spaces, over any field, have "scalar products" that are symmetrical and linear in the first argument. Hermitian product spaces are restricted to the field of complex numbers and have "Hermitian products" that are conjugate-symmetrical and linear in the first argument. Inner product spaces may be defined over any field, having "inner products" that are linear in the first argument, conjugate-symmetrical, and positive-definite. Unlike inner products, scalar products and Hermitian products need not be positive-definite.
An inner product naturally induces an associatednorm, (denoted and in the picture); so, every inner product space is anormed vector space. If this normed space is alsocomplete (that is, aBanach space) then the inner product space is aHilbert space.[1] If an inner product spaceH is not a Hilbert space, it can beextended bycompletion to a Hilbert space This means that is alinear subspace of the inner product of is therestriction of that of and isdense in for thetopology defined by the norm.[1][4]
In this article,F denotes afield that is either thereal numbers or thecomplex numbers Ascalar is thus an element ofF. A bar over an expression representing a scalar denotes thecomplex conjugate of this scalar. A zero vector is denoted for distinguishing it from the scalar0.
Aninner product space is avector spaceV over the fieldF together with aninner product, that is, a mapthat satisfies the following three properties for all vectors and all scalars.[5][6]
Conjugate symmetry: Asif and only if is real, conjugate symmetry implies that is always a real number. IfF is, conjugate symmetry is just symmetry.
Positive-definiteness: if is not zero, then (conjugate symmetry implies that is real).
If the positive-definiteness condition is replaced by merely requiring that for all, then one obtains the definition ofpositive semi-definite Hermitian form. A positive semi-definite Hermitian form is an inner product if and only if for all, if then.[7]
In the following properties, which result almost immediately from the definition of an inner product,x,y andz are arbitrary vectors, anda andb are arbitrary scalars.
Over, conjugate-symmetry reduces to symmetry, and sesquilinearity reduces tobilinearity. Hence an inner product on a real vector space is apositive-definite symmetricbilinear form. Thebinomial expansion of a square becomes
Some authors, especially inphysics andmatrix algebra, prefer to define inner products and sesquilinear forms with linearity in the second argument rather than the first. Then the first argument becomes conjugate linear, rather than the second.Bra–ket notation inquantum mechanics also uses slightly different notation, i.e., where.
Among the simplest examples of inner product spaces are and Thereal numbers are a vector space over that becomes an inner product space with arithmetic multiplication as its inner product:
Thecomplex numbers are a vector space over that becomes an inner product space with the inner product Unlike with the real numbers, the assignment doesnot define a complex inner product on
A function is an inner product on if and only if there exists asymmetricpositive-definite matrix such that for all If is theidentity matrix then is the dot product. For another example, if and is positive-definite (which happens if and only if and one/both diagonal elements are positive) then for any As mentioned earlier, every inner product on is of this form (where and satisfy).
The general form of an inner product on is known as theHermitian form and is given bywhere is anyHermitianpositive-definite matrix and is theconjugate transpose of For the real case, this corresponds to the dot product of the results of directionally-differentscaling of the two vectors, with positivescale factors and orthogonal directions of scaling. It is aweighted-sum version of the dot product with positive weights—up to an orthogonal transformation.
The article onHilbert spaces has several examples of inner product spaces, wherein the metric induced by the inner product yields acomplete metric space. An example of an inner product space which induces an incomplete metric is the space of continuous complex valued functions and on the interval The inner product isThis space is not complete; consider for example, for the interval[−1, 1] the sequence of continuous "step" functions, defined by:
This sequence is aCauchy sequence for the norm induced by the preceding inner product, which does not converge to acontinuous function.
The inner product for complex square matrices of the same size is theFrobenius inner product. Since trace and transposition are linear and the conjugation is on the second matrix, it is a sesquilinear operator. We further get Hermitian symmetry by,Finally, since for nonzero,, we get that the Frobenius inner product is positive definite too, and so is an inner product.
On an inner product space, or more generally a vector space with anondegenerate form (hence an isomorphism), vectors can be sent to covectors (in coordinates, via transpose), so that one can take the inner product and outer product of two vectors—not simply of a vector and a covector.
Every inner product space induces anorm, called itscanonical norm, that is defined by With this norm, every inner product space becomes anormed vector space.
So, every general property of normed vector spaces applies to inner product spaces. In particular, one has the following properties:
Two vectors and are said to beorthogonal, often written if their inner product is zero, that is, if This happens if and only if for all scalars[12] and if and only if the real-valued function is non-negative. (This is a consequence of the fact that, if then the scalar minimizes with value which is always non positive). For acomplex inner product space a linear operator is identically if and only if for every[12] This is not true in general for real inner product spaces, as it is a consequence of conjugate symmetry being distinct from symmetry for complex inner products. A counterexample in a real inner product space is a 90° rotation in, which maps every vector to an orthogonal vector but is not identically.
Theorthogonal complement of a subset is the set of the vectors that are orthogonal to all elements ofC; that is, This set is always a closed vector subspace of and if theclosure of in is a vector subspace then
If and are orthogonal, thenThis may be proved by expressing the squared norms in terms of the inner products, using additivity for expanding the right-hand side of the equation. The namePythagorean theorem arises from the geometric interpretation inEuclidean geometry.
When is a real number then the Cauchy–Schwarz inequality implies that and thus thatis a real number. This allows defining the (non oriented)angle of two vectors in modern definitions ofEuclidean geometry in terms oflinear algebra. This is also used indata analysis, under the name "cosine similarity", for comparing two vectors of data.Furthermore, if is negative, the angle is larger than 90 degrees. This property is often used in computer graphics (e.g., inback-face culling) to analyze a direction without having to evaluatetrigonometric functions.
Suppose that is an inner product on (so it is antilinear in its second argument). Thepolarization identity shows that thereal part of the inner product is
If is a real vector space thenand theimaginary part (also called thecomplex part) of is always
Assume for the rest of this section that is a complex vector space.Thepolarization identity for complex vector spaces shows that
The map defined by for all satisfies the axioms of the inner product except that it is antilinear in itsfirst, rather than its second, argument. The real part of both and are equal to but the inner products differ in their complex part:
These formulas show that every complex inner product is completely determined by its real part. Moreover, this real part defines an inner product on considered as a real vector space. There is thus a one-to-one correspondence between complex inner products on a complex vector space and real inner products on
For example, suppose that for some integer When is considered as a real vector space in the usual way (meaning that it is identified with thedimensional real vector space with each identified with), then thedot product defines a real inner product on this space. The unique complex inner product on induced by the dot product is the map that sends to (because the real part of this map is equal to the dot product).
Let denote considered as a vector space over the real numbers rather than complex numbers.Thereal part of the complex inner product is the map which necessarily forms a real inner product on the real vector space Every inner product on a real vector space is abilinear andsymmetric map.
For example, if with inner product where is a vector space over the field then is a vector space over and is thedot product where is identified with the point (and similarly for); thus the standard inner product on is an "extension" the dot product . Also, had been instead defined to be thesymmetric map (rather than the usualconjugate symmetric map) then its real part wouldnot be the dot product; furthermore, without the complex conjugate, if but then so the assignment would not define a norm.
The next examples show that although real and complex inner products have many properties and results in common, they are not entirely interchangeable.For instance, if then but the next example shows that the converse is in generalnot true.Given any the vector (which is the vector rotated by 90°) belongs to and so also belongs to (although scalar multiplication of by is not defined in the vector in denoted by is nevertheless still also an element of). For the complex inner product, whereas for the real inner product the value is always
If is a complex inner product and is a continuous linear operator that satisfies for all then This statement is no longer true if is instead a real inner product, as this next example shows. Suppose that has the inner product mentioned above. Then the map defined by is a linear map (linear for both and) that denotes rotation by in the plane. Because and are perpendicular vectors and is just the dot product, for all vectors nevertheless, this rotation map is certainly not identically In contrast, using the complex inner product gives which (as expected) is not identically zero.
Let be a finite dimensional inner product space of dimension Recall that everybasis of consists of exactly linearly independent vectors. Using theGram–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 is orthonormal if for every and for each index
This definition of orthonormal basis generalizes to the case of infinite-dimensional inner product spaces in the following way. Let be any inner product space. Then a collectionis abasis for if the subspace of generated by finite linear combinations of elements of is dense in (in the norm induced by the inner product). Say that is anorthonormal basis for if it is a basis andif and for all
Using an infinite-dimensional analog of the Gram-Schmidt process one may show:
Theorem. Anyseparable inner product space 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'sA Hilbert Space Problem Book (see the references).[citation needed]
Proof
Recall that the dimension of an inner product space is thecardinality of a maximal orthonormal system that it contains (byZorn's lemma it contains at least one, and any two have the same cardinality). An orthonormal basis is certainly a maximal orthonormal system but the converse need not hold in general. If is a dense subspace of an inner product space then any orthonormal basis for is automatically an orthonormal basis for Thus, it suffices to construct an inner product space with a dense subspace whose dimension is strictly smaller than that of
Let be aHilbert space of dimension (for instance,). Let be an orthonormal basis of so Extend to aHamel basis forwhere Since it is known that theHamel dimension of is the cardinality of the continuum, it must be that
Let be a Hilbert space of dimension (for instance,). Let be an orthonormal basis for and let be a bijection. Then there is a linear transformation such that for and for
Let and let be the graph of Let be the closure of in; we will show Since for any we have it follows that
Next, if then for some so; since as well, we also have It follows that so and is dense in
Finally, is a maximal orthonormal set in; iffor all then so is the zero vector in Hence the dimension of is whereas it is clear that the dimension of is This completes the proof.
Theorem. Let be a separable inner product space and an orthonormal basis of Then the mapis an isometric linear map with a dense image.
This theorem can be regarded as an abstract form ofFourier series, in which an arbitrary orthonormal basis plays the role of the sequence oftrigonometric polynomials. Note that the underlying index set can be taken to be any countable set (and in fact any set whatsoever, provided is defined appropriately, as is explained in the articleHilbert space). In particular, we obtain the following result in the theory of Fourier series:
Theorem. Let be the inner product space Then the sequence (indexed on set of all integers) of continuous functionsis an orthonormal basis of the space with the inner product. The mappingis an isometric linear map with dense image.
Orthogonality of the sequence follows immediately from the fact that if then
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 theinner product norm, follows from the fact that the sequence has a dense algebraic span, this time in the space of continuous periodic functions on with the uniform norm. This is the content of theWeierstrass theorem on the uniform density of trigonometric polynomials.
Several types oflinear maps between inner product spaces and are of relevance:
Continuous linear maps: is linear and continuous with respect to the metric defined above, or equivalently, is linear and the set of non-negative reals where ranges over the closed unit ball of is bounded.
Symmetric linear operators: is linear and for all
Isometries: satisfies for all Alinear isometry (resp. anantilinear isometry) is an isometry that is also a linear map (resp. anantilinear map). For inner product spaces, thepolarization identity can be used to show that is an isometry if and only if for all All isometries areinjective. TheMazur–Ulam theorem establishes that every surjective isometry between tworeal normed spaces is anaffine transformation. Consequently, an isometry between real inner product spaces is a linear map if and only if Isometries aremorphisms between inner product spaces, and morphisms of real inner product spaces are orthogonal transformations (compare withorthogonal matrix).
Isometrical isomorphisms: is an isometry which issurjective (and hencebijective). Isometrical isomorphisms are also known as unitary operators (compare withunitary matrix).
From the point of view of inner product space theory, there is no need to distinguish between two spaces which are isometrically isomorphic. Thespectral theorem provides a canonical form for symmetric, unitary and more generallynormal operators on finite dimensional inner product spaces. A generalization of the spectral theorem holds for continuous normal operators in Hilbert spaces.[13]
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.
If is a vector space and a semi-definite sesquilinear form, then the function:makes sense and satisfies all the properties of norm except that does not imply (such a functional is then called asemi-norm). We can produce an inner product space by considering the quotient The sesquilinear form factors through
This construction is used in numerous contexts. TheGelfand–Naimark–Segal construction is a particularly important example of the use of this technique. Another example is the representation ofsemi-definite kernels on arbitrary sets.
Alternatively, one may require that the pairing be anondegenerate form, meaning that for all non-zero there exists some such that though need not equal; in other words, the induced map to the dual space is injective. This generalization is important indifferential geometry: a manifold whose tangent spaces have an inner product is aRiemannian manifold, while if this is related to nondegenerate conjugate symmetric form the manifold is apseudo-Riemannian manifold. BySylvester'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 withnonzero 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 inMinkowski 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 fourdimensions and indices 3 and 1 (assignment of"+" and "−" to themdiffers depending on conventions).
Purely algebraic statements (ones that do not use positivity) usually only rely on the nondegeneracy (the injective homomorphism) and thus hold more generally.
The term "inner product" is opposed toouter product (tensor product), which is a slightly more general opposite. Simply, in coordinates, the inner product is the product of acovector with an vector, yielding a matrix (a scalar), while the outer product is the product of an vector with a covector, yielding an matrix. 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 thetrace of the outer product (trace only being properly defined for square matrices). In an informal summary: "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 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 given by evaluating a covector on a vector; the order of the domain vector spaces here reflects the covector/vector distinction.
As a further complication, ingeometric algebra the inner product and theexterior (Grassmann) product are combined in the geometric product (the Clifford product in aClifford 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 theouter product (alternatively,wedge product). The inner product is more correctly called ascalar product in this context, as the nondegenerate quadratic form in question need not be positive definite (need not be an inner product).
^Combining thelinearity in the first argument property with theconjugate symmetry property provesconjugate-linearity in the second argument:. This is how the inner product was originally defined and is used in most mathematical contexts. A different convention has been adopted in theoretical physics and quantum mechanics, originating in thebra-ket notation ofPaul Dirac, where the inner product is taken to belinear in the second argument andconjugate-linear in the first argument; this convention is used in many other domains such as engineering and computer science.
^ where the right-hand side of the second equality comes from the first argument linearity. is also similarly proved by using the conjugate symmetry and the first argument linearity.
^ so it is a real number. For, it is a positive real number by the positive-definiteness. For, it is zero by the 1st basic property above. So, is real and nonnegative.
^By the 2nd basic property above and the positive-definiteness.