- Practice
- About 18 min
- 5 practice questions
Angle between lines, parallel and perpendicular lines
Convert the general equation of a line into other forms, find the angle between two lines, use the conditions for parallel and perpendicular lines, and decide on which side of a line a point lies.
If something looks wrong, please tell us.
By the end of this lesson you can
- Rewrite Ax + By + C = 0 in slope-intercept, intercept and normal form.
- Find the acute angle between two lines with tan φ = |(m₂ − m₁)/(1 + m₁m₂)|.
- Use m₁ = m₂ and m₁m₂ = −1, and their general-form versions a₁b₂ = a₂b₁ and a₁a₂ + b₁b₂ = 0.
- Write lines parallel or perpendicular to a given line through a given point.
- Decide whether a point is on the origin side of a line.
Once we can write lines, we can compare them: are two roads parallel, do two walls meet at right angles, at what angle do two paths cross? All of this is read from the slopes.
From the general form to other forms
For Ax + By + C = 0: (i) if B ≠ 0, y = −(A/B)x − C/B, so the slope is −A/B and the y-intercept −C/B; (ii) if A, B, C are all non-zero, x/(−C/A) + y/(−C/B) = 1, so the intercepts are −C/A and −C/B; (iii) for the normal form, move the constant to the right so that it is positive, then divide by √(A² + B²).
Worked example 1: one line, three forms
Take x + √3y − 6 = 0. (i) √3y = −x + 6 gives y = −(1/√3)x + 2√3: slope −1/√3, y-intercept 2√3. (ii) x + √3y = 6 gives x/6 + y/(2√3) = 1: intercepts 6 and 2√3. (iii) The constant 6 is already positive on the right; √(1 + 3) = 2, so (1/2)x + (√3/2)y = 3. Then cos α = 1/2 and sin α = √3/2, so α = 60° and p = 3: x cos 60° + y sin 60° = 3.
The angle between two lines
Let the lines y = m₁x + c₁ and y = m₂x + c₂ have inclinations θ₁ and θ₂, so m₁ = tan θ₁ and m₂ = tan θ₂. Two intersecting lines make two angles that add up to 180°; the angle between the lines means the acute one. The angle φ = θ₂ − θ₁ satisfies tan φ = tan(θ₂ − θ₁) = (m₂ − m₁)/(1 + m₁m₂). If this is positive φ is acute, and if it is negative φ is obtuse, so the acute angle is
tan φ = |(m₂ − m₁)/(1 + m₁m₂)|. Parallel: m₁ = m₂ (a₁b₂ = a₂b₁). Perpendicular: m₁m₂ = −1 (a₁a₂ + b₁b₂ = 0).
Worked example 2: two angles
(i) y = 2x + 1 and y = −3x + 4: tan φ = |(−3 − 2)/(1 + (2)(−3))| = |−5/−5| = 1, so φ = 45°. (ii) x − 2y + 3 = 0 and 3x + y − 1 = 0 have slopes 1/2 and −3: tan φ = |(−3 − 1/2)/(1 − 3/2)| = |(−7/2)/(−1/2)| = 7, so φ = tan⁻¹ 7.
Parallel and perpendicular lines
Parallel: the angle is 0, so tan φ = 0 and m₁ = m₂. All vertical lines are parallel. In general form, a₁x + b₁y + c₁ = 0 and a₂x + b₂y + c₂ = 0 are parallel when a₁/a₂ = b₁/b₂, that is a₁b₂ = a₂b₁. Every line parallel to ax + by + c = 0 has the form ax + by = k, and the one through (x₁, y₁) is ax + by = ax₁ + by₁.
Perpendicular: the angle is 90°, so cot φ = (1 + m₁m₂)/(m₂ − m₁) = 0 and m₁m₂ = −1; in general form, a₁a₂ + b₁b₂ = 0. Every line perpendicular to ax + by + c = 0 has the form bx − ay = k, and the one through (x₁, y₁) is bx − ay = bx₁ − ay₁. Caution: m₁m₂ = −1 cannot be used when one line is vertical, since its slope is undefined, even though the x-axis and y-axis are perpendicular.
Worked example 3: lines through a point
Find the lines through (2, −1) parallel and perpendicular to 4x − 3y + 5 = 0. Parallel: 4x − 3y = 4(2) − 3(−1) = 11, so 4x − 3y − 11 = 0. Perpendicular: swap the coefficients and change one sign: 3x + 4y = 3(2) + 4(−1) = 2, so 3x + 4y − 2 = 0. Check: 4 × 3 + (−3) × 4 = 0.
Worked example 4: testing pairs, and a rotated line
(i) 2x − 3y + 6 = 0 and 6x + 4y − 1 = 0: a₁a₂ + b₁b₂ = 12 − 12 = 0, so they are perpendicular. (ii) 2x − 3y + 6 = 0 and 4x − 6y − 5 = 0: 2/4 = (−3)/(−6), so they are parallel. (iii) The line through P(2, 1) and Q(4, 3) has slope 1, inclination 45°. Turn it about P through 15° clockwise: the new inclination is 30° and the slope 1/√3, so y − 1 = (1/√3)(x − 2), that is x − √3y + √3 − 2 = 0.
Parallel or perpendicular?
-
Parallel
- m₁ = m₂
- a₁b₂ = a₂b₁
- Family: ax + by = k
- Angle 0°
-
Perpendicular
- m₁m₂ = −1 (neither line vertical)
- a₁a₂ + b₁b₂ = 0
- Family: bx − ay = k
- Angle 90°
On which side of a line is a point?
A line ax + by + c = 0 with c ≠ 0 splits the plane into the side containing the origin and the other side. The point (x₁, y₁) is on the origin side if ax₁ + by₁ + c has the same sign as c, and on the non-origin side if the signs are opposite. For 2x + 3y − 6 = 0 (c = −6): the point (1, 1) gives 2 + 3 − 6 = −1, the same sign as c, so it is on the origin side; the point (3, 2) gives 6 + 6 − 6 = 6, the opposite sign, so it is on the non-origin side.
This sign test also tells which angle between two lines contains the origin. Write both lines with positive constants, c₁ > 0 and c₂ > 0. If a₁a₂ + b₁b₂ < 0 the origin lies in the acute angle between them, and if a₁a₂ + b₁b₂ > 0 it lies in the obtuse angle. This is used for angle bisectors in the next lesson.
Key takeaways: read slopes as −A/B; the acute angle comes from the absolute value of (m₂ − m₁)/(1 + m₁m₂); parallel lines keep a and b and change only the constant; perpendicular lines swap a and b and change one sign; and the sign of ax₁ + by₁ + c compared with c tells you the side of the line.
Check your understanding
-
1. What is the slope of the line 4x − 6y + 7 = 0?
- −2/3
- 2/3
- 3/2
- −3/2
Show answer
Answer: B. Slope = −a/b = −4/(−6) = 2/3. Rearranging also works: 6y = 4x + 7, so y = (2/3)x + 7/6.
-
2. Which line is perpendicular to 2x + 5y − 1 = 0?
- 2x + 5y + 3 = 0
- 5x + 2y − 1 = 0
- 5x − 2y + 3 = 0
- 2x − 5y = 0
Show answer
Answer: C. For 5x − 2y + 3 = 0: a₁a₂ + b₁b₂ = 2 × 5 + 5 × (−2) = 0, so it is perpendicular. 2x + 5y + 3 = 0 is parallel, and the other two give products 20 and −21, not 0.
-
3. What is the acute angle between the lines y = 3x and y = −2x?
- 30°
- 45°
- 60°
- 90°
Show answer
Answer: B. tan φ = |(−2 − 3)/(1 + (3)(−2))| = |−5/−5| = 1, so φ = 45°.
-
4. On which side of the line x + y − 4 = 0 does the point (2, 3) lie?
- On the line
- On the origin side
- It cannot be decided
- On the side not containing the origin
Show answer
Answer: D. 2 + 3 − 4 = 1 is positive, while c = −4 is negative. Opposite signs mean the point is on the side away from the origin.
-
5. What is the equation of the line through (1, −2) parallel to 3x − y + 4 = 0?
- 3x − y = 5
- 3x − y = 1
- x + 3y = −5
- 3x + y = 1
Show answer
Answer: A. A parallel line is 3x − y = k. Through (1, −2): k = 3(1) − (−2) = 5, so 3x − y = 5.
Sign in to keep track of the lessons you finish.