Multivariable CalculusVectors and the Geometry of Space3 of 5
Vectors and the Geometry of Space · 3

The Dot Product

We already know how to add vectors and scale them, and now we need a way to multiply two vectors that measures how much they work together in the same direction.

1

The Dot Product as a Signed Shadow

The dot product of two vectors a\cast{a} and bb, written a⋅b\cast{a} \cdot b, is a single number that measures how much the two vectors line up. When a\cast{a} is at an angle θ\theta to bb, only the shadow of a\cast{a} cast perpendicular onto the line of bb goes in bb's direction, so we multiply that signed shadow by the length of bb.

The Dot Product as a Signed Shadow
a⋅b=  ?\cast{a} \cdot b = \;?
a\htmlClass{lc-blue}{a}
bb
θ\theta

Shining a light perpendicular to bb gives a right triangle with hypotenuse ∣a∣\cast{|a|} and adjacent side ∣a∣cos⁡θ\cast{|a|\cos\theta} along the line of bb:

a⋅b=(∣a∣cos⁡θ)⏟signed shadow of a∣b∣⏟length of b=∣a∣∣b∣cos⁡θ\displaystyle \begin{aligned} \cast{a} \cdot b &= \underbrace{\cast{(|a|\cos\theta)}}_{\cast{\text{signed shadow of } a}} \quad \underbrace{|b|}_{\text{length of } b} \\ &= \cast{|a|}|b|\cos\theta \end{aligned}

The result a⋅b\cast{a} \cdot b is a scalar (a single number), not a vector, and the factor ∣a∣cos⁡θ\cast{|a|\cos\theta} is called the signed shadow because cos⁡θ\cos\theta automatically tracks whether the shadow falls forward or backward along bb.

See how the shadow of a\cast{a} and the sign of a⋅b\cast{a} \cdot b change as you swing a\cast{a} from acute to 90∘90^\circ to obtuse:

With bb held fixed, the dot product follows the shadow that a\cast{a} casts onto the line of bb: positive when the shadow lands forward on bb, zero at 90 degrees, and negative when it falls behind bb’s tail.
2

The Coordinate Formula for the Dot Product

In 2D and especially in 3D, we are almost always given vectors by their coordinates rather than the angle between them. How do we find the dot product of a=⟨3,1⟩\cast{a} = \cast{\langle 3, 1 \rangle} and b=⟨2,4⟩b = \langle 2, 4 \rangle using only their coordinates?

The Coordinate Formula for the Dot Product
a⋅b=  ?\cast{a} \cdot b = \;?
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
a=⟨3,1⟩\htmlClass{lc-blue}{a = \langle 3, 1 \rangle}
b=⟨2,4⟩b = \langle 2, 4 \rangle
Text solution
Multiply matching coordinates and addBecause the xx- and yy-axes are at 90∘90^\circ to each other, the xx-part of one vector casts zero shadow on the yy-part of the other, so only the matching xx-parts and matching yy-parts stay.
a⋅b\displaystyle \cast{a} \cdot b =(3)(2)+(1)(4)\displaystyle = (\cast{3})(2) + (\cast{1})(4) =6+4\displaystyle = \dotval{6 + 4} =10\displaystyle = \dotval{10}

In 3D, the xx-, yy-, and zz-axes are all perpendicular to each other, so every pair of different axes casts zero shadow and drops out:

a⋅b\displaystyle \cast{a} \cdot b =axbx+ayby+azbz\displaystyle = \cast{a_x} b_x + \cast{a_y} b_y + \cast{a_z} b_z
3

Finding the Angle Between Two Vectors

Now we have two ways to compute the exact same number a⋅b\cast{a} \cdot b: the coordinate formula gives the value with simple arithmetic, while the shadow formula contains the angle θ\theta between the vectors. Setting them equal lets us find the angle θ\theta between any two 3D vectors:

axbx+ayby+azbz⏟coordinate sum\displaystyle \underbrace{\cast{a_x} b_x + \cast{a_y} b_y + \cast{a_z} b_z}_{\text{coordinate sum}} =∣a∣∣b∣cos⁡θ⏟shadow formula\displaystyle = \underbrace{\cast{|a|}|b|\cos\theta}_{\text{shadow formula}}

Let's use this equation to find the angle between a=⟨1,2,2⟩\cast{a} = \cast{\langle 1, 2, 2 \rangle} and b=⟨2,0,−1⟩b = \langle 2, 0, -1 \rangle, and then see what changes when b=⟨2,1,2⟩b = \langle 2, 1, 2 \rangle.

