The equation of the straight line passing through the origin and the middle point of the portion of the line ax + by + c = 0 between the axes, is
ax – by = 0
The equation of the given line is ax + by + c = 0
⇒ax+by=−c⇒x−ca+y−c/b=1 .......(1)
Let the line (1) cuts x-axis and y-axis at the points A and B respectively, then
A≡(−ca,0)and B≡(0,−cb)
The coordinates of the middle point C of AB are
(−ca2,0−cb2) or (−c2a,−c2b)
Now, equation of the line OC is
y−0=c2bc2a(x−0) or y=ab× or ax−by=0