Vectors in 3D, lines and planes
Vectors in three dimensions describe positions, directions and forces in space. The scalar product measures angles. The vector product finds perpendicular directions and areas. Vector equations describe lines and planes: the language of 3D graphics, engineering and physics.
Key facts
- |(a, b, c)| = √(a^2 + b^2 + c^2). The vector from A to B is b − a.
- Scalar product: a · b = a₁b₁ + a₂b₂ + a₃b₃ = |a||b| cos θ. a and b are perpendicular exactly when a · b = 0.
- Vector product: a × b is perpendicular to both, and |a × b| = |a||b| sin θ. The area of triangle ABC is 1/2 |AB × AC|.
- Line: r = a + λd. Plane: r · n = d, which is n₁x + n₂y + n₃z = d.
- The distance from (x₀, y₀, z₀) to the plane ax + by + cz = d is (|ax₀ + by₀ + cz₀ − d|)/(√(a^2 + b^2 + c^2)).
- Angle between a line and a plane = 90° − (angle between the line and the normal).
Worked examples
Example 1
Find the angle between a = (2, −1, 2) and b = (1, 2, 2).
- Find the scalar product and the two lengths. a · b = 2 − 2 + 4 = 4, |a| = 3, |b| = 3
- Use a · b = |a||b| cos θ. cos θ = 4/9
- Take the inverse cosine. θ = cos⁻¹(4/9) ≈ 63.6°
Answer: About 63.6°
Example 2
Find where the line r = (1, 2, 0) + λ(1, −1, 2) meets the plane 2x + y + z = 10.
- A general point on the line is (1 + λ, 2 − λ, 2λ).
- Substitute. 2(1 + λ) + (2 − λ) + 2λ = 10 ⇒ 4 + 3λ = 10
- So λ = 2. The point is (3, 0, 4).
- Check: 6 + 0 + 4 = 10 ✓
Answer: (3, 0, 4)
Example 3
Find the area of the triangle with vertices A(1, 0, 2), B(3, 1, 2) and C(1, 4, 5).
- AB = (2, 1, 0) and AC = (0, 4, 3).
- Cross product: AB × AC = (3, −6, 8)
- Its size is √(9 + 36 + 64) = √109. Halve it. area = (√109)/2 ≈ 5.22
Answer: (√109)/2 ≈ 5.22
Example 4
Find the magnitude of the vector (2, 3, 6).
- Square, add and take the square root. √(2² + 3² + 6²) = √49 = 7
Answer: 7