Find the equations to the diagonals of the rectangle the equations of whose sides are x = a, x = a', y = b and y = b'.
The rectangle ABCD will have diagonals AC and BD and passes through A(a, b) and C(a', b').
Thus equation of Ac is :y−y1y2−y1=x−x1x2−x1⇒ y−bb′−b=x−aa′−a⇒ (y−b)(a′−a)=(x−a)(b′−b)⇒ y(a′−a)−a′b+ab=x(b′−b)−ab′+ab⇒ y(a′−a)−x(b′−b)−ab′+a′b⇒ y(a′−a)−x(b′−b)=a′b−ab′BD passes through B(a',b) and D(a,b')Thus equation of BD is :y−y1y2−y1=x−x1x2−x1⇒ y−bb′−b=x−a′a−a′⇒ (y−b)(a−a′)=(x−a′)(b′−b)⇒ −y(a′−a)−ab+a′b=x(b′−b)−a′b′+a′b⇒ a′b′−ab=x(b′−b)+y(a′−a′)⇒ x(b′−b)+y(a′−a)=a′b′−ab