← Module 02 / Vectors & spaces

Lesson 02.9 · §3.5

How does a product measure alignment?

Connect inner products, orthogonality, induced norms, and distance.

In this lesson 3 ideas
  1. Add the coordinate contributions
  2. From alignment to length
  3. Transfer

Source scope: §3.5. Worked numerical examples, experiments, and practice are teaching supplements unless identified as source results.

Add the coordinate contributions

For x=(2,1)x=(2,1) and y=(1,−2)y=(1,-2), the products are 22 and −2-2. Their sum is zero. The vectors are perpendicular even though neither coordinate product is zero.

An inner product on a real vector space is a function ⟨⋅,⋅⟩:V×V→R\langle\cdot,\cdot\rangle:V\times V\to\mathbb R satisfying

  1. ⟨x,x⟩≥0\langle x,x\rangle\ge0, with equality exactly when x=0x=0.
  2. Linearity in the first slot: ⟨x+y,z⟩=⟨x,z⟩+⟨y,z⟩\langle x+y,z\rangle=\langle x,z\rangle+\langle y,z\rangle and ⟨αx,y⟩=α⟨x,y⟩\langle\alpha x,y\rangle=\alpha\langle x,y\rangle.
  3. Symmetry: ⟨x,y⟩=⟨y,x⟩\langle x,y\rangle=\langle y,x\rangle.

These hold for all vectors and real scalars. Symmetry also supplies linearity in the second slot. A space equipped with an inner product is an inner product space.

From alignment to length

The induced norm is ∥x∥=⟨x,x⟩\|x\|=\sqrt{\langle x,x\rangle}. Thus an inner product gives a norm and, in turn, a metric. Positivity and absolute homogeneity follow from the axioms. The triangle inequality uses Cauchy–Schwarz from the next lesson:

∥x+y∥2=∥x∥2+2⟨x,y⟩+∥y∥2≤(∥x∥+∥y∥)2.\|x+y\|^2=\|x\|^2+2\langle x,y\rangle+\|y\|^2\le(\|x\|+\|y\|)^2.

Vectors are orthogonal, written x⊥yx\perp y, when ⟨x,y⟩=0\langle x,y\rangle=0. Orthogonal unit vectors are orthonormal. Zero is orthogonal to every vector but is never a unit vector.

The standard real inner product is

⟨x,y⟩=∑i=1nxiyi=xTy=x⋅y.\langle x,y\rangle=\sum_{i=1}^n x_i y_i=x^Ty=x\cdot y.

The matrix product is 1×11\times1, which we identify with a scalar. Its induced norm is exactly the two-norm because xTx=∑ixi2x^Tx=\sum_i x_i^2. For nonzero Euclidean vectors, xTy=∥x∥2∥y∥2cos⁡θx^Ty=\|x\|_2\|y\|_2\cos\theta connects the product to the angle.

Source footnote 5: A space complete in the metric induced by its inner product is a Hilbert space.

Explore it yourself

Find the closest point on a line

Move the candidate along S. Can its distance beat the perpendicular foot?

Preparing interactive controls…

x₁x₂-4-4-3-3-2-2-1-1011223344SvPvresiduals

v = (2, 1); Pv = (1.933, 1.116); residual = (0.067, -0.116). Residual · u = 0. Candidate distance² = 1.536 = residual length² 0.018 + foot-to-candidate length² 1.518.

Axes: first and second real coordinates, in unit steps. Endpoints and labels identify each vector.

Transfer

If two vectors have dot product zero, must both have length one?

Separate two definitions

No. (2,0)(2,0) and (0,3)(0,3) are orthogonal, with lengths two and three. Divide each by its own length to obtain an orthonormal pair.