Finding the Angle Between Two Vectors
θ=  ?\theta = \;?
z\htmlClass{lc-mute}{z}
y\htmlClass{lc-mute}{y}
x\htmlClass{lc-mute}{x}
a=⟨1,2,2⟩\htmlClass{lc-blue}{a = \langle 1, 2, 2 \rangle}
b=⟨2,0,−1⟩b = \langle 2, 0, -1 \rangle
θ\theta
Text solution
First pair: a=⟨1,2,2⟩\cast{a} = \cast{\langle 1, 2, 2 \rangle} and b=⟨2,0,−1⟩b = \langle 2, 0, -1 \rangle
Compute the coordinate dot product firstMultiply matching coordinates and add before calculating any lengths.
a⋅b\displaystyle \cast{a} \cdot b =(1)(2)+(2)(0)+(2)(−1)\displaystyle = (\cast{1})(2) + (\cast{2})(0) + (\cast{2})(-1) =2+0−2\displaystyle = \dotval{2 + 0 - 2} =0\displaystyle = \dotval{0}
So θ=90∘\theta = 90^\circ: a dot product of 0\dotval{0} means the shadow has length zero and the two vectors are perpendicular, without needing ∣a∣\cast{|a|} or ∣b∣|b|.
Second pair: a=⟨1,2,2⟩\cast{a} = \cast{\langle 1, 2, 2 \rangle} and b=⟨2,1,2⟩b = \langle 2, 1, 2 \rangle
Compute the coordinate dot productMultiply matching components and add them up for the left side of the equation.
a⋅b\displaystyle \cast{a} \cdot b =(1)(2)+(2)(1)+(2)(2)\displaystyle = (\cast{1})(2) + (\cast{2})(1) + (\cast{2})(2) =2+2+4\displaystyle = \dotval{2 + 2 + 4} =8\displaystyle = \dotval{8}
Find the length of each vectorBy the 3D Pythagorean theorem, square each vector's components, add them, and take the square root.
∣a∣=12+22+22=9=3,∣b∣=22+12+22=9=3\displaystyle \begin{aligned} \cast{|a|} &= \sqrt{\cast{1}^2 + \cast{2}^2 + \cast{2}^2} = \sqrt{9} = \cast{3}, \\ |b| &= \sqrt{2^2 + 1^2 + 2^2} = \sqrt{9} = 3 \end{aligned}
Set the two dot product expressions equal and solve for θ\thetaDivide the coordinate dot product by ∣a∣∣b∣\cast{|a|}|b| and take the inverse cosine.
8=(3)(3)cos⁡θ  ⟹  cos⁡θ=89  ⟹  θ=arccos⁡ ⁣(89)\displaystyle \begin{aligned} \dotval{8} &= (\cast{3})(3)\cos\theta \\ \implies \cos\theta &= \frac{\dotval{8}}{9} \\ \implies \theta &= \arccos\!\left(\frac{\dotval{8}}{9}\right) \end{aligned}
4

Direction Angles and Direction Cosines

In 2D, a single angle with the positive xx-axis fixes a vector's direction, but in 3D a single angle only narrows the vector to a cone around that axis. To specify the direction of a=⟨1,2,2⟩\cast{a} = \cast{\langle 1, 2, 2 \rangle} in 3D, we measure its three direction angles α\alpha, β\beta, and γ\gamma with the positive xx-, yy-, and zz-axes.

Direction Angles and Direction Cosines
α, β, γ=  ?\alpha,\ \beta,\ \gamma = \;?
z\htmlClass{lc-mute}{z}
y\htmlClass{lc-mute}{y}
x\htmlClass{lc-mute}{x}
a=⟨1,2,2⟩\htmlClass{lc-blue}{a = \langle 1, 2, 2 \rangle}
α\alpha
β\beta
γ\gamma

Because the signed shadow of a\cast{a} on the xx-axis is both ax\cast{a_x} and ∣a∣cos⁡α\cast{|a|\cos\alpha}, dividing a\cast{a}'s components by its length ∣a∣\cast{|a|} gives the three direction cosines, which are simply the coordinates of the unit vector a^\cast{\hat{a}}:

a^=a∣a∣=⟨ax∣a∣, ay∣a∣, az∣a∣⟩=⟨cos⁡α, cos⁡β, cos⁡γ⟩⏟direction cosines of a\displaystyle \begin{aligned} \cast{\hat{a}} &= \frac{\cast{a}}{\cast{|a|}} = \left\langle \frac{\cast{a_x}}{\cast{|a|}},\, \frac{\cast{a_y}}{\cast{|a|}},\, \frac{\cast{a_z}}{\cast{|a|}} \right\rangle \\ &= \underbrace{\langle \cast{\cos\alpha},\, \cast{\cos\beta},\, \cast{\cos\gamma} \rangle}_{\cast{\text{direction cosines of } a}} \end{aligned}

