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
Dot product—
—
opposed—right angles0same direction—
View
Scenario
Vector a
Vector b
Values & calculations
length of a—
length of b—
shadow of b on a—
angle between—
What to observe
- At right angles the shadow of b on a vanishes and a · b = 0. Nothing of one goes along the other.
- Swing b past 90°: the foot of the perpendicular lands behind the origin, the shadow counts as negative, and so does the product.
- Give a length 1 and a · b is the shadow, with no scaling left over: "how much of b lies along this direction".
- In 3D one more term azbz joins the component formula, and the picture is the same shadow.
Shortcuts:r reset · f fullscreen