Two ways to compute the same thing. The algebraic definition multiplies components and adds. The geometric definition multiplies magnitudes and the cosine of the angle. Drag the vector tips to explore — both sides always agree.