AP® Precalculus · Unit 4 · Topic 4.8

The Dot Product

The dot product multiplies two vectors' matching components and adds them up, producing a single number that measures how much the vectors point the same direction.

Given vectors (a, b) and (c, d), the dot product is ac + bd. That's the whole computation: multiply matching components, add the results. But the reason it's worth computing is what it reveals about direction. The same quantity also equals |u| |v| cos(theta), the product of the two magnitudes and the cosine of the angle between them. Set those two expressions equal and you can solve for theta, turning raw coordinates into an angle.

Why does that formula work? Think of one vector as a ruler and the other as something you're measuring with it. The dot product captures how much of one vector lies along the direction of the other. When the vectors point the same way, cos(theta) is near 1 and the dot product is large and positive. When they point opposite ways, cos(theta) is near -1 and the dot product is large and negative. When they're perpendicular, cos(theta) = 0, so the dot product collapses to zero no matter how long the vectors are.

That last case is where the dot product connects to everything else in this unit: it's the algebraic test for perpendicularity, no protractor needed. It also sets up projections, where you use the dot product to find how much of one vector points along another. Watch the direction of travel here: vectors in, angle out. Matrices, next, take a vector in and give you a new vector out, a different kind of transformation entirely.

Key terms

Dot product
A number formed by multiplying corresponding components of two vectors and adding the results.
Magnitude
The length of a vector, written |v|.
Perpendicular vectors
Two vectors that meet at a 90 degree angle, which happens exactly when their dot product is zero.
Angle between vectors
The value theta satisfying cos(theta) = (dot product) / (|u| |v|).

Watch it explained

  1. How it worksHow does the dot product equal the two magnitudes multiplied by the cosine of the angle?
  2. Worked exampleFind the angle between (3, 4) and (-4, 3) using the dot product.
  3. Common mistakeWhy doesn't a dot product of zero mean one of the vectors has to be zero?

Check yourself

Your turn1 of 2
Find the dot product of (4, 3) and (8, -4).

End of topic.