The Dot Product
The dot product multiplies matching components and adds them up, and the number you get tells you how much two vectors point the same way: . Zero means they're perpendicular.
What the symbols mean
- Angle between them
From 0 to π. The dot product is positive for acute angles, zero at right angles, negative for obtuse.
What the symbols mean
- Scale factor
How many copies of a make up the shadow of b on a: the part of b that points along a.
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. It's called "dot" just because we write it with a dot, . It's good for finding angles, checking whether two directions are perpendicular, and working out how much of a force actually helps move something. The formula looks like a mouthful, but it's three simple pieces: and (how long each arrow is) and (a score for how aligned they are: for the same way, for sideways, for opposite). Multiply them and you're done; the rest of the lesson is how to use it.
We know how to add vectors and scale them by numbers. Can we multiply two vectors? There are two useful ways, and this lesson is the first one.
Two formulas, one number. The dot product has two faces. The component formula, , is how you compute it. The cosine formula, , is what it means. It's a little surprising they agree; the reason is the law of cosines applied to the triangle with sides , and . Put the two together and you can find the angle between any two vectors without drawing anything:
Orthogonal (perpendicular) vectors have , because . You'll use this test more than anything else in vector geometry: whenever a problem says "perpendicular," set a dot product to zero.
A quick sanity check on the meaning: . A vector points exactly the same way as itself, so , and you're left with its length times its length.
Projections. Think of as the length of 's shadow on the line through . Dividing the dot product by gives exactly that, and dividing by once more turns it into a multiple of . That's the projection formula above. It splits into a piece along and a piece perpendicular to it.
Work. This is where the shadow idea earns its keep. A constant force moving an object along does work . Only the part of the force along the motion counts, and the dot product picks out exactly that part.
See it
Worked examples
Find the angle between and .
- 1
The dot product is , and the lengths are and .
Practice
Type your answer and check it. Solve them all to complete the lesson.
Find .
Find the angle between and , in degrees.
Find so that is perpendicular to .
Find the projection of onto .
A force N moves an object along m. How much work is done?
A rope pulls a sled m across flat snow with a force of N, angled above the ground. How much work does the rope do?
The hardest one here. Get it, and you've got this lesson.
In a cube, find the angle between a long diagonal (from a corner to the opposite corner) and one of the edges that meets it, in degrees.
Where it's used
Lighting in 3D graphics uses (surface normal dot light direction) to decide how bright each pixel is, and search engines compare documents by the cosine of the angle between word-count vectors.