Since a^\cast{\hat{a}} is a unit vector, its length is 11, so squaring its three coordinates and adding them always gives 11:

cos⁡2α+cos⁡2β+cos⁡2γ\displaystyle \cast{\cos^2\alpha} + \cast{\cos^2\beta} + \cast{\cos^2\gamma} =1\displaystyle = 1
Text solution
Divide a=⟨1,2,2⟩\cast{a} = \cast{\langle 1, 2, 2 \rangle} by its length ∣a∣=3\cast{|a|} = \cast{3} to get a^\cast{\hat{a}}The coordinates of the unit vector are the three direction cosines.
a^\displaystyle \cast{\hat{a}} =⟨1,2,2⟩3\displaystyle = \frac{\cast{\langle 1, 2, 2 \rangle}}{\cast{3}} =⟨13, 23, 23⟩\displaystyle = \cast{\left\langle \frac{1}{3},\, \frac{2}{3},\, \frac{2}{3} \right\rangle} =⟨cos⁡α, cos⁡β, cos⁡γ⟩\displaystyle = \langle \cast{\cos\alpha},\, \cast{\cos\beta},\, \cast{\cos\gamma} \rangle
Take the inverse cosine of each coordinateEach component of a^\cast{\hat{a}} gives the angle with that axis.
α=arccos⁡ ⁣(13),β=arccos⁡ ⁣(23),γ=arccos⁡ ⁣(23)\displaystyle \begin{aligned} \alpha &= \arccos\!\left(\frac{1}{3}\right), \\ \beta &= \arccos\!\left(\frac{2}{3}\right), \\ \gamma &= \arccos\!\left(\frac{2}{3}\right) \end{aligned}

Notice how tilting a\cast{a} toward one axis forces its angles with the other two axes to adjust so that cos⁡2α+cos⁡2β+cos⁡2γ=1\cast{\cos^2\alpha} + \cast{\cos^2\beta} + \cast{\cos^2\gamma} = 1:

A vector’s direction cosines are the coordinates of its unit vector, and tilting toward one axis grows that shadow while the other two shrink so their squares still add up to 1.
5

Scalar and Vector Projections

Instead of projecting a\cast{a} onto a coordinate axis, we often need to project a\cast{a} onto the line of another vector bb. Given a=⟨4,3⟩\cast{a} = \cast{\langle 4, 3 \rangle} and b=⟨2,1⟩b = \langle 2, 1 \rangle, we want to find the signed length of a\cast{a}'s shadow on bb (the scalar projection, compb a\cast{\text{comp}_b\, a}), the shadow arrow itself along the line of bb (the vector projection, projb a\cast{\text{proj}_b\, a}), and the remaining part of a\cast{a} that is perpendicular to bb (aperp)(\across{a_{\text{perp}}}).

Scalar and Vector Projections
compb a=  ?projb a=  ?\cast{\text{comp}_b\, a} = \;?\qquad \cast{\text{proj}_b\, a} = \;?
a\htmlClass{lc-blue}{a}
bb
θ\theta

Because a⋅b\cast{a} \cdot b multiplies the signed shadow of a\cast{a} by the length of bb, dividing by ∣b∣|b| (which is the same as dotting a\cast{a} with the unit vector b^=b/∣b∣\hat{b} = b/|b|) leaves just the signed shadow of a\cast{a}:

compb a\displaystyle \cast{\text{comp}_b\, a} =a⋅b^\displaystyle = \cast{a} \cdot \hat{b} =a⋅b∣b∣\displaystyle = \frac{\cast{a} \cdot b}{|b|}

Multiplying that signed number by the unit vector b^\hat{b} turns the shadow into a vector along the line of bb, putting a second factor of ∣b∣|b| in the denominator:

projb a=(a⋅b^)⏟scalar projectionb^⏟unit vector=(a⋅b∣b∣)(b∣b∣)=(a⋅b∣b∣2)b\displaystyle \begin{aligned} \cast{\text{proj}_b\, a} &= \underbrace{(\cast{a} \cdot \hat{b})}_{\text{scalar projection}} \quad \underbrace{\hat{b}}_{\text{unit vector}} \\ &= \left(\frac{\cast{a} \cdot b}{|b|}\right)\left(\frac{b}{|b|}\right) = \left(\frac{\cast{a} \cdot b}{|b|^2}\right)b \end{aligned}

Notice a nice shortcut in that denominator: ∣b∣2=b⋅b|b|^2 = b \cdot b is just the sum of the squared coordinates of bb, so when finding a vector projection you don't even have to take a square root.

