Linear Algebra

Dot Product

Drop b perpendicularly onto a and you get a shadow. The dot product is the length of a times that shadow, and nothing else. Drag the arrows and watch the number follow the picture.

abshadow of b on a

Drag an arrowhead to move it · drag empty space to pan · scroll to zoom

—
—

Values & calculations
length of a—
length of b—
shadow of b on a—
angle between—

What to observe

  1. At right angles the shadow of b on a vanishes and a · b = 0. Nothing of one goes along the other.
  2. Swing b past 90°: the foot of the perpendicular lands behind the origin, the shadow counts as negative, and so does the product.
  3. Give a length 1 and a · b is the shadow, with no scaling left over: "how much of b lies along this direction".
  4. In 3D one more term azbz joins the component formula, and the picture is the same shadow.

Shortcuts:r reset · f fullscreen