Find the equations of the diagonals of the square formed by the lines x = 0, y = 0, x = 1 and y = 1.
Suppose ABCD is the required square from by four vertices having diagonals AC and BD.The equation of the diagonal AC is given byx−0=(y−0)1−01−0⇒ x=yThe equation of the diagonal BD is given byx−1=(y−0)1−00−1⇒ x−1=−y⇒ x+y=1