Section 3.8 Visualizing the Dot Product
The figure below shows two computations of the dot product of the given vectors, using the geometric formula (top) and the algebraic formula (bottom). The magnitude of each vector and the angle between them are shown for the first computation, whereas the second shows the horizontal and vertical components. The components are color-coded; the green bars in the algebraic representation show the products of corresponding components.