Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Inner Product






Measuring Length, Angle, and Distance

The dot product assigns a scalar to every pair of vectors, encoding their lengths, the angle between them, and whether they are perpendicular. It is one instance of a broader concept — the inner product — that carries the same geometric structure into polynomial spaces, function spaces, and matrix spaces. Every notion of orthogonality on this site traces back to an inner product.



The Dot Product

The dot product of two vectors u=(u1,,un)\mathbf{u} = (u_1, \dots, u_n) and v=(v1,,vn)\mathbf{v} = (v_1, \dots, v_n) in Rn\mathbb{R}^n is

uv=u1v1+u2v2++unvn=uTv\mathbf{u} \cdot \mathbf{v} = u_1 v_1 + u_2 v_2 + \cdots + u_n v_n = \mathbf{u}^T\mathbf{v}


The result is a scalar, not a vector. The matrix form uTv\mathbf{u}^T\mathbf{v} treats u\mathbf{u} as a 1×n1 \times n row and v\mathbf{v} as an n×1n \times 1 column, making the dot product a 1×11 \times 1 matrix multiplication.

For u=(2,1,3,0)\mathbf{u} = (2, -1, 3, 0) and v=(1,4,2,5)\mathbf{v} = (1, 4, -2, 5): uv=2(1)+(1)(4)+3(2)+0(5)=246+0=8\mathbf{u} \cdot \mathbf{v} = 2(1) + (-1)(4) + 3(-2) + 0(5) = 2 - 4 - 6 + 0 = -8.

The dot product is the standard inner product on Rn\mathbb{R}^n. It is the measuring tool that defines lengths, angles, distances, and perpendicularity throughout finite-dimensional linear algebra.
u1×4u1,1u1,2u1,3u1,4,v1×4v1,1v1,2v1,3v1,4=u,v
Paired products collapsed to one number

Matching components were multiplied and the results summed into a single scalar. Everything else on this page — length, distance, angle, orthogonality — is extracted from that one number, which is why the dot product is treated as the primitive and the rest as consequences. Follow the accumulation on the inner product visualizer.

The properties listed next — symmetry, linearity, positivity — are exactly what a general inner product is required to keep.

Properties of the Dot Product

The dot product satisfies three fundamental properties.

Symmetry: uv=vu\mathbf{u} \cdot \mathbf{v} = \mathbf{v} \cdot \mathbf{u}. The order does not matter.

Linearity: (cu+dw)v=c(uv)+d(wv)(c\mathbf{u} + d\mathbf{w}) \cdot \mathbf{v} = c(\mathbf{u} \cdot \mathbf{v}) + d(\mathbf{w} \cdot \mathbf{v}). The dot product distributes over addition and pulls scalars out. Combined with symmetry, it is linear in both arguments (bilinear).

Positive definiteness: vv0\mathbf{v} \cdot \mathbf{v} \geq 0 for all v\mathbf{v}, with equality if and only if v=0\mathbf{v} = \mathbf{0}. The quantity vv=v12+v22++vn2\mathbf{v} \cdot \mathbf{v} = v_1^2 + v_2^2 + \cdots + v_n^2 is a sum of squares, which is zero only when every component is zero.

These three properties — symmetry, linearity, positive definiteness — are not just useful observations. They are the axioms that define an inner product in the abstract setting.

Length

The length (or norm) of a vector v\mathbf{v} is

v=vv=v12+v22++vn2\|\mathbf{v}\| = \sqrt{\mathbf{v} \cdot \mathbf{v}} = \sqrt{v_1^2 + v_2^2 + \cdots + v_n^2}


This is the Euclidean norm — the generalization of the Pythagorean theorem to nn dimensions. In R2\mathbb{R}^2, (3,4)=9+16=5\|(3, 4)\| = \sqrt{9 + 16} = 5. In R3\mathbb{R}^3, (1,2,2)=1+4+4=3\|(1, 2, 2)\| = \sqrt{1 + 4 + 4} = 3.

The norm satisfies v0\|\mathbf{v}\| \geq 0 with equality only for v=0\mathbf{v} = \mathbf{0}, and cv=cv\|c\mathbf{v}\| = |c|\|\mathbf{v}\| — scaling a vector scales its length by the absolute value of the scalar.

