The dot product of two vectors is calculated by multiplying corresponding elements and then adding them up. So, we have:
$$\mathbf{u} \cdot \mathbf{v} = \left(\frac{3}{5}\right) \cdot 1 + \left(-\frac{4}{5}\right) \cdot 2 = -\frac{1}{5}.$$
Show more…