7. Norm

A scalar that measures the length (or magnitude) of a vector.

Notation: 𝑣.

7.1. Euclidean norm (2)

The default norm — Pythagoras applied componentwise.

For 𝑣=[𝑣1𝑣2𝑣𝑛]𝑛:

𝑣=𝑣12+𝑣22++𝑣𝑛2
Example
𝑣=[34]𝑣=32+42=25=5

Geometrically, this is the distance from the origin to the point (3,4).

7.2. From dot product

The Euclidean norm is the dot product of a vector with itself, square-rooted:

𝑣=𝑣𝑣

(See Dot Product.)

This connection makes norms central to projections, angles between vectors, and least-squares regression.

7.3. Properties (norm axioms)

For any vectors 𝑢,𝑣𝑛 and scalar 𝑐:

Any function 𝑛 satisfying these four axioms is a norm.

7.4. Geometric interpretation

7.5. Other common norms (𝑝 family)

For 𝑝1:

𝑣𝑝=(𝑖=1𝑛|𝑣𝑖|𝑝)1𝑝

Special cases:

NormFormulaGeometry of unit ball
1 (Manhattan / taxicab)𝑖|𝑣𝑖|diamond
2 (Euclidean — default)𝑖𝑣𝑖2circle / sphere
(Chebyshev / max)max𝑖|𝑣𝑖|square / cube
Example

𝑣=[34]:

𝑣1=|3|+|4|=7𝑣2=9+16=5𝑣=max(3,4)=4

7.6. Normalizing a vector

Dividing a vector by its norm gives a unit vector in the same direction:

𝑣̂=𝑣𝑣,𝑣̂=1

7.7. Connections