A unit vector has v=1\|\mathbf{v}\| = 1. Any nonzero vector can be normalized — replaced by v^=v/v\hat{\mathbf{v}} = \mathbf{v}/\|\mathbf{v}\|, which points in the same direction with length 11. Normalization preserves direction and discards magnitude.
v1×3v1v2v3squares1×3v1²v2²v3²‖v‖√(v1²+v2²+v3²)
A vector dotted with itself, then rooted

Taking the dot product of a vector with itself gives the sum of its squared components, and the square root of that is its length. Length is therefore not an extra definition bolted on: it is the inner product applied to a single vector. Run it on your own vector on the magnitude visualizer.

Distance in the following section is this same length applied to the difference of two vectors.

Distance

The distance between two vectors u\mathbf{u} and v\mathbf{v} is the length of their difference:

Distance Formula
d(u,v)=uvd(\mathbf{u}, \mathbf{v}) = \|\mathbf{u} - \mathbf{v}\|

Expanded coordinate-wise, this becomes

d(u,v)=(u1v1)2+(u2v2)2++(unvn)2d(\mathbf{u}, \mathbf{v}) = \sqrt{(u_1 - v_1)^2 + (u_2 - v_2)^2 + \cdots + (u_n - v_n)^2}


the Euclidean distance — the straight-line separation between two points in Rn\mathbb{R}^n.

Distance satisfies the properties of a metric: d(u,v)0d(\mathbf{u}, \mathbf{v}) \geq 0 with equality only when u=v\mathbf{u} = \mathbf{v}; d(u,v)=d(v,u)d(\mathbf{u}, \mathbf{v}) = d(\mathbf{v}, \mathbf{u}) (symmetry); and d(u,w)d(u,v)+d(v,w)d(\mathbf{u}, \mathbf{w}) \leq d(\mathbf{u}, \mathbf{v}) + d(\mathbf{v}, \mathbf{w}) (triangle inequality). Every inner product induces a distance through this formula, and the resulting distance always satisfies these metric properties.

Angle Between Vectors

For nonzero vectors u\mathbf{u} and v\mathbf{v}, the angle θ\theta between them satisfies

cosθ=uvuv\cos\theta = \frac{\mathbf{u} \cdot \mathbf{v}}{\|\mathbf{u}\|\|\mathbf{v}\|}


The Cauchy-Schwarz inequality (next section) guarantees that the right-hand side lies between 1-1 and 11, so the formula always produces a well-defined angle θ[0,π]\theta \in [0, \pi].

When cosθ=1\cos\theta = 1 (θ=0\theta = 0), the vectors point in the same direction. When cosθ=1\cos\theta = -1 (θ=π\theta = \pi), they point in opposite directions. When cosθ=0\cos\theta = 0 (θ=π/2\theta = \pi/2), the vectors are orthogonal.

The orthogonality condition uv=0\mathbf{u} \cdot \mathbf{v} = 0 is the case θ=90°\theta = 90°. The dot product encodes the full metric geometry of Rn\mathbb{R}^n: length from vv\mathbf{v} \cdot \mathbf{v}, angle from uv\mathbf{u} \cdot \mathbf{v}, and distance from (uv)(uv)(\mathbf{u} - \mathbf{v}) \cdot (\mathbf{u} - \mathbf{v}).

For u=(1,2,3)\mathbf{u} = (1, 2, 3) and v=(4,1,2)\mathbf{v} = (4, -1, 2): uv=42+6=8\mathbf{u} \cdot \mathbf{v} = 4 - 2 + 6 = 8, u=14\|\mathbf{u}\| = \sqrt{14}, v=21\|\mathbf{v}\| = \sqrt{21}. So cosθ=8/2940.467\cos\theta = 8/\sqrt{294} \approx 0.467, giving θ62.2°\theta \approx 62.2°.

The Cauchy-Schwarz Inequality

For all vectors u\mathbf{u} and v\mathbf{v} in Rn\mathbb{R}^n:

Cauchy-Schwarz Inequality
uvuv|\mathbf{u} \cdot \mathbf{v}|\leq \|\mathbf{u}\|\, \|\mathbf{v}\|

Equality holds if and only if one vector is a scalar multiple of the other — they are parallel.

