10.3 The Scalar (Dot) Product and Projections
Multiply two vectors and get a number: the scalar (dot) product a · b = |a||b| cos θ. It measures how much two vectors point the same way — giving angles, perpendicularity tests, projections and the work done by a force.
A porter at a railway station drags a heavy suitcase along the platform by its strap, pulling at $60^\circ$ to the ground. Only part of his effort moves the suitcase forward — the part of the force along the platform. The upward part just lightens the load on the wheels. Physics measures the useful effort by the work done: (force along the motion) × (distance), that is $|\vec F|\cos\theta\times|\vec d|$. A single number, built from two vectors and the angle between them.
That combination, $|\vec a|\,|\vec b|\cos\theta$, is so useful that it gets its own name and symbol: the scalar product or dot product $\vec a\cdot\vec b$. In this section you will see that it has a remarkably simple formula in components, $a_1b_1+a_2b_2+a_3b_3$, so that you can find the angle between any two vectors in space, test whether they are perpendicular, and compute the projection of one vector on another — the length of its “shadow” along the other's direction.
The Scalar Product
Read the definition through the sign of $\cos\theta$: $\vec a\cdot\vec b\gt0$ when the angle is acute, $\vec a\cdot\vec b=0$ when it is a right angle, and $\vec a\cdot\vec b\lt0$ when it is obtuse. At the extremes, $\theta=0$ gives $\vec a\cdot\vec b=|\vec a|\,|\vec b|$ and $\theta=\pi$ gives $-|\vec a|\,|\vec b|$. Rearranged, the definition is a formula for the angle: $$\cos\theta=\frac{\vec a\cdot\vec b}{|\vec a|\,|\vec b|}.$$
(a) $\vec a\cdot\vec b=\vec b\cdot\vec a$ (commutative);
(b) if $\vec a\ne\vec 0$ and $\vec b\ne\vec 0$, then $\vec a\cdot\vec b=0$ if and only if $\vec a\perp\vec b$;
(c) $\vec a\cdot\vec a=|\vec a|^2$; in particular $\hat i\cdot\hat i=\hat j\cdot\hat j=\hat k\cdot\hat k=1$ and $\hat i\cdot\hat j=\hat j\cdot\hat k=\hat k\cdot\hat i=0$;
(d) $(\lambda\vec a)\cdot\vec b=\lambda(\vec a\cdot\vec b)=\vec a\cdot(\lambda\vec b)$;
(e) $\vec a\cdot(\vec b+\vec c)=\vec a\cdot\vec b+\vec a\cdot\vec c$ (distributive).
Why. (a) The angle from $\vec a$ to $\vec b$ is the same as from $\vec b$ to $\vec a$. (b) For non-zero vectors $|\vec a|\,|\vec b|\ne0$, so the product is $0$ exactly when $\cos\theta=0$, i.e. $\theta=\tfrac\pi2$. (c) A vector makes angle $0$ with itself; $\hat i,\hat j,\hat k$ are unit vectors at right angles to each other. (d) For $\lambda\gt0$, $\lambda\vec a$ makes the same angle with $\vec b$ and is $\lambda$ times as long; for $\lambda\lt0$ the angle becomes $\pi-\theta$, whose cosine is $-\cos\theta$, and the length is $|\lambda|$ times as long — either way the product is multiplied by $\lambda$. (e) is explained with projections after Definition 10.10. $\square$
Proof. Expand $(a_1\hat i+a_2\hat j+a_3\hat k)\cdot(b_1\hat i+b_2\hat j+b_3\hat k)$ using Theorem 10.9(d), (e). There are nine terms such as $a_1b_2(\hat i\cdot\hat j)$. By Theorem 10.9(c) the six “mixed” ones vanish and the three with matching unit vectors give $a_1b_1+a_2b_2+a_3b_3$. $\square$
Projection of a Vector and Work Done
Shine a light perpendicular to the line of $\vec b$. The shadow that $\vec a$ casts on that line has signed length $|\vec a|\cos\theta$: positive if the shadow falls in the direction of $\vec b$, negative if it falls the other way.
So the dot product is “length of $\vec b$ times the shadow of $\vec a$ on $\vec b$”: $\ \vec a\cdot\vec b=|\vec b|\,(|\vec a|\cos\theta)$. Three useful readings follow.
- Components are projections. The projection of $\vec a=a_1\hat i+a_2\hat j+a_3\hat k$ on $\hat i$ is $\vec a\cdot\hat i=a_1$, and similarly for $a_2,a_3$. Hence $\cos\alpha=\dfrac{\vec a\cdot\hat i}{|\vec a|}$ — the direction cosines of Section 10.1 again.
- The order matters. The projection of $\vec a$ on $\vec b$ is $\dfrac{\vec a\cdot\vec b}{|\vec b|}$; the projection of $\vec b$ on $\vec a$ is $\dfrac{\vec a\cdot\vec b}{|\vec a|}$. They are equal only when $|\vec a|=|\vec b|$ (or $\vec a\cdot\vec b=0$).
- Why the distributive law holds. The shadow of $\vec b+\vec c$ on the line of $\vec a$ is the shadow of $\vec b$ followed by the shadow of $\vec c$ (place $\vec c$ at the tip of $\vec b$ and project the whole triangle). Multiplying these signed lengths by $|\vec a|$ gives $\vec a\cdot(\vec b+\vec c)=\vec a\cdot\vec b+\vec a\cdot\vec c$.
Work done by a constant force. If a constant force $\vec F$ (in newtons) acts on a body while it moves through a displacement $\vec d$ (in metres), the work done is $$W=\vec F\cdot\vec d=|\vec F|\,|\vec d|\cos\theta\ \text{ joules},$$ where $\theta$ is the angle between $\vec F$ and $\vec d$. Only the projection of $\vec F$ on the direction of motion does work; a force perpendicular to the motion does none.
Identities and Inequalities
Because the dot product obeys the commutative and distributive laws, you can expand products of sums exactly as in algebra — and $\vec a\cdot\vec a$ turns lengths into dot products.
(a) $|\vec a+\vec b|^2=|\vec a|^2+2\,\vec a\cdot\vec b+|\vec b|^2$ and $|\vec a-\vec b|^2=|\vec a|^2-2\,\vec a\cdot\vec b+|\vec b|^2$;
(b) $(\vec a+\vec b)\cdot(\vec a-\vec b)=|\vec a|^2-|\vec b|^2$;
(c) Cauchy–Schwarz inequality:
$$|\vec a\cdot\vec b|\le|\vec a|\,|\vec b|;$$(d) triangle inequality: $|\vec a+\vec b|\le|\vec a|+|\vec b|$.
Proof. (a) $|\vec a+\vec b|^2=(\vec a+\vec b)\cdot(\vec a+\vec b)$ $=\vec a\cdot\vec a+\vec a\cdot\vec b+\vec b\cdot\vec a+\vec b\cdot\vec b$, and $\vec a\cdot\vec b=\vec b\cdot\vec a$; replace $\vec b$ by $-\vec b$ for the second identity. (b) Expand: the middle terms $-\vec a\cdot\vec b+\vec b\cdot\vec a$ cancel. (c) If either vector is $\vec 0$ both sides are $0$; otherwise $|\vec a\cdot\vec b|=|\vec a|\,|\vec b|\,|\cos\theta|\le|\vec a|\,|\vec b|$ since $|\cos\theta|\le1$. (d) By (a) and (c), $$\begin{aligned}|\vec a+\vec b|^2&\le|\vec a|^2+2|\vec a|\,|\vec b|+|\vec b|^2\\&=(|\vec a|+|\vec b|)^2;\end{aligned}$$ take square roots. $\square$
1. The answer is a number. $\vec a\cdot\vec b$ is a scalar, not a vector: never write $\vec a\cdot\vec b=3\hat i-\hat k$. For the same reason $\vec a\cdot\vec b\cdot\vec c$ means nothing — $(\vec a\cdot\vec b)\vec c$ is a vector, but you cannot “dot” a number with $\vec c$.
2. No cancelling. $\vec a\cdot\vec b=\vec a\cdot\vec c$ does not give $\vec b=\vec c$; it gives $\vec a\cdot(\vec b-\vec c)=0$, so $\vec b-\vec c$ could be any vector perpendicular to $\vec a$.
3. Tail to tail. The angle between two vectors is measured with both drawn from the same point. In triangle $ABC$ the angle at $B$ is between $\overrightarrow{BA}$ and $\overrightarrow{BC}$ — using $\overrightarrow{AB}$ and $\overrightarrow{BC}$ gives the exterior angle $180^\circ-B$.
4. $|\vec a+\vec b|\ne|\vec a|+|\vec b|$. Square first: $|\vec a+\vec b|^2=|\vec a|^2+2\,\vec a\cdot\vec b+|\vec b|^2$. Forgetting the middle term is the commonest error in this topic.
5. Projection direction. “Projection of $\vec a$ on $\vec b$” divides by $|\vec b|$, the vector you project onto.
Exercises
- 1 Find $\vec a\cdot\vec b$ for $\vec a=\hat i-2\hat j+3\hat k$, $\vec b=3\hat i+\hat j+\hat k$.
- 2 Find the angle between $\hat i-\hat j$ and $\hat j-\hat k$.
- 3 Find the angle between $3\hat i+4\hat j$ and $4\hat i-3\hat j$.
- 4 Find the angle between $2\hat i+2\hat j-\hat k$ and $6\hat i-3\hat j+2\hat k$.
- 5 Find $\vec a\cdot\vec b$ if $|\vec a|=4$, $|\vec b|=3$ and the angle between them is $\tfrac\pi3$.
- 6 Find the angle between $\vec a$ and $\vec b$ if $|\vec a|=\sqrt3$, $|\vec b|=2$ and $\vec a\cdot\vec b=\sqrt6$.
- 7 Expand $(3\vec a-5\vec b)\cdot(2\vec a+7\vec b)$ in terms of $|\vec a|^2$, $\vec a\cdot\vec b$ and $|\vec b|^2$.
- 8 Evaluate $\hat i\cdot(\hat j+\hat k)+\hat j\cdot(\hat k+\hat i)+\hat k\cdot(\hat i+\hat j)$.
- 9 Use dot products with $\hat i,\hat j,\hat k$ to find the angles that $\hat i-\hat j+\sqrt2\,\hat k$ makes with the axes.
- 1 Find $\lambda$ if $3\hat i+\lambda\hat j-2\hat k$ is perpendicular to $2\hat i-\hat j+\hat k$.
- 2 Show that $2\hat i-\hat j+\hat k$ and $\hat i+3\hat j+\hat k$ are perpendicular.
- 3 Find the values of $x$ for which $x\hat i+2\hat j-\hat k$ and $x\hat i-\hat j+2\hat k$ are perpendicular.
- 4 Find the projection of $\hat i+3\hat j+7\hat k$ on $7\hat i-\hat j+8\hat k$.
- 5 Find the projection of $2\hat i-3\hat j+6\hat k$ on $\hat i+2\hat j+2\hat k$, and the projection vector.
- 6 For $\vec a=4\hat i+3\hat j$ and $\vec b=2\hat i$, find the projection of $\vec a$ on $\vec b$ and of $\vec b$ on $\vec a$.
- 7 Show that $A(2,-1,1)$, $B(1,-3,-5)$, $C(3,-4,-4)$ are the vertices of a right-angled triangle, and name the right angle.
- 8 Find the angle at $A$ in the triangle with vertices $A(1,0,0)$, $B(0,1,0)$, $C(0,0,1)$.
- 1 $|\vec a|=2$, $|\vec b|=3$ and $\vec a\cdot\vec b=4$. Find $|\vec a+\vec b|$ and $|\vec a-\vec b|$.
- 2 Show that if $|\vec a+\vec b|=|\vec a-\vec b|$ then $\vec a\perp\vec b$ (for non-zero $\vec a,\vec b$). Interpret this for a parallelogram.
- 3 $(\vec a+\vec b)\cdot(\vec a-\vec b)=27$ and $|\vec a|=2|\vec b|$. Find $|\vec a|$ and $|\vec b|$.
- 4 $\vec a+\vec b+\vec c=\vec 0$ with $|\vec a|=3$, $|\vec b|=5$, $|\vec c|=7$. Find the angle between $\vec a$ and $\vec b$.
- 5 For unit vectors $\hat a,\hat b$ at angle $\theta$, show that $|\hat a-\hat b|=2\sin\tfrac\theta2$.
- 6 Prove that the diagonals of a rhombus are perpendicular.
- 7 Verify the Cauchy–Schwarz inequality for $\vec a=\hat i+2\hat j+2\hat k$ and $\vec b=2\hat i-\hat j+2\hat k$.
- 1 A constant force $\vec F=5\hat i+2\hat j+3\hat k$ N moves a particle from $(1,-1,2)$ to $(3,2,-1)$ (in metres). Find the work done.
- 2 A child pulls a toy cart $15$ m with a force of $20$ N along a string at $60^\circ$ to the horizontal. Find the work done.
- 3 Forces $2\hat i-\hat j+3\hat k$ N and $\hat i+2\hat j-\hat k$ N act together on a particle that moves from $A(0,1,2)$ to $B(3,2,4)$ (metres). Find the total work done.
- 4 Crosswind (illustrative data). With $\hat i$ east and $\hat j$ north, the wind velocity is $6\hat i+8\hat j$ m/s and a runway points along $\tfrac1{\sqrt2}(\hat i+\hat j)$. Find the component of the wind along the runway and the size of the crosswind (the part perpendicular to the runway).
- 5 A crate of weight $50$ N rests on a ramp. With $\hat i$ horizontal and $\hat k$ up, the weight is $-50\hat k$ N and the ramp rises along the unit vector $\tfrac15(4\hat i+3\hat k)$. Find the component of the weight along the ramp, and interpret its sign.
- 6 Find the angle between two body diagonals of a cube (for example $\hat i+\hat j+\hat k$ and $-\hat i+\hat j+\hat k$).
How this is examined: the dot product appears in almost every Board paper — angles and perpendicularity (1 mark), projections (2 marks), and identities such as $|\vec a\pm\vec b|^2$ (3 marks). JEE uses $|\vec a+\vec b+\vec c|^2$ expansions and unit-vector conditions.
E1. Board · 1 mark If $|\vec a|=2$, $|\vec b|=\sqrt3$ and $\vec a\cdot\vec b=\sqrt3$, the angle between $\vec a$ and $\vec b$ is (A) $\tfrac\pi6$ (B) $\tfrac\pi3$ (C) $\tfrac\pi4$ (D) $\tfrac\pi2$
E2. Board · 1 mark Assertion–Reason. Assertion (A): if $\vec a\ne\vec 0$ and $\vec a\cdot\vec b=\vec a\cdot\vec c$, then $\vec b=\vec c$. Reason (R): $\vec a\cdot(\vec b-\vec c)=0$ means that $\vec b-\vec c=\vec 0$ or $\vec b-\vec c$ is perpendicular to $\vec a$. (A) Both A and R are true and R is the correct explanation of A (B) Both A and R are true but R is not the correct explanation of A (C) A is true but R is false (D) A is false but R is true
E3. Board · 2 marks Find the projection of $\vec a=2\hat i-\hat j+\hat k$ on $\vec b=\hat i-2\hat j+\hat k$.
E4. Board · 3 marks $|\vec a|=5$, $|\vec b|=3$ and $|\vec a-\vec b|=7$. Find the angle between $\vec a$ and $\vec b$, and $|\vec a+\vec b|$.
E5. JEE Main $\hat a$ and $\hat b$ are unit vectors with $|\hat a+\hat b|=\sqrt3$. Then $(2\hat a-\hat b)\cdot(\hat a+3\hat b)$ equals (A) $\tfrac32$ (B) $4$ (C) $\tfrac52$ (D) $\tfrac92$
E6. JEE Advanced (Numerical answer.) Vectors $\vec a,\vec b,\vec c$ satisfy $\vec a+\vec b+\vec c=\vec 0$, $|\vec a|=3$, $|\vec b|=4$, $|\vec c|=5$. Find $-(\vec a\cdot\vec b+\vec b\cdot\vec c+\vec c\cdot\vec a)$.
Research question. Which runway should an airport use today? Use dot products to split the wind into a headwind and a crosswind for each runway direction.
Why it matters. Aircraft take off and land into the wind, and every aircraft type has a maximum crosswind it can safely handle. Air-traffic controllers choose the runway by projecting the wind vector on each runway direction — the projection is the headwind (or tailwind), and the perpendicular part is the crosswind. Runways are named by their direction: runway 09 points to $90^\circ$ (east), runway 27 to $270^\circ$.
What to do.
- Find the published hourly weather reports (METAR) for an airport near you — they are freely available online — and record the wind direction (the direction the wind blows from) and speed for $8$–$12$ different hours.
- Look up the airport's runway directions. With $\hat i$ east and $\hat j$ north, write each runway as a unit vector $\hat r$ and each wind as a vector $\vec w$ (careful: a wind from $\phi$ blows towards $\phi+180^\circ$).
- For each hour compute the headwind $-\vec w\cdot\hat r$ and the crosswind $\sqrt{|\vec w|^2-(\vec w\cdot\hat r)^2}$ on each runway. Which runway would you choose each hour?
- Compare with the runway the airport reported in use, if the report shows it.
Tools: METAR archive (any public aviation-weather site), spreadsheet (SIN, COS, RADIANS, SQRT).
Hand in: Your table of winds, headwinds and crosswinds, the runway you would choose each hour with a reason, and a one-paragraph explanation of the projection idea for a younger student.
Going further. Light aircraft often have a crosswind limit of about $15$ knots. For which wind directions does a $25$-knot wind exceed that limit on every runway of your airport?
🧪 Self-check quiz
Q1. $(\hat i+\hat j)\cdot(\hat i-\hat k)$ equals
Q2. For non-zero vectors, $\vec a\cdot\vec b=0$ means that
Q3. The projection of $3\hat i+4\hat j$ on $\hat i$ is
Q4. $\hat a$ and $\hat b$ are perpendicular unit vectors. Then $|\hat a+\hat b|$ equals
Q5. If $\vec a\cdot\vec b\lt0$ for non-zero $\vec a,\vec b$, the angle $\theta$ between them satisfies