Show that the tangent of an angle between the lines xa+yb=1 and xa−yb=1 is 2aba2−b2
Let the line xa+yb=1 be AB and the line xa−yb=1 be CD.
Equation of AB, bx+ayab=1
⇒ay=−bx+ab
⇒y=−bxa+b
Therefore, m1=−ba
Similarly, the equation of CD, bx−ayab=1
⇒bx−ay=ab
⇒ay=bxa−a
Therefore, m2=ba
The tangent of angle between the lines AB and CD is
tan θ=∣∣m1−m21+m1m2∣∣=∣∣ ∣∣−ba−ba1+(−ba)(ba)∣∣ ∣∣
=∣∣∣−2b9a2−b2a∣∣∣=∣∣−2aba2−b2∣∣
The tangent of the angle between the lines =2aba2−b2