Sub topic 7
Converting Between Point-Slope, Slope-Intercept, and Standard Forms
Prerequisites: You should know how to calculate slope, solve linear equations, distribute multiplication, and work with fractions and negative numbers.
The same line can have several equations. Each form highlights different information:
| Form | Equation | Most useful feature |
|---|---|---|
| Point-slope | `y - y₁ = m(x - x₁)` | A known point and slope |
| Slope-intercept | `y = mx + b` | Slope and y-intercept |
| Standard | `Ax + By = C` | x- and y-intercepts |
Here, m is the slope, (x₁, y₁) is a known point, and b is the y-intercept.
Converting point-slope form to slope-intercept form
Start with:
y - y₁ = m(x - x₁)
Distribute m:
y - y₁ = mx - mx₁
Add y₁ to both sides:
y = mx - mx₁ + y₁
The slope is still m, and the y-intercept is:
b = -mx₁ + y₁
For example, convert y + 2 = 4(x - 3):
- Distribute:
y + 2 = 4x - 12 - Subtract 2:
y = 4x - 14
The slope-intercept form is y = 4x - 14.
Converting point-slope form to standard form
Standard form is:
Ax + By = C
The coefficients are usually integers, and A is non-negative.
Use the same equation:
y + 2 = 4(x - 3)
Distribute:
y + 2 = 4x - 12
Move the variable terms to the left:
-4x + y = -14
Multiply by -1 so that A is positive:
4x - y = 14
This is standard form.
Converting slope-intercept form to the other forms
Slope-intercept form can become point-slope form if you know any point on the line. For y = 3x - 5, the y-intercept gives the point (0, -5). Therefore:
y - (-5) = 3(x - 0)
Simplify:
y + 5 = 3x
To convert y = 3x - 5 to standard form, move the x-term left:
-3x + y = -5
Then multiply by -1:
3x - y = 5
The following path summarizes the conversions:
Fractions and common errors
When the slope is fractional, clear all denominators before declaring an equation to be in standard form.
For example:
y - 1 = 1/2(x - 4)
Multiply every term by 2:
2y - 2 = x - 4
Move variables left and constants right:
-x + 2y = -2
Multiply by -1:
x - 2y = 2
Common errors include changing x - x₁ to x + x₁, moving a term without changing its sign, and multiplying only one term when clearing a fraction. Check a result by substituting the original known point into the final equation.
from fractions import Fraction
def point_slope_to_standard(m, x1, y1):
m, x1, y1 = Fraction(m), Fraction(x1), Fraction(y1)
# y - y1 = m(x - x1) -> -m*x + y = y1 - m*x1
a, b, c = -m, Fraction(1), y1 - m * x1
denominator = a.denominator * b.denominator * c.denominator
a, b, c = int(a * denominator), int(b * denominator), int(c * denominator)
if a < 0 or (a == 0 and b < 0):
a, b, c = -a, -b, -c
return a, b, c
print(point_slope_to_standard(Fraction(1, 2), 4, 1))
# (1, -2, 2), meaning x - 2y = 2Exercise
Convert y - 3 = -2(x + 1) to slope-intercept form and standard form.
Show answer
Distribute to get y - 3 = -2x - 2. Add 3: y = -2x + 1. Move the x-term left: 2x + y = 1.