We know how to add two vectors and how to stretch a vector by a number, and now we need a way to multiply two vectors to measure how much they work together.
1
What the Dot Product Means
When a force pulls on a cart along a track at an angle θ, only the component of the pull along the track does work as the cart moves along the track. We find the dot product of two vectors A and B, written A⋅B, by multiplying the signed shadow component of one vector along the other by the length of that other vector. The component is positive when the shadow points along the other vector and negative when it points in the opposite direction.
What the Dot Product Means
For an acute angle θ, right-triangle trigonometry gives the shadow's length as ∣A∣cosθ. The signed shadow component is ∣A∣cosθ for an obtuse angle too, where it is negative:
A⋅B=shadow of A along B∣A∣cosθ∣B∣=∣A∣∣B∣cosθ
Because cosθ changes sign as the angle opens past a right angle, the sign of A⋅B tells us right away whether two vectors are helping or fighting each other:
Acute angle (θ<90∘):cosθ>0, so the shadow points forward along B and A⋅B>0.
Right angle (θ=90∘):cos90∘=0, so the shadow shrinks to a single point and A⋅B=0.
Obtuse angle (θ>90∘):cosθ<0, so the shadow flips backward against B and A⋅B<0.
With the vector lengths fixed, as the angle θ between A and B decreases from 90∘ toward 0∘, the forward shadow of A gets longer. At 90∘ it is zero, and past 90∘ it points backward, making A⋅B negative.
The shadow A casts along the line of B sets both the size and the sign of their dot product.
2
The Grid Method
When two vectors are given by their coordinates on an x-y grid, such as A=⟨3,2⟩=3i+2j and B=⟨4,1⟩=4i+1j, finding their lengths and the angle between them just to compute A⋅B takes too much work. Instead, we can break each vector into its horizontal and vertical steps and see how the pieces work together.
The Grid Method
Text solution
Multiply the horizontal components and the vertical componentsBecause a horizontal step and a vertical step meet at 90∘ and cast zero shadow on each other, only matching directions work together.
A⋅B=(3)(4)+(2)(1)
Add the two productsCombine the horizontal teamwork and the vertical teamwork into a single number.
=12+2=14
For any two vectors A=⟨x1,y1⟩=x1i+y1j and B=⟨x2,y2⟩=x2i+y2j, the grid method gives the exact same dot product as the shadow formula:
A⋅B=horizontalx1x2+verticaly1y2
3
Dot Product Expressions and Length
Adding or scaling vectors produces a new vector, but taking a dot product turns two vectors into a plain number (a scalar). Let's see what that means when dot products appear inside larger expressions like (A⋅B)C, and what happens when we dot a vector with itself, A⋅A.
Dot Product Expressions and Length
ABC=⟨3,2⟩=⟨4,1⟩=⟨1,−2⟩
(A⋅B)CA⋅A=?=?
Text solution
Find the dot product inside the parentheses firstFor A=⟨3,2⟩,B=⟨4,1⟩, and C=⟨1,−2⟩, replace A⋅B with the number 14, which then scales vector C.
(A⋅B)C=scalar14⟨1,−2⟩=⟨14,−28⟩
Check why (A⋅B)⋅C is impossibleOnce A⋅B turns into the plain number 14, writing 14⋅C makes no sense because a plain number has no direction and cannot cast a shadow on a vector.
Dot A with itself to find its length squaredA vector lines up at 0∘ with itself (cos0∘=1), so dotting A=⟨3,2⟩ with itself squares each component and adds them up.
A⋅A=(3)(3)+(2)(2)=32+22=13
Because x2+y2 is the Pythagorean theorem before taking the square root, dotting any vector with itself gives the square of its length:
A⋅A=∣A∣2and∣A∣=A⋅A
4
Finding the Angle Between Two Vectors
Now that the grid method gives us A⋅B in seconds, we can use it alongside the shadow formula to find the angle θ between two vectors on a grid, such as A=⟨3,4⟩ and B=⟨4,1⟩.
Finding the Angle Between Two Vectors
Text solution
Find the actual teamwork using the gridMultiply matching components of A=⟨3,4⟩ and B=⟨4,1⟩ and add them.
A⋅B=(3)(4)+(4)(1)=12+4=16
Find the maximum possible teamwork from the lengthsCompute how much the arrows would work together if they pointed in the exact same direction.
∣A∣∣B∣∣A∣∣B∣=32+42=5,=42+12=17,=517
Compare actual teamwork to the maximum possible to get cosθDivide A⋅B by ∣A∣∣B∣.
cosθ=∣A∣∣B∣A⋅B=51716
Take the inverse cosine to find the angleUse a calculator in degree mode.
θ=cos−1(51716)≈39∘
So A and B meet at about a 39∘ angle, giving 16 out of their maximum possible 517≈20.6 teamwork.
5
Perpendicular, Parallel, or Neither
Often we don't need the exact angle between two vectors. We just want to know whether they meet at a 90∘ right angle (perpendicular, or orthogonal), lie along the same line direction at 0∘ or 180∘ (parallel), or meet at an angle in between (neither).
Perpendicular, Parallel, or Neither
Text solution
Check ⟨−2,6⟩ and ⟨3,1⟩ for a zero dot productMultiply matching components and add.
(−2)(3)+(6)(1)=−6+6=0
Because the horizontal pull backward of −6 completely cancels the vertical teamwork of +6, the shadow has zero length and the vectors are perpendicular (90∘).
Check ⟨3,−2⟩ and ⟨−6,4⟩ for a common scaling factorSee if a single number multiplies both components of the first vector into the second.
⟨−6,4⟩=−2⟨3,−2⟩
Because the second vector is the first vector stretched by 2 and flipped backward (180∘, where A⋅B=−26=−∣A∣∣B∣), the vectors are parallel.
Check ⟨3,4⟩ and ⟨4,1⟩ against both testsTheir dot product isn't zero, and the number 34 that multiplies 3 into 4 does not multiply 4 into 1.
⟨3,4⟩⋅⟨4,1⟩3×34=16=0,=4 but 4×34=1
So the vectors are neither perpendicular nor parallel.
6
Vector Projection and Splitting a Vector
Earlier we used the length of the shadow of A=⟨3,2⟩ on the track vector B=⟨4,1⟩. Now we want to find the actual coordinates of that shadow vector, called the vector projection of A onto B, and split A into two vectors that add back up to A: a piece A∥ parallel to B and a piece A⊥ perpendicular to B.
Vector Projection and Splitting a Vector
Text solution
Compare how much A works with B to how much B works with itselfThis fraction tells us how long the shadow is compared to the track vector B.
B⋅BA⋅B=42+12(3)(4)+(2)(1)=1714
Scale the track vector B by that fraction to get the shadow vector A∥Multiply B=⟨4,1⟩ by 1714.
A∥=projBA=fraction of B(B⋅BA⋅B)B=1714⟨4,1⟩=⟨1756,1714⟩
Subtract the shadow piece from A to get the perpendicular piece A⊥Since A∥+A⊥=A, rewrite ⟨3,2⟩ with a denominator of 17 and subtract.
So A=⟨3,2⟩ splits into A∥=⟨1756,1714⟩ along the track B and A⊥=⟨−175,1720⟩ at 90∘ to the track (A⊥⋅B=0), and the two pieces add directly back to ⟨3,2⟩.
For every position of A on the grid, the shadow vector A∥ stays a scaled multiple of the track vector B, and A⊥ has dot product zero with B. The two pieces add head-to-tail to form A.
Every vector A splits into two pieces that add back up to A: a multiple of B along the track, and a 90∘ piece off the track.
7
Finding Work with the Dot Product
When a constant force F acts on an object along a straight displacement vector d, the work done by the force is its signed component along the displacement times the distance moved. This is the dot product Work=F⋅d.
Finding Work with the Dot Product
Text solution
When given force, distance, and angle (30 lb pull at 25∘ over 50 ft), use the shadow methodMultiply the forward component of the force by the distance moved.
When given coordinates (F=⟨10,4⟩ lb from (1,2) to (6,5) in feet), find the displacement vector d firstSubtract the starting coordinates from the ending coordinates to get the horizontal and vertical motion steps.
d=⟨6−1,5−2⟩=⟨5,3⟩
Dot the force vector with the displacement vector using the gridMultiply matching components and add them up.
Work=F⋅d=(10)(5)+(4)(3)=50+12=62 foot-pounds
Key concepts
Before we practice, let's pull together how the shadow picture and the grid shortcut connect across every type of dot product problem.
Lesson Summary
Every question comes back to two ways of writing the same number, A⋅B:
Computing A⋅B
If you have lengths and the angle θ, multiply the signed shadow component by the track length: A⋅B=∣A∣∣B∣cosθ (for ∣A∣=3,∣B∣=5, and ∣A∣cosθ=3,A⋅B=15). If you have coordinates, don't find lengths or angles. Just multiply matching components and add: for ⟨3,2⟩ and ⟨4,1⟩,A⋅B=(3)(4)+(2)(1)=14.
Expressions and length
A⋅B is a plain number, so (A⋅B)C=14C scales C, whereas (A⋅B)⋅C is impossible. Dotting a vector with itself squares its length without a square root: B⋅B=∣B∣2=42+12=17.
Perpendicular, parallel, or the angle θ
For two nonzero vectors, check perpendicular first with the grid dot product (⟨−2,6⟩⋅⟨3,1⟩=0 means 90∘). To check if vectors are parallel, check if one vector is a single number times the other (⟨−6,4⟩=−2⟨3,−2⟩). If neither holds, find the angle by comparing the dot product to the product of the lengths:
cosθ=∣A∣∣B∣A⋅B
Projection and splitting a vector
To project A=⟨3,2⟩ onto the track B=⟨4,1⟩, compare A⋅B to B⋅B and scale B:
A∥=projBAA⊥=(B⋅BA⋅B)B=1714⟨4,1⟩,=A−A∥
Work (Work=F⋅d)
Use ∣F∣∣d∣cosθ when given force, distance, and angle; when given points like (1,2) to (6,5), find d=⟨6−1,5−2⟩=⟨5,3⟩ and dot it with F on the grid.
8
Practice
1
Find the dot product of A=5i−3j and B=−2i+4j.
Don't leave i and j in your answer as −10i−12j. A dot product adds the horizontal and vertical products into a single number, and keep the negative signs on both products so you don't get +2 or +22.
i and j are the horizontal and vertical steps. Multiply matching components and add them. (Watch out: don't leave i and j in your answer as −10i−12j. A dot product adds the horizontal and vertical products into a single number, and keep the negative signs on both products so you don't get +2 or +22.)
−22
2
Two vectors A and B have lengths ∣A∣=8 and ∣B∣=5, and the angle between them is 120∘. Find A⋅B.
Because 120∘ is past 90∘,cos120∘=−21 is negative; forgetting the negative sign gives +20, and leaving your calculator in radian mode gives 32.6.
You have the two lengths and the angle between them, so use the shadow formula and check which way the shadow points when θ>90∘.(Watch out: because 120∘ is past 90∘,cos120∘=−21 is negative; forgetting the negative sign gives +20, and leaving your calculator in radian mode gives 32.6.)
−20
3
Let A=⟨2,−3⟩,B=⟨4,1⟩, and C=⟨−1,2⟩. Find (A⋅B)C and A⋅A, and explain why (A⋅B)⋅C makes no sense.
Compute the number inside the parentheses A⋅B first, then use that number to scale C.(Watch out: when computing A⋅A, squaring −3 gives (−3)2=+9, whereas writing −32=−9 gives the wrong answer 4−9=−5.)
(A⋅B)C=⟨−5,10⟩,A⋅A=13, and (A⋅B)⋅C makes no sense because A⋅B=5 is a plain number (a scalar), so you cannot take its dot product with vector C.
4
Determine whether each pair of vectors is perpendicular, parallel, or neither: (a) ⟨4,−6⟩ and ⟨3,2⟩, (b) ⟨−4,10⟩ and ⟨6,−15⟩, (c) ⟨2,5⟩ and ⟨5,2⟩.
Check whether the dot product is 0 first; if it isn't, check whether a single number multiplies both components of the first vector into the second. (Watch out: in (b), getting a nonzero dot product of −174 only rules out perpendicular, not parallel, so check the multiplier −1.5; in (c), swapped components with the same signs give a dot product of 20, not 0.)
(a) Perpendicular (their dot product is 0), (b) Parallel (⟨6,−15⟩=−1.5⟨−4,10⟩), (c) Neither (their dot product is 20=0 and neither is a scalar multiple of the other).
5
Find the angle θ between A=⟨2,5⟩ and B=⟨4,−1⟩ to the nearest degree.
Remember to take the square roots when finding the lengths ∣A∣=29 and ∣B∣=17. Dividing by 29×17=493 without square roots gives cos−1(4933)≈90∘.
Divide the actual dot product from the grid by the maximum teamwork ∣A∣∣B∣ the two vectors could have. (Watch out: remember to take the square roots when finding the lengths ∣A∣=29 and ∣B∣=17. Dividing by 29×17=493 without square roots gives cos−1(4933)≈90∘.)
θ=cos−1(4933)≈82∘
6
Let A=⟨1,4⟩ and B=⟨2,1⟩. Find the vector projection of A onto B, and split A into a vector A∥ parallel to B and a vector A⊥ perpendicular to B.
Divide by B⋅B=5 and scale B. Dividing by A⋅A=17 and scaling A projects onto the wrong vector and gives ⟨176,1724⟩.
B is the track vector, so compare A⋅B to B⋅B, scale B by that fraction to get A∥, and subtract from A.(Watch out: divide by B⋅B=5 and scale B. Dividing by A⋅A=17 and scaling A projects onto the wrong vector and gives ⟨176,1724⟩.)
A∥=projBA=⟨512,56⟩ and A⊥=⟨−57,514⟩
7
You pull a wagon 80 feet along flat, horizontal ground with a force of 25 pounds on a handle held at a 35∘ angle above the ground. How much work is done, to the nearest tenth of a foot-pound?
Using sin35∘ instead of cos35∘ uses the wasted upward pull and gives 1147.2 foot-pounds, and forgetting the angle altogether gives 2000 foot-pounds.
Only the horizontal shadow of the 25-pound pull moves the wagon along the 80-foot track, so use cos35∘ for the side adjacent to 35∘.(Watch out: using sin35∘ instead of cos35∘ uses the wasted upward pull and gives 1147.2 foot-pounds, and forgetting the angle altogether gives 2000 foot-pounds.)
2000cos35∘≈1638.3 foot-pounds
8
A constant force F=8i−3j pounds acts on an object as it moves in a straight line from the point (2,−1) to the point (7,3), where distances are in feet. How much work does the force do?
In the vertical step 3−(−1)=4, dropping the negative sign on −1 gives a vertical step of 2 and a wrong answer of 40−6=34 foot-pounds.
Subtract the starting point from the ending point to find the displacement vector d, then dot F with d.(Watch out: in the vertical step 3−(−1)=4, dropping the negative sign on −1 gives a vertical step of 2 and a wrong answer of 40−6=34 foot-pounds.)