So for example, the distance formula, if I want to know the distance between some point x,y and the point 0,0, what you do is, you take the difference of the x's-- so x minus 0-- you square that, and then you add that to the distance between the y's squared-- so that's one y point minus 0y-- y is equal to 0-- square that, and that is equal to the distance squared.