A vector of length one
A unit vector is a vector whose length is exactly 1. It carries a direction and nothing else, which is why it is used wherever only the direction matters: the way a camera points, the way a wind blows.
Every vector other than the zero vector has a unit vector pointing the same way. Take a = (3, 4). By Pythagoras its length is .
Divide by the length
To shrink a to length 1, divide each component by the length 5: (3 ÷ 5, 4 ÷ 5) = (0.6, 0.8), which is as fractions. This is the unit vector in the direction of a. It is written â and read “a-hat”.
Dividing by 5 is the same as multiplying by the scalar . A positive scalar keeps the direction and multiplies the length, so â points exactly the way a points, and its length is .
Check it with Pythagoras: . As fractions, .
a = (3, 4), of length 5, and â = (0.6, 0.8), of length 1. The short arrow lies along the long one and ends on the ring of radius 1.
Every direction has one
Draw every unit vector from the origin and their heads trace the circle of radius 1, because each one is 1 long. The unit vector at an angle above the x-axis ends at the point on that circle.
The direction of (3, 4) is about 53.1° above the x-axis, and cos 53.1° and sin 53.1° are 0.6 and 0.8 to one decimal place: the same unit vector, found from the angle instead of from the length.
the point at angle θ on the unit circle has coordinates (cos θ, sin θ)
Turn until the sine is 1
A radius of 1 at 53°, close to the direction of (3, 4). Its two legs, 0.60 across and 0.80 up to two decimal places, are the components of the unit vector. Drag the point round the circle: the components change with the direction, and the length stays 1.
Length times direction
Turned around, the division says that any vector is its length times its unit vector: a = |a| × â. For a, that is 5 × (0.6, 0.8) = (3, 4), the vector we started with.
This gives a vector of any length in a chosen direction. In the direction of a, a vector of length 10 is 10â = (6, 8), and one of length 2.5 is 2.5 × (0.6, 0.8) = (1.5, 2).
When the length is not a whole number
The vector (1, 2) has length . Its unit vector is , which is (0.45, 0.89) to 2 decimal places. With the denominators rationalized, it is .
Negative components keep their signs. (−5, 12) has length , so its unit vector is , still pointing left and up.
The zero vector, (0, 0), has no unit vector. Its length is 0, and dividing by 0 has no meaning; it has no direction to keep.
The usual mistakes
Leaving the vector as it is. (3, 4) points the right way, but its length is 5, not 1.
Dividing only one component. (0.6, 4) is not a multiple of (3, 4), so it points in a different direction.
Dividing by the sum of the components instead of the length. has length , not 1, because the length of (3, 4) is 5, not 3 + 4 = 7.
Giving a point instead of a step. After finding a step along a unit vector, add it to the starting position to find where it ends.
Pointing a camera
In the application below, a camera at C must point at a basket at G. The vector from C to G is G minus C, destination minus start. Dividing it by its length gives the unit vector that sets the camera’s direction, and 5 times that unit vector is a step of exactly 5 m along the same line, added to the position of C.
Worked example: Pointing a Camera at a Basket Along a Unit Vector
Question On a plan of a sports hall, with distances in meters from one corner, a camera is mounted at C(1, 2) and must point at the basket G(7, 10). Its motor is set by the unit vector in the direction it points. (a) Find the unit vector in the direction from C to G. (b) The camera is to focus on a point F that is 5 m from C in that direction. Find the coordinates of F.
1.The vector from C to G is the position vector of G minus that of C: CG = 710 − 12 = 68.
The vector from C to G is the position vector of G minus that of C: CG = 710 − 12 = 68. 2.Its magnitude is √62 + 82 = √100 = 10 m.
Its magnitude is √62 + 82 = 10 m. 3.(a) Divide the vector by its magnitude: the unit vector is 11068 = 0.60.8. Check: 0.62 + 0.82 = 0.36 + 0.64 = 1.
(a) Divide by the magnitude: the unit vector is 11068 = 0.60.8, an arrow of length 1 m along CG. 4.A step of 5 m in that direction is 5 times the unit vector: 50.60.8 = 34.
A step of 5 m is 5 times the unit vector: 50.60.8 = 34. 5.(b) Add this step to the position vector of C: 12 + 34 = 46, so F is at (4, 6). Check: 5 m is half of 10 m, and the midpoint of CG is (4, 6).
(b) 12 + 34 = 46, so F is at (4, 6), halfway along CG.
Answer: (a) 0.60.8; (b) F(4, 6)
Common mistakes
- Setting the motor with 68. It points the right way, but its length is 10, not 1; a unit vector is the vector divided by its magnitude.
- Giving F as (3, 4). That is the step from C to F; the position of F is the position of C plus that step.