How to find the equation of a line
Find the slope m first. From two points it is the rise over the run: (y₂ − y₁) ÷ (x₂ − x₁). Then put one point into y = mx + b to find b. Here are your numbers:
Here it is with your numbers:
- Slope: m = (−2 − (−1)) ÷ (2 − (−3)), which is −1/5 (−0.2)
- y-intercept: b = y₁ − m × x₁: −1 − (−1/5) × (−3), which is −8/5 (−1.6)
- Slope-intercept form: y = −(1/5)x − 8/5
- Point-slope form, through (−3, −1): y + 1 = −(1/5)(x + 3)
- Standard form, with whole numbers: x + 5y = −8
It means for every 1 step right, the line goes down 1/5.
Slope-intercept, point-slope and standard form
- Slope-intercept form, y = mx + b: shows the slope and where the line crosses the y-axis.
- Point-slope form, y − y₁ = m(x − x₁): uses the slope and any one point on the line.
- Standard form, Ax + By = C: usually written with whole numbers and A not negative, so y = −3x + 5 becomes 3x + y = 5.
A vertical line, like x = −3, has no slope, so it has no slope-intercept form. A horizontal line has slope 0: y = −6.
FAQs
What is 2x + y = −2 in slope-intercept form?
Get y on its own: subtract 2x from both sides, so y = −2x − 2. The slope is −2 and the line crosses the y-axis at (0, −2).
What is the slope of y = −6x + 3?
In y = mx + b the slope is the number in front of x, so the slope is −6, and the line crosses the y-axis at (0, 3).
Sources
- OpenStax Intermediate Algebra 2e: 3.3 Find the Equation of a Line: slope-intercept and point-slope form
- OpenStax Intermediate Algebra 2e: 3.1 Graph Linear Equations in Two Variables: standard form Ax + By = C