Sub topic 8
Reading Intercepts from Standard Form
This chapter assumes you can plot points, compute slope as rise over run, and solve a linear equation for one variable. It also assumes you can work with fractions and negative numbers. You should know the standard form Ax + By = C from the previous chapter, where A, B and C are integers and A is not negative.
What an intercept is
An intercept is a point where a line crosses a coordinate axis.
- The x-intercept is where the line crosses the x-axis. Every point on the x-axis has y = 0, so the x-intercept has the form (a, 0).
- The y-intercept is where the line crosses the y-axis. Every point on the y-axis has x = 0, so the y-intercept has the form (0, b).
In slope-intercept form y = mx + b, the y-intercept is visible as b. Standard form hides both intercepts inside the equation. It also makes both easy to get, because each takes one substitution and one division.
The two-step recipe
To find the x-intercept, set y = 0 and solve for x. To find the y-intercept, set x = 0 and solve for y.
Take 3x + 4y = 12.
- Set y = 0: 3x + 4(0) = 12, so 3x = 12 and x = 4. The x-intercept is (4, 0).
- Set x = 0: 3(0) + 4y = 12, so 4y = 12 and y = 3. The y-intercept is (0, 3).
Substituting 0 for one variable removes that variable's term, so only a single division remains.
The general formulas
Apply the recipe to Ax + By = C with letters in place of numbers.
- Setting y = 0 gives Ax = C, so x = C/A.
- Setting x = 0 gives By = C, so y = C/B.
| Quantity | Formula | Requires |
|---|---|---|
| x-intercept | (C/A, 0) | A ≠ 0 |
| y-intercept | (0, C/B) | B ≠ 0 |
For 3x + 4y = 12, C/A = 12/3 = 4 and C/B = 12/4 = 3, which matches the result above.
Intercepts do not have to be whole numbers or positive. For 2x - 5y = 10, the formulas give x = 10/2 = 5 and y = 10/(-5) = -2. The intercepts are (5, 0) and (0, -2). For 2x - 5y = 7, they are (7/2, 0) and (0, -7/5). Keep them as fractions rather than rounding them, so that later checks stay exact.
Getting the slope for free
Once you have both intercepts, you have two points and can compute the slope. Moving from (C/A, 0) to (0, C/B), the rise is C/B and the run is -C/A. The slope is therefore
(C/B) / (-C/A) = -A/B.
This holds whenever both intercepts exist and are different points. It also holds when C = 0, because the slope formula -A/B does not use C. For 2x - 5y = 10, the slope is -2/(-5) = 2/5. You can check it against the intercepts: from (0, -2) to (5, 0) the rise is 2 and the run is 5.
Edge cases
The formulas divide by A or B, so the cases where either is 0 need separate handling. The same goes for C = 0.
When C = 0
If C = 0, both formulas give 0. The line passes through the origin, and the x- and y-intercepts are the same point, (0, 0). Take 2x + 3y = 0. Setting y = 0 gives x = 0, and setting x = 0 gives y = 0.
When A = 0 (horizontal lines)
If A = 0, the equation is By = C, which gives y = C/B. This is a horizontal line. Setting y = 0 gives 0 = C. If C ≠ 0, that is false, so the line never reaches the x-axis and has no x-intercept. For example, 2y = 6 is the line y = 3, with y-intercept (0, 3) and no x-intercept. If C = 0 as well, the line is y = 0, which is the x-axis itself. Every point on it has y = 0, so every point is an x-intercept.
When B = 0 (vertical lines)
If B = 0, the equation is Ax = C, which gives x = C/A. This is a vertical line with x-intercept (C/A, 0) and no y-intercept, unless C = 0. In that case the line is x = 0, the y-axis itself.
The next chapters cover horizontal and vertical lines in more detail. Here, the point is that "no intercept" is a valid answer when the line is parallel to an axis.
Intercept form
When C ≠ 0, divide both sides of Ax + By = C by C:
Ax/C + By/C = 1.
Rewrite A/C as 1/(C/A) and B/C as 1/(C/B). If a = C/A and b = C/B, the equation becomes
x/a + y/b = 1.
This is called intercept form, and a and b are the intercepts themselves. For 3x + 4y = 12, divide by 12 to get x/4 + y/3 = 1. The denominators 4 and 3 are the intercepts you already found. Intercept form does not exist for lines through the origin or for horizontal and vertical lines, because a or b is 0 or undefined.
Graphing with intercepts
The intercepts give a fast graphing method.
- Find both intercepts.
- Plot (a, 0) and (0, b).
- Draw the line through them and extend it in both directions.
For 2x - 5y = 10, plot (5, 0) and (0, -2), then connect them. Because the points are on the axes, the plotting needs no estimation. The method works best when both intercepts are reasonably small and well separated. If the intercepts are very close together, as in x + 40y = 1, small drawing errors change the line's angle a lot. In that case, find a third point farther away, such as x = 41, y = -1 (check: 41 - 40 = 1).
Computing intercepts in code
This function applies the formulas and handles the edge cases. It uses Fraction so results stay exact.
from fractions import Fraction
def intercepts(a, b, c):
"""Return (x_int, y_int) for the line a*x + b*y = c.
Each value is a Fraction (the intercept's coordinate), None
(the line never crosses that axis), or "axis" (the line is that axis).
"""
if a == 0 and b == 0:
raise ValueError("A and B cannot both be 0")
# x-intercept: set y = 0, so a*x = c
if a != 0:
x_int = Fraction(c, a)
else:
x_int = "axis" if c == 0 else None
# y-intercept: set x = 0, so b*y = c
if b != 0:
y_int = Fraction(c, b)
else:
y_int = "axis" if c == 0 else None
return x_int, y_int
for a, b, c in [(3, 4, 12), (2, -5, 7), (0, 2, 6), (5, 0, 10), (2, 3, 0)]:
x_int, y_int = intercepts(a, b, c)
print(f"({a}, {b}, {c}): x-int={x_int}, y-int={y_int}")The output is:
(3, 4, 12): x-int=4, y-int=3
(2, -5, 7): x-int=7/2, y-int=-7/5
(0, 2, 6): x-int=None, y-int=3
(5, 0, 10): x-int=2, y-int=None
(2, 3, 0): x-int=0, y-int=0Checking by substitution
Always check intercepts by putting them back into the original equation. For 2x - 5y = 10 with intercepts (5, 0) and (0, -2):
- 2(5) - 5(0) = 10 - 0 = 10, which matches C.
- 2(0) - 5(-2) = 0 + 10 = 10, which matches C.
Both points satisfy the equation, so they are on the line.
Common mistakes
- Swapping the variables. The x-intercept comes from setting y = 0, not x = 0. A quick reminder is that the x-intercept has y = 0, so its coordinates are (number, 0).
- Dropping a sign. In 2x - 5y = 10, B is -5, so the y-intercept is 10/(-5) = -2, not 2. Write the sign of B before dividing.
- Forgetting that the intercept is a point. The answer is (5, 0), not just 5, when a problem asks for the point. Some problems ask only for the value, so read the wording.
- Treating C = 0 as "no intercepts". The line still crosses both axes, at the origin.
- Dividing by zero. If A = 0 or B = 0, do not use C/A or C/B for that axis. Use the cases described above.
Exercise
Find the x- and y-intercepts of 6x + 4y = 24, then use them to find the slope of the line.
Show answer
Set y = 0: 6x = 24, so x = 4 and the x-intercept is (4, 0). Set x = 0: 4y = 24, so y = 6 and the y-intercept is (0, 6). The slope from (4, 0) to (0, 6) is (6 - 0)/(0 - 4) = -3/2. This agrees with -A/B = -6/4 = -3/2.
Exercise
The line 5x - 2y = 7 has intercepts that are not whole numbers. Find both, then verify one of them by substitution.
Show answer
Set y = 0: 5x = 7, so x = 7/5 and the x-intercept is (7/5, 0). Set x = 0: -2y = 7, so y = -7/2 and the y-intercept is (0, -7/2). Check the x-intercept: 5(7/5) - 2(0) = 7 - 0 = 7, which equals C.
Exercise
Why does 3y = 9 have no x-intercept, and what is its y-intercept? Why is "find the intercepts and join them" not enough to graph 4x - 3y = 0?
Show answer
Dividing by 3 gives y = 3, a horizontal line. Setting y = 0 gives 0 = 9, which is false, so the line never meets the x-axis. Its y-intercept is (0, 3). For 4x - 3y = 0, C = 0, so both intercepts are the single point (0, 0). One point does not determine a line, so you need a second point, such as x = 3: 12 - 3y = 0 gives y = 4, so (3, 4) is on the line.