Suppose the axes are rotated in the anti-clockwise direction through an angle α. The equation of the line L with respect to the old axes is given by x/a+y/b=1. To find the equation of L with respect to the new axes, we replace x by xcosα−ysinα and y by xsinα+ycosα, so that the equation of L with respect to the new axes is
1a(xcosα−ysinα)+1b(xsinα+ycosα)=1
Since p,q are the intercepts made by this line on the coordinate axes, we have on putting (p,0) and then (0,q)
1/p=(1/a)cosα+(1/b)sinα
and 1/q=−(1/a)sinα+(1/b)cosα
Eliminate α
Squaring and adding we get
1/p2+1/q2=1/a2+1/b2