Function Evaluator Notes
These Function Evaluator Notes explain how to work out what a function returns for one input value, with the working shown line by line. Every x in the rule stands for the same input, so each one is replaced by that value before anything is calculated. Each term is then worked out on its own, which keeps the signs and the powers from getting tangled, and only afterwards are the terms added together. Following the same pattern every time makes f of a value easy to read off.
Step-by-step method
- Set up the problem.
- Replace every x in the function rule with the input value.
- Work out each term on its own, dealing with any brackets and powers before multiplying.
- Add and subtract the results from left to right.
Depending on the function, some of these steps are not needed, so they are skipped.
Useful Tips to Remember
To evaluate \(f(a)\), replace every \(x\) in the function with \(a\), using brackets around the value, then simplify. The notation \(f(3)\) means the output when the input is 3, not \(f\) times 3. Negative and fractional inputs need extra care with brackets and powers. If the function contains \(x\) more than once, every one of them must be replaced with the same value.
Required knowledge
- How to evaluate an expression, covered in the Evaluating Algebraic Expressions Calculator.
Where Is Evaluating Functions Used?
Evaluating a function means putting an input value into a rule and finding the output, written as \(f(x)\). Functions describe how one quantity depends on another, so evaluating them answers practical questions like how much a plan costs for a certain usage, or how high a ball is after a certain time. Spreadsheets, computer programs and calculators are full of functions that take an input and return a result. Learning to evaluate them by hand builds the understanding needed for graphs, modelling and calculus.
- Finding the cost of a phone plan for a given amount of data
- Working out the height of a thrown object at a given time
- Using spreadsheet and programming functions with inputs
- Converting temperatures with a rule such as \(f(c) = 1.8c + 32\)
- Plotting points on a graph from a function rule
Evaluating Functions Practice Problems
Example 1 evaluates \(f(x) = x^3 - 2x + 1\) at \(x = -2\), and Example 2 evaluates \(f(x) = x^2 + 2x + 1\) at the fraction \(x = \frac{1}{2}\). Examples 3 and 4 give you two more of the same kind to try, \(f(x) = 3x^{2} - 4x + 2,\; x = 2\) and \(f(x) = 2x - 5,\; x = -3\). Try substituting yourself, then compare each step.
The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. Try each problem on paper first, then open the example and check your working one step at a time, so you can see exactly which step went wrong if your answer does not match. Use them to check your answers and to understand why each step works.
See Example 1 Hide Example 1
Problem
Approach
Step-by-step method
- Set up the problem.
- Replace every x in the function rule with the input value.
- Work out each term on its own, dealing with any brackets and powers before multiplying.
- Add and subtract the results from left to right.
Depending on the function, some of these steps are not needed, so they are skipped.
Step 1
Step 1 - Set up the problem.
In this problem: The function rule is \(f(x) = x^{3} - 2x + 1\) and the input is \(x = -2\).
Step 2
Step 2 - Replace every x in the function rule with the input value.
In this problem: Every \(x\) in the rule stands for the input, so each one becomes \(-2\), giving \(f\left(-2\right) = \left(-2\right)^{3} - 2\left(-2\right) + 1\).
Step 3
Step 3 - Work out each term on its own, dealing with any brackets and powers before multiplying.
In this problem: The \(2\) terms that need working out are done one at a time.
Step 3a
Step 3a - Work out the first term.
In this problem: Working it out gives \(\left(-2\right)^{3} = -8\).
Step 3b
Step 3b - Work out the second term.
In this problem: Working it out gives \(-2\left(-2\right) = 4\).
Step 4
Step 4 - Add and subtract the results from left to right.
In this problem: Working left to right through \(-8 + 4 + 1\) gives \(-3\).
Final Answer
See Example 2 Hide Example 2
Problem
Approach
Step-by-step method
- Set up the problem.
- Replace every x in the function rule with the input value.
- Work out each term on its own, dealing with any brackets and powers before multiplying.
- Add and subtract the results from left to right.
Depending on the function, some of these steps are not needed, so they are skipped.
Step 1
Step 1 - Set up the problem.
In this problem: The function rule is \(f(x) = x^{2} + 2x + 1\) and the input is \(x = \frac{1}{2}\).
Step 2
Step 2 - Replace every x in the function rule with the input value.
In this problem: Every \(x\) in the rule stands for the input, so each one becomes \(\frac{1}{2}\), giving \(f\left(\frac{1}{2}\right) = \left(\frac{1}{2}\right)^{2} + 2\left(\frac{1}{2}\right) + 1\).
Step 3
Step 3 - Work out each term on its own, dealing with any brackets and powers before multiplying.
In this problem: The \(2\) terms that need working out are done one at a time.
Step 3a
Step 3a - Work out the first term.
In this problem: Working it out gives \(\left(\frac{1}{2}\right)^{2} = \frac{1}{4}\).
Step 3b
Step 3b - Work out the second term.
In this problem: Working it out gives \(2\left(\frac{1}{2}\right) = 1\).
Step 4
Step 4 - Add and subtract the results from left to right.
In this problem: Working left to right through \(\frac{1}{4} + 1 + 1\) gives \(\frac{9}{4}\).
Final Answer
See Example 3 Hide Example 3
Problem
Approach
Step-by-step method
- Set up the problem.
- Replace every x in the function rule with the input value.
- Work out each term on its own, dealing with any brackets and powers before multiplying.
- Add and subtract the results from left to right.
Depending on the function, some of these steps are not needed, so they are skipped.
Step 1
Step 1 - Set up the problem.
In this problem: The function rule is \(f(x) = 3x^{2} - 4x + 2\) and the input is \(x = 2\).
Step 2
Step 2 - Replace every x in the function rule with the input value.
In this problem: Every \(x\) in the rule stands for the input, so each one becomes \(2\), giving \(f\left(2\right) = 3\left(2\right)^{2} - 4\left(2\right) + 2\).
Step 3
Step 3 - Work out each term on its own, dealing with any brackets and powers before multiplying.
In this problem: The \(2\) terms that need working out are done one at a time.
Step 3a
Step 3a - Work out the first term.
In this problem: The power is worked out first, giving \(3\left(2\right)^{2} = 3\left(4\right)\). Multiplying what is left gives \(3\left(4\right) = 12\).
Step 3b
Step 3b - Work out the second term.
In this problem: Working it out gives \(-4\left(2\right) = -8\).
Step 4
Step 4 - Add and subtract the results from left to right.
In this problem: Working left to right through \(12 - 8 + 2\) gives \(6\).
Final Answer
See Example 4 Hide Example 4
Problem
Approach
Step-by-step method
- Set up the problem.
- Replace every x in the function rule with the input value.
- Work out each term on its own, dealing with any brackets and powers before multiplying.
- Add and subtract the results from left to right.
Depending on the function, some of these steps are not needed, so they are skipped.
Step 1
Step 1 - Set up the problem.
In this problem: The function rule is \(f(x) = 2x - 5\) and the input is \(x = -3\).
Step 2
Step 2 - Replace every x in the function rule with the input value.
In this problem: Every \(x\) in the rule stands for the input, so each one becomes \(-3\), giving \(f\left(-3\right) = 2\left(-3\right) - 5\).
Step 3
Step 3 - Work out each term on its own, dealing with any brackets and powers before multiplying.
In this problem: Working it out gives \(2\left(-3\right) = -6\).
Step 4
Step 4 - Add and subtract the results from left to right.
In this problem: Working left to right through \(-6 - 5\) gives \(-11\).
Final Answer
Calculator and Practice Mode
Want to check your own working? The Function Evaluator Calculator solves any problem you type in and shows every step, so you can compare it line by line with your answer and find exactly where a mistake crept in. When you are ready to test yourself, Function Evaluator Practice gives you a new problem at Easy, Medium or Hard level, checks your answer and shows the full working whenever you get one wrong. Practice Mode is available on the Plus and Pro plans.