The proof considers the expression utv20\|\mathbf{u} - t\mathbf{v}\|^2 \geq 0 for all tRt \in \mathbb{R}. Expanding: u22t(uv)+t2v20\|\mathbf{u}\|^2 - 2t(\mathbf{u} \cdot \mathbf{v}) + t^2\|\mathbf{v}\|^2 \geq 0. This is a quadratic in tt that is non-negative everywhere, so its discriminant must be non-positive: 4(uv)24u2v204(\mathbf{u} \cdot \mathbf{v})^2 - 4\|\mathbf{u}\|^2\|\mathbf{v}\|^2 \leq 0. Rearranging gives Cauchy-Schwarz.

The inequality is what makes the angle formula legitimate. It guarantees 1uvuv1-1 \leq \frac{\mathbf{u} \cdot \mathbf{v}}{\|\mathbf{u}\|\|\mathbf{v}\|} \leq 1, so cosθ\cos\theta takes a valid value. Without Cauchy-Schwarz, the angle formula could produce numbers outside [1,1][-1, 1], and the geometric interpretation would collapse.

The Triangle Inequality

For all vectors u\mathbf{u} and v\mathbf{v} in Rn\mathbb{R}^n:

Triangle Inequality
u+vu+v\|\mathbf{u} + \mathbf{v}\|\leq \|\mathbf{u}\|+ \|\mathbf{v}\|

The length of one side of a triangle never exceeds the sum of the other two. Equality holds if and only if u\mathbf{u} and v\mathbf{v} point in the same direction (one is a non-negative scalar multiple of the other).

The proof follows from Cauchy-Schwarz. Square both sides: u+v2=u2+2uv+v2u2+2uv+v2=(u+v)2\|\mathbf{u} + \mathbf{v}\|^2 = \|\mathbf{u}\|^2 + 2\mathbf{u} \cdot \mathbf{v} + \|\mathbf{v}\|^2 \leq \|\mathbf{u}\|^2 + 2\|\mathbf{u}\|\|\mathbf{v}\| + \|\mathbf{v}\|^2 = (\|\mathbf{u}\| + \|\mathbf{v}\|)^2. The key step uses uvuvuv\mathbf{u} \cdot \mathbf{v} \leq |\mathbf{u} \cdot \mathbf{v}| \leq \|\mathbf{u}\|\|\mathbf{v}\|.

The triangle inequality is essential for the distance function d(u,v)=uvd(\mathbf{u}, \mathbf{v}) = \|\mathbf{u} - \mathbf{v}\| to satisfy the metric axioms. It ensures that going from u\mathbf{u} to w\mathbf{w} directly is never longer than going via v\mathbf{v}.

General Inner Products

An inner product on a vector space VV is a function ,:V×VR\langle \cdot, \cdot \rangle: V \times V \to \mathbb{R} satisfying three axioms:

Inner Product Axioms
Symmetry:u,v=v,uLinearity:cu+dw,v=cu,v+dw,vPositive definiteness:v,v>0 for all v0\begin{aligned} \text{Symmetry:} \quad & \langle \mathbf{u}, \mathbf{v} \rangle = \langle \mathbf{v}, \mathbf{u} \rangle \\ \text{Linearity:} \quad & \langle c\mathbf{u} + d\mathbf{w}, \mathbf{v} \rangle = c\langle \mathbf{u}, \mathbf{v} \rangle + d\langle \mathbf{w}, \mathbf{v} \rangle \\ \text{Positive definiteness:} \quad & \langle \mathbf{v}, \mathbf{v} \rangle > 0 \text{ for all } \mathbf{v} \neq \mathbf{0} \end{aligned}

A vector space equipped with an inner product is called an inner product space. Every inner product induces a norm (v=v,v\|\mathbf{v}\| = \sqrt{\langle \mathbf{v}, \mathbf{v} \rangle}), a distance (d(u,v)=uvd(\mathbf{u}, \mathbf{v}) = \|\mathbf{u} - \mathbf{v}\|), and a notion of orthogonality (uv\mathbf{u} \perp \mathbf{v} iff u,v=0\langle \mathbf{u}, \mathbf{v} \rangle = 0). The Cauchy-Schwarz inequality, the triangle inequality, and the Pythagorean theorem all hold in any inner product space.

The standard dot product on Rn\mathbb{R}^n is one inner product. But the definition admits many others, each defining a different geometry on the same set of vectors.
Orthogonality · general inner products

The three axioms

