The equations of the diagonals of square formed by lines x =0 , y = 0, x = 1 and y = 1 are
y=x,y+x=1
y=x,x+y=2
2y=x,y+x=1/3
y=2x,y+2x=1
The coordinates of the vertices of the square are A(0, 0), B(0, 1), C(1, 1), and D(1, 0).
Now, the equation of AC is y = x and that of BD is
y−1=−11(x−0) or x+y=1