The equation of line is xp+yq=1
Here p&q are the intercepts an the axis
p2+q2=a2
Let foot of perpendicular be x1,y1
Which must line on xp+yq=1
We also can include that.
y1x1×−qp=−1p2=a2−q2y1x1=√a2−q2qq√a2−q2=x1y1q=x1√a2−q2y1p=a2−x1√a2−q2y1p=a2y1−x1√a2−q2y1xp+yq=1x1y1a2−x1√a2−q2+x1y1x1√a2−q2=1x12y1√a2−q2+a2x1y1−x12y1√a2−q2(a2−x1√a2−q2)(x1√a2−q2)=1a2x1y1=a2x1√a2−q2−x12a2+x12q2x12a2+x12q2+a2x1y1−a2x1√a2−q2=0x1(a2x1+q2x1+a2y1−a2√a2−q2)=0x1a2+x1q2+y1a2−a2p=0a2(x1+y1)+x1q2−a2p=0