Skip to content

Inner Products

An inner product is a scalar-valued pairing that equips a vector space with length, orthogonality, and geometry. In quantum mechanics, the same pairing produces probability amplitudes, expectation values, matrix elements, and projection coefficients.

The inner product is mathematical structure added to a vector space; it is not part of the vector-space axioms. Different inner products on the same vector space can produce different notions of normalization and orthogonality. The associated general language of length, distance, and convergence is developed in Norms and Metrics.

An inner product turns algebraic questions into geometric ones:

  • it measures the norm of a vector;
  • it decides whether vectors are orthogonal;
  • it selects orthogonal projections and best approximations;
  • it identifies vectors with continuous dual functionals;
  • it determines which linear maps are adjoints or unitary;
  • it converts state vectors into amplitudes and matrix elements.

Bare linear independence does not require an inner product. Neither do span, dimension, or linearity. Orthogonality, adjoints, and unitarity do.

Let VV be a complex vector space. An inner product is a map

⟨⋅∣⋅⟩:V×V⟶C\langle\cdot\vert\cdot\rangle : V\times V\longrightarrow\mathbb C

with three defining properties.

Linearity in the second slot:

⟨u∣av+bw⟩=a⟨u∣v⟩+b⟨u∣w⟩.\langle u\vert av+bw\rangle = a\langle u\vert v\rangle +b\langle u\vert w\rangle.

Conjugate symmetry:

⟨u∣v⟩=⟨v∣u⟩∗.\langle u\vert v\rangle = \langle v\vert u\rangle^*.

Positive definiteness:

⟨v∣v⟩≥0,⟨v∣v⟩=0⟺v=0.\langle v\vert v\rangle\geq0, \qquad \langle v\vert v\rangle=0 \Longleftrightarrow v=0.

Conjugate symmetry and second-slot linearity imply conjugate linearity in the first slot:

⟨au+bv∣w⟩=a∗⟨u∣w⟩+b∗⟨v∣w⟩.\langle au+bv\vert w\rangle = a^*\langle u\vert w\rangle +b^*\langle v\vert w\rangle.

This is the physics convention, used throughout these pages. Many mathematics texts choose the opposite convention, linear in the first slot and conjugate-linear in the second. Both are consistent. When combining sources, identify the convention before moving scalars through brackets or defining an adjoint.

On a real vector space, complex conjugation disappears. A real inner product is a symmetric positive-definite bilinear form.

The ordinary bilinear expression

uTvu^{\mathsf T}v

is not a complex inner product. For example, if u=(1,i)Tu=(1,i)^{\mathsf T}, then

uTu=1+i2=0u^{\mathsf T}u = 1+i^2 =0

even though u≠0u\ne0. The standard complex pairing uses the conjugate transpose:

u†u=∣1∣2+∣i∣2=2.u^\dagger u = \lvert1\rvert^2+\lvert i\rvert^2 =2.

Conjugation is what makes the self-pairing real and positive while preserving complex linearity in one slot.

For u,v∈Cnu,v\in\mathbb C^n, the standard inner product is

⟨u∣v⟩=u†v=∑j=1nuj∗vj.\langle u\vert v\rangle = u^\dagger v = \sum_{j=1}^{n}u_j^*v_j.

The corresponding norm is

∥v∥=⟨v∣v⟩=(∑j=1n∣vj∣2)1/2.\lVert v\rVert = \sqrt{\langle v\vert v\rangle} = \left( \sum_{j=1}^{n}\lvert v_j\rvert^2 \right)^{1/2}.

The component formula assumes an orthonormal coordinate basis. In a general basis, the coordinate dot product is replaced by a Gram matrix.

Let (e1,…,en)(e_1,\ldots,e_n) be any basis of a finite-dimensional inner-product space. Its Gram matrix is

Gij=⟨ei∣ej⟩.G_{ij} = \langle e_i\vert e_j\rangle.

If uu and vv have coordinate columns cc and dd in this basis, then

⟨u∣v⟩=c†Gd.\langle u\vert v\rangle = c^\dagger Gd.

The matrix GG is Hermitian and positive definite:

G†=G,c†Gc>0for c≠0.G^\dagger=G, \qquad c^\dagger Gc>0 \quad\text{for }c\ne0.

Conversely, every Hermitian positive-definite matrix GG defines an inner product on Cn\mathbb C^n by

⟨u∣v⟩G=u†Gv.\langle u\vert v\rangle_G = u^\dagger Gv.

This is not a cosmetic generalization. Nonorthogonal basis functions, curvilinear-coordinate discretizations, and generalized eigenvalue problems all produce overlap or mass matrices that play the role of GG.

For complex-valued functions on a measure space XX, a common pairing is