The dot product is one inner product among many. These three conditions are what any candidate must satisfy — and each one is responsible for a specific piece of geometry that would otherwise not exist.

06axioms
Unconditional1
ii
Linearity in the first argument§ 8cu+dw,v=cu,v+dw,v\langle c\mathbf{u} + d\mathbf{w}, \mathbf{v} \rangle = c\langle \mathbf{u}, \mathbf{v} \rangle + d\langle \mathbf{w}, \mathbf{v} \rangle
Combined with symmetry this gives linearity in both arguments — the form is bilinear, so an…
Unconditional
Requires
any scalars c,dc, d

Combined with symmetry this gives linearity in both arguments — the form is bilinear, so an inner product distributes across linear combinations on either side. Only one argument needs stating; symmetry supplies the other.

Conditional5
i
Symmetry§ 8u,v=v,u\langle \mathbf{u}, \mathbf{v} \rangle = \langle \mathbf{v}, \mathbf{u} \rangle
Order of the arguments is irrelevant over ℝ.
Conditional
Holds when
real scalars
Fails when
complex scalars — becomes u,v=v,u\langle \mathbf{u}, \mathbf{v} \rangle = \overline{\langle \mathbf{v}, \mathbf{u} \rangle}

Order of the arguments is irrelevant over R\mathbb{R}. Over C\mathbb{C} the axiom weakens to conjugate symmetry, and it has to — without the conjugate, positive definiteness below would fail, since iv,iv\langle i\mathbf{v}, i\mathbf{v} \rangle would come out negative.

iii
Positive definiteness§ 8v,v0\langle \mathbf{v}, \mathbf{v} \rangle \geq 0
The axiom that supplies length.
Conditional
Holds when
equality iff v=0\mathbf{v} = \mathbf{0}

The axiom that supplies length. It makes v=v,v\|\mathbf{v}\| = \sqrt{\langle \mathbf{v}, \mathbf{v} \rangle} real, non-negative, and zero only at the origin — see norm properties. Drop the strictness and nonzero vectors could have zero length, which breaks normalization and every distance argument built on it.

iv
Cauchy–Schwarz§ 6u,vuv|\langle \mathbf{u}, \mathbf{v} \rangle| \leq \|\mathbf{u}\| \, \|\mathbf{v}\|
Not an axiom — a consequence of the three above.
Derived
Holds when
equality iff u\mathbf{u} and v\mathbf{v} are parallel

Not an axiom — a consequence of the three above. It is what makes angle definable at all: without it, u,v/(uv)\langle \mathbf{u}, \mathbf{v} \rangle / (\|\mathbf{u}\|\|\mathbf{v}\|) could fall outside [1,1][-1, 1] and have no arccosine.

v
Triangle inequality§ 7u+vu+v\|\mathbf{u} + \mathbf{v}\| \leq \|\mathbf{u}\| + \|\mathbf{v}\|
Follows from Cauchy–Schwarz by squaring both sides.
Derived
Holds when
equality iff u,v\mathbf{u}, \mathbf{v} point the same way

Follows from Cauchy–Schwarz by squaring both sides. This is what makes the induced norm a genuine norm and the induced distance a genuine metric — the three axioms give geometry, but only through this chain.

vi
Pythagorean theorem§ 10uvu+v2=u2+v2\mathbf{u} \perp \mathbf{v} \Rightarrow \|\mathbf{u} + \mathbf{v}\|^2 = \|\mathbf{u}\|^2 + \|\mathbf{v}\|^2
Expand \|u+v\|^2 = u+v, u+v by bilinearity and the cross terms vanish.
Derived
Holds when
u,v=0\langle \mathbf{u}, \mathbf{v} \rangle = 0

Expand u+v2=u+v,u+v\|\mathbf{u}+\mathbf{v}\|^2 = \langle \mathbf{u}+\mathbf{v}, \mathbf{u}+\mathbf{v} \rangle by bilinearity and the cross terms vanish. The classical theorem in R2\mathbb{R}^2 turns out to be a statement about any inner product space — it holds for functions and matrices just as well.

