☰ خطة العام · الرياضيات البحتة (بالإنجليزية)

The scalar product, angles between vectors and components

الأسبوع 10 · الضرب القياسي: التعريف والخواص والإحداثيات والزاوية بين متجهين ومركبة متجه في اتجاه متجه آخر ومسقطه · 3 دروس
2

The scalar product in coordinates, the angle between two vectors and the test for perpendicular vectors

Pure Mathematics Sec 3 Term 1, Unit 3, Lesson 3
GoalCalculate A · B from components, find the angle between two vectors, and test for perpendicular vectors.
New words
coordinate form · A · B = AₓBₓ + AᵧBᵧ + AzB_z (two terms for plane vectors)cos θ · A · B ÷ (‖A‖‖B‖), which gives the angle between the vectorsperpendicular test · A · B = 0 for non-zero vectors
Explanation

Write A = Aₓi + Aᵧj + Azk and B = Bₓi + Bᵧj + Bzk and multiply out with the distributive law. Because i · i = j · j = k · k = 1 and all mixed products are 0, only three terms survive: A · B = AₓBₓ + AᵧBᵧ + AzB_z. For vectors of the plane there are just two terms. Comparing this with the definition gives the angle: cos θ = (A · B)/(‖A‖‖B‖). Then θ = cos⁻¹(…), the angle whose cosine is this number. Three cases are worth remembering: cos θ = 1 means parallel and in the same direction, −1 means parallel and opposite, and 0 means perpendicular. So the quick test for a right angle is A · B = 0. The table shows what the sign of A · B tells you. Parallel vectors are tested differently: one is a multiple of the other.

A · Bangle θ between the vectors
positiveacute: 0° ≤ θ < 90°
zeroright angle: θ = 90° (both vectors non-zero)
negativeobtuse: 90° < θ ≤ 180°
Worked examples
Compute (1, −2, 3) · (4, 0, −5) = 4 + 0 − 15 = −11. It is negative, so the angle is obtuse. And (2, −1, 3) · (1, 5, 1) = 2 − 5 + 3 = 0, so these two vectors are perpendicular.
Find the angle between A = (3, −4, 0) and B = (5, 12, 0). A · B = 15 − 48 = −33, ‖A‖ = 5, ‖B‖ = 13. So cos θ = −33/65 ≈ −0.5077 and θ ≈ 120.5°.
Unknowns. For which k are (k, 2, −3) and (4, k, 2) perpendicular? 4k + 2k − 6 = 0, so k = 1. For which k is (−3, k, 9) parallel to (1, 2, −3)? We need (−3, k, 9) = −3(1, 2, −3), so k = −6.
The angle at A of the triangle A(1, 2, 3), B(3, 3, 5), C(2, 4, 5). AB = (2, 1, 2) and AC = (1, 2, 2), both of norm 3. AB · AC = 2 + 2 + 4 = 8, so cos A = 8/9 and A ≈ 27.3°.
Class activity

Perpendicular or not? Pick three small numbers a, b, c and write the vector (a, b, c). Try to find another vector, with the dot product 0, by choosing two of its numbers freely and solving for the third. Check with the dot product.

Practice
1
Is (2, −3, 1) perpendicular to (4, 1, −5)?
2
Find cos of the angle between (1, 2, 2) and (2, 3, 6), and the angle.
3
For which k are (k, 2, 1) and (k, −3, 2) perpendicular?
4
Find the angle between the plane vectors (5, −2) and (1, 3).
5
Show that the triangle P(0, 1, 2), Q(2, 2, 4), R(1, −1, 2) has a right angle at P.