Login

Concepts

Read through concept notes with worked explanations and diagrams, chapter by chapter.

Concept 05 / 06Vector Algebra

Scalar (Dot) Product: Angle, Projection and Perpendicularity

The definition a.b = |a||b| cos theta and the component formula, properties, the angle between vectors, projection and component of one vector along another, perpendicular resolution, work done, and inequalities such as Cauchy-Schwarz.

Figure 1
The scalar product of a⃗\vec{a} and b⃗\vec{b} is the number a⃗⋅b⃗=∣a⃗∣∣b⃗∣cos⁡θ\vec{a} \cdot \vec{b} = |\vec{a}||\vec{b}|\cos\theta, where θ∈[0,π]\theta \in [0, \pi] is the angle between them when placed tail to tail. In components, with a⃗=a1i^+a2j^+a3k^\vec{a} = a_{1}\hat{i} + a_{2}\hat{j} + a_{3}\hat{k} and similarly for b⃗\vec{b}: a⃗⋅b⃗=a1b1+a2b2+a3b3\vec{a} \cdot \vec{b} = a_{1}b_{1} + a_{2}b_{2} + a_{3}b_{3}. The two formulas agree because i^⋅i^=j^⋅j^=k^⋅k^=1\hat{i} \cdot \hat{i} = \hat{j} \cdot \hat{j} = \hat{k} \cdot \hat{k} = 1 and i^⋅j^=j^⋅k^=k^⋅i^=0\hat{i} \cdot \hat{j} = \hat{j} \cdot \hat{k} = \hat{k} \cdot \hat{i} = 0, and the dot product distributes over addition. (Geometrically, the component formula is the cosine rule in disguise.) Properties. Commutative: a⃗⋅b⃗=b⃗⋅a⃗\vec{a} \cdot \vec{b} = \vec{b} \cdot \vec{a}. Distributive: a⃗⋅(b⃗+c⃗)=a⃗⋅b⃗+a⃗⋅c⃗\vec{a} \cdot (\vec{b} + \vec{c}) = \vec{a} \cdot \vec{b} + \vec{a} \cdot \vec{c}. a⃗⋅a⃗=∣a⃗∣2\vec{a} \cdot \vec{a} = |\vec{a}|^{2}. (λa⃗)⋅b⃗=λ(a⃗⋅b⃗)(\lambda\vec{a}) \cdot \vec{b} = \lambda(\vec{a} \cdot \vec{b}). The dot product is not associative in any meaningful sense ((a⃗⋅b⃗)c⃗(\vec{a} \cdot \vec{b})\vec{c} is a vector along c⃗\vec{c}, while a⃗(b⃗⋅c⃗)\vec{a}(\vec{b} \cdot \vec{c}) is along a⃗\vec{a}), and there is no cancellation: a⃗⋅b⃗=a⃗⋅c⃗\vec{a} \cdot \vec{b} = \vec{a} \cdot \vec{c} only says a⃗⊥(b⃗−c⃗)\vec{a} \perp (\vec{b} - \vec{c}). Angle and perpendicularity. cos⁡θ=a⃗⋅b⃗∣a⃗∣∣b⃗∣\cos\theta = \frac{\vec{a} \cdot \vec{b}}{|\vec{a}||\vec{b}|}. The sign tells the type of angle: positive means acute, zero means perpendicular (for non-zero vectors), negative means obtuse. So a⃗⊥b⃗  ⟺  a⃗⋅b⃗=0\vec{a} \perp \vec{b} \iff \vec{a} \cdot \vec{b} = 0 is the standard perpendicularity test. Projection. The scalar projection (component) of a⃗\vec{a} on b⃗\vec{b} is ∣a⃗∣cos⁡θ=a⃗⋅b^=a⃗⋅b⃗∣b⃗∣|\vec{a}|\cos\theta = \vec{a} \cdot \hat{b} = \frac{\vec{a} \cdot \vec{b}}{|\vec{b}|}, the signed length of the shadow of a⃗\vec{a} on the line of b⃗\vec{b}, as the figure shows. The vector projection is (a⃗⋅b⃗∣b⃗∣2)b⃗\left(\frac{\vec{a} \cdot \vec{b}}{|\vec{b}|^{2}}\right)\vec{b}. Every vector splits uniquely into a part parallel to b⃗\vec{b} and a part perpendicular to it: a⃗=a⃗⋅b⃗∣b⃗∣2b⃗+(a⃗−a⃗⋅b⃗∣b⃗∣2b⃗)\vec{a} = \frac{\vec{a} \cdot \vec{b}}{|\vec{b}|^{2}}\vec{b} + \left(\vec{a} - \frac{\vec{a} \cdot \vec{b}}{|\vec{b}|^{2}}\vec{b}\right). Useful identities. ∣a⃗±b⃗∣2=∣a⃗∣2+∣b⃗∣2±2a⃗⋅b⃗|\vec{a} \pm \vec{b}|^{2} = |\vec{a}|^{2} + |\vec{b}|^{2} \pm 2\vec{a} \cdot \vec{b}. (a⃗+b⃗)⋅(a⃗−b⃗)=∣a⃗∣2−∣b⃗∣2(\vec{a} + \vec{b}) \cdot (\vec{a} - \vec{b}) = |\vec{a}|^{2} - |\vec{b}|^{2}, so the diagonals of a parallelogram are perpendicular iff it is a rhombus. ∣a⃗+b⃗∣=∣a⃗−b⃗∣  ⟺  a⃗⊥b⃗|\vec{a} + \vec{b}| = |\vec{a} - \vec{b}| \iff \vec{a} \perp \vec{b} (a parallelogram with equal diagonals is a rectangle). ∣a⃗+b⃗+c⃗∣2=∑∣a⃗∣2+2(a⃗⋅b⃗+b⃗⋅c⃗+c⃗⋅a⃗)|\vec{a} + \vec{b} + \vec{c}|^{2} = \sum|\vec{a}|^{2} + 2(\vec{a} \cdot \vec{b} + \vec{b} \cdot \vec{c} + \vec{c} \cdot \vec{a}). Cauchy-Schwarz: ∣a⃗⋅b⃗∣≤∣a⃗∣∣b⃗∣|\vec{a} \cdot \vec{b}| \le |\vec{a}||\vec{b}|, since ∣cos⁡θ∣≤1|\cos\theta| \le 1. In components, (a1b1+a2b2+a3b3)2≤(a12+a22+a32)(b12+b22+b32)(a_{1}b_{1} + a_{2}b_{2} + a_{3}b_{3})^{2} \le (a_{1}^{2} + a_{2}^{2} + a_{3}^{2})(b_{1}^{2} + b_{2}^{2} + b_{3}^{2}), a powerful tool for maximising linear expressions under a quadratic constraint. Physics: the work done by a constant force F⃗\vec{F} over a displacement d⃗\vec{d} is W=F⃗⋅d⃗W = \vec{F} \cdot \vec{d}. Key Takeaways: - a⃗⋅b⃗=∣a⃗∣∣b⃗∣cos⁡θ=a1b1+a2b2+a3b3\vec{a} \cdot \vec{b} = |\vec{a}||\vec{b}|\cos\theta = a_{1}b_{1} + a_{2}b_{2} + a_{3}b_{3}. - a⃗⊥b⃗  ⟺  a⃗⋅b⃗=0\vec{a} \perp \vec{b} \iff \vec{a} \cdot \vec{b} = 0. - Projection of a⃗\vec{a} on b⃗\vec{b}: a⃗⋅b⃗∣b⃗∣\frac{\vec{a} \cdot \vec{b}}{|\vec{b}|}; vector projection a⃗⋅b⃗∣b⃗∣2b⃗\frac{\vec{a} \cdot \vec{b}}{|\vec{b}|^{2}}\vec{b}. - ∣a⃗+b⃗∣2=∣a⃗∣2+∣b⃗∣2+2a⃗⋅b⃗|\vec{a} + \vec{b}|^{2} = |\vec{a}|^{2} + |\vec{b}|^{2} + 2\vec{a} \cdot \vec{b}. - ∣a⃗⋅b⃗∣≤∣a⃗∣∣b⃗∣|\vec{a} \cdot \vec{b}| \le |\vec{a}||\vec{b}|. - Work =F⃗⋅d⃗= \vec{F} \cdot \vec{d}. - Pitfall: cancelling a⃗\vec{a} from a⃗⋅b⃗=a⃗⋅c⃗\vec{a} \cdot \vec{b} = \vec{a} \cdot \vec{c}. Brain-Teaser 1: If a⃗+b⃗+c⃗=0⃗\vec{a} + \vec{b} + \vec{c} = \vec{0} with ∣a⃗∣=3|\vec{a}| = 3, ∣b⃗∣=5|\vec{b}| = 5, ∣c⃗∣=7|\vec{c}| = 7, find the angle between a⃗\vec{a} and b⃗\vec{b}. Solution: a⃗+b⃗=−c⃗\vec{a} + \vec{b} = -\vec{c}, so ∣a⃗+b⃗∣2=49|\vec{a} + \vec{b}|^{2} = 49: 9+25+2a⃗⋅b⃗=499 + 25 + 2\vec{a} \cdot \vec{b} = 49, giving a⃗⋅b⃗=152\vec{a} \cdot \vec{b} = \frac{15}{2}. Then cos⁡θ=15/215=12\cos\theta = \frac{15/2}{15} = \frac{1}{2} and θ=60∘\theta = 60^{\circ}. The three vectors form a triangle with sides 3,5,73, 5, 7, whose largest angle is 120∘120^{\circ}; the angle between a⃗\vec{a} and b⃗\vec{b} placed tail to tail is its supplement, 60∘60^{\circ}. Brain-Teaser 2: Find the maximum of 2x+3y+6z2x + 3y + 6z subject to x2+y2+z2=4x^{2} + y^{2} + z^{2} = 4. Solution: Let u⃗=2i^+3j^+6k^\vec{u} = 2\hat{i} + 3\hat{j} + 6\hat{k} (with ∣u⃗∣=7|\vec{u}| = 7) and v⃗=xi^+yj^+zk^\vec{v} = x\hat{i} + y\hat{j} + z\hat{k} (with ∣v⃗∣=2|\vec{v}| = 2). Then 2x+3y+6z=u⃗⋅v⃗≤∣u⃗∣∣v⃗∣=142x + 3y + 6z = \vec{u} \cdot \vec{v} \le |\vec{u}||\vec{v}| = 14, with equality when v⃗\vec{v} is along u⃗\vec{u}: v⃗=27(2i^+3j^+6k^)\vec{v} = \frac{2}{7}(2\hat{i} + 3\hat{j} + 6\hat{k}). The maximum is 1414. Cauchy-Schwarz turns a constrained optimisation into a single line. Brain-Teaser 3: Show that the altitudes of a triangle are concurrent using the dot product. Solution: Let HH be the intersection of the altitudes from AA and BB, and put the origin at HH. The altitude conditions are a⃗⋅(b⃗−c⃗)=0\vec{a} \cdot (\vec{b} - \vec{c}) = 0 and b⃗⋅(c⃗−a⃗)=0\vec{b} \cdot (\vec{c} - \vec{a}) = 0. Adding: a⃗⋅b⃗−a⃗⋅c⃗+b⃗⋅c⃗−b⃗⋅a⃗=0\vec{a} \cdot \vec{b} - \vec{a} \cdot \vec{c} + \vec{b} \cdot \vec{c} - \vec{b} \cdot \vec{a} = 0, so c⃗⋅(b⃗−a⃗)=0\vec{c} \cdot (\vec{b} - \vec{a}) = 0. This says HC⊥ABHC \perp AB, so HH lies on the third altitude as well. Choosing the origin at the unknown point makes the proof purely algebraic.