Unconditional
Conditional
Symmetry§ 8Conditional
u,v=v,u\langle \mathbf{u}, \mathbf{v} \rangle = \langle \mathbf{v}, \mathbf{u} \rangle
Holds when
real scalars
Fails when
complex scalars — becomes u,v=v,u\langle \mathbf{u}, \mathbf{v} \rangle = \overline{\langle \mathbf{v}, \mathbf{u} \rangle}
Order of the arguments is irrelevant over R\mathbb{R}. Over C\mathbb{C} the axiom weakens to conjugate symmetry, and it has to — without the conjugate, positive definiteness below would fail, since iv,iv\langle i\mathbf{v}, i\mathbf{v} \rangle would come out negative.
Read the full section
cu+dw,v=cu,v+dw,v\langle c\mathbf{u} + d\mathbf{w}, \mathbf{v} \rangle = c\langle \mathbf{u}, \mathbf{v} \rangle + d\langle \mathbf{w}, \mathbf{v} \rangle
Requires
any scalars c,dc, d
Combined with symmetry this gives linearity in both arguments — the form is bilinear, so an inner product distributes across linear combinations on either side. Only one argument needs stating; symmetry supplies the other.
Read the full section
v,v0\langle \mathbf{v}, \mathbf{v} \rangle \geq 0
Holds when
equality iff v=0\mathbf{v} = \mathbf{0}
The axiom that supplies length. It makes v=v,v\|\mathbf{v}\| = \sqrt{\langle \mathbf{v}, \mathbf{v} \rangle} real, non-negative, and zero only at the origin — see norm properties. Drop the strictness and nonzero vectors could have zero length, which breaks normalization and every distance argument built on it.
Read the full section
u,vuv|\langle \mathbf{u}, \mathbf{v} \rangle| \leq \|\mathbf{u}\| \, \|\mathbf{v}\|
Holds when
equality iff u\mathbf{u} and v\mathbf{v} are parallel
Not an axiom — a consequence of the three above. It is what makes angle definable at all: without it, u,v/(uv)\langle \mathbf{u}, \mathbf{v} \rangle / (\|\mathbf{u}\|\|\mathbf{v}\|) could fall outside [1,1][-1, 1] and have no arccosine.
Read the full section
u+vu+v\|\mathbf{u} + \mathbf{v}\| \leq \|\mathbf{u}\| + \|\mathbf{v}\|
Holds when
equality iff u,v\mathbf{u}, \mathbf{v} point the same way
Follows from Cauchy–Schwarz by squaring both sides. This is what makes the induced norm a genuine norm and the induced distance a genuine metric — the three axioms give geometry, but only through this chain.
Read the full section
uvu+v2=u2+v2\mathbf{u} \perp \mathbf{v} \Rightarrow \|\mathbf{u} + \mathbf{v}\|^2 = \|\mathbf{u}\|^2 + \|\mathbf{v}\|^2
Holds when
u,v=0\langle \mathbf{u}, \mathbf{v} \rangle = 0
Expand u+v2=u+v,u+v\|\mathbf{u}+\mathbf{v}\|^2 = \langle \mathbf{u}+\mathbf{v}, \mathbf{u}+\mathbf{v} \rangle by bilinearity and the cross terms vanish. The classical theorem in R2\mathbb{R}^2 turns out to be a statement about any inner product space — it holds for functions and matrices just as well.
Read the full section
Every geometric notion on this page is derived from these three and nothing else. That is why the same machinery works on function spaces, matrix spaces and polynomial spaces — Gram–Schmidt and projection never look at what the vectors are, only at the axioms they obey.
The three axioms·/linear-algebra/orthogonality/inner-productLearn Math Class

Inner Product Notation

Notation

Inner Product Notation

