Visual walkthrough — Dot product — formula, geometric meaning, work calculation
Before we begin, three plain words we will keep reusing:
Step 1 — The honest question: "how much of goes along ?"
WHAT. We draw two arrows, (blue) and (orange), tail-to-tail. We are not asking their lengths and we are not adding them. We ask one thing: if I only care about the direction points, how much of is helping in that direction?
WHY. This is the physical question hiding inside work, power, and projection. When you push a box, only the part of your push that goes along the floor moves it. So "how much of one arrow lies along another" is the quantity worth naming. Everything below is just answering this cleanly.
PICTURE. Look at the figure. The blue arrow leans away from the orange arrow by the angle . Imagine the sun shining straight down onto the line of : the blue arrow casts a shadow (green) that lies flat along 's direction. That shadow's length is our answer — "how much of goes along ."

Step 2 — The shadow has length (a right triangle appears)
WHAT. We find the exact length of that green shadow. Drop a straight line from the tip of perpendicular (at a clean ) down onto the line of . This makes a right triangle.
WHY. A right triangle is the one shape where the sides and the angle are locked together by fixed ratios. Dropping a perpendicular is the standard move to turn "a lean of " into a computable length — it is why trigonometry exists (see Trigonometry — cosine and components).
PICTURE. In the figure:
- The hypotenuse (longest side, blue) is itself — its length is .
- The adjacent side (green, lying along ) is the shadow we want.
- The opposite side (gray dashed, the perpendicular drop) closes the triangle.
- The angle at the tail, between hypotenuse and adjacent side, is exactly .

Now the definition of cosine — chosen on purpose because it is the ratio linking the angle to the adjacent side:
Rearranging for the side we want:
- is the full length of the arrow.
- is a dial between and that shrinks that length down to the shadow.
WHY cosine and not sine or tangent? Sine would give the perpendicular (gray) side — the part wasted, not the part aligned. Tangent is a ratio of the two legs and ignores the hypotenuse length entirely. We want aligned length, and that is adjacent-over-hypotenuse — cosine.
Step 3 — Multiply by : the dot product is born
WHAT. We now combine the shadow of with the length of by multiplying them. Call this product the dot product, written (a raised dot between the two arrows).
WHY. In physics the aligned amount rarely matters alone — it matters scaled by how much of there is. Work = (aligned force) × (distance travelled). So the natural quantity is shadow-of-A times length-of-B. Multiplying the two lengths gives one plain number — a scalar (no direction).
PICTURE. The green shadow () laid flat along , then stretched by the full length of (orange). The result is an area-like number, drawn as the shaded rectangle.

- — the part of that lies along .
- — how far that alignment stretches.
- Together: one number, the geometric form of the dot product.
Step 4 — The sign of the answer: walk from to
WHAT. The one moving part in is . The lengths are always positive, so the sign of the whole dot product is the sign of . We watch it across every case.
WHY. A reader must never meet a scenario we skipped. There are exactly three regions of the lean plus two knife-edges — five cases — and each one has a physical meaning we must show.
PICTURE. The figure sweeps around and plots how the shadow (and its sign) changes.

| Case | shadow direction | Meaning | |||
|---|---|---|---|---|---|
| same way | full, along | $+ | \vec A | ||
| leaning with | forward | positive | positive | partly helping | |
| dead across | shrinks to a dot | perpendicular | |||
| leaning against | backward | negative | negative | partly opposing | |
| opposite | full, backward | $- | \vec A |
Recall The perpendicular knife-edge
At exactly the shadow is a single point — zero length. So (for non-zero arrows) means, always and only, perpendicular. This is the test used everywhere: two vectors are at right angles their dot product is zero.
Step 5 — Degenerate case: what if an arrow has zero length?
WHAT. Suppose — an arrow of length , just a dot with no direction. What is ?
WHY. A formula you can trust must survive the empty case. And isn't even defined when one arrow has no direction, so we must decide the answer from the shadow idea, not from .
PICTURE. A dot casts no shadow. There is nothing of to lie along , so the aligned amount is , and .

The component form agrees instantly: every component of is , so . Both definitions handle the empty case cleanly.
Step 6 — The special arrows : dotting the "rulers" together
WHAT. We introduce two special vectors: points one unit to the right, points one unit up. Each has length (a "unit vector") and they sit at to each other — the two rulers we measure everything against (see Vectors — components and unit vectors).
WHY. If we can dot these rulers with each other, we can dot any two vectors, because every vector is just so-many-rights plus so-many-ups. This is the bridge from the picture-formula to the component-formula.
PICTURE. The two perpendicular unit arrows, and their four possible dot products.

Feed each pair through the geometric form from Step 3:
- Matched ruler with itself → angle → .
- Mismatched rulers → angle → .
Step 7 — Expand in components: the two formulas become one
WHAT. Write each vector in the rulers: and . Here is "how many rights," is "how many ups." Now dot them by multiplying every term of the first by every term of the second (just like expanding two brackets — the dot product distributes over addition because shadows add).
WHY. We want a formula that needs no protractor — only the numbers you can read straight off a grid. Step 6 gives us exactly the tools: each little product carries a ruler-dot-ruler that is either or .
PICTURE. The four cross-multiplied terms, colour-coded: two survive (green, the s), two vanish (gray, the s).

The two terms disappear; the two terms stay:
- — how the two "rightward parts" line up.
- — how the two "upward parts" line up.
- Their sum is the same number Step 3 got geometrically — no angle in sight.
The one-picture summary
Everything above compressed into a single frame: the arrows, the shadow, the right triangle giving , the stretch by , and the same answer read off the grid as .

Recall Feynman retelling — the whole walkthrough in plain words
I drew two arrows from the same dot. I asked only one thing: how much of the first arrow goes the same way as the second? To answer, I shone a light straight down onto the second arrow's line and measured the shadow of the first — a right triangle popped up, and its base came out to (length of first) times of the lean. Then I stretched that shadow by the full length of the second arrow, and that product I named the dot product — one plain number. I watched the number as I swung the first arrow around: full and positive when they point the same way, shrinking to zero exactly when they're at right angles, then going negative when the first leans backward. A zero-length arrow casts no shadow, so its dot product is zero — the formula never breaks. Finally I noticed every arrow is just so-many-rights plus so-many-ups; dotting the rights-and-ups rulers gives for like-with-like and for cross-terms, so all the mess collapses to — the same number, now from the grid alone. Two roads, one destination: how much one arrow goes along another.
Connections
- Dot product — formula, geometric meaning, work calculation (parent)
- Trigonometry — cosine and components (the right-triangle shadow)
- Vectors — components and unit vectors (the rulers )
- Projection of a vector (the shadow is the projection)
- Work-Energy Theorem (aligned force × distance)
- Circular motion (velocity ⟂ centripetal force ⇒ zero dot)
- Cross product — area and torque (the perpendicular partner operation)