If two opposite vertices of a square are (1, 2) and (5, 8), find the coordinates of its other two vertices and the equations of its sides.
Let A(1, 2), C(5, 8), B(x1,y1), D(x2,y2)
Slope of AC =8−25−1=64=32
Let m be the slope of a line making an angle 45∘ with AC.
∴tan 45∘=∣∣∣m1−321+m×32∣∣∣
1=m−321+3m2
1+3m2=m−32 or, 1+3m2=−(m−32)
3m2−m=−32−1 or, 1+3m2=−m+32
12m=−52 or, 3m2+m=32−1
m=−5 or, 5m2=12
m=15
Consider the following figure:
Hence, equation of AD.
y−2=−5(x−1)
y−2=−5x+5
5x+y=7
Equation of CD,
y−8=15(x−5)
y−8=x5−1⇒y−8=x−55
=5y−40=x−5⇒5y−x=35
⇒x−5y+35=0
Hence co-ordinates are (6, 3), (0, 7)
The equation of AB is
y−2=15(x−1)
⇒5y−10=x−1
x−5y+9=0
And the equation of BC is
y−8=−5(x−5)
⇒y−8=−5x+25
5x+y−33=0