Pre-Algebra • Functions

Evaluating Functions — I can evaluate a function at a given input and interpret the output in a context.

Learn how to plug values into a function rule and understand what the answer means in real life.

Middle School Math emblem with sigma notation, geometric shapes, and a ruler.
Inside this lesson 10 sections 5 questions 9 figures

SECTION 1

Where Did Functions Come From?

People have always wanted to describe how one thing depends on another. For example, how does the price of apples depend on how many you buy? Or how does your height change as you grow older? A function is the math tool that describes these relationships. It took hundreds of years for mathematicians to develop the idea we use today.

~300 BCE • Ancient Tables

Babylonian and Greek mathematicians used tables to show how one quantity relates to another, like distances and travel times.

1637 • René Descartes

The French mathematician Descartes connected algebra and geometry. He showed that equations could describe curves on a graph.

1694 • Leibniz Coins 'Function'

Gottfried Leibniz was the first person to use the word "function" in math. He used it to describe how one number depends on another.

1734 • Euler's f(x) Notation

Leonhard Euler introduced the notation f(x) that we still use today. This made it much easier to write and talk about functions.

Today, functions are everywhere. They help engineers design buildings, doctors track patient health, and game designers create realistic physics. The big question this lesson answers is: if I know the rule a function follows and I give it a specific input, what output do I get?

SECTION 2

Core Ideas About Functions

Before we evaluate functions, let's make sure we understand the key vocabulary. A function is like a machine: you put something in, the machine follows a rule, and something comes out. Every function has three important parts.

1

Input (x)

The value you feed into the function. It is also called the independent variable because you get to choose it.
2

Rule (equation)

The set of instructions the function follows. For example, "multiply the input by 3 and add 1" is a rule. We write it as f(x) = 3x + 1.
3

Output (f(x) or y)

The result you get after the function does its work. It is also called the dependent variable because it depends on the input.
4

Evaluating

Evaluating a function means plugging a specific number in for x, then simplifying to find the output.
✦

KEY TAKEAWAY

Think of a function like a vending machine. You put in a coin (the input), the machine follows its rule (processes your request), and out comes a snack (the output). You always get exactly one snack for each coin — just like a function gives exactly one output for each input.

SECTION 3

The Function Machine

The diagram below shows how a function works like a machine. You can see the input going in on the left, the rule in the middle, and the output coming out on the right. We use the function f(x) = 2x + 3 as our example with an input of 4.

How a Function Machine WorksINPUT4(x = 4)FUNCTION RULEf(x) = 2x + 3Multiply by 2,then add 3OUTPUT11(f(4) = 11)Substitution: f(4) = 2(4) + 3 = 8 + 3 = 11Replace every x with 4, then simplify
The function machine takes an input of 4, applies the rule 2x + 3, and produces an output of 11.

Notice the three steps shown in the diagram. First, you identify the input (4). Next, you replace every x in the rule with 4. Finally, you do the arithmetic to find the output. That's all evaluating a function means!

SECTION 4

The Math Behind Evaluating

When we write f(x), the letter f is the name of the function. The letter x inside the parentheses is a placeholder for whatever number you plug in. The notation f(3) means "evaluate the function f when x equals 3." It does NOT mean "f times 3."

FUNCTION NOTATION

f(x)=expressioninvolvingxf(x) = expression involving x

f = name of the function • x = input value • f(x) = output value (same as y)

EVALUATING STEP-BY-STEP

f(x)=3x−5→f(2)=3(2)−5=6−5=1f(x) = 3x − 5 → f(2) = 3(2) − 5 = 6 − 5 = 1

Replace every x with 2, then simplify using order of operations (multiply first, then subtract).

EXAMPLE WITH EXPONENTS

g(x)=x2+4→g(3)=32+4=9+4=13g(x) = x² + 4 → g(3) = 3² + 4 = 9 + 4 = 13

Replace x with 3. Remember: 3² means 3 × 3, which is 9. Then add 4.

⚠

Watch Out!

A common mistake is to confuse f(x) with multiplication. When you see f(5), it means "evaluate f at 5," not "f times 5." The parentheses in function notation are different from multiplication parentheses.

SECTION 5

Building Input-Output Tables

One of the best ways to understand a function is to make an input-output table. You pick several values of x, evaluate the function for each one, and record the results. This helps you see patterns in how the function behaves.

x (input)f(x) = 2x + 3 (rule)f(x) (output)
02(0) + 3 = 0 + 33
12(1) + 3 = 2 + 35
22(2) + 3 = 4 + 37
32(3) + 3 = 6 + 39
52(5) + 3 = 10 + 313

Input-output table for f(x) = 2x + 3

Do you see the pattern? Every time x goes up by 1, the output goes up by 2. That makes sense because the rule says to multiply x by 2. The "+3" shifts everything up by 3.

Graph of f(x) = 2x + 3xf(x)012345012345678910(0, 3)(1, 5)(2, 7)(3, 9)(4, 11)f(4) = 2(4)+3 = 11
Each purple dot is a point from the input-output table. The pink dot shows f(4) = 11. Notice how all the points line up — that's because f(x) = 2x + 3 is a linear function (it makes a straight line).

SECTION 6

Worked Example: Earning Money at a Car Wash

Let's see how evaluating a function works in a real-life situation. Imagine you and your friends are running a car wash fundraiser. You charge $5 per car, and you already spent $20 on supplies. Your profit function (money earned minus costs) is:

PROFIT FUNCTION

P(c)=5c−20P(c) = 5c − 20

P(c) = profit in dollars • c = number of cars washed • 5 = dollars earned per car • 20 = cost of supplies