a\htmlClass{lc-blue}{a}
bb
projb a\htmlClass{lc-blue}{\text{proj}_b\, a}
aperp\htmlClass{lc-orange}{a_{\text{perp}}}
Text solution
Dot a\cast{a} and bb, and find the length of bbFor a=⟨4,3⟩\cast{a} = \cast{\langle 4, 3 \rangle} projected onto b=⟨2,1⟩b = \langle 2, 1 \rangle, only the length of bb is needed.
a⋅b\displaystyle \cast{a} \cdot b =(4)(2)+(3)(1)\displaystyle = (\cast{4})(2) + (\cast{3})(1) =11,∣b∣\displaystyle = \dotval{11}, \qquad |b| =22+12\displaystyle = \sqrt{2^2 + 1^2} =5\displaystyle = \sqrt{5}
Divide a⋅b\cast{a} \cdot b by ∣b∣|b| for the scalar projectionThis divides out the length of bb and leaves the signed length of a\cast{a}'s shadow.
compb a\displaystyle \cast{\text{comp}_b\, a} =a⋅b∣b∣\displaystyle = \frac{\cast{a} \cdot b}{|b|} =115\displaystyle = \frac{\dotval{11}}{\sqrt{5}}
Multiply bb by (a⋅b)/∣b∣2(\cast{a} \cdot b)/|b|^2 for the vector projectionSince ∣b∣2=5|b|^2 = 5, scale b=⟨2,1⟩b = \langle 2, 1 \rangle by 115\frac{\dotval{11}}{5}.
projb a\displaystyle \cast{\text{proj}_b\, a} =115⟨2,1⟩\displaystyle = \frac{\dotval{11}}{5}\langle 2, 1 \rangle =⟨225, 115⟩\displaystyle = \cast{\left\langle \frac{22}{5},\, \frac{11}{5} \right\rangle}
Subtract the vector projection from a\cast{a} to get the perpendicular partSince projb a+aperp=a\cast{\text{proj}_b\, a} + \across{a_{\text{perp}}} = \cast{a}, subtracting the shadow along bb leaves the part perpendicular to bb.
aperp\displaystyle \across{a_{\text{perp}}} =a−projb a\displaystyle = \cast{a} - \cast{\text{proj}_b\, a} =⟨4,3⟩−⟨225, 115⟩\displaystyle = \cast{\langle 4, 3 \rangle} - \cast{\left\langle \frac{22}{5},\, \frac{11}{5} \right\rangle} =⟨−25, 45⟩\displaystyle = \across{\left\langle -\frac{2}{5},\, \frac{4}{5} \right\rangle}

As a quick check, dot aperp\across{a_{\text{perp}}} with bb: ⟨−25,45⟩⋅⟨2,1⟩=−45+45=0\across{\left\langle -\frac{2}{5}, \frac{4}{5} \right\rangle} \cdot \langle 2, 1 \rangle = \dotval{-\frac{4}{5} + \frac{4}{5}} = \dotval{0}, confirming they are perpendicular.

Try changing the length and angle of bb below: stretching or shrinking bb changes a⋅b\cast{a} \cdot b, but dividing by ∣b∣|b| cancels bb's length out so the projections stay the same, while rotating bb past 90∘90^\circ flips the shadow backward.

Projecting a\cast{a} onto bb depends only on the line bb lies on, not how long bb is, and past 90 degrees a negative shadow flips the shadow arrow to point opposite bb.
6

Work as a Dot Product

In physics, work (W)(\dotval{W}) is the energy transferred when a force F\cast{F} moves an object along a displacement vector d\disp{d}, and only the part of the force lined up with the motion does any work. Let's find the work done in two situations: pulling a crate 10 m\disp{10}\text{ m} horizontally with a 50 N\cast{50}\text{ N} rope at 60∘60^\circ above the floor, and a 3D wind force F=⟨3,−2,4⟩ N\cast{F} = \cast{\langle 3, -2, 4 \rangle}\text{ N} pushing a drone through a displacement d=⟨5,1,2⟩ m\disp{d} = \disp{\langle 5, 1, 2 \rangle}\text{ m}.

Work as a Dot Product
W=  ?\dotval{W} = \;?
F\htmlClass{lc-blue}{F}
θ\theta
d\htmlClass{lc-pink}{d}

Multiplying the signed shadow of the force along the path by the distance moved is the dot product of F\cast{F} and d\disp{d}:

