Algebra 2 • Functions

Evaluating Functions from Graphs and Equations

Master the essential skill of finding function outputs — whether you're reading a graph or substituting into a formula.

Historical Context & Motivation

The idea of a function — a rule that assigns exactly one output to each input — is so woven into modern mathematics that it can be hard to imagine a time without it. Yet the concept evolved over centuries, driven by practical problems in astronomy, physics, and commerce. Understanding that history reveals why we evaluate functions the way we do today and why both graphical and algebraic representations matter.

~2000 BCE
Babylonian clay tablets record tables of squares, cubes, and reciprocals — essentially input-output tables. Though the scribes had no word for "function," they performed systematic evaluation by table lookup, the earliest ancestor of reading a value from a graph or chart.
1637 CE
René Descartes publishes La Géométrie, introducing the coordinate plane and the idea that geometric curves correspond to algebraic equations. This breakthrough linked equations and graphs, making it possible to move fluidly between evaluating a function algebraically and reading it visually.
1748 CE
Leonhard Euler's Introductio in Analysin Infinitorum formalizes the modern notion of a function as a rule y = f(x). Euler popularized the f(x) notation still used today and established the habit of substituting values into formulas — the algebraic evaluation we practice in this lesson.
1837 CE
Peter Dirichlet broadens the definition: a function is any rule that assigns to each input exactly one output, whether or not a tidy formula exists. This opens the door to functions defined purely by their graphs, data tables, or verbal descriptions.
20th–21st Century
With the rise of graphing calculators and computer algebra systems, evaluating functions from graphs becomes an everyday skill. Modern data science and machine learning depend on evaluating complex functions millions of times per second — a direct descendant of Euler's simple idea of "plug in and compute."

At its heart, the question this lesson addresses is deceptively simple: given a function, how do we find the output for a particular input? Whether the function is presented as an equation like f(x) = 2x² − 3x + 1 or as a curve drawn on a coordinate plane, the goal is the same — and mastering both methods is essential for success in Algebra 2 and beyond.

Core Principles & Definitions

Before we evaluate any function, we need a rock-solid understanding of four foundational ideas. These principles apply regardless of whether you're working with a graph, a formula, a table, or a verbal description.

1

Function Notation

The expression f(x) is read "f of x." Here, f is the name of the function and x is the input variable. Writing f(3) means "find the output when the input is 3." The parentheses do not indicate multiplication.
2

Input → Output

Every function is an input-output machine. You feed in a value (the input, often called the independent variable), the function processes it according to its rule, and out comes exactly one result (the output, or dependent variable).
3

Algebraic Evaluation

To evaluate f(a) from an equation, replace every x with a and simplify. Respect order of operations (PEMDAS): parentheses first, then exponents, then multiplication/division, then addition/subtraction.
4

Graphical Evaluation

To evaluate f(a) from a graph, find x = a on the horizontal axis, move vertically to the curve, and read the y-coordinate of that point. That y-value is f(a).
Key Takeaway
Think of a function like a vending machine. The input (x) is the button you press, and the output (f(x)) is the snack that drops out. Evaluating the function is simply pressing a button and seeing what you get. If you have the machine's blueprint (the equation), you can calculate the output yourself. If you only have a photo of the display panel (the graph), you can still read off the result.

Visual Explanation — Reading a Graph

The diagram below shows the graph of a function f(x). To evaluate f(2), we locate x = 2 on the horizontal axis, draw a vertical line up to the curve, then read the corresponding y-value. In this case, the curve passes through the point (2, 5), so f(2) = 5. Likewise, to find f(−1), we go to x = −1 and read y = 2, giving us f(−1) = 2.

Figure 1 — To evaluate f(2), locate x = 2 on the horizontal axis, move vertically to the curve, then read y = 5. The dashed lines trace the path from input to output.

Notice the two complementary motions: a vertical line from the x-axis to the curve tells you "which point on the curve corresponds to this input," and a horizontal line from that point to the y-axis tells you "what is the output." This technique works for any function whose graph you can see — polynomial, exponential, piecewise, or even functions without tidy formulas. The ability to read a graph is especially powerful when you encounter data-driven functions in science or economics where no equation may exist.

Mathematical Framework — Evaluating from Equations

When a function is given as an algebraic equation, evaluation is a matter of substitution and simplification. The process is systematic and always follows the same pattern: replace the variable with the given input, then apply the order of operations until you reach a single numerical answer.

