Chapter 9 ยท Functions

Linear or Nonlinear? Comparing Patterns of Change

Tell linear functions from nonlinear ones using rules, tables and graph points, give your own nonlinear examples, and compare how their outputs change.

20 min read

Some patterns change by the same amount at every step. Others speed up or slow down. This lesson gives you a reliable way to tell which kind you are looking at.

First, recall that a function pairs each permitted input with exactly one output. The set of permitted inputs is called the domain. Different inputs may share an output, but one input can never have two outputs.

You already know one family of functions: linear functions, whose rules can be written as y=mx+by = mx + b with fixed numbers mm and bb. Functions outside that family are called nonlinear. You will learn to tell the two kinds apart, give your own examples of nonlinear functions, and compare how the two kinds change.

Start with two rules. For both, the domain is all real numbers xx, and yy stands for the output.

  • Rule 1: y=2x+1y = 2x + 1. Multiply the input by 22, then add 11.
  • Rule 2: y=x2y = x^2. The raised 22 tells you to multiply the input by itself, so x2=xร—xx^2 = x \times x. This is called squaring the input. For example, 32=3ร—3=93^2 = 3 \times 3 = 9.

Each rule gives exactly one output for every input, so both are functions. In Rule 2, two different inputs can share an output: (โˆ’2)ร—(โˆ’2)=4(-2) \times (-2) = 4, because a negative times a negative is positive, and 2ร—2=42 \times 2 = 4. That is allowed in a function.

The table shows both rules for the inputs 00, 11, 22 and 33. Each change column shows how much that rule's output rises from the row above.

Rule 1 and Rule 2 for the inputs 0, 1, 2 and 3
Input xRule 1 outputChange in Rule 1Rule 2 outputChange in Rule 2
00
2(0)+1=12(0) + 1 = 1
no row above
0ร—0=00 \times 0 = 0
no row above
11
2(1)+1=32(1) + 1 = 3
3โˆ’1=23 - 1 = 2
1ร—1=11 \times 1 = 1
1โˆ’0=11 - 0 = 1
22
2(2)+1=52(2) + 1 = 5
5โˆ’3=25 - 3 = 2
2ร—2=42 \times 2 = 4
4โˆ’1=34 - 1 = 3
33
2(3)+1=72(3) + 1 = 7
7โˆ’5=27 - 5 = 2
3ร—3=93 \times 3 = 9
9โˆ’4=59 - 4 = 5

Read down the two change columns. From each row to the next, xx goes up by the same step, 11.

  • Rule 1's output rises by 22 every time. That is a constant difference.
  • Rule 2's output rises by 11, then 33, then 55. Those are changing differences.

Rule 1's constant difference is no accident. Raise any input xx by 11. By the distributive property, 2(x+1)+1=2x+2+1=(2x+1)+22(x + 1) + 1 = 2x + 2 + 1 = (2x + 1) + 2. The new output is the old output plus 22, whatever xx is. Every rule y=mx+by = mx + b works this way: m(x+1)+b=mx+m+b=(mx+b)+mm(x + 1) + b = mx + m + b = (mx + b) + m, so a step of 11 in xx always changes yy by mm.

Rule 2 has no such fixed amount. In the table, each step multiplies a larger number by itself, and the three changes are all different.

Now look at the same two rules on a coordinate plane. In the figure below, the horizontal axis shows the input xx and the vertical axis shows the output yy. Each pair is written as (input, output).

Line A is the graph of Rule 1, y=2x+1y = 2x + 1. Rule 1's table pairs (0,1)(0, 1), (1,3)(1, 3), (2,5)(2, 5) and (3,7)(3, 7) all lie on it.

The four labeled points are computed from Rule 2, y=x2y = x^2. They are samples of its graph: Rule 2 has an output for every real input, but only these four exact points are plotted. No curve is drawn through them.

Coordinate grid from x -1 to 4 and y -1 to 10, with a grid step of 1, showing 5 plotted elements. Details: line 2 x plus -1 y equals -1, named Line A; point at (0, 0), named (0, 0); point at (1, 1), named (1, 1); point at (2, 4), named (2, 4); point at (3, 9), named (3, 9).
Line A is the graph of y=2x+1y = 2x + 1. The four labeled points are samples of y=x2y = x^2 at x=0,1,2,3x = 0, 1, 2, 3.