W=(∣F∣cos⁡θ)⏟effective force along d∣d∣⏟distance=∣F∣∣d∣cos⁡θ=F⋅d\displaystyle \begin{aligned} \dotval{W} &= \underbrace{\cast{(|F|\cos\theta)}}_{\cast{\text{effective force along } d}} \quad \underbrace{\disp{|d|}}_{\disp{\text{distance}}} \\ &= \cast{|F|}\disp{|d|}\cos\theta = \cast{F} \cdot \disp{d} \end{aligned}
Text solution
Given magnitudes and an angle: use ∣F∣∣d∣cos⁡θ\cast{|F|}\disp{|d|}\cos\thetaFor ∣F∣=50 N\cast{|F|} = \cast{50}\text{ N} at θ=60∘\theta = 60^\circ over ∣d∣=10 m\disp{|d|} = \disp{10}\text{ m}, only the horizontal shadow of the pull moves the crate forward.
W\displaystyle \dotval{W} =(50)(10)cos⁡60∘\displaystyle = (\cast{50})(\disp{10})\cos 60^\circ =500(12)\displaystyle = 500\left(\frac{1}{2}\right) =250 J\displaystyle = \dotval{250}\text{ J}
Given coordinates: dot the components of F\cast{F} and d\disp{d} directlyFor F=⟨3,−2,4⟩ N\cast{F} = \cast{\langle 3, -2, 4 \rangle}\text{ N} and d=⟨5,1,2⟩ m\disp{d} = \disp{\langle 5, 1, 2 \rangle}\text{ m}, multiply matching coordinates and add without finding any 3D angles.
W\displaystyle \dotval{W} =F⋅d\displaystyle = \cast{F} \cdot \disp{d} =(3)(5)+(−2)(1)+(4)(2)\displaystyle = (\cast{3})(\disp{5}) + (\cast{-2})(\disp{1}) + (\cast{4})(\disp{2}) =15−2+8\displaystyle = \dotval{15 - 2 + 8} =21 J\displaystyle = \dotval{21}\text{ J}

So the wind does 21 J\dotval{21}\text{ J} of total work, which automatically includes the −2 J\dotval{-2}\text{ J} in the yy-direction where the wind pushed backward (−2 N)(\cast{-2}\text{ N}) while the drone moved forward (+1 m)(\disp{+1}\text{ m}).

Summary

All of these methods come back to one picture: shining a light perpendicular to a vector and measuring the signed shadow.

Lesson Recap
a\htmlClass{lc-blue}{a}
bb
θ\theta

Because the dot product is both the shadow formula ∣a∣∣b∣cos⁡θ\cast{|a|}|b|\cos\theta and the coordinate sum axbx+ayby+azbz\cast{a_x} b_x + \cast{a_y} b_y + \cast{a_z} b_z, you can always use whichever form matches what you know:

Computing a⋅b\cast{a} \cdot b or work W=F⋅d\dotval{W} = \cast{F} \cdot \disp{d}

Use ∣a∣∣b∣cos⁡θ\cast{|a|}|b|\cos\theta when given lengths and an angle (obtuse angles make cos⁡θ\cos\theta and a⋅b\cast{a} \cdot b negative), or multiply matching coordinates and add when given components.

Angles and direction cosines

Set axbx+ayby+azbz=∣a∣∣b∣cos⁡θ\cast{a_x} b_x + \cast{a_y} b_y + \cast{a_z} b_z = \cast{|a|}|b|\cos\theta to find the angle between two vectors, checking a⋅b=0\cast{a} \cdot b = \dotval{0} first for 90∘90^\circ. For a single vector's angles with the axes, the unit vector a^=a/∣a∣=⟨cos⁡α,cos⁡β,cos⁡γ⟩\cast{\hat{a}} = \cast{a}/\cast{|a|} = \langle \cast{\cos\alpha}, \cast{\cos\beta}, \cast{\cos\gamma} \rangle gives the direction cosines directly, with cos⁡2α+cos⁡2β+cos⁡2γ=1\cast{\cos^2\alpha} + \cast{\cos^2\beta} + \cast{\cos^2\gamma} = 1.

Projections

Divide a⋅b\cast{a} \cdot b by ∣b∣|b| once for the signed shadow length compb a=a⋅b∣b∣\cast{\text{comp}_b\, a} = \frac{\cast{a} \cdot b}{|b|}, divide by ∣b∣2|b|^2 when scaling bb for the shadow vector projb a=(a⋅b∣b∣2)b\cast{\text{proj}_b\, a} = \left(\frac{\cast{a} \cdot b}{|b|^2}\right)b, and subtract aperp=a−projb a\across{a_{\text{perp}}} = \cast{a} - \cast{\text{proj}_b\, a} for the perpendicular part.

7

Practice

1

Two vectors a\cast{a} and bb have magnitudes ∣a∣=6\cast{|a|} = \cast{6} and ∣b∣=4|b| = 4, and the angle between them is θ=120∘\theta = 120^\circ. Find the signed shadow of a\cast{a} on the line of bb and the dot product a⋅b\cast{a} \cdot b.

The signed shadow of a\cast{a} comes from the right triangle with hypotenuse ∣a∣=6\cast{|a|} = \cast{6} and angle 120∘120^\circ. Since 120∘>90∘120^\circ > 90^\circ, does the shadow land forward or backward along bb?

