Learn · Algebra 1

Compare linear functions

Compare the slopes, intercepts, domain, range and end behavior of two linear functions given as equations, tables, graphs or descriptions.

Lesson 4 of 6About 28 minutesMA.912.F.1.5

Written with AI assistance. No teacher has reviewed these lessons and questions yet.

01 · Learn the idea

Pull the same features out of every form

Two linear functions can be handed to you in different forms: one as an equation, the other as a table, a graph or a sentence. To compare them, find the same key features for each one, then put them side by side.

From an equation in the form y = mx + b, read the slope m and the y-intercept b. From a table, the slope is the change in y divided by the change in x between any two rows, and the y-intercept is the y-value in the row where x = 0. From a graph, read two clear points and do the same. From a description, look for a starting value (the y-intercept) and a steady change per unit (the slope).

Here is a small case. Function f is f(x) = 3x + 2. Function g has the table x: 0, 1, 2 and y: 5, 6, 7. For f, the slope is 3 and the y-intercept is 2. For g, y goes up 1 each time x goes up 1, so the slope is 1, and the row with x = 0 shows a y-intercept of 5. So f has the greater slope, and g has the greater y-intercept.

02 · Build understanding

Worked example: an equation and a table

Function f is f(x) = −2x + 9. Function g is linear and has the table x: −1, 1, 3, 5 and y: −7, −1, 5, 11. Compare their slopes and their intercepts.

Step 1: Read f from its equation. The slope is −2 and the y-intercept is 9.

Step 2: Find the slope of g. From the first row to the second, x increases by 2 and y increases by 6, so the slope is 6/2 = 3. Divide by the change in x. The table steps by 2, not by 1.

Step 3: Find the y-intercept of g. The table has no row for x = 0, so step back from (1, −1). Moving 1 to the left lowers y by the slope: −1 − 3 = −4. The y-intercept of g is −4, so g(x) = 3x − 4.

Step 4: Find the x-intercepts by setting each function equal to 0. For f, −2x + 9 = 0 gives x = 4.5. For g, 3x − 4 = 0 gives x = 4/3.

Step 5: Compare. The slope of g is greater (3 > −2), and g is also steeper, because 3 is farther from 0 than −2 is. The function f is decreasing and g is increasing. The y-intercept of f is greater (9 > −4), and so is its x-intercept (4.5 > 4/3).

Step 6: Check g(x) = 3x − 4 against a row you did not use. At x = 5 it gives 3(5) − 4 = 11, which matches the table.

(0, 9)(0, −4)
  • f(x) = −2x + 9
  • g(x) = 3x − 4
The line f falls from its y-intercept (0, 9), and the line g rises from its y-intercept (0, −4).

03 · Build understanding

Domain, range and end behavior

End behavior says what the outputs do as x keeps increasing, and what they do as x keeps decreasing. For a line, the sign of the slope decides it.

If the slope is positive, as in g(x) = 3x − 4, then as x increases the outputs increase without bound, and as x decreases the outputs decrease without bound. If the slope is negative, as in f(x) = −2x + 9, it is the other way around: as x increases the outputs decrease without bound, and as x decreases they increase without bound.

Any linear function with a slope other than 0 has domain all real numbers and range all real numbers. So f and g have the same domain and the same range, even though their end behavior is opposite.

A constant function is the exception. The function h(x) = 4 has slope 0. Its domain is still all real numbers, but its range is the single value {y | y = 4}, and its outputs stay at 4 in both directions.

04 · Build understanding

Worked example: two savings plans

Aria starts with $150 and adds $20 each week. Ben’s savings after w weeks are given by B(w) = 35w + 60 dollars. Compare the two plans.

Step 1: Turn Aria’s description into features. Her starting amount, $150, is the y-intercept. Her steady change, $20 per week, is the slope. So A(w) = 20w + 150.

Step 2: Read Ben’s features from his equation. The slope is $35 per week and the y-intercept is $60.

Step 3: Compare. Aria starts with more, because 150 > 60. Ben saves faster, because 35 > 20. So Ben’s line starts lower but is steeper.

Step 4: Check with values. At week 4, Aria has 150 + 20(4) = $230 and Ben has 35(4) + 60 = $200, so Aria is still ahead. At week 6 both have $270. At week 10, Aria has $350 and Ben has $410. The steeper line has caught up and passed.

In this situation weeks can’t be negative, so both functions have the domain w ≥ 0. Their ranges differ: Aria’s amounts are A(w) ≥ 150, and Ben’s are B(w) ≥ 60.

(0, 150)(0, 60)(6, 270)
  • Aria
  • Ben
Aria’s line starts at (0, 150), Ben’s steeper line starts at (0, 60), and they meet at (6, 270).

05 · Build understanding

Three mistakes to watch for

Using the change in y as the slope. In the table x: −1, 1, 3, 5 and y: −7, −1, 5, 11, the y-values go up by 6, but the slope is not 6. The x-values go up by 2, so the slope is 6/2 = 3.

Taking the first row of a table as the y-intercept. That table starts at x = −1, where y = −7. The y-intercept is the output at x = 0, which is −4.

Mixing up greater and steeper. Compare slopes −5 and 3. The slope 3 is the greater number. The line with slope −5 is the steeper one, because steepness depends on the size of the slope without its sign.

Apply and explain

Your turn

Function f is f(x) = −4x + 10. Function g is linear with g(1) = 1 and g(3) = 7. A classmate says, "g is steeper because 7 is bigger than −4." Explain what is wrong, then compare the slopes and y-intercepts correctly.

Use paper or explain your thinking aloud before opening the solution.

Check your reasoning

The 7 is an output of g, not its slope. The slope of g is (7 − 1)/(3 − 1) = 3, and stepping back from (1, 1) gives a y-intercept of 1 − 3 = −2. The slope of f is −4 and its y-intercept is 10. So g has the greater slope, since 3 > −4, but f is steeper, since 4 > 3 when the signs are set aside. The y-intercept of f is greater, since 10 > −2.

  • Says that 7 is an output and finds the slope of g as 3.
  • Finds the y-intercept of g as −2 and compares it with 10.
  • Separates "greater slope" (g) from "steeper" (f).

Ready to practice?

Try the questions, get feedback, and review your reasoning.

Compare linear functions: practice →