Are the four samples in the figure above collinear, meaning all on one straight line? Decide from the coordinates, not from how the picture looks. The slope between two points is the change in yy divided by the change in xx. It is also called the rate of change between them.

  • On Line A, any two points give the slope 22. For example, from (0,1)(0, 1) to (3,7)(3, 7) it is 7โˆ’13โˆ’0=63=2\frac{7 - 1}{3 - 0} = \frac{6}{3} = 2.
  • For the samples, the slope from (0,0)(0, 0) to (1,1)(1, 1) is 1โˆ’01โˆ’0=1\frac{1 - 0}{1 - 0} = 1, but the slope from (1,1)(1, 1) to (2,4)(2, 4) is 4โˆ’12โˆ’1=3\frac{4 - 1}{2 - 1} = 3.

A line through (0,0)(0, 0) and (1,1)(1, 1) rises 11 for each step of 11, so it would reach (2,2)(2, 2). The sample is (2,4)(2, 4) instead. Because 1โ‰ 31 \neq 3, the samples are not collinear, so Rule 2 is not linear.

Key concept

Linear means one constant rate of change

A function is linear when one rule y=mx+by = mx + b, with fixed numbers mm and bb, gives all of its input-output pairs. Then a step of hh in xx always changes yy by mhmh, because m(x+h)+b=(mx+b)+mhm(x + h) + b = (mx + b) + mh. So the slope between any two of its points is mhh=m\frac{mh}{h} = m. Here hโ‰ 0h \neq 0, because two different points of a function have different inputs. On a graph, all of its points lie on one straight line that is not vertical.

A function is nonlinear when no such rule fits all of its pairs. To prove it, find three of its points that give two unequal slopes. No single line can pass through all three.

y2โˆ’y1x2โˆ’x1=mforย everyย pairย ofย pointsย withย x1โ‰ x2\frac{y_2 - y_1}{x_2 - x_1} = m \quad \text{for every pair of points with } x_1 \neq x_2

Worked example

Linear or nonlinear?

Decide whether each function is linear or nonlinear. (a) y=7โˆ’3xy = 7 - 3x for all real numbers xx. (b) A function whose table shows the input-output pairs (0,3)(0, 3), (2,7)(2, 7) and (4,15)(4, 15).

  1. For (a), try to write the rule in the form y = mx + b. Subtracting 3x is the same as adding negative 3x, and changing the order of two terms does not change their sum.

    y=7โˆ’3x=7+(โˆ’3x)=โˆ’3x+7y = 7 - 3x = 7 + (-3x) = -3x + 7
  2. The rule now has the form y = mx + b, so read off m and b. Rule (a) is linear for every real input, and its output falls by 3 each time x rises by 1.

    m=โˆ’3,b=7m = -3, \quad b = 7
  3. For (b) there is no rule, so use the points. Find the slope between (0, 3) and (2, 7). The inputs are different, so the change in x is not 0 and the division is allowed.

    7โˆ’32โˆ’0=42=2\frac{7 - 3}{2 - 0} = \frac{4}{2} = 2
  4. Find the slope between (2, 7) and (4, 15) in the same way.

    15โˆ’74โˆ’2=82=4\frac{15 - 7}{4 - 2} = \frac{8}{2} = 4
  5. Compare the two slopes. A linear function gives the same slope between every pair of its points. These slopes are unequal, so no single line passes through all three points, whatever other pairs the function may have.

    2โ‰ 42 \neq 4

Answer

Function (a) is linear, with m=โˆ’3m = -3 and b=7b = 7. Function (b) is nonlinear, because its three points give the unequal slopes 22 and 44.

Coordinate grid from x -1 to 7 and y -1 to 14, with a grid step of 1, showing 5 plotted elements. Details: line 2 x plus -1 y equals -1, named Line A; point at (0, 1), named (0, 1); point at (1, 3), named (1, 3); point at (3, 7), named (3, 7); point at (6, 13), named (6, 13).
The four table pairs have unequal gaps in xx, yet all four lie on Line A, y=2x+1y = 2x + 1.

