Equation of line whose intercept on the axes are a & b is
xa+yb=1
⇒(1a)x+(1b)y−1=0
The perpendicular distance (d) of a line Ax+By+C=0 from a point (x1,y1) is given by d=|Ax1+By1+C|√A2+B2
Here, A=1a,B=1b & C=−1
Given, distance from origin (0,0) to the line xa+yb=1 is p
⇒p=∣∣∣(0)(1a)+(0)(1b)−1∣∣∣√(1a)2+(1b)2
⇒p=|0+0−1|√1a2+1b2
⇒p=|−1|√1a2+1b2
⇒p=1√1a2+1b2
⇒1p=√1a2+1b2
Squaring both sides
⇒(1p)2=(√1a2+1b2)2
⇒1p2=1a2+1b2
Hence proved.