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.
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 with fixed numbers and . 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 , and stands for the output.
- Rule 1: . Multiply the input by , then add .
- Rule 2: . The raised tells you to multiply the input by itself, so . This is called squaring the input. For example, .
Each rule gives exactly one output for every input, so both are functions. In Rule 2, two different inputs can share an output: , because a negative times a negative is positive, and . That is allowed in a function.
The table shows both rules for the inputs , , and . Each change column shows how much that rule's output rises from the row above.
| Input x | Rule 1 output | Change in Rule 1 | Rule 2 output | Change in Rule 2 |
|---|---|---|---|---|
no row above | no row above | |||
Read down the two change columns. From each row to the next, goes up by the same step, .
- Rule 1's output rises by every time. That is a constant difference.
- Rule 2's output rises by , then , then . Those are changing differences.
Rule 1's constant difference is no accident. Raise any input by . By the distributive property, . The new output is the old output plus , whatever is. Every rule works this way: , so a step of in always changes by .
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 and the vertical axis shows the output . Each pair is written as (input, output).
Line A is the graph of Rule 1, . Rule 1's table pairs , , and all lie on it.
The four labeled points are computed from Rule 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.
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 divided by the change in . It is also called the rate of change between them.
- On Line A, any two points give the slope . For example, from to it is .
- For the samples, the slope from to is , but the slope from to is .
A line through and rises for each step of , so it would reach . The sample is instead. Because , 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 , with fixed numbers and , gives all of its input-output pairs. Then a step of in always changes by , because . So the slope between any two of its points is . Here , 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.
Worked example
Linear or nonlinear?
Decide whether each function is linear or nonlinear. (a) for all real numbers . (b) A function whose table shows the input-output pairs , and .
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.
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.
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.
Find the slope between (2, 7) and (4, 15) in the same way.
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.
Answer
Function (a) is linear, with and . Function (b) is nonlinear, because its three points give the unequal slopes and .
Now it is your turn to give examples of functions that are not linear. A convincing example has three parts:
- a rule that gives exactly one output for each permitted input,
- the domain, so it is clear which inputs are permitted,
- evidence: three computed points that give two unequal slopes.
Rule 2, for all real numbers , is one example, and you have already seen its evidence. The table below gives three more. Two of them use new notation: means , and means . Division by is undefined, so the input is not permitted in that last rule. After the table, a worked example builds one more example from a measurement.
| Rule and domain | Outputs for three inputs | Points | Two slopes |
|---|---|---|---|
for all real numbers | , , | , , | and |
for all real numbers | , , | , , | and |
for all real numbers except | , , | , , | and |
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 centimeters. Show evidence that your function is not linear.
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.
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.
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).
Find the slope between (2, 4) and (5, 25). The area changes by 21 square centimeters while the side changes by 3 centimeters.
Find the slope between (5, 25) and (10, 100). The area changes by 75 square centimeters while the side changes by 5 centimeters.
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.
Answer
One function that is not linear is the area of a square, for side lengths . Its points , and give the unequal slopes and .
Finally, compare how the two kinds of function change. Use equal steps in , so that the changes in can be compared fairly.
- A linear function changes by the same amount, , at every step of . Its outputs rise steadily when is positive, fall steadily when is negative, and stay the same when .
- A nonlinear function has no single rate of change: at least two of its slopes differ. For example, steps of in gave the changes , , for , which grow, and , then for , 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 have smaller outputs than Line A at , and (compare , , with , , ), but a larger output at ( compared with ). The next example looks at this more closely.
Worked example
Compare two patterns of change
Both and have the domain of all real numbers . Compare how their outputs change over the inputs .
The first rule is linear, with m = 4 and b = 0. Compute its outputs by multiplying each input by 4.
The second rule is the squaring rule. Compute its outputs by multiplying each input by itself.
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.
Subtract neighboring outputs of the squaring rule: the changes are all different, and they grow.
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.
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.
Answer
Over these inputs, rises by the constant amount at every step. rises by , , , and : less than in the first two steps and more than in the last three. That is why it equals at and is greater at .
Takeaway. A linear function has one constant rate of change: its rule can be written as , and every pair of its points gives the slope . A nonlinear function does not: at least two of its slopes differ. Examples include , , for , 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 -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.