Now it is your turn to give examples of functions that are not linear. A convincing example has three parts:

  1. a rule that gives exactly one output for each permitted input,
  2. the domain, so it is clear which inputs are permitted,
  3. evidence: three computed points that give two unequal slopes.

Rule 2, y=x2y = x^2 for all real numbers xx, is one example, and you have already seen its evidence. The table below gives three more. Two of them use new notation: x3x^3 means xร—xร—xx \times x \times x, and 12x\frac{12}{x} means 12รทx12 \div x. Division by 00 is undefined, so the input 00 is not permitted in that last rule. After the table, a worked example builds one more example from a measurement.

Three more functions that are not linear
Rule and domainOutputs for three inputsPointsTwo slopes
y=x2+1y = x^2 + 1 for all real numbers xx
0ร—0+1=10 \times 0 + 1 = 1, 1ร—1+1=21 \times 1 + 1 = 2, 2ร—2+1=52 \times 2 + 1 = 5
(0,1)(0, 1), (1,2)(1, 2), (2,5)(2, 5)
2โˆ’11โˆ’0=1\frac{2 - 1}{1 - 0} = 1 and 5โˆ’22โˆ’1=3\frac{5 - 2}{2 - 1} = 3
y=x3y = x^3 for all real numbers xx
0ร—0ร—0=00 \times 0 \times 0 = 0, 1ร—1ร—1=11 \times 1 \times 1 = 1, 2ร—2ร—2=82 \times 2 \times 2 = 8
(0,0)(0, 0), (1,1)(1, 1), (2,8)(2, 8)
1โˆ’01โˆ’0=1\frac{1 - 0}{1 - 0} = 1 and 8โˆ’12โˆ’1=7\frac{8 - 1}{2 - 1} = 7
y=12xy = \frac{12}{x} for all real numbers xx except 00
12รท1=1212 \div 1 = 12, 12รท2=612 \div 2 = 6, 12รท3=412 \div 3 = 4
(1,12)(1, 12), (2,6)(2, 6), (3,4)(3, 4)
6โˆ’122โˆ’1=โˆ’6\frac{6 - 12}{2 - 1} = -6 and 4โˆ’63โˆ’2=โˆ’2\frac{4 - 6}{3 - 2} = -2

Worked example

Give an example from a square

Give an example of a function that is not linear, using a square whose side length is ss centimeters. Show evidence that your function is not linear.

  1. Choose a quantity that depends on the side length: the area. A square's area is its side length multiplied by itself. Let A stand for the area in square centimeters.

    A=sร—s=s2A = s \times s = s^2
  2. State the domain. A side length must be positive, so the permitted inputs are all real numbers greater than 0. Each side length gives exactly one area, so this rule is a function.

    s>0s > 0
  3. Compute three points by multiplying each chosen side length by itself. Side lengths of 2 cm, 5 cm and 10 cm give the points (2, 4), (5, 25) and (10, 100).

    2ร—2=4,5ร—5=25,10ร—10=1002 \times 2 = 4, \quad 5 \times 5 = 25, \quad 10 \times 10 = 100
  4. Find the slope between (2, 4) and (5, 25). The area changes by 21 square centimeters while the side changes by 3 centimeters.

    25โˆ’45โˆ’2=213=7\frac{25 - 4}{5 - 2} = \frac{21}{3} = 7
  5. Find the slope between (5, 25) and (10, 100). The area changes by 75 square centimeters while the side changes by 5 centimeters.

    100โˆ’2510โˆ’5=755=15\frac{100 - 25}{10 - 5} = \frac{75}{5} = 15
  6. Compare the slopes. A linear function gives the same slope between every pair of its points, but 7 and 15 are unequal. No single line passes through all three points.

    7โ‰ 157 \neq 15

Answer

One function that is not linear is the area of a square, A=s2A = s^2 for side lengths s>0s > 0. Its points (2,4)(2, 4), (5,25)(5, 25) and (10,100)(10, 100) give the unequal slopes 77 and 1515.

