Let the equation of line be y = mx+c
A(a,0) and B(0,b) lie on this line
∴O=ma+c⇒m=−ca
and b=m(a)+c⇒c=b
∴y=(−ca)x+bor y=(−ba)x×b (∵c=b)
Divide by b:
yb=−xb+1
or xa+yb=1 Proved
This is called 'intercept' form of equation of line and a, b are x and y intercepts