Question
Question: The equations of diagonals of the square formed by the lines x=0, y=0, x=1, y=1 are-...
The equations of diagonals of the square formed by the lines x=0, y=0, x=1, y=1 are-
Solution
Hint: To solve this problem, first find the coordinates of the vertices of the square and then find the diagonals using those points using the equation-
y−y1=x2−x1y2−y1(x−x1)
Complete step-by-step answer:
From the equations, it is clear that the vertices of the square are-
A(0,0), B(1,0), C(1,1), D(0,1)
To find the diagonals, we have to find the equations of the line AC and BD.
For line AC, we can write that-
y−0=1−01−0(x−0)y=xx−y=0
For line BD, we can write that-
y−0=0−11−0(x−1)y=−x+1x+y−1=0
These are the required equations of the diagonals.
Note: We can also use the form y=mx+c to find the equation of the lines, where m is the slope and c is the y-intercept. For AC, slope is clearly 1 and intercept is 0, so equation becomes-
y=x
For BD, slope is -1 and intercept is 1, so equation becomes-
y=-x+1
x+y-1=0