Unit Vectors
The concept of a unit vector is very simple, but very important and foundational in the field of Linear Algebra.
A unit vector is simply a vector whose length equals .
The use of a vector with length is that you donβt care about the length - you only care about the direction itβs pointing to. The unit vector isolates the direction from its magnitude (length);
This could be useful because maybe you want to scale a vector to have some specific length. To do this you could first find the unit vector which points in the same direction as your given vector. Then you could multiply the unit vector with a scalar (scalar multiplication) corresponding to your desired length.
To find the unit vector of a vector , you just divide by its length.
That is
If is found as shown above, then
NOTE: You cannot find the unit vector which points in the same direction as a zero vector. For one, it would not make any sense, since the zero vector has no direction. But most importantly, the length of a zero vector is , and the formula above would require you to divide by in that case, which is undefined.
NOTE: Division by a scalar is simply multiplying by the multiplicative inverse. What that means is that dividing by some scalar is the same as multiplying by . It is basically scalar multiplication.
Example
For example, let us find the unit vector which points in the same direction as the vector
We divide by the length to find the unit vector :
If you now compute , you will find that it will equal 1: