The Dot Product as a Projection
Problem
Visualize how A · B = |A| |B| cos(θ) represents the projection of one vector onto another.
Explanation
The dot product of two vectors has two equivalent definitions, and reconciling them is one of the most beautiful results in vector algebra.
Algebraic:
Geometric:
The geometric form has a wonderful interpretation: is the length of the projection of onto (i.e., the "shadow" of on the line through ). Multiplied by , the dot product measures how much goes in the direction of .
Step-by-Step Solution
Given: and .
Find: The dot product, the angle between them, and the projection of onto .
Step 1 — Compute the dot product algebraically.
Step 2 — Compute the magnitudes.
Step 3 — Use the geometric form to find the angle.
Step 4 — Compute the projection of onto .
The scalar projection is:
So the "shadow" of on the line through has length 2.
Multiplying by the unit vector gives the vector projection:
Step 5 — Verify the equivalence of the two formulas.
Both give the same answer: .
Step 6 — Special cases.
- ⇔ → vectors are perpendicular.
- ⇔ → vectors point in "similar" directions.
- ⇔ → vectors point in "opposite" directions.
Answer:
The dot product 10 is the product of and the scalar projection of onto (which is 2). Geometrically, the dot product measures how much extends in the direction of .
Try It
- Adjust the components of B to see how the projection changes.
- When the angle reaches 90°, the dot product hits zero (perpendicular vectors).
- When aligns perfectly with , the projection equals and the dot product is maximum.
- The HUD shows both forms of the dot product and confirms they always agree.
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.