- Foundation
- About 18 min
- 5 practice questions
Slope-intercept form, intercept form and the general equation
Derive y = mx + c, y = m(x − d) and x/a + y/b = 1, convert a general equation Ax + By + C = 0 into each form, and write lines parallel or perpendicular to a given line.
If something looks wrong, please tell us.
Lines are often described by where they cut the axes. A taxi fare with a fixed starting charge plus a rate per kilometre is a line with a known y-intercept and slope. This lesson derives the intercept-based forms and shows that every line can be written as one general linear equation, from which slope and intercepts can be read off.
Slope-intercept form
Case 1: y-intercept. Suppose a line with slope m cuts the y-axis at (0, c). The number c is the y-intercept: positive if the cut is above the origin, negative if below. By point-slope form through (0, c): y − c = m(x − 0), so:
Slope-intercept form: y = mx + c (slope m, y-intercept c).
Case 2: x-intercept. If the line with slope m cuts the x-axis at (d, 0), point-slope form gives y − 0 = m(x − d), that is y = m(x − d).
Worked example 1
(i) Slope −2, y-intercept 5: y = −2x + 5, or 2x + y − 5 = 0. (ii) tan θ = 1/3 and x-intercept −6: y = (1/3)(x − (−6)) = (1/3)(x + 6), so 3y = x + 6, that is x − 3y + 6 = 0. Check: (−6, 0) gives −6 − 0 + 6 = 0.
Intercept form
Suppose a line cuts the x-axis at (a, 0) and the y-axis at (0, b), with a, b ≠ 0. By the two-point form, y − 0 = ((b − 0)/(0 − a)) × (x − a), so y = −(b/a)(x − a). Multiply by a: ay = −bx + ab, so bx + ay = ab. Divide by ab:
Intercept form: x/a + y/b = 1 (x-intercept a, y-intercept b).
Worked example 2
Find the line with x-intercept 4 and y-intercept −3. x/4 + y/(−3) = 1. Multiply by 12: 3x − 4y = 12, that is 3x − 4y − 12 = 0.
Worked example 3: equal intercepts
Find the line through (2, 3) that cuts equal intercepts on the axes. Take x/a + y/a = 1, that is x + y = a. Since (2, 3) lies on it, a = 5. The line is x + y = 5.
The general equation of a line
Every form above rearranges to Ax + By + C = 0, where A and B are not both zero. Conversely, every such equation represents a straight line. It is called the general linear equation. To read off information, rearrange it:
| Quantity | From Ax + By + C = 0 | Condition |
|---|---|---|
| Slope | m = −A/B | B ≠ 0 |
| y-intercept | c = −C/B | B ≠ 0 |
| x-intercept | −C/A | A ≠ 0 |
| Intercept form | x/(−C/A) + y/(−C/B) = 1 | A, B, C ≠ 0 |
| Horizontal line | A = 0: y = −C/B | B ≠ 0 |
| Vertical line | B = 0: x = −C/A | A ≠ 0 |
Converting 3x + 4y − 12 = 0 into other forms
- Start 3x + 4y − 12 = 0
- Slope-intercept 4y = −3x + 12, so y = −(3/4)x + 3: slope −3/4, y-intercept 3
- Intercept form 3x + 4y = 12; divide by 12: x/4 + y/3 = 1
- Read intercepts x-intercept 4, y-intercept 3
Lines parallel or perpendicular to a given line
A line parallel to Ax + By + C = 0 has the same slope −A/B, so it can be written Ax + By + k = 0. A line perpendicular to it has slope B/A (the negative reciprocal), so it can be written Bx − Ay + k = 0. The constant k is fixed by a point.
Worked example 4
Find the lines through (1, −2) that are (i) parallel and (ii) perpendicular to 2x − 3y + 5 = 0.
(i) Parallel: 2x − 3y + k = 0. Put (1, −2): 2 + 6 + k = 0, so k = −8. The line is 2x − 3y − 8 = 0. (ii) Perpendicular: 3x + 2y + k = 0. Put (1, −2): 3 − 4 + k = 0, so k = 1. The line is 3x + 2y + 1 = 0. Check: slopes 2/3 and −3/2 multiply to −1.
Worked example 5: a line with a given perpendicular foot
The perpendicular from the origin to a line meets it at (3, 4). Find the line. The segment from (0, 0) to (3, 4) has slope 4/3, so the line has slope −3/4 and passes through (3, 4): y − 4 = −(3/4)(x − 3). Multiply by 4: 4y − 16 = −3x + 9, giving 3x + 4y − 25 = 0.
Key takeaways
- y = mx + c uses the y-intercept; y = m(x − d) uses the x-intercept.
- x/a + y/b = 1 when the intercepts are a and b.
- Ax + By + C = 0 has slope −A/B, y-intercept −C/B, x-intercept −C/A.
- Parallel: Ax + By + k = 0. Perpendicular: Bx − Ay + k = 0.
Check your understanding
-
1. What are the slope and y-intercept of 6x + 3y − 5 = 0?
- Slope 2, y-intercept 5/3
- Slope −2, y-intercept 5/3
- Slope −2, y-intercept −5/3
- Slope −1/2, y-intercept 5/3
Show answer
Answer: B. 3y = −6x + 5 gives y = −2x + 5/3. Slope −2, y-intercept 5/3.
-
2. The intercepts of 4x − 3y = 12 on the x- and y-axes are:
- 3 and −4
- 4 and −3
- 3 and 4
- −3 and 4
Show answer
Answer: A. Divide by 12: x/3 + y/(−4) = 1. So the x-intercept is 3 and the y-intercept is −4.
-
3. Which line passes through (−1, 2) and is perpendicular to x − 2y + 3 = 0?
- x − 2y + 5 = 0
- 2x − y + 4 = 0
- x + 2y − 3 = 0
- 2x + y = 0
Show answer
Answer: D. Perpendicular to Ax + By + C = 0 is Bx − Ay + k = 0: −2x − y + k = 0, or 2x + y − k = 0. Through (−1, 2): −2 + 2 − k = 0, so k = 0. The line is 2x + y = 0, with slope −2, and (1/2)(−2) = −1.
-
4. A line through (4, 3) has its x-intercept equal to twice its y-intercept. Its equation is:
- 2x + y = 11
- x + 2y = 10
- x + 2y = 8
- x + y = 7
Show answer
Answer: B. Let the y-intercept be b, so the x-intercept is 2b: x/(2b) + y/b = 1, that is x + 2y = 2b. Through (4, 3): 4 + 6 = 2b, so 2b = 10 and the line is x + 2y = 10 (intercepts 10 and 5). The line 2x + y = 11 also passes through (4, 3) but its y-intercept is twice its x-intercept.
-
5. Assertion (A): The lines 2x + 5y − 1 = 0 and 4x + 10y + 7 = 0 are parallel. Reason (R): Both have slope −2/5.
- Both A and R are true, and R is the correct explanation of A
- Both A and R are true, but R is not the correct explanation of A
- A is true, but R is false
- A is false, but R is true
Show answer
Answer: A. Slope of the first is −2/5; the second is −4/10 = −2/5. Equal slopes mean parallel lines (they are not the same line, since 4x + 10y − 2 = 0 would be needed). So A and R are true and R explains A.
Sign in to keep track of the lessons you finish.