Find the equations of the diagonals of the square formed by the lines x = 0, y = 0, x = 1 and y = 1.
Given:
The square formed by the lines x = 0, x = 1, y = 0 and y = 1.
Concept Used:
The equation of the line passing through the two points ( x1, y1) and ( x2, y2)
To find:
The equation of diagonal of the square.
Explanation:
Clearly, the vertices of the square are A(0, 0), B(1, 0), C(1, 1) and D(0,1) .
The diagonal passing through A (0, 0) and C(1, 1) is
Formula used:
⇒ y = x
And, the diagonal passing through B(1, 0) and D(0, 1) is
Formula used:
⇒ y = -x + 1
⇒ x + y = 1
Hence, the equation of diagonals are y = x and x + y = 1.