2. for $\displaystyle a = (x_1,y_1)$and $\displaystyle b = (x_2,y_2)$
$\displaystyle a . b = x_1\times x_2+y_1\times y_2$