Signed shadow of a\displaystyle \cast{\text{Signed shadow of } a} =∣a∣cos⁡120∘\displaystyle = \cast{|a|\cos 120^\circ} =6(−12)\displaystyle = \cast{6}\left(-\frac{1}{2}\right) =−3\displaystyle = \cast{-3}
(Watch out: cos⁡120∘=−12\cos 120^\circ = -\frac{1}{2}, not +12+\frac{1}{2}; forgetting the negative sign for an obtuse angle gives +3+3 and +12+12, and using ∣b∣=4|b| = 4 instead of ∣a∣=6\cast{|a|} = \cast{6} for the shadow of a\cast{a} gives −2-2.)
a⋅b\displaystyle \cast{a} \cdot b =(−3)(4)\displaystyle = (\cast{-3})(4) =−12\displaystyle = \dotval{-12}
2

Find the dot product of a=⟨1,1,0⟩\cast{a} = \cast{\langle 1, 1, 0 \rangle} and b=⟨0,1,−1⟩b = \langle 0, 1, -1 \rangle, and use it to find the angle θ\theta between them.

Multiply matching coordinates to get a⋅b\cast{a} \cdot b, then set it equal to ∣a∣∣b∣cos⁡θ\cast{|a|}|b|\cos\theta. What is the length of each vector?

