If O is the origin and the coordinates of A and B are (x1, y1) and (x2, y2) respectively then OA × OB cos∠AOB is equal to
x1y1+x2y2
x1x2+y1y2
x1y2+x2y1
x1x2−y1y2
2OA×OBcosAOB=(OA)2+(OB)2−(AB)2