Sub topic 6
The y-intercept: where the line crosses the y-axis
Assume you can plot ordered pairs, substitute values into an equation, and solve simple linear equations. The y-intercept is the point where a line crosses the y-axis. Every point on the y-axis has an \(x\)-coordinate of \(0\), so the y-intercept always has the form \((0,b)\).
Finding the y-intercept in slope-intercept form
Slope-intercept form is
\[ y = mx + b \]
Here:
- \(m\) is the slope.
- \(b\) is the y-intercept, written as the point \((0,b)\).
For example, consider
\[ y = 3x - 4 \]
The constant term is \(-4\), so the y-intercept is \((0,-4)\). The line crosses the y-axis four units below the origin.
| Equation | Slope \(m\) | Y-intercept \(b\) | Y-intercept as a point |
|---|---|---|---|
| \(y=2x+5\) | \(2\) | \(5\) | \((0,5)\) |
| \(y=-\frac12x+3\) | \(-\frac12\) | \(3\) | \((0,3)\) |
| \(y=4x\) | \(4\) | \(0\) | \((0,0)\) |
When a constant is missing, the constant is \(0\). Thus, \(y=4x\) has a y-intercept at the origin.
Finding the intercept by substituting \(x=0\)
You can find the y-intercept even when the equation is not already solved for \(y\). Set \(x=0\), then solve for \(y\).
For
\[ 2x+3y=12 \]
substitute \(x=0\):
\[ 2(0)+3y=12 \]
\[ 3y=12 \]
\[ y=4 \]
Therefore, the y-intercept is \((0,4)\).
This method works because the y-axis is defined by \(x=0\). It also provides a useful check after rearranging an equation into slope-intercept form.
def y_intercept(A, B, C):
if B == 0:
raise ValueError("The line is vertical and has no y-intercept")
return (0, C / B)
print(y_intercept(2, 3, 12)) # (0, 4.0)Using the intercept while graphing
The y-intercept gives you the first point to plot. Once that point is marked, use the slope to locate another point.
For
\[ y=-\frac{2}{3}x+4 \]
the y-intercept is \((0,4)\). The slope \(-\frac23\) means:
- move down \(2\) units, the rise;
- move right \(3\) units, the run.
Starting at \((0,4)\), this produces \((3,2)\). Repeating the same movement produces \((6,0)\). Connecting these points gives the line.
Common errors
A frequent mistake is reporting \(b\) as a coordinate without including the zero. If \(b=-6\), the y-intercept is \((0,-6)\), not just \(-6\).
Another mistake is reversing the sign. In \(y=5x-2\), the y-intercept is \(-2\). In \(y=5x+2\), it is \(2\).
A vertical line such as \(x=3\) never crosses the y-axis, so it has no y-intercept. Its \(x\)-value is always \(3\), not \(0\).
Exercise
Find the y-intercept of 4x - 2y = 10. Then state whether the line crosses the y-axis above or below the origin.
Show answer
Set x = 0: -2y = 10, so y = -5. The y-intercept is (0, -5), which is below the origin.