Multivariable-Calculus · Unit 1 · Video 4 · Interactive Practice

How the Dot Product Measures Angles in Space

IKey Formulas

FormulaNameWhat you need
AB=ABcosθ\mathbf{A}\cdot\mathbf{B} = |\mathbf{A}|\,|\mathbf{B}|\cos\thetaGeometric formTwo vectors and the angle between them
cosθ=ABAB\cos\theta = \dfrac{\mathbf{A}\cdot\mathbf{B}}{|\mathbf{A}|\,|\mathbf{B}|}Angle formulaOne dot product, two lengths
AB=a1b1+a2b2+a3b3\mathbf{A}\cdot\mathbf{B} = a_1b_1 + a_2b_2 + a_3b_3Dot product from componentsCoordinates only
A=a12+a22+a32|\mathbf{A}| = \sqrt{a_1^2 + a_2^2 + a_3^2}Length from componentsCoordinates only

Key Insight: Lengths are never negative, so dividing by AB|\mathbf{A}|\,|\mathbf{B}| can never flip a sign — AB\mathbf{A}\cdot\mathbf{B} and cosθ\cos\theta 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 PP in triangle PQRPQR, from coordinates alone: vectors, lengths, dot product, cosine.

Step 1 — The two vectors out of PP
PQ=QP=01,  10,  00=1,1,0\overrightarrow{PQ} = Q - P = \langle 0-1,\; 1-0,\; 0-0 \rangle = \langle -1,\, 1,\, 0 \rangle
PR=RP=01,  00,  20=1,0,2\overrightarrow{PR} = R - P = \langle 0-1,\; 0-0,\; 2-0 \rangle = \langle -1,\, 0,\, 2 \rangle

IVVisualization 3 — The Sign Decides the Type

Acute, right, or obtuse is fixed by the sign of AB\mathbf{A}\cdot\mathbf{B}, before any division happens.