The angle brackets' third and final job, the dots that mark empty argument slots, and the perpendicularity mark that grew a superscript.
The concrete dot — dot product notation; \|\cdot\|norm notation; the other two angle-bracket jobs — span notation.
u,v\langle \mathbf{u}, \mathbf{v} \rangle
The inner product of u and v
Angle brackets with a comma: two vectors in, one scalar out, by whatever rule the space has declared — the axioms of General Inner Products above. The dot product is the Rn\mathbb{R}^n instance; the brackets are the abstraction that lets Fourier series and polynomial spaces borrow its geometry.
CasesThis closes the angle-bracket ledger: components in some calculus texts, generated subspaces in algebra, and inner products here — three jobs, and only context or a comma count separates them.
Also written(u,v)(\mathbf{u}, \mathbf{v}) — plain parentheses, the standard in Russian and much European literature; economical but colliding with points, tuples, and open intervals all at once.
Do not confuseDirac's bra-ket. Physics writes uv\langle u \mid v \rangle with a bar, not a comma — the same brackets split into freestanding halves u\langle u \mid and v\mid v \rangle; comma means mathematics, bar means quantum mechanics.
,:V×VR\langle \cdot, \cdot \rangle: V \times V \to \mathbb{R}
The inner product, as a function of two slots
The centered dots are placeholders: they mark empty argument slots, letting the operation be named without feeding it. The signature above — from the definition in General Inner Products — declares the machine: two vectors go in the slots, a real number comes out.
CasesThe same device names any operation slot-wise: \|\cdot\| for the norm, d(,)d(\cdot, \cdot) for distance, f()f(\cdot) for a function whose argument is momentarily none of your business.
Also writtenDashes or boxes in some texts (,\langle -, - \rangle is common in category-flavoured writing) — same placeholder idea, different filler.
Do not confuseThe multiplication dot. Identical glyph, opposite role: cvc \cdot \mathbf{v} operates, ,\langle \cdot, \cdot \rangle leaves a blank — one is a verb, the other an empty chair.
uv\mathbf{u} \perp \mathbf{v} · WW^{\perp}
u is orthogonal to v; W perp
The up-tack asserts u,v=0\langle \mathbf{u}, \mathbf{v} \rangle = 0 — geometry's perpendicularity sign, generalized to any inner product space. As a superscript it becomes an operator: WW^{\perp} is the set of everything orthogonal to WW, the orthogonal complement.
CasesThe mark scales across species: uv\mathbf{u} \perp \mathbf{v} between vectors, vW\mathbf{v} \perp W vector-to-subspace, WW^{\perp} as a whole subspace — the four-subspace complement pairs are written exactly this way.
Also written“Orthogonal” spelled out where the symbol is unavailable; \perp itself is LaTeX \perp, distinct from the up-tack \bot of logic typography.
Do not confuseA superscript exponent or transpose. WW^{\perp} joins ATA^{T} and A1A^{-1} in the crowded superscript corner — like them, it is a label naming an operation, and like them it reverses nothing about WW itself.

Examples of Inner Products

The weighted inner product on Rn\mathbb{R}^n is u,v=uTWv\langle \mathbf{u}, \mathbf{v} \rangle = \mathbf{u}^T W \mathbf{v}, where WW is a symmetric positive definite matrix. This distorts the standard geometry — unit circles become ellipses, and "perpendicular" directions depend on WW. When W=IW = I, it reduces to the standard dot product.

On the polynomial space Pn\mathcal{P}_n, the inner product p,q=11p(x)q(x)dx\langle p, q \rangle = \int_{-1}^{1} p(x)q(x)\,dx defines orthogonality via integration. The polynomials 11, xx, and 12(3x21)\frac{1}{2}(3x^2 - 1) are orthogonal under this product — these are the first three Legendre polynomials.

On the function space C[0,2π]C[0, 2\pi], the inner product f,g=02πf(x)g(x)dx\langle f, g \rangle = \int_0^{2\pi} f(x)g(x)\,dx makes sines and cosines orthogonal: 02πsin(mx)cos(nx)dx=0\int_0^{2\pi} \sin(mx)\cos(nx)\,dx = 0 for all integers m,nm, n. This is the foundation of Fourier analysis.

The Frobenius inner product on matrices is A,B=tr(ATB)=ijaijbij\langle A, B \rangle = \text{tr}(A^TB) = \sum_{ij} a_{ij}b_{ij}, which treats matrices as vectors of n2n^2 entries.

Each inner product defines its own geometry, but the linear algebra — projections, Gram-Schmidt, least squares — works identically in all of them.

The Pythagorean Theorem

If u\mathbf{u} and v\mathbf{v} are orthogonal (uv=0\mathbf{u} \cdot \mathbf{v} = 0), then

Pythagorean Theorem
uv    u+v2=u2+v2\mathbf{u} \perp \mathbf{v} \implies \|\mathbf{u} + \mathbf{v}\|^2 = \|\mathbf{u}\|^2 + \|\mathbf{v}\|^2

