P(a, b) is the mid point of a line segmen between axis. Show that equation of the line is xa+yb=2
Let A(x, 0) and B(0, y) be two points where the line intersect x and y-axes respectively and P(a, b) is mid point of AB.
Then
0+x2=a⇒x=2a
and 0+y2=b⇒y=2b
Now equation of required line is
x2a+y2b=1 ⇒ xa+yb=2