What Does It Mean to Evaluate a Function?
To evaluate a function is to run its rule on one input: substitute the value for x everywhere, then simplify. It is the most fundamental skill in algebra — every graph point, every model prediction, every derivative starts as an evaluation. This function calculator makes the mechanics explicit and then goes further than a single value: it prints the substituted expression before simplifying, builds a full table of values across your chosen range and step, and adds the two constructions precalculus is really about — f(a + h) and the difference quotient — so one tool covers the whole evaluate-and-explore workflow.
How to Use This Calculator
- Type the function f(x) — the field starts with x^2 - 3*x + 2.
- Set the point a to evaluate f(a) with the substitution shown step by step.
- Set the table range (start, end, step) to generate up to 41 rows of (x, f(x)) pairs.
- Set h to see f(a + h) and the difference quotient (f(a + h) − f(a))/h — then try smaller h values and watch the quotient settle toward the derivative.
Worked Example 1: Evaluating f(4) and f(−2)
For f(x) = x^2 − 3x + 2: f(4) = 4^2 − 3(4) + 2 = 16 − 12 + 2 = 6. At a negative input the parentheses do the heavy lifting: f(−2) = (−2)^2 − 3(−2) + 2 = 4 + 6 + 2 = 12. Note the two sign flips — (−2)^2 is +4, and −3 times −2 is +6. The default table (x from 0 to 5) reads 2, 0, 0, 2, 6, 12, and the repeated 0 at x = 1 and x = 2 is no coincidence: those are the roots, visible in a table before any factoring.
Worked Example 2: The Difference Quotient Approaching the Derivative
Keep f(x) = x^2 − 3x + 2 and a = 4, where f(4) = 6 and the true derivative is f′(x) = 2x − 3, so f′(4) = 5. With h = 1: f(5) = 12, and the quotient is (12 − 6)/1 = 6. With h = 0.5: f(4.5) = 8.75, quotient (8.75 − 6)/0.5 = 5.5. With h = 0.1: f(4.1) = 6.51, quotient 5.1. The quotients 6, 5.5, 5.1 march toward 5 — the derivative — as h shrinks. That limit process, which the limit calculator and derivative calculator formalise, is sitting inside this simple evaluation tool.
Reading a Table: Roots, Sign Changes and Growth
A table is not just arithmetic practice — it is a diagnostic instrument. When consecutive outputs change sign, a root lies between those inputs (the intermediate value theorem guarantees it for continuous functions), which is how numerical root-finding methods get their starting brackets. When outputs repeat, as the default table's two zeros do, you are looking at exact roots. When the gaps between outputs grow, the function is accelerating — quadratic growth doubles its step-to-step increases, exponential growth multiplies them. And when a row reads "undefined", the table has found a domain boundary or vertical asymptote. Learning to read these four signals in a table of values is most of what "understanding a function" means before graphs and calculus formalise it.
From Tables to Graphs — and to Other Function Tools
A table of values is a graph in disguise: each row is a point. The graphing calculator draws the curve those points trace, which is the fastest way to confirm a table makes sense. When the task changes from evaluating one function to combining two, the function composition calculator handles f(g(x)), and the inverse function calculator runs a function backwards — the natural next topics after evaluation is automatic.
Three Mistakes to Watch For
First, the negative-input trap: f(−2) for f(x) = x^2 is (−2)^2 = 4; writing −2^2 gives −4 because the power binds before the sign. Second, reading f(a + h) as f(a) + h — the first applies the function after adding, the second before, and they differ (12 vs 7 in the FAQ's example). Third, distributing wrongly over sums: f(x) = (x + 1)^2 evaluated at 3 is 16, not 3^2 + 1 = 10 — the substitution replaces x by the whole value everywhere, inside every bracket.