- Practice
- About 17 min
- 5 practice questions
General form of a straight line: slope, and lines parallel or perpendicular to ax + by + c = 0
Read the slope and intercepts straight from ax + by + c = 0, test two lines for being parallel or perpendicular from their coefficients, and write the equation of a line parallel or perpendicular to a given line through a given point.
If something looks wrong, please tell us.
By the end of this lesson you can
- Find the slope −a/b and the y intercept −c/b of ax + by + c = 0.
- Decide from the coefficients whether two lines are parallel or perpendicular.
- Write lines parallel to ax + by + c = 0 as ax + by + k = 0 and perpendicular ones as bx − ay + k = 0.
- Find perpendicular bisectors and similar lines in exam-style problems.
Every straight line can be written in the general form ax + by + c = 0, where a, b, c are real numbers and a, b are not both zero. Working directly with this form saves time: the slope, the intercepts and the equations of parallel and perpendicular lines can all be read off the coefficients without redrawing anything.
Slope and intercepts from the general form
If b ≠ 0, rearrange: by = −ax − c, so y = (−a/b)x + (−c/b). Comparing with y = mx + c shows the slope and the y intercept. Putting y = 0 gives the x intercept −c/a (if a ≠ 0).
For ax + by + c = 0: slope m = −a/b = −(coefficient of x) ÷ (coefficient of y); y intercept = −c/b = −(constant term) ÷ (coefficient of y); x intercept = −c/a.
Worked example 1
For 4x − 6y + 5 = 0: slope = −4/(−6) = 2/3; y intercept = −5/(−6) = 5/6; x intercept = −5/4. Check the y intercept: putting x = 0 gives −6y + 5 = 0, so y = 5/6.
Testing two lines from their coefficients
For a₁x + b₁y + c₁ = 0 and a₂x + b₂y + c₂ = 0 (non-zero coefficients), the slopes are −a₁/b₁ and −a₂/b₂. Equal slopes give a₁/a₂ = b₁/b₂. A product of −1 gives (a₁a₂)/(b₁b₂) = −1, that is, a₁a₂ + b₁b₂ = 0.
Two lines a₁x + b₁y + c₁ = 0 and a₂x + b₂y + c₂ = 0
-
Parallel
- a₁/a₂ = b₁/b₂
- Equivalently a₁b₂ − a₂b₁ = 0
- Family: ax + by + k = 0
-
Perpendicular
- a₁a₂ + b₁b₂ = 0
- Slopes multiply to −1
- Family: bx − ay + k = 0
Worked example 2: parallel lines
Show that 3x − 2y + 7 = 0 and 6x − 4y − 1 = 0 are parallel. Slopes: −3/(−2) = 3/2 and −6/(−4) = 6/4 = 3/2. The slopes are equal, so the lines are parallel. By coefficients: a₁/a₂ = 3/6 = 1/2 and b₁/b₂ = (−2)/(−4) = 1/2, equal again.
Worked example 3: perpendicular lines
Show that 2x + 5y − 3 = 0 and 5x − 2y + 8 = 0 are perpendicular. a₁a₂ + b₁b₂ = 2 × 5 + 5 × (−2) = 10 − 10 = 0, so the lines are perpendicular. Check with slopes: −2/5 and −5/(−2) = 5/2, and (−2/5)(5/2) = −1.
Lines parallel or perpendicular to a given line
Every line parallel to ax + by + c = 0 has the same a and b, so it can be written ax + by + k = 0; only the constant changes. Every line perpendicular to it can be written bx − ay + k = 0. In both cases we find k by making the line pass through the given point.
Line through a point P parallel or perpendicular to ax + by + c = 0
- Write the family Parallel: ax + by + k = 0. Perpendicular: bx − ay + k = 0.
- Substitute P Put the coordinates of P into the family's equation.
- Solve for k This gives one value of k.
- Write and check Substitute P again and compare slopes.
Worked example 4: a parallel line through a point
Find the line through (3, −1) parallel to 2x − 3y + 4 = 0. Family: 2x − 3y + k = 0. Substituting (3, −1): 2(3) − 3(−1) + k = 0, so 6 + 3 + k = 0 and k = −9. The line is 2x − 3y − 9 = 0. Check: 6 + 3 − 9 = 0, and both lines have slope 2/3.
Worked example 5: a perpendicular line through a point
Find the line through (2, −3) perpendicular to x + 4y − 7 = 0. Here a = 1 and b = 4, so the family bx − ay + k = 0 is 4x − y + k = 0. Substituting (2, −3): 8 + 3 + k = 0, so k = −11. The line is 4x − y − 11 = 0. Check: slopes −1/4 and 4 multiply to −1, and 8 + 3 − 11 = 0.
Worked example 6: perpendicular bisector
Find the perpendicular bisector of the segment joining A(1, 3) and B(5, 7). It passes through the mid-point ((1 + 5)/2, (3 + 7)/2) = (3, 5) and is perpendicular to AB. Slope of AB = (7 − 3)/(5 − 1) = 4/4 = 1, so the bisector has slope −1. y − 5 = −1(x − 3), giving x + y − 8 = 0. Check: (3, 5) gives 3 + 5 − 8 = 0.
Key takeaways: for ax + by + c = 0 the slope is −a/b and the y intercept is −c/b. Two lines are parallel when a₁/a₂ = b₁/b₂ and perpendicular when a₁a₂ + b₁b₂ = 0. Lines parallel to ax + by + c = 0 are ax + by + k = 0, perpendicular ones are bx − ay + k = 0; find k from the given point.
Check your understanding
-
1. What is the slope of the line 5x + 2y − 9 = 0?
- 5/2
- −2/5
- 2/5
- −5/2
Show answer
Answer: D. Slope = −(coefficient of x)/(coefficient of y) = −5/2. Check: 2y = −5x + 9, so y = −(5/2)x + 9/2.
-
2. For what value of p is px + 3y + 1 = 0 parallel to 4x + 6y − 5 = 0?
- p = 2
- p = 3
- p = −2
- p = 8
Show answer
Answer: A. Equal slopes: −p/3 = −4/6 = −2/3, so p = 2. Check with coefficients: a₁/a₂ = 2/4 = 1/2 and b₁/b₂ = 3/6 = 1/2.
-
3. For what value of k is 3x + ky − 2 = 0 perpendicular to 4x − 3y + 5 = 0?
- k = −4
- k = 4
- k = 9/4
- k = −9/4
Show answer
Answer: B. Perpendicular when a₁a₂ + b₁b₂ = 0: 3 × 4 + k × (−3) = 12 − 3k = 0, so k = 4. Check with slopes: −3/4 and 4/3 multiply to −1.
-
4. Which line passes through the origin and is perpendicular to 2x + y − 6 = 0?
- 2x + y = 0
- x + 2y = 0
- x − 2y = 0
- 2x − y = 0
Show answer
Answer: C. Perpendicular family bx − ay + k = 0 with a = 2, b = 1: x − 2y + k = 0. Through (0, 0) gives k = 0, so x − 2y = 0. Check: slopes −2 and 1/2 multiply to −1.
-
5. What is the y intercept of 3x − 4y + 12 = 0?
- −3
- 4
- 3
- −4
Show answer
Answer: C. y intercept = −c/b = −12/(−4) = 3. Check: put x = 0, then −4y + 12 = 0, so y = 3. (−4 is the x intercept: −c/a = −12/3.)
Sign in to keep track of the lessons you finish.