Evaluating Functions
Textbook Reference
| Primary source | OpenStax College Algebra 2e, Section 3.1: “Functions and Function Notation” |
| Direct link | https://openstax.org/books/college-algebra-2e/pages/3-1-functions-and-function-notation |
This source is free and openly licensed. College Algebra 2e Section 3.1 introduces evaluating functions at numbers and at expressions.
Key idea
Evaluating a function is one move: replace the input placeholder with the given value, everywhere it appears, and then simplify.
The letter inside $f(\ )$ is an empty slot. When you compute $f(3)$, you drop $3$ into every slot where that letter stood, and the rest is just arithmetic obeying the order of operations. There is no new technique here beyond careful substitution. The thing that trips people is forgetting parentheses around the value, which matters whenever the value is negative or the input gets squared.
This means: evaluation is “find and replace, then simplify”. If you wrap the substituted value in parentheses every time, the order of operations takes care of the rest and the sign errors disappear.
Prerequisite Check
Before this lesson, make sure you can do all of the following:
If function notation is new, review Function Definition and Notation first.
Quick Reference
To evaluate $f$ at a value. Replace every occurrence of the input variable with the value (in parentheses), then simplify using the order of operations.
The procedure (flashcard).
- Write the function rule.
- Replace the input letter with the value, each occurrence wrapped in parentheses.
- Simplify exponents first, then multiplication and division, then addition and subtraction.
- Report the result as $f(\text{value}) = \text{output}$.
Reading evaluation off a graph or table.
| Given | Find | How |
|---|---|---|
| a graph | $f(2)$ | go to $x = 2$, read the height $y$ |
| a table of $x$ and $f(x)$ | $f(2)$ | find the row with $x = 2$, read its $f(x)$ |
| an equation | $f(2)$ | substitute $2$ for $x$ and simplify |
The parentheses habit. Always substitute inside parentheses: $f(-3)$ for $f(x) = x^2$ becomes $(-3)^2 = 9$, never $-3^2 = -9$.
Key Concepts
1. Evaluating at a Number
To evaluate $f$ at a number, substitute the number for the input and simplify.
Example 1. For $f(x) = 2x + 3$, find $f(4)$.
Replace $x$ with $(4)$: \[ f(4) = 2(4) + 3 = 8 + 3 = 11 \] So $f(4) = 11$.
Example 2. For $f(x) = 2x + 3$, find $f(0)$ and $f(-1)$.
\[ f(0) = 2(0) + 3 = 3 \] \[ f(-1) = 2(-1) + 3 = -2 + 3 = 1 \]
2. The Parentheses Habit with Negatives and Squares
Wrapping the substituted value in parentheses prevents sign errors, especially when the input is squared.
Example 3. For $g(x) = x^2 - 5$, find $g(-3)$.
Substitute $(-3)$ for $x$, keeping the parentheses: \[ g(-3) = (-3)^2 - 5 = 9 - 5 = 4 \]
Important: parentheses change the sign of a squared negative. Without them, a student might write $-3^2 - 5 = -9 - 5 = -14$, which is wrong. The input is $-3$, and $(-3)^2 = 9$. Wrapping every substitution in parentheses makes the order of operations do the right thing automatically.
3. Evaluating at an Expression
The input slot can be filled with an expression, not just a number. Replace the input letter with the entire expression, in parentheses, and simplify.
Example 4. For $f(x) = 3x + 1$, find $f(a + 2)$.
Replace $x$ with $(a + 2)$: \[ f(a + 2) = 3(a + 2) + 1 = 3a + 6 + 1 = 3a + 7 \]
Example 5. For $h(x) = x^2$, find $h(x + 1)$.
\[ h(x + 1) = (x + 1)^2 = x^2 + 2x + 1 \]
Important: $f(x + 1)$ is not $f(x) + 1$. Evaluating at $x + 1$ means substituting the whole input $x + 1$ into the rule, not adding $1$ to the output. For $h(x) = x^2$, $h(x + 1) = (x+1)^2 = x^2 + 2x + 1$, whereas $h(x) + 1 = x^2 + 1$. These are different.
4. Reading a Value from a Graph or Table
A function can be given by a picture or a list instead of a formula. To find $f(2)$ from a graph, locate $x = 2$ on the horizontal axis and read the height of the graph there. To find $f(2)$ from a table, find the row where the input is $2$ and read off the matching output.
Example 6. A table lists $f(0) = 5$, $f(1) = 8$, $f(2) = 11$. Find $f(2)$.
Read directly from the table: $f(2) = 11$. No computation is needed; the value is given.
5. Solving the Reverse Question
Sometimes the output is given and the input is unknown: solve $f(x) = k$ for $x$. This is evaluation run backwards, and it turns into an equation to solve.
Example 7. For $f(x) = 2x + 3$, find $x$ such that $f(x) = 11$.
Set the rule equal to $11$ and solve: \[ 2x + 3 = 11 \implies 2x = 8 \implies x = 4 \] So the input that produces the output $11$ is $x = 4$. (This matches Example 1, read the other direction.)
Self-check: For $f(x) = x^2 - 2x$, find $f(-2)$.
Substitute $(-2)$ for each $x$: $f(-2) = (-2)^2 - 2(-2) = 4 + 4 = 8$. The parentheses give $(-2)^2 = 4$ and $-2(-2) = +4$.
Common Errors Summary
| Error | Example | Correction |
|---|---|---|
| Dropping parentheses on a negative input | $g(-3) = -3^2 - 5 = -14$ | $g(-3) = (-3)^2 - 5 = 4$ |
| Confusing $f(x+1)$ with $f(x)+1$ | $h(x+1) = x^2 + 1$ | $h(x+1) = (x+1)^2 = x^2 + 2x + 1$ |
| Substituting in only one occurrence | replacing $x$ once in $x^2 - x$ | Replace EVERY occurrence of the input |
| Treating $f(2)$ as $f \cdot 2$ | “$f(2)$ means multiply” | $f(2)$ is the output at input $2$ |
| Reading the wrong axis on a graph | reading $x$ when asked for $f(2)$ | $f(2)$ is the HEIGHT $y$ at $x = 2$ |
Common Misconceptions
$f(x + 1)$ equals $f(x) + 1$, so evaluating at an expression just adds the expression to the output.
This is the action-view-of-function error, treating the function as a passive symbol rather than a rule. The correct process is substitution: every occurrence of the input variable is replaced by the entire new expression, then the rule is applied. For $f(x) = x^2$, $f(x + 1) = (x + 1)^2 = x^2 + 2x + 1$, not $x^2 + 1$. The difference, $2x$, arises from applying the squaring rule to the full input $x + 1$. Skipping the substitution step and instead adding to the output treats the function as a simple addition, ignoring the rule entirely.
Leveled Practice
Level 1 -- Direct Application
Problem 1. For $f(x) = 4x - 1$, find $f(3)$.
Show answer
$f(3) = 4(3) - 1 = 12 - 1 = 11$.
Problem 2. For $g(x) = x^2 + 1$, find $g(0)$ and $g(2)$.
Show answer
$g(0) = 0^2 + 1 = 1$. $g(2) = 2^2 + 1 = 5$.
Problem 3. For $f(x) = 5 - 2x$, find $f(-1)$.
Show answer
$f(-1) = 5 - 2(-1) = 5 + 2 = 7$.
Level 2 -- Expressions and Reverse
Problem 4. For $f(x) = 3x - 2$, find $f(a - 1)$.
Show answer
$f(a - 1) = 3(a - 1) - 2 = 3a - 3 - 2 = 3a - 5$.
Problem 5. For $f(x) = 2x + 7$, find the input $x$ for which $f(x) = 1$.
Show answer
Solve $2x + 7 = 1$: $2x = -6$, so $x = -3$.
Level 3 -- Deeper Problems
Problem 6. For $h(x) = x^2 - 4x$, find $h(x + 2)$ and simplify.
Show answer
Substitute $(x + 2)$: $h(x + 2) = (x + 2)^2 - 4(x + 2) = x^2 + 4x + 4 - 4x - 8 = x^2 - 4$.
Problem 7. For $f(x) = x^2$, compute $\dfrac{f(3) - f(1)}{3 - 1}$.
Show answer
$f(3) = 9$ and $f(1) = 1$, so $\dfrac{9 - 1}{3 - 1} = \dfrac{8}{2} = 4$. (This is the average rate of change of $f$ between $x = 1$ and $x = 3$, a quantity that becomes the slope in calculus.)
Mastery Checklist
You have mastered this skill when you can do all of the following without referring to notes:
Mental Model
Think of evaluation as filling every empty slot in a form.
The function rule is a form with the input letter marking each blank. To evaluate, you write the given value into every blank, in parentheses so the arithmetic reads correctly, then you compute the result with the order of operations. If the value is a whole expression, the whole expression goes in each blank. The parentheses are the guardrail: they keep a negative value or a squared input from changing sign by accident. Evaluation never invents a new technique; it is careful substitution followed by the arithmetic you already know.
Connections
Within MATH 114
- Domain and range: evaluating shows which inputs are legal (no division by zero, no even root of a negative) and which outputs actually occur.
- Graphing functions: plotting a function means evaluating it at several inputs to get points $(x, f(x))$ to plot.
Toward Calculus (MATH 161)
- The difference quotient: the expression $\dfrac{f(x + h) - f(x)}{h}$, the engine of the derivative, is built entirely from evaluating a function at $x + h$ and at $x$. Practice evaluating at expressions now and the derivative definition will feel familiar later.
Audience Notes
For students who find math intimidating: Evaluation is “find and replace”. Put parentheses around whatever you substitute, every time, and the sign errors that frustrate most students simply will not happen.
For students interested in proof: Substituting an expression such as $x + h$ for the input is the same operation as composing functions. Seeing evaluation as substitution makes function composition, met later, a small step rather than a new idea.
For students interested in careers: Calling a function with an argument is the most common single action in programming, and it is exactly this: supply an input, receive the one output. The mental model transfers directly to reading and writing code.
Back to MATH 114 Skills | Previous: Function Definition and Notation | Next: Domain and Range