Skip to content

Inner Product

Definition

For vectors x=(x1,…,xn)\boldsymbol{x}=(x_1,\ldots,x_n) and y=(y1,…,yn)\boldsymbol{y}=(y_1,\ldots,y_n) in Rn\mathbb{R}^n, the dot product, or standard inner product, is

x⋅y=x1y1+x2y2+⋯+xnyn.\boldsymbol{x}\cdot \boldsymbol{y}=x_1y_1+x_2y_2+\cdots+x_ny_n.

More generally, an inner product on a real vector space VV is a function ⟨⋅,⋅⟩ ⁣:V×V→R\langle\cdot,\cdot\rangle\colon V\times V\to\mathbb{R} that is

  • symmetric: ⟨x,y⟩=⟨y,x⟩\langle \boldsymbol{x},\boldsymbol{y}\rangle=\langle \boldsymbol{y},\boldsymbol{x}\rangle;
  • linear in the first argument, ⟨αx+βy,z⟩=α⟨x,z⟩+β⟨y,z⟩\langle \alpha \boldsymbol{x}+\beta \boldsymbol{y},\boldsymbol{z}\rangle=\alpha\langle \boldsymbol{x},\boldsymbol{z}\rangle+\beta\langle \boldsymbol{y},\boldsymbol{z}\rangle, and hence, by symmetry, in the second;
  • positive definite: ⟨x,x⟩>0\langle \boldsymbol{x},\boldsymbol{x}\rangle>0 for every x≠0\boldsymbol{x}\neq\boldsymbol{0}.

The dot product is an inner product on Rn\mathbb{R}^n, and it is the one meant when Math II speaks of the inner product of two vectors in Rn\mathbb{R}^n.


Interpretation

The inner product combines two vectors into one number that measures how much they point in the same direction. Length, distance, angle and orthogonality are all defined from it.

Two vectors x and y at an angle theta, with the perpendicular from the tip of y down to the line of x; the signed length of the projection times the length of x is their inner product.

Dropping a perpendicular from the tip of y\boldsymbol{y} onto the line of x\boldsymbol{x} gives the green segment of signed length ∥y∥cos⁡θ\|\boldsymbol{y}\|\cos\theta, where θ\theta is the angle between the vectors and ∥⋅∥\|\cdot\| the Euclidean norm. The dot product is ∥x∥\|\boldsymbol{x}\| times this signed length, x⋅y=∥x∥ ∥y∥cos⁡θ\boldsymbol{x}\cdot \boldsymbol{y}=\|\boldsymbol{x}\|\,\|\boldsymbol{y}\|\cos\theta: positive for an acute angle as drawn, zero for a right angle, and negative for an obtuse angle, when the foot falls on the other side of the origin.

Each property in the general definition has a role: symmetry says the order does not matter; linearity, together with symmetry, lets inner products be expanded like products of numbers, as in ∥x+y∥2=∥x∥2+2 x⋅y+∥y∥2\|\boldsymbol{x}+\boldsymbol{y}\|^2=\|\boldsymbol{x}\|^2+2\,\boldsymbol{x}\cdot \boldsymbol{y}+\|\boldsymbol{y}\|^2; positive definiteness gives every nonzero vector a positive length.

The Cauchy-Schwarz inequality and the triangle inequality follow from these properties alone, so they hold for every inner product. Dot products are also hidden in every matrix product: entry (i,j)(i,j) of AB\boldsymbol{A}\boldsymbol{B} is the dot product of row ii of A\boldsymbol{A} with column jj of B\boldsymbol{B}.

A common slip is to multiply entry by entry and stop there: the inner product is a number, not a vector, so (1,2)⋅(3,4)=11(1,2)\cdot(3,4)=11, not (3,8)(3,8).


Key Results

  • x⋅x≥0\boldsymbol{x}\cdot \boldsymbol{x}\geq0, and x⋅x=0\boldsymbol{x}\cdot \boldsymbol{x}=0 if and only if x=0\boldsymbol{x}=\boldsymbol{0}.
  • For real vectors, x⋅y=y⋅x\boldsymbol{x}\cdot \boldsymbol{y}=\boldsymbol{y}\cdot \boldsymbol{x}.
  • Together with linearity, these are the defining properties of an inner product, so everything proved from them alone, such as the Cauchy-Schwarz inequality, holds for every inner product.

Examples

  • (1,2)⋅(3,4)=11(1,2)\cdot(3,4)=11.
  • (1,0)⋅(0,1)=0(1,0)\cdot(0,1)=0, so the vectors are orthogonal.
  • ⟨x,y⟩=2x1y1+x2y2\langle \boldsymbol{x},\boldsymbol{y}\rangle=2x_1y_1+x_2y_2 is an inner product on R2\mathbb{R}^2 different from the dot product.

Prerequisites

Sources

Aliases: Euclidean inner product Keywords: dot product, standard inner product, scalar product, inner product space Symbols: alpha, beta, real numbers, theta

Last updated: 27 October 2026 11:52