Dot Product Formula Explained