⟨f∣g⟩=∫Xf(x)∗g(x) dμ(x).\langle f\vert g\rangle = \int_X f(x)^*g(x)\,d\mu(x).

With a positive weight w(x)w(x), one may instead use

⟨f∣g⟩w=∫Xf(x)∗g(x)w(x) dμ(x).\langle f\vert g\rangle_w = \int_X f(x)^*g(x)w(x)\,d\mu(x).

The weight and measure are part of the definition. Radial wavefunctions, spherical harmonics, orthogonal polynomials, and numerical quadrature all use nontrivial measures or weights. A function family orthogonal for one weight need not be orthogonal for another.

Square-integrable functions are identified when they differ only on a measure-zero set. After that quotient is taken, the pairing is positive definite on L2L^2 Spaces.

Another useful example is the Hilbert–Schmidt pairing of finite matrices:

⟨A∣B⟩HS=Tr⁡(A†B).\langle A\vert B\rangle_{\mathrm{HS}} = \operatorname{Tr}(A^\dagger B).

It treats matrices themselves as vectors and appears in operator expansions, density-operator calculations, and numerical error measures.

Every inner product induces a norm,

∥v∥=⟨v∣v⟩,\lVert v\rVert = \sqrt{\langle v\vert v\rangle},

and hence a distance,

d(u,v)=∥u−v∥.d(u,v)=\lVert u-v\rVert.

Not every norm arises from an inner product. Inner-product norms satisfy the parallelogram identity, while a general norm need not. The canonical treatment of norms, metrics, convergence, and completeness is Norms and Metrics.

Vectors uu and vv are orthogonal when

⟨u∣v⟩=0.\langle u\vert v\rangle=0.

Conjugate symmetry makes orthogonality symmetric. For orthogonal vectors,

∥u+v∥2=∥u∥2+∥v∥2,\lVert u+v\rVert^2 = \lVert u\rVert^2+\lVert v\rVert^2,

the abstract Pythagorean theorem.

For a subset S⊆VS\subseteq V, its orthogonal complement is

S⊥={v∈V:⟨s∣v⟩=0 for every s∈S}.S^\perp = \lbrace v\in V: \langle s\vert v\rangle=0 \text{ for every }s\in S\rbrace.

An orthogonal set of nonzero vectors is automatically linearly independent. The converse is false. Orthonormal Bases develops expansions in orthogonal unit vectors.

Let v≠0v\ne0. The component of uu along vv is

proj⁡vu=v ⟨v∣u⟩⟨v∣v⟩.\operatorname{proj}_v u = v\, \frac{\langle v\vert u\rangle} {\langle v\vert v\rangle}.

The residual

u⊥=u−proj⁡vuu_\perp = u-\operatorname{proj}_v u

satisfies

⟨v∣u⊥⟩=0.\langle v\vert u_\perp\rangle=0.

This coefficient formula depends on which slot is linear. Under the physics convention, the scalar multiplying vv is ⟨v∣u⟩/⟨v∣v⟩\langle v\vert u\rangle/\langle v\vert v\rangle. The general treatment of orthogonal projectors belongs to Projectors.

For any two vectors,

∣⟨u∣v⟩∣≤∥u∥ ∥v∥.\lvert\langle u\vert v\rangle\rvert \leq \lVert u\rVert\,\lVert v\rVert.

To prove it, the zero-vector cases are immediate, so take v≠0v\ne0 and define

α=⟨v∣u⟩⟨v∣v⟩,w=u−αv.\alpha = \frac{\langle v\vert u\rangle} {\langle v\vert v\rangle}, \qquad w=u-\alpha v.

By construction, ⟨v∣w⟩=0\langle v\vert w\rangle=0. Therefore

∥u∥2=∥αv+w∥2=∣α∣2∥v∥2+∥w∥2≥∣⟨v∣u⟩∣2∥v∥2.\begin{aligned} \lVert u\rVert^2 &= \lVert\alpha v+w\rVert^2 \\ &= \lvert\alpha\rvert^2\lVert v\rVert^2 +\lVert w\rVert^2 \\ &\geq \frac{ \lvert\langle v\vert u\rangle\rvert^2 }{ \lVert v\rVert^2 }. \end{aligned}

Multiplying by ∥v∥2\lVert v\rVert^2 and taking square roots gives the inequality. Equality holds exactly when w=0w=0, meaning that uu and vv are linearly dependent, including the cases where one vector is zero.

Cauchy–Schwarz controls the size of every overlap. It also proves the triangle inequality for the induced norm and bounds expectation values, correlations, and uncertainty relations.

Use the standard inner product on C2\mathbb C^2, but choose the nonorthogonal basis

e1=(10),e2=(11).e_1= \begin{pmatrix} 1\\ 0 \end{pmatrix}, \qquad e_2= \begin{pmatrix} 1\\ 1 \end{pmatrix}.