The proof is a one-line expansion: u+v2=uu+2uv+vv=u2+0+v2\|\mathbf{u} + \mathbf{v}\|^2 = \mathbf{u} \cdot \mathbf{u} + 2\mathbf{u} \cdot \mathbf{v} + \mathbf{v} \cdot \mathbf{v} = \|\mathbf{u}\|^2 + 0 + \|\mathbf{v}\|^2.

The theorem extends to any number of mutually orthogonal vectors: if v1,,vk\mathbf{v}_1, \dots, \mathbf{v}_k are pairwise orthogonal, then

v1+v2++vk2=v12+v22++vk2\|\mathbf{v}_1 + \mathbf{v}_2 + \cdots + \mathbf{v}_k\|^2 = \|\mathbf{v}_1\|^2 + \|\mathbf{v}_2\|^2 + \cdots + \|\mathbf{v}_k\|^2


All cross terms vanish because every pair has dot product zero. This is not a special property of R2\mathbb{R}^2 or R3\mathbb{R}^3 — it holds in any inner product space. The Pythagorean theorem is a direct consequence of the inner product axioms, and it is the reason that orthogonal decompositions are so computationally clean: lengths decompose into independent, additive contributions from each perpendicular direction.
Relation Statement When equality holds What it provides
Cauchy–Schwarz inequality |⟨u, v⟩| ≤ ‖u‖ · ‖v‖ u and v are parallel (one is a scalar multiple of the other) legitimacy of the angle formula: −1 ≤ cos θ ≤ 1; bounds on inner products in any inner product space
Triangle inequality ‖u + v‖ ≤ ‖u‖ + ‖v‖ u and v point in the same direction (one is a non-negative multiple of the other) the induced distance d(u, v) = ‖u − v‖ satisfies the metric axioms
Pythagorean theorem u ⊥ v ⟹ ‖u + v‖² = ‖u‖² + ‖v‖² always (the statement is an equality, not an inequality, valid whenever u ⊥ v) cross terms vanish; lengths add additively across orthogonal directions, making orthogonal decompositions clean

Summary: What an Inner Product Induces

Every quantity built in this page — norm, distance, angle, the orthogonality criterion, and the projection formula on the projections page — is constructed from a single inner product through a small family of formulas. The table below collects each induced quantity alongside its general definition in any inner product space, the concrete dot-product form in ℝⁿ, and a pointer back to the section that introduced it.
Quantity induced by ⟨·, ·⟩ General definition Standard dot-product instance in ℝⁿ Where introduced
Norm (length) of a vector ‖v‖ = √⟨v, v⟩ √(v · v) = √(v1² + … + vn²) obj3 — Length
Unit vector / normalization v̂ = v / ‖v‖ v / √(v · v) obj3 — Length
Distance between vectors d(u, v) = ‖u − v‖ √Σi (ui − vi obj4 — Distance
Angle between vectors cos θ = ⟨u, v⟩ / (‖u‖ · ‖v‖) (u · v) / (‖u‖ · ‖v‖) obj5 — Angle Between Vectors
Orthogonality u ⊥ v ⟺ ⟨u, v⟩ = 0 u · v = 0 obj5 — Angle Between Vectors (special case θ = π/2)
Projection of u onto a nonzero v projv(u) = (⟨u, v⟩ / ⟨v, v⟩) · v ((u · v) / (v · v)) · v covered on the projections page

Inner Product FAQ

Is uv\langle u \mid v \rangle the same as u,v\langle u, v \rangle?

+
Same idea, different dialect. A comma marks the mathematician's inner product; a vertical bar marks Dirac's bra-ket from quantum mechanics. The bar version is built to split into freestanding halves that carry meaning on their own, which the comma form never does. Comma means mathematics, bar means physics.Read more →

What do the dots mean in ,\langle \cdot, \cdot \rangle?

+
They are empty slots, marking where arguments would go when you want to name the operation without applying it. The same device gives \|\cdot\| for a norm and d(,)d(\cdot, \cdot) for a distance. Note the glyph is identical to the multiplication dot but plays the opposite role: one is a verb, the other an empty chair.Read more →

Is the \perp in WW^{\perp} an exponent?

+
No, it is a label, joining ATA^{T} and A1A^{-1} in the crowded superscript corner where none of the marks raise anything to a power. The symbol also scales across species: uv\mathbf{u} \perp \mathbf{v} relates two vectors, vW\mathbf{v} \perp W a vector to a subspace, and WW^{\perp} names a whole subspace.Read more →