- Practice
- About 17 min
- 5 practice questions
Direction angles: vectors with given angles to the axes
Find the direction cosines and angles of a vector, build a vector from its magnitude and direction cosines, test whether three angles can be direction angles, and use direction cosines for equal inclination and perpendicular vectors.
If something looks wrong, please tell us.
A vector in space makes an angle with each of the three axes. These angles, and their cosines, fix the direction of the vector completely. Exam questions turn this idea into short problems: build a vector from the angles it makes, test whether given angles are possible, or find the angle between two vectors given by their direction cosines.
Direction angles and direction cosines
Let r = xi + yj + zk be a non-zero vector with magnitude r = |r|, and let α, β, γ be the angles it makes with the positive x-, y- and z-axes (each between 0° and 180°). Taking the dot product with i, j and k gives x = r cos α, y = r cos β, z = r cos γ. The numbers l = cos α, m = cos β, n = cos γ are the direction cosines. Since x² + y² + z² = r², we get l² + m² + n² = 1, and the vector is r = r(l i + m j + n k). The vector l i + m j + n k is the unit vector in the direction of r.
What the identity tells us
- Three angles can be the direction angles of one vector only if cos²α + cos²β + cos²γ = 1.
- Equivalently, sin²α + sin²β + sin²γ = 3 − 1 = 2.
- If two direction angles are known, cos²γ = 1 − cos²α − cos²β, which gives γ and its supplement: two possible directions.
- For two vectors with direction cosines (l₁, m₁, n₁) and (l₂, m₂, n₂), the cosine of the angle between them is l₁l₂ + m₁m₂ + n₁n₂.
l² + m² + n² = 1, and r = |r|(l i + m j + n k). Two direction angles fix the third only up to α → 180° − α; check the sum of squares of the cosines before you accept three angles.
Worked example 1: angles from a vector
Find the direction cosines of 4i − 4j + 7k. The magnitude is √(16 + 16 + 49) = 9, so the cosines are 4/9, −4/9, 7/9. Check: 16/81 + 16/81 + 49/81 = 1. The angle with the y-axis is obtuse, since its cosine is negative: α ≈ 63.6°, β ≈ 116.4°, γ ≈ 38.9° (to one decimal place).
Worked example 2: two angles are given
A vector of magnitude 6 makes angles of 45° and 60° with the x-axis and the y-axis. Find it. cos²α + cos²β = 1/2 + 1/4 = 3/4, so cos²γ = 1/4 and cos γ = ± 1/2, giving γ = 60° or γ = 120°. The two vectors are 6(cos 45° i + cos 60° j ± cos 60° k) = 3√2 i + 3j ± 3k. The magnitude of each is √(18 + 9 + 9) = 6.
Worked example 3: can these be direction angles?
Can a vector make angles of 30°, 45° and 60° with the three axes? The cosines are √3/2, 1/√2 and 1/2, and the sum of squares is 3/4 + 1/2 + 1/4 = 3/2, which is not 1. So no. Can the angles be 45°, 60° and 60°? Now 1/2 + 1/4 + 1/4 = 1, so yes, and the vector 6(1/√2 i + ½ j + ½ k) is an example.
Worked example 4: equal inclination, and perpendicular vectors
A vector equally inclined to the three axes has l = m = n, so 3l² = 1 and l = ±1/√3. A vector of magnitude 5√3 with all angles acute is 5√3 × (i + j + k)/√3 = 5i + 5j + 5k. Its angle with each axis is cos⁻¹(1/√3), about 54.7°. Now take vectors with direction cosines (1/3, 2/3, 2/3) and (2/3, 1/3, −2/3). The cosine of the angle between them is 2/9 + 2/9 − 4/9 = 0, so they are perpendicular.
Key takeaways. Direction cosines are the components of the unit vector; their squares add to 1. Two known angles leave two possible values for the third. For equal inclination, set l = m = n. The dot product of two unit vectors is the cosine of the angle between them.
Check your understanding
-
1. What are the direction cosines of 2i − 3j + 6k?
- 2/7, 3/7, 6/7
- 2, −3, 6
- 2/7, −3/7, 6/7
- 2/49, −3/49, 6/49
Show answer
Answer: C. The magnitude is √(4 + 9 + 36) = 7, so divide each component by 7. The cosine for j is negative.
-
2. A vector makes angles of 45° and 60° with the x- and y-axes. Which values are possible for its angle with the z-axis?
- 60° or 120°
- Only 60°
- 30° or 150°
- Only 90°
Show answer
Answer: A. cos²γ = 1 − 1/2 − 1/4 = 1/4, so cos γ = ± 1/2, which gives γ = 60° or 120°.
-
3. A vector of magnitude 5√3 is equally inclined to the axes, with all angles acute. What is it?
- 5√3 i + 5√3 j + 5√3 k
- (5/√3)(i + j + k)
- 15i + 15j + 15k
- 5i + 5j + 5k
Show answer
Answer: D. The unit vector is (i + j + k)/√3, so the vector is 5√3 × (i + j + k)/√3 = 5(i + j + k). Its magnitude is 5√3, since 25 × 3 = 75.
-
4. Which set can be the three direction angles of a vector?
- 30°, 45°, 60°
- 45°, 60°, 60°
- 60°, 60°, 60°
- 45°, 45°, 45°
Show answer
Answer: B. The squares of the cosines must add to 1. For 45°, 60°, 60° we get 1/2 + 1/4 + 1/4 = 1. The other sets give 3/2, 3/4 and 3/2.
-
5. A unit vector has direction cosines 1/2, 1/2 and n. What is n?
- ± 1/√2
- 1/2
- ± 1/2
- ± √2
Show answer
Answer: A. 1/4 + 1/4 + n² = 1 gives n² = 1/2, so n = ± 1/√2.
Sign in to keep track of the lessons you finish.