Its Gram matrix is

G=(1112).G = \begin{pmatrix} 1&1\\ 1&2 \end{pmatrix}.

Consider the vector with basis coordinates

c=(1i).c= \begin{pmatrix} 1\\ i \end{pmatrix}.

The correct squared norm is

∥v∥2=c†Gc=(1−i)(1112)(1i)=3.\begin{aligned} \lVert v\rVert^2 &= c^\dagger Gc \\ &= \begin{pmatrix} 1&-i \end{pmatrix} \begin{pmatrix} 1&1\\ 1&2 \end{pmatrix} \begin{pmatrix} 1\\ i \end{pmatrix} \\ &=3. \end{aligned}

The naive sum of squared coordinate moduli gives 22, which is wrong because the basis is not orthonormal. Indeed,

v=e1+ie2=(1+ii),v=e_1+i e_2 = \begin{pmatrix} 1+i\\ i \end{pmatrix},

whose standard coordinate norm is

∣1+i∣2+∣i∣2=3.\lvert1+i\rvert^2+\lvert i\rvert^2=3.

The abstract inner product is unchanged; only its coordinate representation has acquired the Gram matrix.

For normalized vectors ∣ψ⟩\lvert\psi\rangle and ∣ϕ⟩\lvert\phi\rangle, the scalar

A(ϕ←ψ)=⟨ϕ∣ψ⟩\mathcal A(\phi\leftarrow\psi) = \langle\phi\vert\psi\rangle

is a transition amplitude for a specified rank-one outcome. Cauchy–Schwarz gives

0≤∣⟨ϕ∣ψ⟩∣≤1.0 \leq \lvert\langle\phi\vert\psi\rangle\rvert \leq 1.

The inner product supplies the amplitude. The Born rule supplies the physical probability

p(ϕ∣ψ)=∣⟨ϕ∣ψ⟩∣2.p(\phi\mid\psi) = \lvert\langle\phi\vert\psi\rangle\rvert^2.

That probability postulate does not follow from the inner-product axioms. See Probability Amplitudes for preparation, measurement context, phase, and higher-rank outcomes.

Under rephasing,

∣ψ⟩⟼eiα∣ψ⟩,∣ϕ⟩⟼eiβ∣ϕ⟩,\begin{aligned} \lvert\psi\rangle &\longmapsto e^{i\alpha}\lvert\psi\rangle, \\ \lvert\phi\rangle &\longmapsto e^{i\beta}\lvert\phi\rangle, \end{aligned}

the overlap becomes

⟨ϕ∣ψ⟩⟼ei(α−β)⟨ϕ∣ψ⟩.\langle\phi\vert\psi\rangle \longmapsto e^{i(\alpha-\beta)} \langle\phi\vert\psi\rangle.

Its phase changes, while its magnitude and the transition probability do not. Relative phases remain observable when several amplitudes interfere.

A linear map UU is unitary when

⟨Uu∣Uv⟩=⟨u∣v⟩\langle Uu\vert Uv\rangle = \langle u\vert v\rangle

for all u,vu,v. It therefore preserves norms, orthogonality, angles, and transition probabilities. This geometric definition is equivalent in finite dimensions to

U†U=I.U^\dagger U=I.

Unitary Operators develops this structure and its role in changes of basis and quantum evolution.

In finite dimensions, every inner-product space is complete and all linear functionals are continuous. In infinite dimensions, these conclusions separate:

  • an inner-product space need not contain the limits of all its Cauchy sequences;
  • completing it produces a Hilbert space;
  • the Riesz theorem identifies vectors with continuous dual functionals, not the full algebraic dual;
  • an integral pairing is defined only for functions in its domain;
  • generalized position and momentum eigenkets are not normalizable Hilbert-space vectors.

The notation ⟨x∣x′⟩=δ(x−x′)\langle x\vert x'\rangle=\delta(x-x') is distributional normalization, not an ordinary inner product between vectors of finite norm. See Hilbert Spaces for completeness and continuous duality.

Positive Semidefinite and Indefinite Forms

Section titled “Positive Semidefinite and Indefinite Forms”

Some useful pairings resemble inner products but fail positive definiteness. A positive-semidefinite pairing permits nonzero null vectors with

⟨v∣v⟩=0.\langle v\vert v\rangle=0.

One can sometimes quotient by the null subspace to obtain an inner-product space. An indefinite Hermitian form permits positive, zero, and negative self-pairings. Such forms occur in relativistic and constrained theories but are not Hilbert-space inner products.

