Let AB be a line making intercepts OA = a on x-axis and OB = b on y-axis.
The coordinates of A = (a, 0) and the coordinates of B = (0,b).Let P(x,y) be any point on AB. Since APB are collinear,
Slope of AP = Slope of AB

Dividing by ab throughout, we get
