Dot Product Formula - We're just using the distance formula with those coordinates. Dot Product Formula : In the figure below, vectors v and u have same initial point the origin o(0,0).