How much profit do you make if you wash 10 cars?

  1. 1

    Step 1 — Identify the input

    The question asks about 10 cars, so our input is c = 10.
  2. 2

    Step 2 — Write the function

    Our function is P(c) = 5c − 20.
  3. 3

    Step 3 — Substitute the input

    Replace every c with 10:
    P(10) = 5(10) − 20
  4. 4

    Step 4 — Multiply first

    Order of operations says multiply before you subtract: 5 × 10 = 50.
    P(10) = 50 − 20
  5. 5

    Step 5 — Subtract to find the answer

    50 − 20 = 30.
    P(10) = 30
  6. 6

    Step 6 — Interpret the output

    The output means you make $30 in profit after washing 10 cars. That covers the $20 in supplies and leaves you $30 ahead!

SECTION 7

Common Mistakes vs. Best Practices

When students are learning to evaluate functions, a few mistakes come up again and again. Let's look at what can go wrong and how to do it right.

Common MistakeWhy It's WrongBest Practice
Thinking f(3) means f × 3f(3) uses function notation, not multiplication.Read f(3) as "f of 3" — it means plug 3 in for x.
Forgetting to replace ALL x'sIf the rule has x in two places, you must replace both.Circle every x in the rule first, then substitute into each one.
Ignoring order of operationsAdding before multiplying gives the wrong answer.Always follow PEMDAS: Parentheses, Exponents, Multiply/Divide, Add/Subtract.
Not using parentheses around negative inputsWriting 2 × −3 instead of 2(−3) can cause sign errors.Always wrap negative numbers in parentheses: 2(−3) = −6.

Common mistakes and best practices for evaluating functions

✦

KEY TAKEAWAY

Think of evaluating a function like following a recipe. The recipe (rule) says "add 2 cups of flour." If you skip a step or change the order, the cake won't turn out right. Similarly, if you skip replacing an x or do operations out of order, your answer won't be correct. Follow every step, in order, every time.

SECTION 8

From Evaluating to Analyzing Functions

Right now, you're learning to evaluate a function at one input at a time. As you continue in math, you'll do much more with functions. Here's a preview of what's coming.

What You Can Do NowWhat's Coming Next
Evaluate f(x) at a single valueFind x when you know f(x) — solving equations
Build input-output tablesGraph entire functions on the coordinate plane
Use linear rules like f(x) = 2x + 3Explore quadratic, exponential, and other function types
Interpret one output in contextAnalyze rates of change and compare functions

Current skills vs. upcoming topics

The good news is that every one of those advanced skills builds on what you're learning right now. If you can confidently evaluate a function and explain what the output means, you have a strong foundation for everything that comes next in algebra and beyond.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

In your own words, what does it mean to "evaluate a function at x = 5"? Is f(5) the same as f × 5? Explain why or why not.
Show answer
To evaluate a function at x = 5 means to replace every x in the function's rule with the number 5, then simplify. The notation f(5) does NOT mean f times 5. The parentheses in function notation tell you what value to plug in, not what to multiply. For example, if f(x) = x + 10, then f(5) = 5 + 10 = 15. You would never write "f × 5" because f is not a number — it is the name of the function.

Question 2: BASIC CALCULATION

Given f(x) = 4x − 7, find f(3).
Show answer
Substitute 3 for x: f(3) = 4(3) − 7. Multiply first: 4 × 3 = 12. Then subtract: 12 − 7 = 5. So f(3) = 5. The function takes the input 3, multiplies it by 4 to get 12, and then subtracts 7 to give the final output of 5.

Question 3: INTERMEDIATE

Given g(x) = x² − 2x + 1, evaluate g(−2).
Show answer
Replace every x with −2. Be careful with signs! g(−2) = (−2)² − 2(−2) + 1. First, (−2)² = (−2) × (−2) = 4. Next, −2(−2) = +4 (a negative times a negative is positive). So g(−2) = 4 + 4 + 1 = 9. The key is to use parentheses around −2 so you don't lose the negative sign when squaring or multiplying.

Question 4: APPLIED

A pizza shop uses the function C(p) = 8p + 3 to calculate the cost in dollars of an order, where p is the number of pizzas and $3 is the delivery fee. How much does it cost to order 4 pizzas? What does the 8 represent in this context?
Show answer
Substitute 4 for p: C(4) = 8(4) + 3 = 32 + 3 = 35. It costs $35 to order 4 pizzas with delivery. The 8 represents the price of each pizza — $8 per pizza. Since you order 4 pizzas at $8 each, that's $32 for the food, plus a $3 delivery fee, giving $35 total. This shows how the function's output (total cost) depends on the input (number of pizzas).

Question 5: CRITICAL THINKING

The function h(x) = 3x + 1 gives you certain outputs. Without graphing, can you find an input value x so that h(x) = 16? Explain your reasoning.
Show answer
You need to find x so that 3x + 1 = 16. Work backward: subtract 1 from both sides to get 3x = 15. Then divide both sides by 3 to get x = 5. You can check: h(5) = 3(5) + 1 = 15 + 1 = 16. ✓ This is called "working backward" or "solving for x." Instead of plugging in a number and finding the output, you started with the output and figured out the input. This skill previews the idea of solving equations, which you will study more in algebra.

SUMMARY

Lesson Summary

Summary

A function is a rule that takes an input and produces exactly one output. We write functions using function notation like f(x), where f is the name and x is the input variable. To evaluate a function, replace every x in the rule with the given number, then simplify using order of operations (PEMDAS).

Always remember to interpret your output in context. If your function represents money, the output is in dollars. If it represents distance, the output is in miles or meters. Building input-output tables and plotting points on a coordinate plane helps you see how a function behaves across many inputs. Mastering evaluation now gives you a strong foundation for graphing, solving equations, and analyzing all types of functions in algebra and beyond.

Varsity Tutors • Pre-Algebra • Evaluating Functions