- Practice
- About 18 min
- 5 practice questions
Resolution of vectors, components and direction cosines
Write vectors in terms of î, ĵ, k̂, find magnitudes, components of a vector joining two points and unit vectors, and work with direction cosines and direction ratios.
If something looks wrong, please tell us.
By the end of this lesson you can
- Resolve a vector as xî + yĵ in the plane or xî + yĵ + zk̂ in space, and find its magnitude.
- Find the components of AB⃗ from the coordinates of A and B, and add vectors component by component.
- Find direction cosines and direction ratios, and use cos²α + cos²β + cos²γ = 1.
- Test collinearity and coplanarity using components.
Drawing vectors is good for ideas, but calculation needs numbers. Resolving a vector along the coordinate axes turns it into three numbers, after which addition, magnitude and direction all become arithmetic.
Resolution in two and three dimensions
Let î, ĵ, k̂ be the unit vectors along the positive x, y and z axes. Theorem 8.5: if P = (x, y) then OP⃗ = xî + yĵ, uniquely, and |OP⃗| = √(x² + y²). Theorem 8.6: if P = (x, y, z) then OP⃗ = xî + yĵ + zk̂ and |OP⃗| = √(x² + y² + z²), found by applying Pythagoras twice. xî and yĵ (and zk̂) are the rectangular components of the vector. More generally, if a⃗ and b⃗ are non-collinear, every vector in their plane is λa⃗ + μb⃗ in exactly one way; if a⃗, b⃗, c⃗ are non-coplanar, every vector in space is λa⃗ + μb⃗ + νc⃗ in exactly one way.
Vector joining two points: if A = (x₁, y₁, z₁) and B = (x₂, y₂, z₂), then AB⃗ = (x₂ − x₁)î + (y₂ − y₁)ĵ + (z₂ − z₁)k̂. A vector a₁î + a₂ĵ + a₃k̂ can also be written as the column matrix [a₁; a₂; a₃], so operations act component by component: a⃗ + b⃗ = (a₁ + b₁)î + (a₂ + b₂)ĵ + (a₃ + b₃)k̂, ma⃗ = ma₁î + ma₂ĵ + ma₃k̂, and a⃗ = b⃗ exactly when a₁ = b₁, a₂ = b₂, a₃ = b₃. Multiplying by k > 1 magnifies a vector and by 0 < k < 1 contracts it.
Worked example 1: magnitude and unit vector
Find the unit vectors parallel to a⃗ = 6î − 2ĵ + 3k̂. Working: |a⃗| = √(36 + 4 + 9) = √49 = 7, so â = (6î − 2ĵ + 3k̂)/7. The unit vector in the opposite direction is −(6î − 2ĵ + 3k̂)/7. Check: (6/7)² + (2/7)² + (3/7)² = (36 + 4 + 9)/49 = 1.
Direction cosines and direction ratios
Let r⃗ = OP⃗ = xî + yĵ + zk̂ with |r⃗| = r, and let α, β, γ be the angles it makes with the positive x, y and z axes (its direction angles). In the right triangle formed by P, O and the foot of the perpendicular from P to the x-axis, cos α = x/r; similarly cos β = y/r and cos γ = z/r. These three numbers are the direction cosines (often written l, m, n). Any three numbers proportional to them, such as x, y, z, are direction ratios, so a vector has infinitely many sets of direction ratios.
- cos²α + cos²β + cos²γ = (x² + y² + z²)/r² = 1, and so sin²α + sin²β + sin²γ = 3 − 1 = 2.
- l, m, n are direction cosines of some vector if and only if l² + m² + n² = 1.
- From direction ratios a, b, c the direction cosines are a/√(a² + b² + c²), b/√(a² + b² + c²), c/√(a² + b² + c²).
- Any unit vector is cos α î + cos β ĵ + cos γ k̂.
- To pin down a vector you need its magnitude as well as its direction cosines or ratios.
Worked example 2: the vector joining two points
A = (1, 2, −3) and B = (4, −2, 9). Working: AB⃗ = (4 − 1)î + (−2 − 2)ĵ + (9 + 3)k̂ = 3î − 4ĵ + 12k̂. |AB⃗| = √(9 + 16 + 144) = √169 = 13. Direction ratios 3, −4, 12; direction cosines 3/13, −4/13, 12/13. The vector BA⃗ has the direction cosines −3/13, 4/13, −12/13.
Worked example 3: from ratios and magnitude to a vector
(i) A vector of magnitude 6 has direction ratios 1, 2, 2. Working: √(1 + 4 + 4) = 3, so the direction cosines are 1/3, 2/3, 2/3 and the vector is 6(î/3 + 2ĵ/3 + 2k̂/3) = 2î + 4ĵ + 4k̂. (ii) Can 45°, 60°, 60° be direction angles? cos²45° + cos²60° + cos²60° = 1/2 + 1/4 + 1/4 = 1, so yes. Can 60°, 60°, 60°? 1/4 + 1/4 + 1/4 = 3/4 ≠ 1, so no.
Worked example 4: collinear and coplanar
(i) A = (1, 2, 3), B = (2, 4, 7), C = (4, 8, 15). AB⃗ = î + 2ĵ + 4k̂ and AC⃗ = 3î + 6ĵ + 12k̂ = 3AB⃗, so the points are collinear. (ii) a⃗ = î + 2ĵ + 3k̂, b⃗ = 2î − ĵ + k̂, c⃗ = 3î + ĵ + 4k̂. Try c⃗ = sa⃗ + tb⃗: the î and ĵ parts give s + 2t = 3 and 2s − t = 1, so s = 1, t = 1; the k̂ part then needs 3s + t = 4, which holds. One vector is a combination of the other two, so they are coplanar.
From two points to direction cosines
- Subtract coordinates AB⃗ = (x₂ − x₁)î + (y₂ − y₁)ĵ + (z₂ − z₁)k̂.
- Read direction ratios The three components themselves.
- Find the magnitude Square root of the sum of squares.
- Divide Each component over the magnitude gives l, m, n; check l² + m² + n² = 1.
|xî + yĵ + zk̂| = √(x² + y² + z²). Direction cosines x/r, y/r, z/r with l² + m² + n² = 1. AB⃗ = coordinates of B minus coordinates of A.
Key takeaways: every vector in space is xî + yĵ + zk̂ in one way only; magnitude comes from Pythagoras; direction cosines are components divided by magnitude and their squares add to 1; direction ratios are any multiple of them; and collinearity or coplanarity is tested by writing one vector as a combination of others.
Check your understanding
-
1. What is the magnitude of 2î − 3ĵ + 6k̂?
- 5
- √11
- 11
- 7
Show answer
Answer: D. √(2² + (−3)² + 6²) = √(4 + 9 + 36) = √49 = 7.
-
2. A = (2, −1, 4) and B = (5, 3, 4). What is AB⃗?
- 3î + 4ĵ
- 7î + 2ĵ + 8k̂
- −3î − 4ĵ
- 3î + 2ĵ
Show answer
Answer: A. AB⃗ = (5 − 2)î + (3 − (−1))ĵ + (4 − 4)k̂ = 3î + 4ĵ + 0k̂ = 3î + 4ĵ. The reverse vector BA⃗ would be −3î − 4ĵ.
-
3. What are the direction cosines of a vector with direction ratios 2, −1, −2?
- 2, −1, −2
- 2/5, −1/5, −2/5
- 2/3, −1/3, −2/3
- 2/√3, −1/√3, −2/√3
Show answer
Answer: C. √(4 + 1 + 4) = √9 = 3, so the direction cosines are 2/3, −1/3, −2/3. Check: 4/9 + 1/9 + 4/9 = 1.
-
4. A vector makes an angle of 45° with the x-axis and 45° with the y-axis. What angle does it make with the z-axis?
- 30°
- 60°
- 90°
- 45°
Show answer
Answer: C. cos²γ = 1 − cos²45° − cos²45° = 1 − 1/2 − 1/2 = 0, so cos γ = 0 and γ = 90°. The vector lies in the xy-plane, along the line y = x.
-
5. For which value of p are 2î + pĵ − 4k̂ and −î + 3ĵ + 2k̂ parallel?
- 6
- 3
- −3
- −6
Show answer
Answer: D. Parallel means 2î + pĵ − 4k̂ = λ(−î + 3ĵ + 2k̂). The î parts give λ = −2, and the k̂ parts agree: −4 = −2 × 2. Then p = −2 × 3 = −6.
Sign in to keep track of the lessons you finish.