Math Core

Lesson 4.5 · Functions

Comparing functions

Functions show up in many disguises: an equation, a table, a graph, or a sentence. To compare two of them, like two savings plans or two phone plans, you need to pull the same facts out of each one, no matter how it's written.

Two key numbers

For a linear function y=mx+by = mx + b, two numbers tell the story:

  • The rate of change mm (the slope): how much yy changes when xx goes up by 1.
  • The initial value bb (the yy-intercept): the value of yy when x=0x = 0.

Finding rate of change and initial value

representationrate of changeinitial value
equation y=mx+by = mx + bmmbb
tablechange in ychange in x\dfrac{\text{change in } y}{\text{change in } x}the yy-value when x=0x = 0
graphrise over runwhere the line crosses the yy-axis
words"per", "each", "every""starts at", "fee", "already has"

Worked example: An equation vs. a table

Function A is y=4x+1y = 4x + 1. Function B is given by this table.

xx024
yy31119

Compare their rates of change and initial values.

  • Function A: rate of change 4, initial value 1.
  • Function B: yy rises 8 when xx rises 2, so the rate is 82=4\dfrac{8}{2} = 4. At x=0x = 0, y=3y = 3, so the initial value is 3.

The rates are equal, so the lines are parallel. Function B always stays 2 units above Function A.

Worked example: Words vs. a graph

Jon has $40 saved and adds $15 each week. Lia's savings are shown on the graph. Who saves faster, and who started with more?

Lia's savings in dollars after x weeks.Open in grapher →
  • Jon: y=15x+40y = 15x + 40. Rate $15 per week, start $40.
  • Lia: rate 90−104−0=804=20\dfrac{90 - 10}{4 - 0} = \dfrac{80}{4} = 20 dollars per week, start $10.

Lia saves faster ($20 vs. $15 a week). Jon started with more ($40 vs. $10).

Tip

When comparing "which grows faster," compare rates of change. When comparing "who started ahead," compare initial values. These can have different winners, as with Jon and Lia.

Linear or nonlinear?

A linear function changes by the same amount every time xx goes up by the same step. Not every function does.

Look at y=x2y = x^2, the area of a square with side xx:

xx01234
yy014916

The changes in yy are 1,3,5,71, 3, 5, 7. They aren't constant, so the function is nonlinear. Its graph curves.

y = x² curves upward. The line y = 2x + 1 is straight.Open in grapher →

Spotting a linear function

  • Equation: it can be written as y=mx+by = mx + b. No x2x^2, no xx in a denominator, no xx as an exponent.
  • Table: equal steps in xx give equal changes in yy.
  • Graph: a straight line.

Worked example: Classify each function

  1. y=3x−5y = 3x - 5
  2. y=x2+1y = x^2 + 1
  3. y=6xy = \dfrac{6}{x}
  4. y=x6y = \dfrac{x}{6}

Solutions.

  1. Linear: slope 3, intercept −5-5.
  2. Nonlinear: it has x2x^2.
  3. Nonlinear: xx is in the denominator. Try x=1,2,3x = 1, 2, 3: y=6,3,2y = 6, 3, 2. The changes are −3-3 and −1-1.
  4. Linear: x6=16x\dfrac{x}{6} = \dfrac{1}{6}x, a line with slope 16\dfrac{1}{6}.

Common mistake

Don't confuse y=x6y = \dfrac{x}{6} with y=6xy = \dfrac{6}{x}. Dividing xx by a number is linear. Dividing a number by xx is not.

Practice

Practice 1

Function A is y=3x+7y = 3x + 7. Function B is given by the table. Which has the greater rate of change?

xx123
yy51015
Practice 2

Function A is shown on the graph. Function B is y=2x+5y = 2x + 5. How much greater is Function B's initial value than Function A's?

y = 2x - 2(0, -2)(3, 4)Open in grapher →

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

Which function is nonlinear?

Practice 4

Is the function in this table linear?

xx0123
yy1248
Practice 5

Printer A prints 90 pages in 3 minutes at a steady rate. Printer B's pages are shown on the graph. How many more pages per minute does Printer A print?

Printer B: pages printed after x minutes.Open in grapher →

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 6

Function A is given by the table. Function B has the same rate of change as Function A, but its initial value is 8. When x=10x = 10, how much greater is Function B than Function A?

xx246
yy111723

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 7

Which situation is described by a nonlinear function?