Let ABCD be a square and two opposite vertices of it are A(-1, 2) and C(3, 2).
Let (x1,y1), (x2,y2) be the coordinate of vertex B and D respectively. We know that in a square all sides are equal to each other.
∴AB=BC√(x1+1)2+(y1–2)2=√(x1−3)2+(y1–2)2
Squaring on both sides we get
(x1+1)2+(y1−2)2=(x1−3)2+(y1−2)2⇒x21+2x1+1=x21−6x1+9⇒8x1=8⇒x1=1
We know that the square, in a ΔABC,
AB2+BC2=AC2[√(1+1)2+(y1–2)2]2+[√(1−3)2+(y1–2)2]2=[√(3+1)2+(2–2)2]2
⇒4+y21+4−4y1+4+y21−4y1+4=16
⇒2y21+16−8y1=16⇒2y21−8y1=0⇒y1(y1−4)=0⇒y1=0 or 4
We know that in a square, the diagonals are of equal length and let O be the mid-point of AC. It will also be the mid-point of BD.
O = Mid point of AC =(−1+32, 2+22)=(1,2)
Mid point of AC = Mid point of BD (1+x22,y1+y22)=(1,2)
⇒1+x22=1
x2=2 And y1+y22=2⇒y1+y2=4If y1=0 or 4Then y2=4 or 0
Therefore, the required coordinates are B (1, 0) or B (1,4) and D (2, 4) or D (2,0)