Equations of diagonals of squares formed by lines \[x=0\], \[y=0\], \[x=1\], and \[y=1\] are
A. \[y=x,\text{ }y+x=1\]
B. \[y=x,\text{ }x+y=2\]
C. \[2y=x,\text{ }y+x=\dfrac{1}{3}\]
D. \[y=2x,\text{ }y+2x=1\]
Answer
273.9k+ views
Hint: In the question, we are to find the equations of diagonals of a square formed by the given lines. Using the given equations of lines, a square is formed and we can able to find out its vertices. Then, the diagonals are calculated by the two points form.
Formula Used: The equation of the line, that is passing through $({{x}_{1}},{{y}_{1}})$ and $({{x}_{2}},{{y}_{2}})$ is
$y-{{y}_{1}}=\dfrac{{{y}_{2}}-{{y}_{1}}}{{{x}_{2}}-{{x}_{1}}}(x-{{x}_{1}})$
Where $m=\dfrac{{{y}_{2}}-{{y}_{1}}}{{{x}_{2}}-{{x}_{1}}}$ is said to be the slope of the line.
Complete step by step solution: Given that, a square is formed by the lines
\[\begin{align}
& x=0 \\
& y=0 \\
& x=1 \\
& y=1 \\
\end{align}\]
Plotting these in the graph we get the required vertices as below:

Then, the vertices formed by these lines are:
$\begin{align}
& A(0,0) \\
& B(0,1) \\
& C(1,1) \\
& D(1,0) \\
\end{align}$
Then, the required diagonals are $\overleftrightarrow{AC}$ and $\overleftrightarrow{BD}$.
By using the equation of line formula (with two points),
$y-{{y}_{1}}=\dfrac{{{y}_{2}}-{{y}_{1}}}{{{x}_{2}}-{{x}_{1}}}(x-{{x}_{1}})$
For the diagonal $\overleftrightarrow{AC}$, the vertices are $A(0,0);C(1,1)$
So, the equation of the diagonal is,
$\begin{align}
& y-0=\dfrac{1-0}{1-0}(x-0) \\
& \Rightarrow y=x\text{ }...(1) \\
\end{align}$
For the diagonal $\overleftrightarrow{BD}$, the vertices are $B(0,1);D(1,0)$
So, the equation of the diagonal is,
$\begin{align}
& y-1=\dfrac{0-1}{1-0}(x-0) \\
& \Rightarrow y-1=-x \\
& \Rightarrow x+y=1\text{ }...(2) \\
\end{align}$
Therefore, the required diagonal lines are $y=x;x+y=1$.
Option ‘A’ is correct
Note: Here we may go wrong with the vertices. For finding the vertices, a graph is drawn for the given lines. Then, we can able to find the vertices of a diagonal.
Formula Used: The equation of the line, that is passing through $({{x}_{1}},{{y}_{1}})$ and $({{x}_{2}},{{y}_{2}})$ is
$y-{{y}_{1}}=\dfrac{{{y}_{2}}-{{y}_{1}}}{{{x}_{2}}-{{x}_{1}}}(x-{{x}_{1}})$
Where $m=\dfrac{{{y}_{2}}-{{y}_{1}}}{{{x}_{2}}-{{x}_{1}}}$ is said to be the slope of the line.
Complete step by step solution: Given that, a square is formed by the lines
\[\begin{align}
& x=0 \\
& y=0 \\
& x=1 \\
& y=1 \\
\end{align}\]
Plotting these in the graph we get the required vertices as below:

Then, the vertices formed by these lines are:
$\begin{align}
& A(0,0) \\
& B(0,1) \\
& C(1,1) \\
& D(1,0) \\
\end{align}$
Then, the required diagonals are $\overleftrightarrow{AC}$ and $\overleftrightarrow{BD}$.
By using the equation of line formula (with two points),
$y-{{y}_{1}}=\dfrac{{{y}_{2}}-{{y}_{1}}}{{{x}_{2}}-{{x}_{1}}}(x-{{x}_{1}})$
For the diagonal $\overleftrightarrow{AC}$, the vertices are $A(0,0);C(1,1)$
So, the equation of the diagonal is,
$\begin{align}
& y-0=\dfrac{1-0}{1-0}(x-0) \\
& \Rightarrow y=x\text{ }...(1) \\
\end{align}$
For the diagonal $\overleftrightarrow{BD}$, the vertices are $B(0,1);D(1,0)$
So, the equation of the diagonal is,
$\begin{align}
& y-1=\dfrac{0-1}{1-0}(x-0) \\
& \Rightarrow y-1=-x \\
& \Rightarrow x+y=1\text{ }...(2) \\
\end{align}$
Therefore, the required diagonal lines are $y=x;x+y=1$.
Option ‘A’ is correct
Note: Here we may go wrong with the vertices. For finding the vertices, a graph is drawn for the given lines. Then, we can able to find the vertices of a diagonal.
Recently Updated Pages
IIT BHU JEE Advanced Cutoff 2026: Expected Ranks and Seats

IIT Jodhpur Placements 2026 Highest Package, Trends, Recruiters

IIT Ropar IIT RPR Placements 2026: Highest and Average Package

IIT Madras (IITM): Cutoff, Placements, Fees, Admission 2026

IIT Delhi Placements 2026: Highest and Average Package

IIT Tirupati Placements 2026: Highest and Average Package

Trending doubts
JEE Advanced 2026 Notification Out with Exam Date, Registration (Extended), Syllabus and More

JEE Advanced Percentile vs Marks 2026: JEE Main Cutoff, AIR & IIT Admission Guide

JEE Advanced Weightage Chapter Wise 2026 for Physics, Chemistry, and Mathematics

Electrochemistry JEE Advanced 2026 Notes

JEE Advanced 2026 Notes

JEE Advanced Cutoff 2026: Check Expected Score & Category‑Wise Qualifying Marks

Other Pages
JEE Main 2026: Exam Dates, Session 2 Updates, City Slip, Admit Card & Latest News

JEE Main Participating Colleges 2026 - A Complete List of Top Colleges

Understanding the Electric Field of a Uniformly Charged Ring

Understanding Atomic Structure for Beginners

Derivation of Equation of Trajectory Explained for Students

How to Convert a Galvanometer into an Ammeter or Voltmeter

