The dot product is a way to “multiply” two vectors, and the answer is a plain number (a scalar), not another vector. That number tells you how much two vectors point in the same direction. It’s the quickest way to find the angle between two vectors, to test whether they’re perpendicular, and to work out the work done by a force.
When the vectors are in Cartesian form (written with square brackets, like the rest of this unit; some books use (a1,a2) or ⟨a1,a2⟩), multiply matching components and add:
Why do the two formulas agree? Draw a, b, and a−b as a triangle. The cosine law gives ∣a−b∣2=∣a∣2+∣b∣2−2∣a∣∣b∣cosθ. Writing each magnitude with components and expanding, almost everything cancels and you’re left with a1b1+a2b2+a3b3=∣a∣∣b∣cosθ.
Two non-zero vectors are perpendicular, also called orthogonal, exactly when their dot product is zero:
a⊥b⟺a⋅b=0
This is the fastest perpendicular test there is. For example, [3,−2,1]⋅[1,2,1]=3−4+1=0, so these vectors meet at 90∘.
Finding a vector perpendicular to a given one.
In 2-D, swap the components and change one sign: [a,b] is perpendicular to [−b,a] and to [b,−a]. Check: a(−b)+b(a)=0.
In 3-D there are infinitely many perpendicular directions. Choose two components and solve for the third, or set one component to 0 and use the 2-D trick on the other two. For [1,2,3], setting the middle component to 0 gives [3,0,−1]: check 3+0−3=0.
These all follow from the component formula, so you can check any of them by expanding.
Property
Rule
Commutative
a⋅b=b⋅a
Distributive
a⋅(b+c)=a⋅b+a⋅c
Scalar multiples
(ka)⋅b=k(a⋅b)=a⋅(kb)
Dot with itself
a⋅a=∣a∣2
Zero vector
a⋅0=0
The rule a⋅a=∣a∣2 comes from θ=0∘: ∣a∣∣a∣cos0∘=∣a∣2. It’s very useful for finding magnitudes, as in Practice question 5.
The dot product is not associative, and the question doesn’t even make sense. To be associative you’d need (a⋅b)⋅c=a⋅(b⋅c). But a⋅b is a number, and you can’t dot a number with a vector. The closest you can write is (a⋅b)c, a scalar multiple of c, and that’s usually different from a(b⋅c), a multiple of a. For a=[1,2], b=[3,−1], c=[2,2]: (a⋅b)c=1[2,2]=[2,2], but a(b⋅c)=4[1,2]=[4,8].
When a constant force F moves an object through a displacement d, the work done is
W=F⋅d=∣F∣∣d∣cosθ
With force in newtons (N) and distance in metres (m), work is in joules (J). Only the part of the force that points along the motion does work: pull straight ahead and cos0∘=1 (all of the force counts); pull at right angles to the motion and cos90∘=0 (no work at all).
(b) W=(80)(50)cos15∘≈3864 J, which is about 400 J more.
A lower rope sends more of your pull along the direction of motion. (Pulling at 0∘ would give the full 4000 J, but then your hand would be on the ground.)
Writing the answer as a vector. The dot product of two vectors is a number. [1,2,3]⋅[4,5,6]=4+10+18=32, not [4,10,18].
Using an angle that isn’t tail to tail. The angle in ∣a∣∣b∣cosθ is between vectors that start at the same point. In triangle ABC, the angle at B is between BA and BC. If you use AB and BC (head to tail), you get 180∘ minus the angle you want.
Calculator in radians. This course gives angles between vectors in degrees. If cos−1(0.175) comes out as 1.395, your calculator is in radian mode.
Thinking a zero dot product means a zero vector.a⋅b=0 usually means the vectors are perpendicular, not that one of them is 0. For example, [3,1]⋅[−1,3]=0.
Trying to “associate” dot products.(a⋅b)⋅c is meaningless, because a⋅b is a number. And (a⋅b)c is generally not equal to a(b⋅c): they’re multiples of different vectors.
Using the whole force for work. Work uses only the component of the force along the motion, ∣F∣cosθ. Multiplying ∣F∣ by the distance overestimates the work whenever the force is at an angle.
6. (Core) A constant force F=[25,10,−5] (in newtons) moves an object in a straight line from A(1,2,0) to B(9,5,4) (in metres). Find the work done.
Solution
The displacement is d=AB=[9−1,5−2,4−0]=[8,3,4].
W=F⋅d=25(8)+10(3)+(−5)(4)=200+30−20=210 J
7. (Core) A triangle has vertices A(2,1,−1), B(4,3,0), and C(1,5,1). Find the angle at A, to one decimal place.
Solution
The angle at A is between AB and AC (both start at A):
AB=[2,2,1],AC=[−1,4,2]
AB⋅AC=−2+8+2=8, ∣AB∣=4+4+1=3, ∣AC∣=1+16+4=21.
cosA=3218≈0.5819⇒A≈54.4∘
8. (Challenge) A rhombus has all four sides equal. Its sides from one corner are a and b, with ∣a∣=∣b∣, so its diagonals are a+b and a−b. Use the dot product to prove that the diagonals of a rhombus are perpendicular.
The dot product of the diagonals is 0, so they’re perpendicular. (For a rectangle that isn’t a square, ∣a∣=∣b∣, so its diagonals are not perpendicular.)
9. (Challenge) Find a vector that is perpendicular to botha=[1,2,0] and b=[0,1,3].
Solution
Let the vector be [x,y,z]. It needs a zero dot product with each:
x+2y=0andy+3z=0
That’s two equations in three unknowns, so pick one value. Let z=1. Then y=−3, and x=−2y=6. One answer is [6,−3,1] (any non-zero multiple also works).
Check: [6,−3,1]⋅[1,2,0]=6−6+0=0 ✓ and [6,−3,1]⋅[0,1,3]=0−3+3=0 ✓
The cross product gives a vector like this in one step.