Unit Vectors
Vectors of length 1, and building any vector from the unit vectors along the axes.
1. What a Unit Vector Is
A unit vector is a vector of length 1. We write it with a hat instead of a bar, such as $\hat{u}$, read “u hat”.
Every unit vector has the same length, so the only thing that tells one apart from another is its direction. A unit vector is a way of saying “this way” and nothing more.
2. Making a Unit Vector
Take any vector $\bar{v}$ other than the zero vector. To get the unit vector that points the same way, divide $\bar{v}$ by its own length, which means multiplying it by the number $1/|\bar{v}|$:
Why does this have length 1? On the previous page we found that $|k\bar{v}| = |k|\,|\bar{v}|$. Here $k = \dfrac{1}{|\bar{v}|}$, which is positive, so the direction stays the same and
$$|\hat{v}| = \frac{1}{|\bar{v}|}\,|\bar{v}| = 1$$The zero vector has no unit vector. Its length is 0, and dividing by 0 is not defined. That matches what we saw on the first page: the zero vector has no direction to keep.
Example 1
For $\bar{v} = (3, 4)$, the length is $|\bar{v}| = 5$, so
$$\hat{v} = \frac{1}{5}(3, 4) = \left(\frac{3}{5},\ \frac{4}{5}\right)$$Check the length:
$$\begin{align} |\hat{v}| &= \sqrt{\left(\frac{3}{5}\right)^2 + \left(\frac{4}{5}\right)^2} \\ &= \sqrt{\frac{9}{25} + \frac{16}{25}} = \sqrt{\frac{25}{25}} = 1 \end{align}$$Multiplying both sides of $\hat{v} = \dfrac{1}{|\bar{v}|}\,\bar{v}$ by $|\bar{v}|$ turns it around:
Every vector other than the zero vector is its length times its direction. This is the definition from the first page, a size and a direction, written as an equation.
3. Unit Vectors Along the Axes
The unit vectors that point along the positive axes are the building blocks for every other vector. This site names them $\hat{e}_1, \hat{e}_2, \hat{e}_3, \dots$, where $\hat{e}_i$ points along the $i$-th axis: it has a 1 in position $i$ and 0 everywhere else. In two dimensions,
$$\hat{e}_1 = (1, 0) \qquad \hat{e}_2 = (0, 1)$$Each has length 1, since $\sqrt{1^2 + 0^2} = 1$. In three dimensions there are three:
$$\hat{e}_1 = (1, 0, 0) \qquad \hat{e}_2 = (0, 1, 0) \qquad \hat{e}_3 = (0, 0, 1)$$When the axes are called $x$, $y$ and $z$, the same vectors are also written with the axis letter under a hat:
This follows the rule for naming any unit vector: $\hat{x}$ is the unit vector in the direction of the $x$-axis, just as $\hat{v}$ is the unit vector in the direction of $\bar{v}$.
4. Building Vectors from Unit Vectors
Any vector can be built from these. Split $(v_x, v_y)$ into a part along each axis, then take the numbers out in front:
$$\begin{align} (v_x, v_y) &= (v_x, 0) + (0, v_y) \\ &= v_x (1, 0) + v_y (0, 1) \\ &= v_x \hat{x} + v_y \hat{y} \end{align}$$The first line is addition, adding matching components. The second is scalar multiplication, since $v_x (1, 0) = (v_x \cdot 1,\ v_x \cdot 0) = (v_x, 0)$. So $v_x \hat{x} + v_y \hat{y}$ says: take $v_x$ steps of $\hat{x}$, then $v_y$ steps of $\hat{y}$. In three dimensions,
Example 2
$$\begin{align} (3, 4) &= 3\hat{x} + 4\hat{y} \\ (2, -1, 5) &= 2\hat{x} - \hat{y} + 5\hat{z} \end{align}$$5. N Dimensions
Past three dimensions the axis letters run out, but the numbered names carry on:
$$\hat{e}_1 = (1, 0, 0, \dots, 0) \qquad \hat{e}_2 = (0, 1, 0, \dots, 0)$$and so on up to $\hat{e}_n$. Any vector is built from them in the same way:
$$\bar{v} = v_1 \hat{e}_1 + v_2 \hat{e}_2 + \cdots + v_n \hat{e}_n$$Using the $\sum$ notation from the Magnitude page, this is
This is why this site uses numbered names: one notation works in every number of dimensions.
6. Notation on This Site
$(3, 4)$, $3\hat{x} + 4\hat{y}$ and $3\hat{e}_1 + 4\hat{e}_2$ are three ways of writing the same vector. From here on, this site uses:
- $\hat{v}$, with a hat, for the unit vector in the direction of $\bar{v}$.
- $\hat{e}_1, \hat{e}_2, \dots, \hat{e}_n$ for the unit vectors along the axes, also written $\hat{x}$, $\hat{y}$ and $\hat{z}$ in three dimensions.
- Components in brackets, such as $(v_x, v_y)$, as the main way of writing a vector, and sums of unit vectors, such as $v_x \hat{x} + v_y \hat{y}$, where they make a calculation clearer. The cross product, on a later page, is the main example.
Other books often call the same three vectors $\hat{\imath}$, $\hat{\jmath}$ and $\hat{k}$, and often write $\hat{e}_i$ without the hat, or in bold as $\mathbf{e}_i$.