a⋅b\displaystyle \cast{a} \cdot b =(1)(0)+(1)(1)+(0)(−1)\displaystyle = (\cast{1})(0) + (\cast{1})(1) + (\cast{0})(-1) =1\displaystyle = \dotval{1}
∣a∣\displaystyle \cast{|a|} =12+12+02\displaystyle = \sqrt{\cast{1}^2 + \cast{1}^2 + \cast{0}^2} =2,∣b∣\displaystyle = \cast{\sqrt{2}}, \qquad |b| =02+12+(−1)2\displaystyle = \sqrt{0^2 + 1^2 + (-1)^2} =2\displaystyle = \sqrt{2}
(Watch out: don't forget the square roots on ∣a∣\cast{|a|} and ∣b∣|b|. Using 22 instead of 2\sqrt{2} gives cos⁡θ=14\cos\theta = \frac{1}{4} and θ=arccos⁡(14)\theta = \arccos(\frac{1}{4}). Also remember (−1)2=+1(-1)^2 = +1, not −1-1.)
cos⁡θ\displaystyle \cos\theta =12⋅2\displaystyle = \frac{\dotval{1}}{\cast{\sqrt{2}}\cdot\sqrt{2}} =12  ⟹  θ\displaystyle = \frac{1}{2} \implies \theta =60∘\displaystyle = 60^\circ
3

Find the value of c\cast{c} that makes the 3D vectors a=⟨3,c,−2⟩\cast{a} = \cast{\langle 3, c, -2 \rangle} and b=⟨4,−3,3⟩b = \langle 4, -3, 3 \rangle perpendicular.

When two vectors are perpendicular, what must their signed shadow and their dot product equal?

a⋅b\displaystyle \cast{a} \cdot b =(3)(4)+(c)(−3)+(−2)(3)\displaystyle = (\cast{3})(4) + (\cast{c})(-3) + (\cast{-2})(3) =12−3c−6\displaystyle = \dotval{12 - 3c - 6} =6−3c\displaystyle = \dotval{6 - 3c} =0\displaystyle = \dotval{0}
(Watch out: (−2)(3)=−6(\cast{-2})(3) = \dotval{-6}, not +6+6. Adding 66 instead of subtracting gives 18−3c=018 - 3c = 0 and the wrong answer c=6c = 6.)
c=2\displaystyle \cast{c = 2}
4

Find the direction cosines and the direction angles α\alpha, β\beta, and γ\gamma of the vector v=⟨2,−3,6⟩\cast{v} = \cast{\langle 2, -3, 6 \rangle}.

Which unit vector has the direction cosines of v\cast{v} as its three coordinates?

∣v∣\displaystyle \cast{|v|} =22+(−3)2+62\displaystyle = \sqrt{\cast{2}^2 + (\cast{-3})^2 + \cast{6}^2} =4+9+36\displaystyle = \sqrt{4 + 9 + 36} =7  ⟹  v^\displaystyle = \cast{7} \implies \cast{\hat{v}} =⟨27, −37, 67⟩\displaystyle = \cast{\left\langle \frac{2}{7},\, -\frac{3}{7},\, \frac{6}{7} \right\rangle}
(Watch out: (−3)2=+9(-3)^2 = +9, not −9-9, which would give 31\sqrt{31}; and keep the negative sign on the yy-component −37\cast{-\frac{3}{7}} so β\beta comes out obtuse.)
cos⁡α\displaystyle \cast{\cos\alpha} =27,cos⁡β\displaystyle = \cast{\frac{2}{7}}, \quad \cast{\cos\beta} =−37,cos⁡γ\displaystyle = \cast{-\frac{3}{7}}, \quad \cast{\cos\gamma} =67\displaystyle = \cast{\frac{6}{7}}
α\displaystyle \alpha =arccos⁡ ⁣(27),β\displaystyle = \arccos\!\left(\frac{2}{7}\right), \quad \beta =arccos⁡ ⁣(−37),γ\displaystyle = \arccos\!\left(-\frac{3}{7}\right), \quad \gamma =arccos⁡ ⁣(67)\displaystyle = \arccos\!\left(\frac{6}{7}\right)
5

Given a=⟨1,−2,−3⟩\cast{a} = \cast{\langle 1, -2, -3 \rangle} and b=⟨1,2,2⟩b = \langle 1, 2, 2 \rangle, find the scalar projection and vector projection of a\cast{a} onto bb, then split a\cast{a} to find the component aperp\across{a_{\text{perp}}} that is perpendicular to bb.

Since a\cast{a} is being projected onto bb, which vector's length belongs in the denominator, and how many factors of that length go into the scalar projection versus the vector projection?

a⋅b\displaystyle \cast{a} \cdot b =(1)(1)+(−2)(2)+(−3)(2)\displaystyle = (\cast{1})(1) + (\cast{-2})(2) + (\cast{-3})(2) =1−4−6\displaystyle = \dotval{1 - 4 - 6} =−9,∣b∣\displaystyle = \dotval{-9}, \qquad |b| =12+22+22\displaystyle = \sqrt{1^2 + 2^2 + 2^2} =3\displaystyle = 3
(Watch out: divide by ∣b∣=3|b| = 3, not ∣a∣=14\cast{|a|} = \cast{\sqrt{14}}, which gives −914-\frac{9}{\sqrt{14}}.)
compb a\displaystyle \cast{\text{comp}_b\, a} =a⋅b∣b∣\displaystyle = \frac{\cast{a} \cdot b}{|b|} =−93\displaystyle = \frac{\dotval{-9}}{3} =−3\displaystyle = \cast{-3}
(Watch out: when multiplying by the unscaled vector bb, divide by ∣b∣2=9|b|^2 = 9, not ∣b∣=3|b| = 3. Dividing by 33 forgets to turn bb into a unit vector and gives ⟨−3,−6,−6⟩\langle -3, -6, -6 \rangle.)
projb a\displaystyle \cast{\text{proj}_b\, a} =(−99)⟨1,2,2⟩\displaystyle = \left(\frac{\dotval{-9}}{9}\right)\langle 1, 2, 2 \rangle =⟨−1,−2,−2⟩\displaystyle = \cast{\langle -1, -2, -2 \rangle}
(Watch out: you are subtracting a negative vector from a\cast{a}, so subtracting ⟨−1,−2,−2⟩\cast{\langle -1, -2, -2 \rangle} adds ⟨1,2,2⟩\langle 1, 2, 2 \rangle. Dropping the minus signs gives ⟨0,−4,−5⟩\langle 0, -4, -5 \rangle.)
aperp\displaystyle \across{a_{\text{perp}}} =a−projb a\displaystyle = \cast{a} - \cast{\text{proj}_b\, a} =⟨1,−2,−3⟩−⟨−1,−2,−2⟩\displaystyle = \cast{\langle 1, -2, -3 \rangle} - \cast{\langle -1, -2, -2 \rangle} =⟨2,0,−1⟩\displaystyle = \across{\langle 2, 0, -1 \rangle}
6

You pull a crate 8 m\disp{8}\text{ m} horizontally across a floor with a rope force of 40 N\cast{40}\text{ N} at an angle of 60∘60^\circ above the floor, while a friction force of 15 N\cast{15}\text{ N} pulls straight backward at 180∘180^\circ to the motion. Find the work done by the rope and the work done by friction.

How much of the 40 N\cast{40}\text{ N} rope force actually lines up with the horizontal 8 m\disp{8}\text{ m} motion, and what is cos⁡180∘\cos 180^\circ for a force pulling straight backward?

Wrope\displaystyle \dotval{W_{\text{rope}}} =(40)(8)cos⁡60∘\displaystyle = (\cast{40})(\disp{8})\cos 60^\circ =320(12)\displaystyle = 320\left(\frac{1}{2}\right) =160 J\displaystyle = \dotval{160}\text{ J}
(Watch out: only the horizontal shadow 40cos⁡60∘=20 N\cast{40\cos 60^\circ} = \cast{20}\text{ N} moves the crate forward; multiplying 40×840 \times 8 directly gives 320 J320\text{ J}. For friction, cos⁡180∘=−1\cos 180^\circ = -1, so don't leave the work positive as +120 J+120\text{ J}.)
Wfriction\displaystyle \dotval{W_{\text{friction}}} =(15)(8)cos⁡180∘\displaystyle = (\cast{15})(\disp{8})\cos 180^\circ =120(−1)\displaystyle = 120(-1) =−120 J\displaystyle = \dotval{-120}\text{ J}
7

A wind force F=⟨4,−3,2⟩ N\cast{F} = \cast{\langle 4, -3, 2 \rangle}\text{ N} acts on a drone as it moves along the displacement vector d=⟨3,2,5⟩ m\disp{d} = \disp{\langle 3, 2, 5 \rangle}\text{ m}. Find the total work done by the wind, and determine how much work the yy-component of the wind does and why it has that sign.

Multiply matching coordinates of F\cast{F} and d\disp{d} and add them up. What do the signs of Fy=−3\cast{F_y} = \cast{-3} and dy=2\disp{d_y} = \disp{2} tell you about how the wind and the drone's motion compare along the yy-axis?

W\displaystyle \dotval{W} =F⋅d\displaystyle = \cast{F} \cdot \disp{d} =(4)(3)+(−3)(2)+(2)(5)\displaystyle = (\cast{4})(\disp{3}) + (\cast{-3})(\disp{2}) + (\cast{2})(\disp{5}) =12−6+10\displaystyle = \dotval{12 - 6 + 10} =16 J\displaystyle = \dotval{16}\text{ J}
(Watch out: work is a single scalar sum, not the vector ⟨12,−6,10⟩\langle 12, -6, 10 \rangle, and missing the negative sign on (−3)(2)=−6(\cast{-3})(\disp{2}) = \dotval{-6} gives 28 J28\text{ J}.)
The yy-component does (−3)(2)=−6 J(\cast{-3})(\disp{2}) = \dotval{-6}\text{ J} of work, which is negative because the wind pushes in the negative yy-direction while the drone moves in the positive yy-direction.
8

A 3D vector a\cast{a} of length 10\cast{10} makes angles α=60∘\alpha = 60^\circ with the positive xx-axis, β=45∘\beta = 45^\circ with the positive yy-axis, and an obtuse angle γ\gamma with the positive zz-axis. Find γ\gamma and the coordinates of a\cast{a}.

What must the squares of the three direction cosines add up to, and which sign do you pick when taking the square root for cos⁡γ\cast{\cos\gamma} if γ\gamma is obtuse?

cos⁡260∘+cos⁡245∘+cos⁡2γ\displaystyle \cast{\cos^2 60^\circ} + \cast{\cos^2 45^\circ} + \cast{\cos^2\gamma} =1  ⟹  (12)2+(22)2+cos⁡2γ\displaystyle = 1 \implies \left(\frac{1}{2}\right)^2 + \left(\frac{\sqrt{2}}{2}\right)^2 + \cast{\cos^2\gamma} =1  ⟹  14+24+cos⁡2γ\displaystyle = 1 \implies \frac{1}{4} + \frac{2}{4} + \cast{\cos^2\gamma} =1  ⟹  cos⁡2γ\displaystyle = 1 \implies \cast{\cos^2\gamma} =14\displaystyle = \frac{1}{4}
(Watch out: taking the positive root cos⁡γ=+12\cast{\cos\gamma} = +\frac{1}{2} gives the acute angle γ=60∘\gamma = 60^\circ and zz-coordinate +5+5; because γ\gamma is obtuse, cos⁡γ\cast{\cos\gamma} must be negative.)
cos⁡γ\displaystyle \cast{\cos\gamma} =−12  ⟹  γ\displaystyle = \cast{-\frac{1}{2}} \implies \gamma =120∘\displaystyle = 120^\circ
(Watch out: a^=⟨12,22,−12⟩\cast{\hat{a}} = \cast{\left\langle \frac{1}{2}, \frac{\sqrt{2}}{2}, -\frac{1}{2} \right\rangle} is only the unit vector, so don't forget to multiply by ∣a∣=10\cast{|a|} = \cast{10}.)
a\displaystyle \cast{a} =10a^\displaystyle = \cast{10}\cast{\hat{a}} =10⟨12, 22, −12⟩\displaystyle = \cast{10}\cast{\left\langle \frac{1}{2},\, \frac{\sqrt{2}}{2},\, -\frac{1}{2} \right\rangle} =⟨5, 52, −5⟩\displaystyle = \cast{\left\langle 5,\, 5\sqrt{2},\, -5 \right\rangle}