- Foundation
- About 15 min
- 5 practice questions
Components, magnitude and unit vectors
Write vectors in terms of i, j and k, find the magnitude √(x² + y² + z²), find unit vectors, add vectors and multiply them by scalars in components, and find the vector joining two points.
If something looks wrong, please tell us.
Drawing vectors is good for ideas but slow for calculation. Once we set up coordinate axes, every vector can be described by three numbers, its components, and then addition, scalar multiplication, magnitudes and unit vectors all become simple arithmetic. This lesson introduces components in space; plane vectors are the special case with no k component.
The unit vectors i, j and k
Take x-, y- and z-axes at right angles through the origin O. Let i, j and k be unit vectors along the positive x-, y- and z-axes. If P is the point (x, y, z), its position vector is OP = xi + yj + zk. The numbers x, y and z are the components (scalar components) of OP along the axes. In the plane, a vector is simply xi + yj.
Magnitude
By applying Pythagoras' theorem twice, the length of OP is
If r = xi + yj + zk, then |r| = √(x² + y² + z²), and the unit vector in the direction of r is r/|r|.
For example, |2i + 3j − 6k| = √(4 + 9 + 36) = √49 = 7. Remember that components can be negative, but their squares are not, so a magnitude is always non-negative.
Operations in components
If a = a₁i + a₂j + a₃k and b = b₁i + b₂j + b₃k, then a + b = (a₁ + b₁)i + (a₂ + b₂)j + (a₃ + b₃)k, a − b is formed in the same way, and λa = λa₁i + λa₂j + λa₃k. Two vectors are equal exactly when their corresponding components are equal. Two non-zero vectors are collinear exactly when their components are proportional, b = λa.
The vector joining two points
If A = (x₁, y₁, z₁) and B = (x₂, y₂, z₂), then by 'end minus start', AB = (x₂ − x₁)i + (y₂ − y₁)j + (z₂ − z₁)k, and |AB| is the distance between the two points.
Worked example 1: unit vector
Find the unit vector in the direction of r = 2i + 3j − 6k. We found |r| = 7. So the unit vector is (2/7)i + (3/7)j − (6/7)k. Check: (4 + 9 + 36)/49 = 1, so its magnitude is 1.
Worked example 2: joining two points
A = (1, 2, 3) and B = (4, 6, 3). Then AB = (4 − 1)i + (6 − 2)j + (3 − 3)k = 3i + 4j, and |AB| = √(9 + 16 + 0) = 5.
Worked example 3: combinations
Let a = 2i − j + 2k and b = i + 3j − k. Then a + b = 3i + 2j + k, and 2a − b = (4 − 1)i + (−2 − 3)j + (4 + 1)k = 3i − 5j + 5k. Also |a| = √(4 + 1 + 4) = 3, so a vector of magnitude 6 in the direction of a is 2a = 4i − 2j + 4k.
Worked example 4: equal vectors
If xi + 2j − zk = 3i + yj + k, then comparing components, x = 3, y = 2 and z = −1. Watch the sign: −z = 1 gives z = −1.
Key takeaways
With axes and the unit vectors i, j, k, a vector is described by its components. The magnitude is the square root of the sum of the squares of the components, and dividing by it gives a unit vector. Add, subtract and multiply by scalars component by component, and find AB as end minus start. These rules prepare you for the section formula and direction cosines.
Check your understanding
-
1. What is the magnitude of i + 2j − 2k?
- 1
- 5
- 9
- 3
Show answer
Answer: D. √(1² + 2² + (−2)²) = √9 = 3.
-
2. What is the unit vector in the direction of 3i − 4j?
- 3i − 4j
- (3/7)i − (4/7)j
- (1/5)i − (1/5)j
- (3/5)i − (4/5)j
Show answer
Answer: D. |3i − 4j| = √(9 + 16) = 5, so the unit vector is (3i − 4j)/5.
-
3. A = (1, 0, 2) and B = (3, −3, 8). What is |AB|?
- 5
- 7
- 49
- √13
Show answer
Answer: B. AB = 2i − 3j + 6k, so |AB| = √(4 + 9 + 36) = 7.
-
4. If a = i + j + k and b = 2i − j + 3k, what is a − 2b?
- −3i + 3j − 5k
- 3i − j + 7k
- −i + 2j − 2k
- −3i − j − 5k
Show answer
Answer: A. a − 2b = (1 − 4)i + (1 + 2)j + (1 − 6)k = −3i + 3j − 5k.
-
5. Which vector has magnitude 6 and the same direction as 2i − j + 2k?
- 12i − 6j + 12k
- 2i − j + 2k
- 4i − 2j + 4k
- (2/3)i − (1/3)j + (2/3)k
Show answer
Answer: C. |2i − j + 2k| = 3, so multiply by 2: 4i − 2j + 4k, whose magnitude is 2 × 3 = 6.
Sign in to keep track of the lessons you finish.