Math Solver Free

Function Calculator

Evaluate f(x), build a table of values, and see f(a + h) with the difference quotient.

f(4)
6

Substitution: (4)^2 - 3*(4) + 2 = 6

Table of values

xf(x)
02
10
20
32
46
512

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

  1. Type the function f(x) — the field starts with x^2 - 3*x + 2.
  2. Set the point a to evaluate f(a) with the substitution shown step by step.
  3. Set the table range (start, end, step) to generate up to 41 rows of (x, f(x)) pairs.
  4. 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.

Frequently Asked Questions

How do you evaluate a function f(x) at a value?

Replace every x in the formula with the given value — in parentheses — then simplify with the order of operations. For f(x) = x^2 - 3x + 2 at x = 4: f(4) = 4^2 - 3(4) + 2 = 16 - 12 + 2 = 6. The parentheses matter most with negative inputs: f(-2) needs (-2)^2 = 4, not -2^2 = -4. This calculator prints the substituted expression before the simplified answer so the step is never hidden.

What does f(a + h) mean, and how is it different from f(a) + h?

f(a + h) means: first add h to the input, then apply the function to the sum. f(a) + h means: apply the function first, then add h to the output. They are generally different numbers. For f(x) = x^2 - 3x + 2 with a = 4 and h = 1: f(5) = 25 - 15 + 2 = 12, while f(4) + 1 = 6 + 1 = 7. Confusing the two is one of the most common algebra errors — the calculator shows both f(a + h) and f(a) side by side so the contrast is visible.

What is the difference quotient?

The difference quotient is (f(a + h) - f(a))/h: the average rate of change of f over the interval from a to a + h. It is also the slope of the secant line through those two points of the graph. As h shrinks toward 0, the difference quotient approaches the derivative f'(a) — it is the expression inside the limit that defines the derivative, which is why precalculus courses drill it and why this calculator reports it alongside f(a + h).

What is a table of values for a function?

A table of values lists inputs x in one column and the corresponding outputs f(x) in the other, computed at regular steps across a range. It is the bridge from a formula to a graph: plot the rows as points and the shape of the function appears. Tables also reveal behaviour formulas hide — where the output changes sign (a root is nearby), where it grows fastest, and where it is undefined, like the hole in 1/x at 0, which this calculator marks as 'undefined' instead of printing a bogus number.

Why does the calculator say 'undefined' for some x?

Because the function genuinely has no value there: division by zero (1/x at 0, or (x + 1)/(x - 2) at 2), the square root of a negative number in real arithmetic (sqrt(x) at -1), or the logarithm of zero or a negative. These x-values are outside the function's domain. Seeing 'undefined' in a table is information, not an error — it locates the vertical asymptotes and domain boundaries of the graph.

Is this function calculator free?

Yes — every tool on Math Solver Free is free with no sign-up, and all calculations run in your browser. Enter any function of x, evaluate it at a point, generate a table over your own range and step, and inspect f(a + h) with the difference quotient. For the picture that goes with the numbers, the graphing calculator plots the same function; for combining two functions, see the function composition calculator.

Related Tools & Guides

About the MathSolverFree Team

The MathSolverFree Team builds and maintains the calculators and step-by-step solvers on this site. Every tool is checked against worked textbook examples before it is published, and the method behind each solver is written out in full — in the worked examples on the page and in our guides — so you can see exactly how an answer is reached, not just the answer itself.

How we build and test our tools·More about the team