Graphs of Linear Functions
Linear functions have a constant rate of change. Test that rate in tables, interpret it as slope, and find two exact points using a slope and a point, intercepts, or slope-intercept form. Road grades and steady sales connect these graphing methods to real-world models.

The Steady Climb
A mountain road that climbs at one constant rate provides a model of steady change. Its grade describes how steep the climb is. On a graph of elevation against horizontal distance, a constant climb forms a straight line
How can a steady rate be drawn as a line reliably? Two distinct correct points determine one unique straight line. For example, plotting (1, 1) and (4, 3) fixes the line through those two points. The graphing methods in this lesson are reliable ways to find such points rather than guess them
The learning tasks are to test tables for a constant rate, compute and interpret slope, graph from a slope and a point or from intercepts, rewrite equations as y = mx + b, distinguish vertical from horizontal lines, and build a linear model from a steady rate and a starting value
Is It Linear?
A table could represent a linear function when its rate of change is constant. Compare the change in output with the change in input: rate of change = Δf(x)/Δx. Check every consecutive pair, not just the first
| x | f(x) |
|---|---|
| 1 | 4 |
| 3 | 10 |
| 5 | 16 |
| 7 | 22 |
Here the x-values increase by 2 each time, while the outputs increase by 6 each time. Each rate is 6/2 = 3, so this table represents a constant rate and earns the verdict linear
| x | f(x) |
|---|---|
| 2 | 3 |
| 4 | 5 |
| 6 | 9 |
| 8 | 15 |
In the second table, the x-values again increase by 2, but the output increases are 2, 4, and 6. The corresponding rates are 2/2, 4/2, and 6/2. They are not constant, so this table is not linear. Increasing outputs alone do not establish linearity
Practice 1: Classify two tables
Could each table represent a linear function? Table P has x-values 1, 4, 7, 10 and corresponding outputs 5, 11, 17, 23. Table Q has x-values 2, 4, 6, 8 and corresponding outputs 1, 2, 4, 8
Table P is linear: each input increase is 3 and each output increase is 6, giving a constant rate of 6/3 = 2. Table Q is not linear: equal input increases of 2 produce output increases of 1, 2, and 4, so the rate changes
Slope: Rise Over Run
Slope, written m, measures a line's rate of change: m = rise/run = Δy/Δx. Rise is the vertical change and run is the horizontal change. A slope of 2 means up 2 units for every 1 unit to the right; from (0, 0), this reaches (1, 2)
A positive slope rises from left to right, and a negative slope falls from left to right. Write integer slopes as fractions to make the moves explicit: −2 = −2/1 means down 2 and right 1
For the family y = mx, every line passes through the origin (0, 0). Changing m changes the slope while keeping that point fixed: positive m produces a rising line, and negative m produces a falling line
Worked example: The road's grade
A mountain road starts at elevation 900 ft. After 3 miles of horizontal travel, its elevation is 2,484 ft. Find its grade, or slope. For this grade calculation, express rise and run in the same units before dividing
Convert the run using 1 mile = 5,280 ft: 3 × 5,280 = 15,840 ft. The rise is 2,484 − 900 = 1,584 ft. Thus m = 1,584/15,840 = 0.1
The road gains 0.1 ft of elevation per 1 ft of horizontal travel, so its grade is 10%. With horizontal distance in feet on the x-axis and elevation in feet on the y-axis, the climb is the straight segment from (0, 900) to (15,840, 2,484)
Practice 2: A trail's grade
A hiking trail starts at elevation 600 ft. After 4 miles of horizontal travel, its elevation is 1,656 ft. Use 1 mile = 5,280 ft
Graph from a Slope and a Point
To graph a line from one point and its slope, first plot the given point. Write m as rise/run. Starting at that point, move the rise vertically and then the run horizontally to reach a second point. Draw the straight line through the two points; repeating the moves gives a third point as a check
Worked example: Slope −3/2 through (−1, 3)
Plot (−1, 3). Move down 3 to (−1, 0), then right 2 to (1, 0). Repeat down 3 and right 2 to obtain the check point (3, −3). Draw and extend the straight line through (−1, 3), (1, 0), and (3, −3)
Practice 3: Identify a point on the line
Graph with Intercepts
An x-intercept is a crossing of the x-axis, where y = 0. Set y = 0 and solve for x. A y-intercept is a crossing of the y-axis, where x = 0. Set x = 0 and solve for y. In each case, zero out the other variable
When the two axis crossings give distinct points, draw the line through them. This method is especially convenient for equations in standard form, Ax + By = C
Worked example: x − 2y = 6
Find the intercepts of x − 2y = 6 and graph the line. For the x-intercept, set y = 0: x − 2(0) = 6, so x = 6 and the point is (6, 0)
For the y-intercept, set x = 0: −2y = 6. Divide both sides by −2 to get y = −3, giving (0, −3). Keep the negative sign when dividing. Plot (6, 0) on the x-axis and (0, −3) on the y-axis, then draw and extend the straight line through them
Practice 4: Find both intercepts
Find the intercepts of 2x − 5y = 20. The original candidate points are (10, 0), (0, −4), (0, 10), (0, 4), and (−4, 0)
Setting y = 0 gives 2x = 20, so the x-intercept is (10, 0). Setting x = 0 gives −5y = 20, so y = −4 and the y-intercept is (0, −4). The negative divisor matters, and the nonzero coordinate must be placed on the correct axis
Slope-Intercept Form
In slope-intercept form, y = mx + b, m is the slope and b is the y-intercept value. The corresponding point on the y-axis is (0, b). First solve for y, then read m and b with their signs, plot (0, b), and use rise over run to find another point
Worked example: 3x + y = 4
Subtract 3x from both sides of 3x + y = 4 to obtain y = −3x + 4. Thus m = −3 and b = 4. Plot (0, 4). Write −3 as −3/1, then move down 3 and right 1 to reach (1, 1). Repeat to obtain (2, −2) as a check. Draw the line through the points
Worked example: A fractional coefficient of y
Write (2/5)y = x − 2 in slope-intercept form and identify m and b. Multiply both sides by the reciprocal, 5/2: (5/2)(2/5)y = (5/2)(x − 2). The left side simplifies to y. Distributing to both terms on the right gives y = (5/2)x − 5
The slope is m = 5/2 and the intercept value is b = −5, not 5. Plot (0, −5), then move up 5 and right 2 to reach (2, 0). Draw the line through those points
Practice 5: Rewrite and choose the first point
Rewrite 5y = 10x − 20 in slope-intercept form and name the first point to plot. The original candidate cards are 2, 10, −4, 4, (0, −4), and (−4, 0). Divide every term by 5: y = 2x − 4. Therefore m = 2, b = −4, and the first point is (0, −4)
Vertical and Horizontal Lines
The equation x = 7 fixes the x-coordinate at 7 while y can vary. Its graph is a vertical line through (7, 0). Its run is zero, so its slope is undefined. It is not a function of x because the same input pairs with many outputs
The equation y = −4 fixes every point at the same height. Its graph is a horizontal line through (0, −4), with slope 0. It is a constant function. A fractional constant works the same way: y = 5/4 is horizontal through (0, 5/4), between heights 1 and 2
| Equation | Graph | Slope | Function of x? |
|---|---|---|---|
| x = c | Vertical through (c, 0) | Undefined | No |
| y = c | Horizontal through (0, c) | 0 | Yes: a constant function |
Two special cases are easy to reverse: x = 0 is the y-axis, while y = 0 is the x-axis. Identify which coordinate is fixed rather than associating the variable name with the line's direction
Practice 6: Classify the equations
Classify x = −3, y = 6, and y = 0 as vertical or horizontal lines. The equation x = −3 is vertical because it fixes x. The equations y = 6 and y = 0 are horizontal because they fix height; y = 0 is the x-axis itself
Model a Real-World Rate
Maya runs a snack stand with steady sales. At opening, t = 0, the register already contains $80. After 6 hours, it contains $416. Find the average sales per hour and a model for the dollars y in the register after t hours. The given information supplies the points (0, 80) and (6, 416)
The rate is the slope between the two points: m = (416 − 80)/(6 − 0) = 336/6 = 56 dollars per hour. The numerator measures the money added through sales, and the denominator measures the elapsed time
The starting amount is b = 80, so the model is y = 56t + 80. Here t is hours since opening and y is dollars in the register. The rate 56 multiplies the time, while the starting value 80 stands alone
To graph the observed six-hour period, put hours since opening from 0 to 6 on the horizontal axis and dollars from 0 to 450 on the vertical axis. Plot (0, 80), the y-intercept, and (6, 416). Connect them with a straight segment. Its slope represents the same 56 dollars per hour calculated from the data
Summary
Linear test: Compare Δf(x)/Δx across the table. A constant rate supports a linear relationship; increasing outputs alone do not
Slope: m = rise/run = Δy/Δx. Positive slopes rise left to right and negative slopes fall. Write an integer as a fraction, such as −2/1, to make the moves explicit. For a road grade, convert rise and horizontal run to matching distance units before dividing
Two exact points: Start from a given point and count rise and run, or find intercepts by setting y = 0 for the x-intercept and x = 0 for the y-intercept. Two distinct points determine the line
Slope-intercept form: Solve for y first. In y = mx + b, keep the signs of m and b, plot (0, b), and use m to find another point
Special lines and models: x = c is vertical, has undefined slope, and is not a function of x. y = c is horizontal and is a constant function with slope 0. In a constant-rate model, the rate becomes m and the starting value becomes b
Quiz
Quiz 1: Match an equation to a line
The three candidate lines are defined by these points: Line A passes through (4, 0) and (0, 2); Line B passes through (2, 0) and (0, 4); Line C passes through (4, 0) and (0, −2)
Quiz 2: Choose a graphing plan
Quiz 3: Model a filling tank
A water tank fills at a steady rate. At t = 0 it contains 25 gallons, and after 6 hours it contains 145 gallons. Find the fill rate in gallons per hour and a model for gallons y after t hours. The original rate choices are 20, about 24.2, and 120; the model choices are y = 20t + 25 and y = 25t + 20
The change in volume is 145 − 25 = 120 gallons. Divide by 6 hours to get 20 gallons per hour. The starting amount is 25 gallons, so the model is y = 20t + 25. Dividing 145 by 6 would count the initial water as newly added water; 120 is the total increase, not the hourly rate. The rate multiplies t, so y = 25t + 20 reverses the two roles