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.

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?

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.

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.

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!

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) = 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 = 1
Replace every x with 2, then simplify using order of operations (multiply first, then subtract).
EXAMPLE WITH EXPONENTS
g(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.

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.

Input-output table for f(x) = 2x + 3
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

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.

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).

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 − 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
Step 1 — Identify the inputThe question asks about 10 cars, so our input is c = 10.
2
Step 2 — Write the functionOur function is P(c) = 5c − 20.
3
Step 3 — Substitute the inputReplace every c with 10:
P(10) = 5(10) − 20
4
Step 4 — Multiply firstOrder of operations says multiply before you subtract: 5 × 10 = 50.
P(10) = 50 − 20
5
Step 5 — Subtract to find the answer50 − 20 = 30.
P(10) = 30
6
Step 6 — Interpret the outputThe output means you make $30 in profit after washing 10 cars. That covers the $20 in supplies and leaves you $30 ahead!

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 mistakes and best practices for evaluating functions
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.
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.

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.

Current skills vs. upcoming topics
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

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.

Practice Problems

PROBLEM 1CONCEPTUAL
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.
PROBLEM 2BASIC CALCULATION
Given f(x) = 4x − 7, find f(3).
PROBLEM 3INTERMEDIATE
Given g(x) = x² − 2x + 1, evaluate g(−2).
PROBLEM 4APPLIED
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?
PROBLEM 5CRITICAL 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.

Lesson 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