Given equation of line is
xa+yb=1
We written that this equation
bx+ay=ab …… (1)
We know that
Length of perpendicular any line ax+by+c=0
d=ax+by+c√a2+b2
From equation (1),
bx+ay−ab=0
Length of perpendicular is
d=bx+ay−ab√b2+a2
Length of perpendicular given point (a,b)
d=b×a+a×b−ab√b2+a2
d=ab√a2+b2
Hence it is required solution.