💡 The vanishing case AB=0\mathbf{A}\cdot\mathbf{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\mathbf{A} = \langle 1, 2, 2 \rangle and B=2,2,1\mathbf{B} = \langle 2, 2, 1 \ranglefind cosθ\cos\theta.

✅ Correct! AB=8\mathbf{A}\cdot\mathbf{B} = 8 and A=B=3|\mathbf{A}| = |\mathbf{B}| = 3, so cosθ=890.889\cos\theta = \tfrac{8}{9} \approx 0.889 and θ27.27\theta \approx 27.27^\circ.
❌ Close, but the denominator is short one factor. The formula divides by the product of both lengths: AB=33=9|\mathbf{A}|\,|\mathbf{B}| = 3 \cdot 3 = 9, not by A|\mathbf{A}| alone.
❌ Not quite. 81=A2B281 = |\mathbf{A}|^2|\mathbf{B}|^2 — that is the value under the square roots. Take the roots first: 99=9\sqrt{9}\cdot\sqrt{9} = 9.
❌ Not quite. The two lengths multiply, they do not add: 33=93 \cdot 3 = 9, not 3+3=63 + 3 = 6. And 86>1\tfrac{8}{6} \gt 1, which no cosine can be.
Show solution

Step 1 — the dot product (multiply matching components, then add):

AB=(1)(2)+(2)(2)+(2)(1)=2+4+2=8\mathbf{A}\cdot\mathbf{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|\mathbf{A}| = \sqrt{1^2 + 2^2 + 2^2} = \sqrt{9} = 3, \qquad |\mathbf{B}| = \sqrt{2^2 + 2^2 + 1^2} = \sqrt{9} = 3

Step 3 — divide:

cosθ=ABAB=833=890.8889\cos\theta = \frac{\mathbf{A}\cdot\mathbf{B}}{|\mathbf{A}|\,|\mathbf{B}|} = \frac{8}{3 \cdot 3} = \frac{8}{9} \approx 0.8889

So θ=arccos ⁣(89)27.27\theta = \arccos\!\left(\tfrac{8}{9}\right) \approx 27.27^\circ — a positive dot product, and indeed an acute angle.

Problem 2 · Classify Without Dividing

Given: A=3,1,2\mathbf{A} = \langle 3, -1, 2 \rangle and B=2,4,5\mathbf{B} = \langle -2, 4, 5 \rangleclassify the angle θ\theta between them.

✅ Correct! AB=64+10=0\mathbf{A}\cdot\mathbf{B} = -6 - 4 + 10 = 0, so cosθ=0\cos\theta = 0 and θ=90\theta = 90^\circ exactly — no lengths required.
❌ Not quite — check the total. (3)(2)+(1)(4)+(2)(5)=64+10=0(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-10, but the third contributes +10+10: the sum is exactly 00, not negative.
❌ The lengths cannot help here. A|\mathbf{A}| and B|\mathbf{B}| are positive, so dividing by them rescales cosθ\cos\theta without touching its sign. The sign of AB\mathbf{A}\cdot\mathbf{B} alone settles the classification.
Show solution

Only the numerator of the angle formula carries sign information, so compute it alone:

AB=(3)(2)+(1)(4)+(2)(5)=64+10=0\mathbf{A}\cdot\mathbf{B} = (3)(-2) + (-1)(4) + (2)(5) = -6 - 4 + 10 = 0

Since AB=ABcosθ\mathbf{A}\cdot\mathbf{B} = |\mathbf{A}|\,|\mathbf{B}|\cos\theta with A>0|\mathbf{A}| \gt 0 and B>0|\mathbf{B}| \gt 0, a zero dot product forces cosθ=0\cos\theta = 0, hence

θ=90\theta = 90^\circ

The two vectors are perpendicular. (For the record, A=14|\mathbf{A}| = \sqrt{14} and B=45|\mathbf{B}| = \sqrt{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)P(1, 0, 0), Q(0,2,0)Q(0, 2, 0) and R(0,0,2)R(0, 0, 2)find the angle θ\theta at vertex PP.

What is PQPR\overrightarrow{PQ}\cdot\overrightarrow{PR}?

What is cosθ\cos\theta?

✅ Correct! cosθ=15=0.2\cos\theta = \tfrac{1}{5} = 0.2, so θ=arccos(0.2)78.46\theta = \arccos(0.2) \approx 78.46^\circ — acute, exactly as the positive dot product promised.
❌ Check the products. PQ=1,2,0\overrightarrow{PQ} = \langle -1, 2, 0 \rangle and PR=1,0,2\overrightarrow{PR} = \langle -1, 0, 2 \rangle, so the terms are (1)(1)(-1)(-1), (2)(0)(2)(0) and (0)(2)(0)(2).
❌ Watch the double negative. The first components are both 1-1, and (1)(1)=+1(-1)(-1) = +1. The other two products vanish, so the sum is +1+1.
❌ Check the denominator. PQ=1+4+0=5|\overrightarrow{PQ}| = \sqrt{1 + 4 + 0} = \sqrt{5} and PR=1+0+4=5|\overrightarrow{PR}| = \sqrt{1 + 0 + 4} = \sqrt{5}, so the product of the lengths is 55=5\sqrt{5}\cdot\sqrt{5} = 5.
❌ Those are the video's numbers, not these. Here Q=(0,2,0)Q = (0, 2, 0), so PQ=5|\overrightarrow{PQ}| = \sqrt{5} rather than 2\sqrt{2}, and the denominator is 55=5\sqrt{5}\cdot\sqrt{5} = 5, not 10\sqrt{10}.
❌ The square roots were skipped. 25=PQ2PR225 = |\overrightarrow{PQ}|^2\,|\overrightarrow{PR}|^2 — that is the value under the two roots. Take the roots first: 55=5\sqrt{5}\cdot\sqrt{5} = 5, so cosθ=15\cos\theta = \tfrac{1}{5}.
❌ One length short. Dividing by PQ|\overrightarrow{PQ}| alone leaves 1/51/\sqrt{5}; the formula divides by both lengths, giving 1/(55)=1/51/(\sqrt{5}\cdot\sqrt{5}) = 1/5.
Show solution

Step 1 — the two edges leaving PP (head minus tail):

PQ=QP=1,2,0,PR=RP=1,0,2\overrightarrow{PQ} = Q - P = \langle -1,\, 2,\, 0 \rangle, \qquad \overrightarrow{PR} = R - P = \langle -1,\, 0,\, 2 \rangle

Step 2 — the dot product:

PQPR=(1)(1)+(2)(0)+(0)(2)=1+0+0=1\overrightarrow{PQ}\cdot\overrightarrow{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|\overrightarrow{PQ}| = \sqrt{(-1)^2 + 2^2 + 0^2} = \sqrt{5}, \qquad |\overrightarrow{PR}| = \sqrt{(-1)^2 + 0^2 + 2^2} = \sqrt{5}

Step 4 — assemble:

cosθ=155=15=0.2θ=arccos(0.2)78.46\cos\theta = \frac{1}{\sqrt{5}\,\sqrt{5}} = \frac{1}{5} = 0.2 \quad\Longrightarrow\quad \theta = \arccos(0.2) \approx 78.46^\circ

Moving QQ from (0,1,0)(0,1,0) to (0,2,0)(0,2,0) opened the corner from about 71.5771.57^\circ to about 78.4678.46^\circ — the same procedure, new coordinates.

Problem 4 · Tune One Component to a Right Angle

Given: A=2,3,1\mathbf{A} = \langle 2, -3, 1 \rangle and B=4,k,2\mathbf{B} = \langle 4, k, 2 \ranglefind the value of kk that makes θ=90\theta = 90^\circ.

✅ Correct! AB=83k+2=103k\mathbf{A}\cdot\mathbf{B} = 8 - 3k + 2 = 10 - 3k, which vanishes exactly at k=103k = \tfrac{10}{3} — and a vanishing dot product is a right angle.
❌ Sign slip. 103k=010 - 3k = 0 rearranges to 3k=+103k = +10, so k=+103k = +\tfrac{10}{3}. At k=103k = -\tfrac{10}{3} the dot product is 10+10=2010 + 10 = 20, firmly acute.
❌ That kills only the middle term. With k=0k = 0 the sum is 8+0+2=1008 + 0 + 2 = 10 \ne 0; the middle product has to cancel the other two, not merely disappear.
❌ The fraction is inverted. From 3k=103k = 10, divide by 33: k=103k = \tfrac{10}{3}. (Check: 310\tfrac{3}{10} gives 100.9=9.1010 - 0.9 = 9.1 \ne 0.)
Show solution

A right angle means cosθ=0\cos\theta = 0. Since AB=ABcosθ\mathbf{A}\cdot\mathbf{B} = |\mathbf{A}|\,|\mathbf{B}|\cos\theta and neither length is zero, this is the same as requiring the dot product to vanish:

AB=(2)(4)+(3)(k)+(1)(2)=83k+2=103k\mathbf{A}\cdot\mathbf{B} = (2)(4) + (-3)(k) + (1)(2) = 8 - 3k + 2 = 10 - 3k 103k=0k=10310 - 3k = 0 \quad\Longrightarrow\quad k = \frac{10}{3}

Verify: with B=4,103,2\mathbf{B} = \left\langle 4, \tfrac{10}{3}, 2 \right\rangle,

AB=83 ⁣(103)+2=810+2=0 \mathbf{A}\cdot\mathbf{B} = 8 - 3\!\left(\tfrac{10}{3}\right) + 2 = 8 - 10 + 2 = 0 \ \checkmark

Note what was not needed: neither A=14|\mathbf{A}| = \sqrt{14} nor B|\mathbf{B}| appears anywhere. Perpendicularity is a statement about the numerator alone.

Solved: 0 / 4