Acute angle between the two lines represented by ax²+2hxy+by²=0.
For the pair ax2+2hxy+by2=0 with slopes m1,m2, use the angle formula:
tanθ=1+m1m2m1−m2
From Vieta's: m1+m2=−2h/b and m1m2=a/b.
Compute (m1−m2)2:
(m1−m2)2=(m1+m2)2−4m1m2=b24h2−b4a=b24(h2−ab)
And:
1+m1m2=1+ba=ba+b
Substituting:
tanθ=ba+bb2h2−ab=a+b2h2−ab
tanθ=a+b2h2−ab
The formula requires h2≥ab for real lines and a+b=0 (otherwise the lines are perpendicular and tanθ is undefined).