Acute angle between a₁x + b₁y + c₁ = 0 and a₂x + b₂y + c₂ = 0.
For lines a1x+b1y+c1=0 and a2x+b2y+c2=0, the slopes are:
m1=−b1a1,m2=−b2a2
Substituting into tanθ=1+m1m2m1−m2:
m1−m2=−b1a1+b2a2=b1b2a2b1−a1b2
1+m1m2=1+b1b2a1a2=b1b2b1b2+a1a2
The b1b2 cancels:
tanθ=a1a2+b1b2a1b2−a2b1
Parallel condition: a1b2=a2b1 (numerator vanishes).
Perpendicular condition: a1a2+b1b2=0 (denominator vanishes).
This form avoids computing slopes explicitly and is more convenient when lines are given in general form.