Substitution Principle
f(a) = [replace every x in the rule with a]
The letter "a" represents any real number (or expression) you substitute for x.

Let's see this in action with several function types you'll encounter in Algebra 2.

Polynomial Function
f(x) = 2x³ − 5x + 4
To find f(−2): replace x with (−2) → 2(−2)³ − 5(−2) + 4 = 2(−8) + 10 + 4 = −16 + 14 = −2

Notice the critical detail: when substituting a negative number, always enclose it in parentheses. Writing 2(−2)³ is correct; writing 2 × −2³ invites sign errors because you might forget that the exponent applies only to the 2 inside the parentheses.

Rational Function
g(x) = (3x + 1) / (x − 4)
To find g(7): → (3(7) + 1) / (7 − 4) = 22 / 3 ≈ 7.33. Note: g(4) is undefined because the denominator equals zero.
Piecewise Function
h(x) = { x² + 1, if x < 0 ; 3x − 2, if x ≥ 0 }
To find h(−3): since −3 < 0, use the first piece → (−3)² + 1 = 10. To find h(5): since 5 ≥ 0, use the second piece → 3(5) − 2 = 13.

Piecewise functions add one extra step: before substituting, determine which piece of the rule applies based on the value of the input. This is also a graphical skill — on a piecewise graph, different segments of the curve cover different intervals of x.

Evaluating with Expressions
f(x) = x² − 3x → f(a + 1) = (a + 1)² − 3(a + 1)
You can substitute entire expressions, not just numbers. Expand and simplify: a² + 2a + 1 − 3a − 3 = a² − a − 2.

This last case — substituting an expression rather than a number — is a hallmark of Algebra 2. It requires careful expansion and is crucial for understanding function composition and transformations later in the course.

Detailed Breakdown — Methods Side by Side

There are three common representations of a function: equation, graph, and table. Each tells you the same information in a different format, and evaluating the function looks slightly different depending on which format you're using. The following diagram and table summarize the process for each.

Figure 2 — Three parallel methods for evaluating a function all produce the same result.
MethodWhen to UseKey SkillCommon Pitfall
EquationWhen an explicit formula is givenSubstitution & simplificationForgetting parentheses around negative inputs
GraphWhen a curve or plot is providedPrecise reading of coordinatesConfusing x-values with y-values
TableWhen data is listed in rows/columnsMatching input to output rowAssuming linearity between listed values
PiecewiseWhen different rules apply on different intervalsIdentifying the correct piece firstUsing the wrong piece for a boundary value

Regardless of method, the fundamental principle remains the same: a function pairs every input with exactly one output. If you ever get two different y-values for the same x-value, something has gone wrong — either in your arithmetic or in confirming the relation is actually a function (recall the vertical line test).

Worked Example

Let's walk through a complete, multi-part problem that combines both algebraic and graphical evaluation.

Given f(x) = −x² + 4x + 5, find f(−1), f(3), and determine the x-value where f(x) = 0.
1
Step 1 — Evaluate f(−1)Substitute x = −1 into the equation. Be sure to wrap −1 in parentheses: f(−1) = −(−1)² + 4(−1) + 5 First, compute the exponent: (−1)² = 1. Then multiply: −(1) = −1, and 4(−1) = −4.
f(−1) = −1 − 4 + 5 = 0 — So the point (−1, 0) lies on the graph — this is an x-intercept.
2
Step 2 — Evaluate f(3)Substitute x = 3:
f(3) = −(3)² + 4(3) + 5 = −9 + 12 + 5 = 8 — So the point (3, 8) lies on the graph.
3
Step 3 — Find x where f(x) = 0We need to solve −x² + 4x + 5 = 0. Multiply both sides by −1 to get x² − 4x − 5 = 0. Factor: (x − 5)(x + 1) = 0.
x = 5 or x = −1. Both are x-intercepts. We already confirmed f(−1) = 0 in Step 1. We can verify: f(5) = −25 + 20 + 5 = 0 ✓.
4
Step 4 — Interpret the ResultsWe have evaluated the function at two inputs and found two zeros. In the context of a graph, this means the parabola (opening downward because the leading coefficient is negative) crosses the x-axis at x = −1 and x = 5, and reaches a height of 8 when x = 3. The vertex (maximum point) of this parabola is at x = 2 (midpoint of the zeros), where f(2) = −4 + 8 + 5 = 9.

Strengths, Limitations & Comparisons

Each method of evaluating a function has distinct advantages and drawbacks. Knowing when each method shines — and when it falls short — will make you a more versatile problem-solver.

