Home/Class XI/Ch 9/Angle between two lines; parallel and perpendicular conditions
Angle between two lines
When two non-parallel lines meet, they form four angles in two pairs of equal opposite angles. We take the acute angle as the angle between them. The formula expresses this angle via the slopes.
The angle formula
Suppose two lines have slopes m1,m2 and make angles θ1,θ2 with the positive x-axis. Then m1=tanθ1,m2=tanθ2. The angle between them is θ=θ2−θ1 (or its supplement). Using the tangent-difference formula:
tanθ=1+tanθ2tanθ1tanθ2−tanθ1=1+m1m2m2−m1.
To always get the acute angle, take the absolute value:
tanθ=1+m1m2m1−m2.
Special cases
Parallel. Slopes equal: m1=m2. The formula gives tanθ=0⇒θ=0.
Perpendicular.tanθ=∞ requires the denominator to vanish: 1+m1m2=0, i.e.
m1m2=−1.
This fails when one line is vertical (slope undefined). For verticals, perpendicular means the other is horizontal.
In terms of general form
If lines are A1x+B1y+C1=0 and A2x+B2y+C2=0:
Parallel: A1B2=A2B1.
Perpendicular: A1A2+B1B2=0.
Angle: tanθ=A1A2+B1B2A1B2−A2B1.
Worked examples
Example 1. Find the angle between y=2x+1 and y=−3x+5.
m1=2,m2=−3. tanθ=1+2⋅(−3)2−(−3)=55=1⇒θ=45°.
Example 2. Find the angle between 3x−4y+7=0 and 4x+3y−5=0.
A1A2+B1B2=12−12=0. So perpendicular: θ=90°.
Example 3. Find the equation of the line through (2,3) perpendicular to 4x+3y+7=0.
The given line has slope −4/3, so the perpendicular slope is 3/4. Equation: y−3=43(x−2)⇒3x−4y+6=0.
Example 4. Find the equations of the lines passing through (2,3) and making an angle of 45° with y=2x+5.
m1=2. tan45°=1+2m22−m2=1.
Case (a): 1+2m22−m2=1⇒2−m2=1+2m2⇒m2=1/3.
Case (b): 1+2m22−m2=−1⇒2−m2=−1−2m2⇒m2=−3.
Example 5. If the angle between y=mx+5 and y=x+1 is tan−1(1/3), find m.
1+mm−1=1/3.
Case (a): 3(m−1)=1+m⇒2m=4⇒m=2.
Case (b): 3(m−1)=−(1+m)⇒4m=2⇒m=1/2.
Try it yourself
Angle between y=x and y=−x.
Angle between y=2x+3 and y=5.
Find slope of a line perpendicular to 4x+5y−8=0.
Are 2x+3y−1=0 and 6x+9y−5=0 parallel?
Find k such that 3x−ky+2=0 is perpendicular to 2x+5y−1=0.
Find the equation of the line through (1,2) at 30° to the x-axis.
Find the equation of the line through origin perpendicular to y=3x−1.
Two lines through (2,3) make an angle of 60° with y=x. Find them.
Show that the lines x−2y+3=0 and 2x+y−5=0 are perpendicular.
Find the equations of the angle bisectors of 3x−4y+7=0 and 4x−3y−8=0. (Hint: 53x−4y+7=±54x−3y−8.)
Find the line through (1,1) which is perpendicular to the line joining (2,3) and (5,7).
Find θ between 3x+4y−7=0 and 5x−12y+6=0.
Pitfalls / Tricks
Always take the absolute value in tanθ to get the acute angle.
m1m2=−1 only works when both slopes are finite.
When one line is vertical, the angle equals ∣90°−θother∣.
Insight. The formula tanθ=∣(m1−m2)/(1+m1m2)∣ is essentially the tangent subtraction identity in disguise , derived from θ=θ1−θ2 on the unit circle.