Chapter 9 ยท Functions
Evaluating Nonlinear Functions
Find the output of a nonlinear function for a chosen input. Substitute the input into the rule, then follow the order of operations.
A function is a rule that gives each permitted input exactly one output. The input is the number you put into the rule, and the output is the number the rule gives back. The domain is the set of all permitted inputs.
To evaluate a function, you find the output that goes with one input you choose from the domain.
You already know how to tell linear functions from nonlinear ones. A linear function has a rule you can write as , where is the input, is the output, and and are fixed numbers ( can be zero or any other number). A nonlinear function is a function whose rule you cannot write that way. In this lesson, you will evaluate nonlinear functions.
Start with a rule you know. A square has a side length of centimeters (cm) and an area of square centimeters, where . The small raised is an exponent. It tells you to use as a factor twice, so .
Here the input is and the output is . A side length must be positive, so the domain is .
To evaluate this function at , replace with : . A square with a side length of cm has an area of square centimeters. The table evaluates this input and three more in the same way.
| Input: side length s (cm) | Substitute and calculate | Output: area A (square cm) |
|---|---|---|
Look at the outputs in the table: , , , . Each time the input goes up by , the output goes up by , then , then . The output of a linear function would change by the same amount each time the input goes up by , so these unequal jumps show that this function is nonlinear.
That matters when you evaluate. For this function, you cannot find a new output by adding a fixed amount to the last one. You go back to the rule every time.
Key concept
Substitute, then follow the order of operations
When you have the rule for a function, evaluate it at an input in three steps:
- Check that the input is in the domain.
- Substitute: replace every copy of the input variable (the letter that stands for the input) with the value you chose. Put the value in parentheses so that a negative sign or an exponent stays attached to the whole value.
- Calculate using the order of operations: inside parentheses first, then exponents, then multiplication and division from left to right, then addition and subtraction from left to right.
A function gives each permitted input exactly one output, so these steps lead to exactly one answer. Two different inputs may still share an output.
Worked example
A positive input
A function has the rule , where is the input and is the output. The input can be any real number, which means any number on the number line. Evaluate the function at .
Check the domain: 3 is a real number, so it is a permitted input. The rule holds for every permitted input, so it still holds when you replace x with 3. Put the 3 in parentheses so it stays separate from the 2.
Work out the exponent first, because exponents come before multiplication. The exponent belongs only to the 3, and 3 squared means 3 times 3, which is 9.
Multiply next, because multiplication comes before addition: 2 times 9 is 18.
Add last: 18 plus 1 is 19.
Answer
When , the output of the function is .
Worked example
A negative input
A function has the rule , where is the input and is the output. The input can be any real number. Evaluate the function at .
Negative 3 is a real number, so it is in the domain. The rule uses x twice, so replace both copies with negative 3. The parentheses keep the negative sign attached to the input.
Work out the exponent first. Squaring negative 3 means multiplying negative 3 by itself, and a negative number times a negative number is positive.
Multiply next: 4 times negative 3. A positive number times a negative number is negative.
Put both results back into the rule. Subtracting negative 12 is the same as adding 12, so add 9 and 12.
Answer
When , the output of the function is .
| Input x | Substitute and calculate | Output y |
|---|---|---|
Read down the output column. The inputs and are different, yet both give the output . The inputs and both give . That is fine for a function: different inputs may share an output. What a function never does is give one input two different outputs. You can see that here, because each input in the table has just one output.
Worked example
A nonlinear rule with a restricted domain
A rectangle has an area of square centimeters and a width of centimeters. Its length , in centimeters, is the area divided by the width: . A width must be positive, so the domain is . Find the length when the width is cm, and again when the width is cm.
Check the domain. Both 5 and 7 are greater than 0, so both are permitted inputs. Zero is not permitted: a rectangle cannot have a width of 0, and you cannot divide by 0.
Replace w with 5. The fraction bar means divide, and 24 divided by 5 is exactly 4.8, because 5 times 4.8 is 24.
Replace w with 7. Dividing 24 by 7 gives a decimal that never ends, so the fraction itself is the exact output.
For a length you can measure, divide and round to the nearest tenth. The hundredths digit is 2, which is less than 5, so the tenths digit stays 4. A rounded value is an approximation, so write the approximately-equal sign in place of the equals sign.
Answer
When the width is cm, the length is exactly cm. When the width is cm, the length is exactly cm, which is about cm.
Takeaway: To evaluate a nonlinear function, choose an input from the domain, substitute it for the variable, and follow the order of operations, working out exponents before you multiply. You get exactly one output for that input, although a different input may give the same output. The outputs of a nonlinear function do not have to change by a fixed amount, so go back to the rule for each new input.