Lesson 5.2 · Linear Functions
Slope-intercept form
A line is completely determined by two facts: how steep it is and where it crosses the -axis. Slope-intercept form puts both facts right in the equation, so you can read a line's graph straight off its formula, and write a formula straight off its graph.
Where the form comes from
Think about a gym that charges a $20 sign-up fee plus $15 per month. After months you've paid
The two numbers each have a job:
- is the rate of change: each extra month adds $15. On the graph, that's the slope.
- is the starting value: at months, you've paid $20. On the graph, that's where the line crosses the -axis.
Every non-vertical line has an equation of this shape.
Definition
Slope-intercept form
The slope-intercept form of a line is
where is the slope and is the -intercept. The line crosses the -axis at the point .
Why is the -intercept? Every point on the -axis has . Substituting gives .
Since a linear function is just a line written with function notation, you'll also see . It means exactly the same thing.
Reading and
To read the slope and intercept, the equation must be in the exact shape , with alone on one side. Take each sign with its number.
| equation | slope | -intercept |
|---|---|---|
The last row is a trap: the terms are in a different order, but the slope is still the coefficient of , which is .
Common mistake
In the -intercept is , not . The form is , so subtracting means . The line crosses the -axis below the origin.
Graphing from the equation
Slope-intercept form gives you a two-step recipe for graphing.
Graphing y = mx + b
- Plot the -intercept .
- From that point, use the slope to find a second point. Then draw the line through both.
Worked example: Graphing with a fractional slope
Graph .
The -intercept is , so plot . The slope is : from go down and right to reach . Repeat to reach . Draw the line.
Check a point: at , , which matches.
A negative slope can be thought of as (down , right ) or (up , left ). Both land on the same line.
Writing the equation of a line
To write , you need two numbers: and . How you find them depends on what you're given.
Worked example: From a graph
Write the equation of the line.
The line crosses the -axis at , so . From to the line rises and runs , so .
When the -intercept isn't given, find the slope first, then substitute one point to solve for .
Worked example: From two points
Write the equation of the line through and .
Slope. , so the equation looks like .
Intercept. The point is on the line, so it must make the equation true:
The equation is . Check the other point: , as it should.
Tip
Always test your equation with a point you didn't use to find . If it satisfies the equation, you almost certainly have the right line.
Rewriting into slope-intercept form
Sometimes an equation arrives in a different shape, like . Solve for (you practiced this with literal equations):
Now you can read it: slope , -intercept .
Worked example: A model
A candle is cm tall and burns down cm per hour. Write an equation for its height after hours. When does it burn out?
The starting value is and the rate is (the height goes down), so .
It burns out when : , so and hours.
Practice
What is the slope of the line ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
What is the -intercept of the line ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Write the equation of the line with slope and -intercept . Enter it in the form .
Enter an expression, e.g. 3x^2 - 2x + 1
Write the equation of the line shown, in the form .
Enter an expression, e.g. 3x^2 - 2x + 1
Which is written in slope-intercept form?
A line has slope and passes through . Write its equation in the form .
Enter an expression, e.g. 3x^2 - 2x + 1
Write the equation of the line through and , in the form .
Enter an expression, e.g. 3x^2 - 2x + 1
A plumber charges a $60 visit fee plus $45 per hour. Write an equation for the cost of a job lasting hours. How much, in dollars, does a -hour job cost?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.