A brief note on The Dot Product . Read it before a test. Try each question at the end before you open its answer.
Definition and rules Definition: a ⃗ ⋅ b ⃗ = ∣ a ⃗ ∣ ∣ b ⃗ ∣ cos θ \vec a\cdot\vec b = \lvert\vec a\rvert\lvert\vec b\rvert\cos\theta a ⋅ b = ∣ a ∣ ∣ b ∣ cos θ , with 0 ≤ θ ≤ π 0 \le \theta \le \pi 0 ≤ θ ≤ π . Components: a ⃗ ⋅ b ⃗ = a 1 b 1 + a 2 b 2 + a 3 b 3 \vec a\cdot\vec b = a_1b_1 + a_2b_2 + a_3b_3 a ⋅ b = a 1 b 1 + a 2 b 2 + a 3 b 3 . Sign: positive for an acute angle, zero for a right angle, negative for an obtuse angle. Rules: commutative, distributive, a ⃗ ⋅ a ⃗ = ∣ a ⃗ ∣ 2 \vec a\cdot\vec a = \lvert\vec a\rvert^2 a ⋅ a = ∣ a ∣ 2 , and ∣ a ⃗ ± b ⃗ ∣ 2 = ∣ a ⃗ ∣ 2 ± 2 a ⃗ ⋅ b ⃗ + ∣ b ⃗ ∣ 2 \lvert\vec a \pm \vec b\rvert^2 = \lvert\vec a\rvert^2 \pm 2\,\vec a\cdot\vec b + \lvert\vec b\rvert^2 ∣ a ± b ∣ 2 = ∣ a ∣ 2 ± 2 a ⋅ b + ∣ b ∣ 2 . Limit: ∣ a ⃗ ⋅ b ⃗ ∣ ≤ ∣ a ⃗ ∣ ∣ b ⃗ ∣ \lvert\vec a\cdot\vec b\rvert \le \lvert\vec a\rvert\lvert\vec b\rvert ∣ a ⋅ b ∣ ≤ ∣ a ∣ ∣ b ∣ . Angles and perpendicular vectors Angle: cos θ = a ⃗ ⋅ b ⃗ ∣ a ⃗ ∣ ∣ b ⃗ ∣ \cos\theta = \dfrac{\vec a\cdot\vec b}{\lvert\vec a\rvert\lvert\vec b\rvert} cos θ = ∣ a ∣ ∣ b ∣ a ⋅ b . Perpendicular: a ⃗ ⋅ b ⃗ = 0 \vec a\cdot\vec b = 0 a ⋅ b = 0 for non-zero vectors. Parallelogram: the diagonals are perpendicular for a rhombus and equal for a rectangle. Lines: use ∣ a ⃗ ⋅ b ⃗ ∣ \lvert\vec a\cdot\vec b\rvert ∣ a ⋅ b ∣ , so the angle is acute or right. Projection and work Scalar projection of a ⃗ \vec a a on b ⃗ \vec b b : a ⃗ ⋅ b ⃗ ∣ b ⃗ ∣ \dfrac{\vec a\cdot\vec b}{\lvert\vec b\rvert} ∣ b ∣ a ⋅ b . Vector projection: a ⃗ ⋅ b ⃗ ∣ b ⃗ ∣ 2 b ⃗ \dfrac{\vec a\cdot\vec b}{\lvert\vec b\rvert^2}\vec b ∣ b ∣ 2 a ⋅ b b . Work: W = F ⃗ ⋅ d ⃗ W = \vec F\cdot\vec d W = F ⋅ d for a constant force. Power: P = F ⃗ ⋅ v ⃗ P = \vec F\cdot\vec v P = F ⋅ v . A worked example Find the angle between a ⃗ = 2 i ^ + 2 j ^ − k ^ \vec a = 2\hat i + 2\hat j - \hat k a = 2 i ^ + 2 j ^ − k ^ and b ⃗ = 6 i ^ + 3 j ^ + 2 k ^ \vec b = 6\hat i + 3\hat j + 2\hat k b = 6 i ^ + 3 j ^ + 2 k ^ , and the scalar projection of a ⃗ \vec a a on b ⃗ \vec b b .
The dot product. 12 + 6 − 2 = 16 12 + 6 - 2 = 16 12 + 6 − 2 = 16 . The magnitudes. ∣ a ⃗ ∣ = 3 \lvert\vec a\rvert = 3 ∣ a ∣ = 3 and ∣ b ⃗ ∣ = 7 \lvert\vec b\rvert = 7 ∣ b ∣ = 7 . The angle. cos θ = 16 21 \cos\theta = \dfrac{16}{21} cos θ = 21 16 , so θ ≈ 40.37 ∘ \theta \approx 40.37^\circ θ ≈ 40.3 7 ∘ . The projection. 16 7 ≈ 2.29 \dfrac{16}{7} \approx 2.29 7 16 ≈ 2.29 . Practice with new numbers
A program to try The program checks the worked example.
Run it. Do you get 16 16 16 , 40.37 40.37 40.37 degrees and 2.2857 2.2857 2.2857 ?
1. Change b to np.array([1, -2, -2]). What is the dot product, and what does it say about the angle?
Mistakes to avoid Giving a vector as the answer. The dot product is a number. Using the sine. The dot product uses the cosine. Dividing by ∣ b ⃗ ∣ 2 \lvert\vec b\rvert^2 ∣ b ∣ 2 for the scalar projection. Forgetting the absolute value for the angle between lines. Check yourself Find a ⃗ ⋅ b ⃗ \vec a\cdot\vec b a ⋅ b for a ⃗ = 3 i ^ − j ^ + 2 k ^ \vec a = 3\hat i - \hat j + 2\hat k a = 3 i ^ − j ^ + 2 k ^ and b ⃗ = i ^ + 5 j ^ + k ^ \vec b = \hat i + 5\hat j + \hat k b = i ^ + 5 j ^ + k ^ . Stuck? Show a hint Show the answerIf ∣ a ⃗ ∣ = 4 \lvert\vec a\rvert = 4 ∣ a ∣ = 4 , ∣ b ⃗ ∣ = 6 \lvert\vec b\rvert = 6 ∣ b ∣ = 6 and the angle is 60 ∘ 60^\circ 6 0 ∘ , find ∣ a ⃗ − b ⃗ ∣ \lvert\vec a - \vec b\rvert ∣ a − b ∣ . Stuck? Show a hint Show the answerFind the value of p p p for which 2 i ^ + p j ^ + k ^ 2\hat i + p\hat j + \hat k 2 i ^ + p j ^ + k ^ is perpendicular to i ^ − 3 j ^ + 4 k ^ \hat i - 3\hat j + 4\hat k i ^ − 3 j ^ + 4 k ^ . Stuck? Show a hint Show the answerFind the scalar projection of i ^ + j ^ + k ^ \hat i + \hat j + \hat k i ^ + j ^ + k ^ on 2 i ^ − 2 j ^ + k ^ 2\hat i - 2\hat j + \hat k 2 i ^ − 2 j ^ + k ^ . Stuck? Show a hint Show the answerA force of 10 10 10 N pulls at 60 ∘ 60^\circ 6 0 ∘ above the ground and moves a box 4 4 4 m along the ground. How much work does it do? Stuck? Show a hint Show the answerSources NCERT, Mathematics Part II for Class XII, Chapter 10, sections on the scalar product and the projection of a vector. OpenStax, Calculus Volume 3 , Chapter 2, section on the dot product.