The Dot Product and Angles
The dot product multiplies matching components and adds, , and that number equals . So it measures how much two vectors point the same way: zero means perpendicular, and with a force and a motion it's the work done.
What the symbols mean
- Dot product
A single number, not a vector.
What the symbols mean
- Angle between
The angle between the arrows when they start at the same point, from 0 to π.
What the symbols mean
- Work
In joules (N·m).
- Force
A constant force, in newtons.
- Displacement
The straight-line motion, in meters.
Explanation
The dot product is simply a way to multiply two vectors and get a single number that says how much they point the same way. The recipe is easy: multiply the across parts, multiply the up parts, add. The surprise is that this equals , the two lengths times the cosine of the angle between them. So it's big and positive when the arrows agree, zero when they're perpendicular, and negative when they point against each other. It's named for the dot in . There's a derivation behind it, but it's one you've basically done already.
Why the two formulas agree. Draw and from the same point. The arrow from the tip of to the tip of is , so the three make a triangle with angle between and . The Law of Cosines on that triangle says
Now compute the left side from components instead:
The and match on both sides, so what's left must match too: . The easy recipe secretly knows the angle.
Angles and perpendicular vectors. Solve for the angle: . Arccos answers from to , exactly the possible angles between two arrows, so there's never a second answer to look for. In particular, two nonzero vectors are perpendicular (orthogonal) exactly when , since . For example : swapping the components and flipping one sign turns any vector a quarter turn.
Projections: the part that points along. Shine a light straight down onto the line of ; the shadow of has length . Multiply and divide by and that's , the scalar component of along . It's negative when points backward along . (The shadow as an arrow, the vector projection, is that number times the unit vector .)
Work. A force only does work with the part of it that points along the motion. Pull a sled with a rope tilted up at : the upward part of your pull lightens the sled a little but moves it forward not at all. So the work is (the force's component along the motion) times (the distance), , which is exactly . A force at more than to the motion, like friction or brakes, does negative work: it takes energy out. There's an animation further down where the rope tilts.
A common mistake. It's tempting to multiply component by component and stop: . It isn't a vector at all. You add those products: , one number. The dot product turns two vectors into a scalar, and that's what lets it hold an angle or an amount of energy.
The same formula with a third component works in space (see The Dot Product), and when the force changes along the way, work becomes an integral (see Work).
See it
Worked examples
Find the angle between and .
- 1
Start with the dot product: multiply matching components and add. .
A worker drags a crate m across a level floor by pulling on a rope with N at above horizontal. How much work does the pull do?
- 1
The motion is horizontal and the force is tilted up from it, so the angle between force and motion is .
Practice
Type your answer and check it. Solve them all to complete the lesson.
Find .
Find the angle between and , in degrees.
For what is perpendicular to ?
Find the scalar component of along .
A child pulls a wagon m along a level path with a force of N on a handle tilted above horizontal. How much work is done, in kJ to two decimal places?
Wind pushes on a sailboat with a force N while the boat moves m. How much work does the wind do, in kJ?
A triangle has vertices , and . Find the angle at , in degrees to two decimal places.
The hardest one here. Get it, and you've got this lesson.
A crate slides down a straight ramp from to , in meters. Gravity pulls on it with N straight down, and a steady wind pushes on it with N. Find the total work done by these two forces (J), and the angle between the wind force and the crate's motion (degrees, two decimal places).
Where it's used
Engineers compute work and power as for anything driven at an angle: a tow cable, a conveyor, wind on a turbine blade. Solar panel output depends on the dot product of the sun's direction with the panel's normal (the loss when the sun is low). Graphics engines shade every pixel with a dot product between the surface direction and the light, and search engines and recommendation systems compare documents by the cosine of the angle between their vectors.