I'm given the coordinates of two vertices of a square: $(5,1)$ and $(8,5)$ and I'm asked to find the other two.
I suppose there are two squares which meet these conditions. I can obtain a point $(x,y)$ by solving two equation derived from the distance formula for the aforementioned points. One equation implies that the side length of the square is $5$ and the other implies that the diagonal is $5 \sqrt{2}$
$$x^2-16x+y^2-10y+64=0$$
$$x^2-10x+y^2-2y-24=0$$
Solving these equations would give me two points each in a different square, and I can do the same for the other two points. But this approach is tiring and time-consuming. Is there a simpler approach?