Show that \vec u * \vec v = u_1 v_1 + u_2 v_2 = |\vec u||\vec v|costheta using the law of cosines