Finally, compare how the two kinds of function change. Use equal steps in xx, so that the changes in yy can be compared fairly.

  • A linear function y=mx+by = mx + b changes by the same amount, mm, at every step of 11. Its outputs rise steadily when mm is positive, fall steadily when mm is negative, and stay the same when m=0m = 0.
  • A nonlinear function has no single rate of change: at least two of its slopes differ. For example, steps of 11 in xx gave the changes 11, 33, 55 for y=x2y = x^2, which grow, and โˆ’6-6, then โˆ’2-2 for y=12xy = \frac{12}{x}, which shrink in size.

So a nonlinear function can change more slowly than a linear one over some steps and faster over others. The first figure showed this: the samples of y=x2y = x^2 have smaller outputs than Line A at x=0x = 0, 11 and 22 (compare 00, 11, 44 with 11, 33, 55), but a larger output at x=3x = 3 (99 compared with 77). The next example looks at this more closely.

Worked example

Compare two patterns of change

Both y=4xy = 4x and y=x2y = x^2 have the domain of all real numbers xx. Compare how their outputs change over the inputs x=0,1,2,3,4,5x = 0, 1, 2, 3, 4, 5.

  1. The first rule is linear, with m = 4 and b = 0. Compute its outputs by multiplying each input by 4.

    4(0)=0,ย 4(1)=4,ย 4(2)=8,ย 4(3)=12,ย 4(4)=16,ย 4(5)=204(0) = 0,\ 4(1) = 4,\ 4(2) = 8,\ 4(3) = 12,\ 4(4) = 16,\ 4(5) = 20
  2. The second rule is the squaring rule. Compute its outputs by multiplying each input by itself.

    0ร—0=0,ย 1ร—1=1,ย 2ร—2=4,ย 3ร—3=9,ย 4ร—4=16,ย 5ร—5=250 \times 0 = 0,\ 1 \times 1 = 1,\ 2 \times 2 = 4,\ 3 \times 3 = 9,\ 4 \times 4 = 16,\ 5 \times 5 = 25
  3. The inputs rise by equal steps of 1, so the changes can be compared fairly. Subtract neighboring outputs of the linear rule: every change is 4.

    4โˆ’0=4,ย 8โˆ’4=4,ย 12โˆ’8=4,ย 16โˆ’12=4,ย 20โˆ’16=44 - 0 = 4,\ 8 - 4 = 4,\ 12 - 8 = 4,\ 16 - 12 = 4,\ 20 - 16 = 4
  4. Subtract neighboring outputs of the squaring rule: the changes are all different, and they grow.

    1โˆ’0=1,ย 4โˆ’1=3,ย 9โˆ’4=5,ย 16โˆ’9=7,ย 25โˆ’16=91 - 0 = 1,\ 4 - 1 = 3,\ 9 - 4 = 5,\ 16 - 9 = 7,\ 25 - 16 = 9
  5. Compare the changes step by step, writing the squaring rule's change first. It is less than 4 in the first two steps and more than 4 in the last three.

    1<4,ย 3<4,ย 5>4,ย 7>4,ย 9>41 < 4,\ 3 < 4,\ 5 > 4,\ 7 > 4,\ 9 > 4
  6. Now compare the outputs at each input, again writing the squaring rule first. It falls behind while its changes are smaller, then catches up at the input 4 and is ahead at the input 5.

    0=0,ย 1<4,ย 4<8,ย 9<12,ย 16=16,ย 25>200 = 0,\ 1 < 4,\ 4 < 8,\ 9 < 12,\ 16 = 16,\ 25 > 20

Answer

Over these inputs, y=4xy = 4x rises by the constant amount 44 at every step. y=x2y = x^2 rises by 11, 33, 55, 77 and 99: less than 44 in the first two steps and more than 44 in the last three. That is why it equals y=4xy = 4x at x=4x = 4 and is greater at x=5x = 5.

Takeaway. A linear function has one constant rate of change: its rule can be written as y=mx+by = mx + b, and every pair of its points gives the slope mm. A nonlinear function does not: at least two of its slopes differ. Examples include y=x2y = x^2, y=x3y = x^3, y=12xy = \frac{12}{x} for xโ‰ 0x \neq 0, and the area of a square. To decide, use exact coordinates rather than the look of a graph. Compare slopes, or compare differences when the xx-steps are equal. A table speaks only for the inputs it shows unless you also have a rule.

Next, you will evaluate nonlinear functions: finding their outputs for given inputs.