<aside> 💡 For two general vectors $(x_1,y_1)$ and $(x_2,y_2)$ in $\R^2$, the dot product of these two vectors is a scalar computed as follows: $(x_1,y_1).(x_2,y_2)=x_1x_2+y_1y_2$
</aside>
<aside> 💡 Length of a vector $v(x,y)$ is given by $d=\sqrt{x^2+y^2}$
</aside>
<aside> 💡 The length of a vector is the square root of the dot product of the vector with itself.
</aside>
Let $u$ and $v$ be two vectors in $\R^2$. Then we can compute the angle $\theta$ between the vectors $u$ and $v$ using the dot products as:
The angle between the vectors $u$ and $v$ in $\R^3$ is the angle between them computed by passing a plane through them.