Do not infer probabilistic meaning from angle-bracket notation alone. The positive-definite Hilbert-space pairing and the physical Born rule are both needed.

  • Forgetting the active convention. Scalars leave the first slot conjugated under the physics convention.
  • Using a transpose instead of an adjoint. Complex self-pairings require conjugation.
  • Assuming coordinates are orthonormal. Insert the Gram matrix in a nonorthogonal basis.
  • Ignoring the measure or weight. Function-space orthogonality depends on both.
  • Confusing an inner product with componentwise multiplication. The pairing returns one scalar.
  • Equating linear independence with orthogonality. Orthogonality is stronger.
  • Treating delta-normalized kets as finite-norm vectors. Their pairing is distributional.
  • Reading an overlap directly as a probability. The states must be normalized and a measurement context and Born-rule assignment supplied.
  1. On C2\mathbb C^2, define
⟨u∣v⟩G=u†(2112)v.\langle u\vert v\rangle_G = u^\dagger \begin{pmatrix} 2&1\\ 1&2 \end{pmatrix} v.

Show that this is an inner product.

Solution

The matrix GG is Hermitian, so the pairing has conjugate symmetry. Matrix multiplication gives linearity in the second slot and conjugate linearity in the first. For v=(x,y)Tv=(x,y)^{\mathsf T},

v†Gv=2∣x∣2+x∗y+y∗x+2∣y∣2=∣x+y∣2+∣x∣2+∣y∣2.\begin{aligned} v^\dagger Gv &= 2\lvert x\rvert^2 +x^*y+y^*x +2\lvert y\rvert^2 \\ &= \lvert x+y\rvert^2 +\lvert x\rvert^2 +\lvert y\rvert^2. \end{aligned}

This is nonnegative and vanishes only when x=y=0x=y=0, so the pairing is positive definite.

  1. Let u,v≠0u,v\ne0. Prove that equality holds in Cauchy–Schwarz if and only if uu and vv are linearly dependent.
Solution

In the proof above,

u=αv+w,⟨v∣w⟩=0,u = \alpha v+w, \qquad \langle v\vert w\rangle=0,

and

∥u∥2=∣α∣2∥v∥2+∥w∥2.\lVert u\rVert^2 = \lvert\alpha\rvert^2\lVert v\rVert^2 +\lVert w\rVert^2.

The inequality becomes an equality exactly when ∥w∥2=0\lVert w\rVert^2=0. Positive definiteness then gives w=0w=0, so u=αvu=\alpha v. Conversely, if u=αvu=\alpha v, direct substitution gives

∣⟨u∣v⟩∣=∥u∥ ∥v∥.\lvert\langle u\vert v\rangle\rvert = \lVert u\rVert\,\lVert v\rVert.
  1. In the standard inner product on C2\mathbb C^2, let e1=(1,0)Te_1=(1,0)^{\mathsf T} and e2=(1,1)Te_2=(1,1)^{\mathsf T}. Find the Gram matrix and the norm of the vector with basis coordinates c=(2,−1)Tc=(2,-1)^{\mathsf T}.
Solution

The Gram matrix is

G=(1112).G = \begin{pmatrix} 1&1\\ 1&2 \end{pmatrix}.

Therefore

∥v∥2=c†Gc=(2−1)(1112)(2−1)=2.\begin{aligned} \lVert v\rVert^2 &= c^\dagger Gc \\ &= \begin{pmatrix} 2&-1 \end{pmatrix} \begin{pmatrix} 1&1\\ 1&2 \end{pmatrix} \begin{pmatrix} 2\\ -1 \end{pmatrix} \\ &=2. \end{aligned}

Hence ∥v∥=2\lVert v\rVert=\sqrt2. As a check, v=2e1−e2=(1,−1)Tv=2e_1-e_2=(1,-1)^{\mathsf T} in the standard basis, which has the same norm.

  1. Let normalized vectors satisfy ∣⟨ϕ∣ψ⟩∣=1\lvert\langle\phi\vert\psi\rangle\rvert=1. What does Cauchy–Schwarz imply, and what is the physical conclusion for pure states?
Solution

Equality in Cauchy–Schwarz implies linear dependence:

∣ψ⟩=λ∣ϕ⟩.\lvert\psi\rangle = \lambda\lvert\phi\rangle.

Normalization gives ∣λ∣=1\lvert\lambda\rvert=1, so λ=eiα\lambda=e^{i\alpha} for some real α\alpha. The vectors differ only by a global phase and therefore represent the same pure-state ray. This conclusion uses the physical identification of pure states with rays in addition to the mathematical equality condition.

  • S. Axler, Linear Algebra Done Right, 3rd ed., Springer, 2015.
  • R. A. Horn and C. R. Johnson, Matrix Analysis, 2nd ed., Cambridge University Press, 2013.
  • B. C. Hall, Quantum Theory for Mathematicians, Springer, 2013.
  • M. Reed and B. Simon, Methods of Modern Mathematical Physics, Volume I: Functional Analysis, revised and enlarged ed., Academic Press, 1980.