Evaluating
Functions
Learn how to plug in a value for \( x \), compute the output, and interpret what \( f(x) \) means in real-world contexts.
What Is a Function?
A function is a rule that takes an input and produces exactly one output. Think of it like a machine: you feed something in, and something specific comes out.
Understanding \( f(x) \) Notation
The notation \( f(x) \) is read "f of x." It does not mean \( f \) times \( x \). It means: "the output of function \( f \) when the input is \( x \)."
Why Evaluating Functions Matters
Functions model real-world situations. Evaluating them answers practical questions like:
The Substitution Rule
To evaluate \( f(a) \), replace every \( x \) in the function rule with \( a \), then simplify.
Functions as Tables
Sometimes a function is given as a table of values instead of a formula. To evaluate, just look up the input and read the output.
| \( x \) | 0 | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|
| \( f(x) \) | 7 | 10 | 13 | 16 | 19 |
Functions vs. Expressions
Students sometimes confuse evaluating a function with simplifying an expression. Here is the key difference:
| Function Evaluation | Expression Simplification | |
|---|---|---|
| What you start with | \( f(x) = 2x + 3 \), find \( f(5) \) | Simplify \( 2x + 3x \) |
| What you do | Substitute 5 for every \( x \) | Combine like terms |
| Result | A number: 13 | An expression: \( 5x \) |
Step-by-Step Method
Example 1: Linear Function
Evaluate \( f(x) = 4x - 7 \) at \( x = 3 \).
Example 2: Negative Input
Evaluate \( g(x) = x^2 + 2x \) at \( x = -3 \).
Example 3: Real-World Context
A taxi charges a flat fee plus a per-mile rate. The total cost is modeled by \( C(m) = 2.5m + 3 \), where \( m \) is miles traveled. Find the cost for a 10-mile ride.
Evaluating from a Graph
You can also evaluate a function by reading its graph. Go to the input on the x-axis, move up (or down) to the curve, then read the y-value.
Three Ways to Evaluate
Functions can be represented in different forms. You evaluate them differently depending on the form:
Inputs Can Be Expressions Too
Sometimes the input is not just a number: it can be an expression like \( a + 1 \) or \( 2t \). The same substitution rule applies.
Common Mistakes to Avoid
Summary Cheat Sheet
| Concept | What to Do | Example |
|---|---|---|
| Evaluate at a number | Replace \( x \) with the number | \( f(2) = 2(2)+1 = 5 \) |
| Evaluate from a table | Look up the input, read the output | If row says 3 → 10, then \( f(3) = 10 \) |
| Evaluate from a graph | Go to \( x \), read the \( y \)-value | Point at \( (4, 3) \) means \( f(4) = 3 \) |
| Negative input | Use parentheses: \( (-a) \) | \( f(-2) = (-2)^2 = 4 \) |
| Expression input | Replace \( x \) with the whole expression | \( f(a+1) = (a+1)^2 \) |
Question 1 of 5
If \( f(x) = 3x - 4 \), what is \( f(5) \)?
Question 2 of 5
If \( g(x) = x^2 + 3 \), what is \( g(-2) \)?
Question 3 of 5
The table below shows values for \( h(x) \). What is \( h(4) \)?
| \( x \) | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|
| \( h(x) \) | 5 | 9 | 13 | 17 | 21 |
Question 4 of 5
A movie rental service charges \( C(n) = 1.50n + 5 \) dollars, where \( n \) is the number of movies. What does \( C(6) = 14 \) tell us?
Question 5 of 5
If \( f(x) = 2x^2 - x + 1 \), what is \( f(0) \)?