AspectEquation-BasedGraph-Based
PrecisionExact values every timeLimited by graph resolution; may require estimation
SpeedCan be slow for complex expressionsFast — just read the coordinate
Domain awarenessMust check algebraically (e.g., division by zero)Gaps and discontinuities are visible
Big-picture behaviorHard to see trends without calculationOverall shape, maxima, minima are immediately clear
Non-integer inputsHandles any input preciselyInterpolation needed for values between grid lines
Expression inputsCan substitute expressions like (a + h)Not possible — graphs only accept numerical inputs
Key Takeaway
Think of equation evaluation as using a GPS with exact coordinates — you get precise directions but see nothing around you. Graph evaluation is like standing on a hilltop — you see the whole landscape at a glance but can't pinpoint addresses. A strong math student uses both tools together: the equation for precision, the graph for intuition and quick checks.

Connection to Advanced Theory

Evaluating functions is the foundation upon which many advanced algebraic topics are built. In the next chapters of Algebra 2 and into Precalculus, you will encounter several concepts that directly extend the skills in this lesson.

Function composition, written f(g(x)), requires you to evaluate the inner function first, then feed that result as the input to the outer function — substitution within substitution. Inverse functions reverse the process: given an output, you work backward to find the input. On a graph, this is equivalent to swapping the x- and y-axes. Transformations (shifts, stretches, reflections) modify the equation in systematic ways, and understanding how substitution works is key to predicting how the graph will change.

This LessonAdvanced ExtensionConnection
f(a) — substituting a numberf(g(x)) — substituting a functionSame substitution principle, applied recursively
Finding y given xFinding x given y (inverse functions)Evaluation in reverse; graphically, reflect over y = x
Reading points from a graphAnalyzing transformations of graphsShifts/stretches change which point you read for a given x
Evaluating piecewise functionsLimits and continuity (Calculus)Checking function values at boundaries leads to limit analysis
f(a + h) — substituting expressionsDifference quotient: [f(a+h) − f(a)] / hThe core definition of the derivative (Calculus)

In particular, the difference quotient — the expression [f(x + h) − f(x)] / h — is the gateway to calculus. It requires you to evaluate f at the expression (x + h), subtract f(x), and simplify. Every step relies on the substitution skills you are building right now. So when you practice evaluating f(x + h), you are literally rehearsing the first step of calculus months before you need it.

Practice Problems

Work through these five problems, which progress from conceptual understanding to synthesis-level thinking. Try each one yourself before revealing the answer.

PROBLEM 1CONCEPTUAL
Explain in your own words what the notation f(7) = 12 tells you. What is the input? What is the output? If you were looking at the graph of f, what point would correspond to this statement?
PROBLEM 2BASIC CALCULATION
Given f(x) = 3x² − 2x + 7, evaluate f(−4).
PROBLEM 3INTERMEDIATE
The graph of a function g passes through the points (−2, 5), (0, 1), (1, −1), (3, 3), and (5, 9). Evaluate g(0) and g(3). For what value(s) of x does g(x) = 5?
PROBLEM 4APPLIED / MULTI-STEP
A piecewise function is defined as: p(x) = { 2x + 3, if x < 1 ; x² − 1, if 1 ≤ x ≤ 4 ; 15, if x > 4 } Evaluate p(−2), p(1), p(3), and p(10). Is p continuous at x = 1?
PROBLEM 5CRITICAL THINKING / SYNTHESIS
Given f(x) = x² − 3x, compute the difference quotient: [f(x + h) − f(x)] / h. Simplify your answer completely (the h in the denominator should cancel). What does this expression represent geometrically?

Lesson Summary

Evaluating a function means finding the output that corresponds to a given input. When working from an equation, you substitute the input value for the variable and simplify using the order of operations — always wrapping negative numbers or expressions in parentheses to avoid sign errors. When working from a graph, you locate the input on the horizontal axis, trace vertically to the curve, and read the y-coordinate. For piecewise functions, the essential first step is identifying which rule applies to your input before substituting.

These techniques — developed from Babylonian lookup tables through Euler's f(x) notation to modern graphing technology — form the backbone of higher mathematics. Substituting expressions instead of numbers unlocks function composition, transformations, and the difference quotient — the very concept that launches Calculus. Master evaluation, and you hold the key to nearly every topic that follows.

Varsity Tutors • Algebra 2 • Evaluating Functions from Graphs and Equations