Multivariable-Calculus · Unit 1 · Video 4 · Interactive Practice
How the Dot Product Measures Angles in Space
IKey Formulas
Formula
Name
What you need
A⋅B=∣A∣∣B∣cosθ
Geometric form
Two vectors and the angle between them
cosθ=∣A∣∣B∣A⋅B
Angle formula
One dot product, two lengths
A⋅B=a1b1+a2b2+a3b3
Dot product from components
Coordinates only
∣A∣=a12+a22+a32
Length from components
Coordinates only
Key Insight: Lengths are never negative, so dividing by ∣A∣∣B∣ can never flip a sign — A⋅B and cosθ always carry the same sign.
IIVisualization 1 — From Coordinates to the Angle
Two lengths and one dot product are enough to pin the angle down exactly.
💡 Nothing in this arithmetic mentions the plane: a third component simply adds one more product to the sum and one more square under each root.
IIIVisualization 2 — The Angle at a Corner in Space
The angle at P in triangle PQR, from coordinates alone: vectors, lengths, dot product, cosine.
Step 1 — The two vectors out of P
PQ=Q−P=⟨0−1,1−0,0−0⟩=⟨−1,1,0⟩
PR=R−P=⟨0−1,0−0,2−0⟩=⟨−1,0,2⟩
Step 2 — Their lengths
∣PQ∣=(−1)2+12+02=2,∣PR∣=(−1)2+02+22=5
Step 3 — The dot product
PQ⋅PR=(−1)(−1)+(1)(0)+(0)(2)=1+0+0=1
Step 4 — The cosine
cosθ=∣PQ∣∣PR∣PQ⋅PR=251=101≈0.3162
Step 5 — The angle
θ=arccos(101)≈71.57∘
The dot product was positive, so the angle had to be acute — that was settled before the arccosine was ever taken.
IVVisualization 3 — The Sign Decides the Type
Acute, right, or obtuse is fixed by the sign of A⋅B, before any division happens.
💡 The vanishing case A⋅B=0 is perpendicularity — the exact boundary between the two shaded zones, and where the next video picks up.
VQuiz Questions
Problem 1 · Cosine Straight from Components
Given:A=⟨1,2,2⟩ and B=⟨2,2,1⟩ — findcosθ.
✅ Correct!A⋅B=8 and ∣A∣=∣B∣=3, so cosθ=98≈0.889 and θ≈27.27∘.
❌ Close, but the denominator is short one factor. The formula divides by the product of both lengths: ∣A∣∣B∣=3⋅3=9, not by ∣A∣ alone.
❌ Not quite.81=∣A∣2∣B∣2 — that is the value under the square roots. Take the roots first: 9⋅9=9.
❌ Not quite. The two lengths multiply, they do not add: 3⋅3=9, not 3+3=6. And 68>1, which no cosine can be.
Show solution
Step 1 — the dot product (multiply matching components, then add):
A⋅B=(1)(2)+(2)(2)+(2)(1)=2+4+2=8
Step 2 — the two lengths (square, add, take the root):
∣A∣=12+22+22=9=3,∣B∣=22+22+12=9=3
Step 3 — divide:
cosθ=∣A∣∣B∣A⋅B=3⋅38=98≈0.8889
So θ=arccos(98)≈27.27∘ — a positive dot product, and indeed an acute angle.
Problem 2 · Classify Without Dividing
Given:A=⟨3,−1,2⟩ and B=⟨−2,4,5⟩ — classify the angle θ between them.
✅ Correct!A⋅B=−6−4+10=0, so cosθ=0 and θ=90∘ exactly — no lengths required.
❌ Not quite — check the total.(3)(−2)+(−1)(4)+(2)(5)=−6−4+10=0. Acute needs a strictly positive dot product; this one lands exactly on the boundary.
❌ Not quite. The two negative products total −10, but the third contributes +10: the sum is exactly 0, not negative.
❌ The lengths cannot help here.∣A∣ and ∣B∣ are positive, so dividing by them rescales cosθ without touching its sign. The sign of A⋅B alone settles the classification.
Show solution
Only the numerator of the angle formula carries sign information, so compute it alone:
A⋅B=(3)(−2)+(−1)(4)+(2)(5)=−6−4+10=0
Since A⋅B=∣A∣∣B∣cosθ with ∣A∣>0 and ∣B∣>0, a zero dot product forces cosθ=0, hence
θ=90∘
The two vectors are perpendicular. (For the record, ∣A∣=14 and ∣B∣=45 — both irrational, and both irrelevant to the answer.)
Problem 3 · The Angle at a Vertex
Given: the triangle with vertices P(1,0,0), Q(0,2,0) and R(0,0,2) — find the angle θ at vertex P.
What is PQ⋅PR?
What is cosθ?
✅ Correct!cosθ=51=0.2, so θ=arccos(0.2)≈78.46∘ — acute, exactly as the positive dot product promised.
❌ Check the products.PQ=⟨−1,2,0⟩ and PR=⟨−1,0,2⟩, so the terms are (−1)(−1), (2)(0) and (0)(2).
❌ Watch the double negative. The first components are both −1, and (−1)(−1)=+1. The other two products vanish, so the sum is +1.
❌ Check the denominator.∣PQ∣=1+4+0=5 and ∣PR∣=1+0+4=5, so the product of the lengths is 5⋅5=5.
❌ Those are the video's numbers, not these. Here Q=(0,2,0), so ∣PQ∣=5 rather than 2, and the denominator is 5⋅5=5, not 10.
❌ The square roots were skipped.25=∣PQ∣2∣PR∣2 — that is the value under the two roots. Take the roots first: 5⋅5=5, so cosθ=51.
❌ One length short. Dividing by ∣PQ∣ alone leaves 1/5; the formula divides by both lengths, giving 1/(5⋅5)=1/5.
Show solution
Step 1 — the two edges leaving P (head minus tail):
PQ=Q−P=⟨−1,2,0⟩,PR=R−P=⟨−1,0,2⟩
Step 2 — the dot product:
PQ⋅PR=(−1)(−1)+(2)(0)+(0)(2)=1+0+0=1
Step 3 — the lengths:
∣PQ∣=(−1)2+22+02=5,∣PR∣=(−1)2+02+22=5
Step 4 — assemble:
cosθ=551=51=0.2⟹θ=arccos(0.2)≈78.46∘
Moving Q from (0,1,0) to (0,2,0) opened the corner from about 71.57∘ to about 78.46∘ — the same procedure, new coordinates.
Problem 4 · Tune One Component to a Right Angle
Given:A=⟨2,−3,1⟩ and B=⟨4,k,2⟩ — find the value of k that makes θ=90∘.
✅ Correct!A⋅B=8−3k+2=10−3k, which vanishes exactly at k=310 — and a vanishing dot product is a right angle.
❌ Sign slip.10−3k=0 rearranges to 3k=+10, so k=+310. At k=−310 the dot product is 10+10=20, firmly acute.
❌ That kills only the middle term. With k=0 the sum is 8+0+2=10=0; the middle product has to cancel the other two, not merely disappear.
❌ The fraction is inverted. From 3k=10, divide by 3: k=310. (Check: 103 gives 10−0.9=9.1=0.)
Show solution
A right angle means cosθ=0. Since A⋅B=∣A∣∣B∣cosθ and neither length is zero, this is the same as requiring the dot product to vanish: