Unit 2 · Length, angle and the dot product

Lesson 08 · Available to read

Unit vectors

Dividing a vector by its norm preserves its direction and sets its length to 1.

Every non-zero vector combines two pieces of information: a magnitude and a direction. It is often useful to separate them. A unit vector is a vector of length 1, and therefore carries direction only.

Any non-zero vector v can be converted into a unit vector by dividing it by its norm: v̂ = v / ‖v‖. This process is called normalisation. For v = [3, 4], ‖v‖ = 5, so v̂ = [0.6, 0.8]. One can check that ‖v̂‖ = √(0.36 + 0.64) = 1. The original vector is recovered as v = ‖v‖ v̂, its magnitude times its direction.

In the plane, every unit vector ends on the circle of radius 1 centred at the origin, the unit circle. Two unit vectors deserve names: e₁ = [1, 0] and e₂ = [0, 1], the standard basis vectors, pointing along the axes. Every vector in the plane is a linear combination of them, since [3, 4] = 3e₁ + 4e₂.

The zero vector cannot be normalised: its norm is 0, and division by 0 is undefined, consistent with the fact that it has no direction. Normalisation is useful whenever only the direction matters. Two cars heading north-east, one at 30 km/h and one at 90 km/h, have velocity vectors of very different lengths, yet both normalise to the same unit vector: the direction of travel, with the speed removed.

Three vectors of different lengths, each shrunk along its own direction onto the unit circle

The takeaway

A unit vector has length 1; v̂ = v / ‖v‖ keeps the direction of any non-zero v.

Practice

0 of 5 attempted

  1. 1Calculate

    Normalise the vector v = [6, 8].

    Saved in this browser

  2. 2Calculate

    Verify that u = [0.6, −0.8] is a unit vector.

    Saved in this browser

  3. 3Multiple choice

    Which of these is a unit vector?

  4. 4Explain in your own words

    Why can the zero vector not be normalised? Relate your answer to direction.

    Saved in this browser

  5. 5Apply

    Write v = [−5, 12] as its magnitude times a unit vector.

    Saved in this browser