Sub topic 11
Converting from Standard Form to Slope-Intercept Form
Prerequisites and the goal
This chapter assumes that you can plot points, work with signed numbers and fractions, and solve one-step and two-step linear equations.
A linear equation in standard form is commonly written as
\[ Ax + By = C \]
where \(A\), \(B\), and \(C\) are constants. The slope-intercept form of a line is
\[ y = mx + b \]
In this form, \(m\) is the slope and \(b\) is the \(y\)-intercept. Converting standard form means rearranging the equation until \(y\) is alone.
The conversion process
Start with
\[ Ax + By = C \]
First subtract \(Ax\) from both sides:
\[ By = -Ax + C \]
Then divide every term by \(B\):
\[ y = \frac{-A}{B}x + \frac{C}{B} \]
Therefore,
\[ m = -\frac{A}{B} \qquad\text{and}\qquad b = \frac{C}{B} \]
This formula works when \(B \ne 0\). If \(B=0\), the equation describes a vertical line, and vertical lines do not have a slope-intercept form.
Worked example
Convert \(2x + 3y = 6\) to slope-intercept form.
Subtract \(2x\) from both sides:
\[ 3y = -2x + 6 \]
Divide each term by \(3\):
\[ y = -\frac{2}{3}x + 2 \]
The slope is \(-\frac{2}{3}\), and the \(y\)-intercept is \(2\), or the point \((0,2)\).
You can also use the direct formula:
\[ m=-\frac{A}{B}=-\frac{2}{3}, \qquad b=\frac{C}{B}=\frac{6}{3}=2 \]
| Standard form | Slope-intercept form | Slope | \(y\)-intercept |
|---|---|---|---|
| \(2x+3y=6\) | \(y=-\frac23x+2\) | \(-\frac23\) | \(2\) |
| \(4x-2y=8\) | \(y=2x-4\) | \(2\) | \(-4\) |
Signs and special cases
The sign before \(y\) matters. For example:
\[ 4x - 2y = 8 \]
Subtract \(4x\):
\[ -2y=-4x+8 \]
Dividing by \(-2\) changes both signs:
\[ y=2x-4 \]
A common error is to divide by \(2\) instead of \(-2\), which would produce incorrect signs.
If \(B=0\), the equation is vertical:
\[ 3x+0y=9 \]
This simplifies to
\[ x=3 \]
Because \(y\) cannot be isolated as a function of \(x\), there is no slope-intercept form. The slope is undefined.
If \(A=0\), the line is horizontal. For example:
\[ 0x+5y=15 \]
gives \(y=3\). Its slope is \(0\).
A Python check
This function returns the slope and intercept as exact fractions. It rejects vertical lines because \(B=0\).
from fractions import Fraction
def standard_to_slope_intercept(A, B, C):
if B == 0:
raise ValueError("B = 0 gives a vertical line")
return Fraction(-A, B), Fraction(C, B)
m, b = standard_to_slope_intercept(2, 3, 6)
print(m, b) # -2/3 2Common errors
- Forgetting to change the sign of \(Ax\) after moving it across the equal sign.
- Dividing only the \(C\) term by \(B\), instead of dividing every term.
- Losing a negative sign when dividing by a negative coefficient.
- Treating \(x=3\) as if it had a finite slope.
Exercise
Convert 5x - 4y = 20 to slope-intercept form. State the slope and y-intercept.
Show answer
Subtract 5x to get -4y = -5x + 20. Divide by -4: y = 5/4x - 5. The slope is 5/4, and the y-intercept is -5.