Calculus

Function Table Calculator

This function table calculator, also called a table of values calculator, lists f(x), and optionally g(x), at xi=x0+iΔxx_i = x_0 + i\,\Delta x from your start, end and step.

Try

Use x as the variable. Trigonometric functions use radians. Inputs outside the domain show as not defined.

Leave blank for a single column.

A number, fraction or expression such as pi/6.

Negative steps count down. At most 1,000 rows.

Result

Table of values: 13 rows, x = −1 to 5 in steps of 0.5

Table of values

13 rows, x = −1 to 5 in steps of 0.5

Smallest f(x) in the table
−2.25 at x = 1.5
Largest f(x) in the table
10 at x = 5
Roots and sign changes of f
2 exact zeros, 0 sign changes with a root
Smallest g(x) in the table
−6 at x = −1
Largest g(x) in the table
6 at x = 5
Where f(x) = g(x)From equal values or sign changes of f − g in the table
x = 1, x = 4
Exact values
26 of 26 values are exact rationals

The table evaluates f(x) = x² − 3x and g(x) = 2x − 4 at 13 values of x from −1 to 5. Over these points f ranges from −2.25 to 10.

f(x) = 0 exactly at x = 0, 3 (roots). f has a local minimum near x = 1.5 (f(x) = −2.25 in the table).

g(x) = 0 exactly at x = 2 (a root).

Turning points and sign changes are read from the table, so features between rows can be missed. A smaller step shows more detail.

Graphs of f(x) and g(x)
−50510−1012345xyf(x)g(x)Table values of f
Values from x = −1 to 5, step 0.5
xf(x) = x² − 3xg(x) = 2x − 4
−14−6
−0.51.75−5
00−4
0.5−1.25−3
1−2−2
1.5−2.25−1
2−20
2.5−1.251
302
3.51.753
444
4.56.755
5106
Step-by-step working (4 steps)
  1. Row 1: x = −1

    f(−1) = (−1)² − 3(−1) = 4

  2. Row 2: x = −0.5

    f(−0.5) = (−0.5)² − 3(−0.5) = 1.75

  3. Row 3: x = 0

    f(0) = (0)² − 3(0) = 0

  4. Rows 4 to 13

    Each remaining row substitutes its x-value into f(x) the same way.

It shows the substitution for the first rows, gives exact fractions, marks roots and turning points, draws a graph and exports the table as CSV.

By Hira Noor, mathematicianLast reviewed Free, no sign-up, runs in your browserReport a problem

How to use this calculator

  1. Type f(x) with x as the variable, for example x^2 - 3x or sin(x). Add g(x) to compare two functions side by side, or leave it blank.
  2. Enter the start and end values of x. Fractions such as 1/4 and expressions such as pi/6 or 2pi are accepted.
  3. Enter the step Δx. It must point from the start toward the end: use a negative step to count down, such as start 5, end −5, step −1.
  4. Keep the table to at most 1,000 rows. Inputs outside the domain show as not defined instead of stopping the table.
  5. Read the substitution steps and the notes for roots, sign changes and turning points, then use Download CSV to open the table in a spreadsheet, or Copy to paste it as text.

Formulas

Grid of x values

xi=x0+iΔx,i=0,1,…,⌊xend−x0Δx⌋x_i = x_0 + i\,\Delta x, \quad i = 0, 1, \ldots, \left\lfloor \frac{x_{\text{end}} - x_0}{\Delta x} \right\rfloor

Plain-text formula: x_i = x_0 + i Δx, i = 0, 1, …, ⌊(x_end − x_0)/(Δx)⌋

The table starts at x0x_0 and adds the step until it would pass the end value. With rational inputs every xix_i is exact, so there is no drift from repeated decimal addition.

Sign change and the intermediate value theorem

f(xi)f(xi+1)<0⇒f(c)=0 for some c∈(xi,xi+1)f(x_i)\, f(x_{i+1}) < 0 \;\Rightarrow\; f(c) = 0 \text{ for some } c \in (x_i, x_{i+1})

Plain-text formula: f(x_i) f(x_(i + 1)) < 0 ⇒ f(c) = 0 for some c ∈ (x_i, x_(i + 1))

If f is continuous between two rows and its sign changes, it has a root in between. The calculator locates that root with Brent’s method. A sign change across a vertical asymptote, as with 1/(x − 1) at 1, is not a root.

Reading the result

Each row gives one input x and the outputs f(x) (and g(x)). Values are exact fractions whenever x and every operation are rational, such as 1/x at x = 3/4, which is 4/3; otherwise they are decimals rounded to 10 significant digits. not defined means x is outside the domain, for example division by zero or the square root of a negative number.

A row where the value is exactly 0 is a root. When consecutive values have opposite signs, a root lies between them (if f is continuous there). A value larger than both neighbors marks a local maximum near that x, and a smaller one a local minimum; the exact turning point can lie between rows, so shrink the step to pin it down.

To build the same table by hand, with each substitution written out, follow the guide on how to make a table of values. To see the whole curve between the rows, open the function in the graphing calculator.

What is a function table?

A function table, also called an input–output table, an x and y table or a table of values, lists chosen inputs x in one column and the matching outputs f(x) in the next. Each input gives exactly one output, which is what makes the rule a function. The table below shows f(x)=2x+3f(x) = 2x + 3 for x = 0 to 4 with a step of 1.

Each output is a direct substitution: f(2)=2(2)+3=7f(2) = 2(2) + 3 = 7. The outputs rise by 2 each time x rises by 1, so the table already shows the slope of the line.

Input–output table for f(x) = 2x + 3
Input xOutput f(x) = 2x + 3
03
15
27
39
411

How to choose the start, end and step

The table has ⌊(xend−x0)/Δx⌋+1\left\lfloor (x_{\text{end}} - x_0)/\Delta x \right\rfloor + 1 rows, so start −1, end 5 and step 0.5 gives 13. Use a step of 1 for an overview of a polynomial, 0.1 or 1/4 to find detail near a root or a turning point, and multiples of π such as pi/6 or pi/4 for trigonometric functions.

Pick a range that contains the features you care about: for a parabola, both roots and the vertex; for a rational function, a few rows on each side of the vertical asymptote. If a sign change appears between two rows, run the table again over just those two values with a smaller step.

How to find the function rule from a table

Work backwards from equally spaced x-values by looking at the differences between consecutive outputs. Constant first differences mean a linear rule f(x)=mx+bf(x) = mx + b: the slope is m=Δy/Δxm = \Delta y / \Delta x and bb is the output at x = 0. In the table above, Δy = 2 for Δx = 1 and f(0) = 3, so the rule is f(x)=2x+3f(x) = 2x + 3.

Constant second differences mean a quadratic f(x)=ax2+bx+cf(x) = ax^2 + bx + c, with aa equal to the second difference divided by 2(Δx)22(\Delta x)^2. For outputs 1, 2, 5, 10 at x = 0, 1, 2, 3 the first differences are 1, 3, 5 and the second differences are all 2, so a=1a = 1, c=f(0)=1c = f(0) = 1 and f(1)=2f(1) = 2 gives b=0b = 0: the rule is f(x)=x2+1f(x) = x^2 + 1. Constant ratios between outputs point to an exponential such as 2x2^x.

Type the rule you found into this calculator with the same start, end and step to check that every row matches. For a line through two points, the slope calculator gives m and b directly, and for noisy data the regression calculator fits the best line or curve.

Differences for the outputs 1, 2, 5, 10
xf(x)First differenceSecond difference
01
121
2532
31052

Common mistakes in a table of values

Squaring a negative input. The calculator reads -x^2 as −(x2)-(x^2), so it is −4 at x = 2 and at x = −2. To square the input itself write x^2; by hand, put negative inputs in parentheses: (−2)2=4(-2)^2 = 4.

Degrees instead of radians. sin(x) uses radians, so sin(30) is about −0.988, not 0.5. For a table in degrees, write sin(pi x/180); then start 0, end 90 and step 30 gives 0, 0.5, 0.8660254038 and 1.

A step that points the wrong way. A positive step cannot count down from 5 to −5. Make the step negative, or swap the start and end.

Reading a sign change as a root. For 1/(x−1)1/(x - 1) the values jump from negative to positive across x = 1, but the function is never 0 there. The calculator flags these jumps separately from real roots.

Worked example

Tabulate f(x) = x² − 3x and g(x) = 2x − 4 from −1 to 5

Use a step of 0.5 and find the roots of f, its lowest point and where the two graphs meet.

  1. The grid has (5 − (−1))/0.5 + 1 = 13 rows: x = −1, −0.5, 0, …, 5.
  2. f(−1) = 1 + 3 = 4, f(0) = 0, f(1.5) = 2.25 − 4.5 = −2.25, f(3) = 0 and f(5) = 25 − 15 = 10.
  3. f is exactly 0 at x = 0 and x = 3, so those are its roots.
  4. f(1.5) = −2.25 is smaller than both neighbors, f(1) = −2 and f(2) = −2, so the minimum is near x = 1.5 (it is exactly there, the vertex).
  5. f(x) = g(x) at x = 1 (both −2) and x = 4 (both 4).

Answer: The table shows roots at x = 0 and 3, a local minimum of −2.25 at x = 1.5, and intersections with g at x = 1 and x = 4.

Frequently asked questions

How do I make a table with π steps?

Type expressions such as 0, 2pi and pi/6 for the start, end and step. The x column is then labeled in multiples of π (π/6, π/3, π/2, …) and the trigonometric values use radians.

Why does my table stop before the end value?

The table never passes the end value. If the end is not reached exactly by whole steps, the last row is the last x before it; for example, start 0, end 1 and step 0.3 gives 0, 0.3, 0.6 and 0.9.

What does "not defined" mean in a row?

The function has no real value at that x: for example 1/(x − 1) at x = 1, or sqrt(x) at a negative x. The note under the table gives the reason, and the other rows are still calculated.

Can I count down?

Yes. Make the end smaller than the start and use a negative step, such as start 5, end −5 and step −1.

How many rows can the table have?

Up to 1,000. For longer ranges, use a bigger step or the graphing calculator, which shows the whole curve.

Does the function table calculator show the steps?

Yes. Under the result, the step-by-step working substitutes the first x-values into f(x), for example f(−1) = (−1)² − 3(−1) = 4, and the remaining rows follow the same pattern. The notes then explain the roots, sign changes and turning points the table shows.

Can I download or copy the table?

Yes. Download CSV under the table saves it as a comma-separated file that opens in Excel, Google Sheets or Numbers. Copy at the top of the result copies the inputs, the summary and the table as tab-separated text.

How do I make an x and y table for a linear equation?

Solve the equation for y first, then enter the right-hand side as f(x). For 2x + y = 6, type 6 - 2x, and start −2, end 4, step 1 gives the x and y values 6 + 4 = 10 down to 6 − 8 = −2.

Can it find the function rule from a table?

Not automatically. Check the differences of the outputs: constant first differences mean a line, constant second differences a quadratic. Then type the rule you found here to confirm every row, as shown in the section on finding the rule above.

Can I use degrees for trigonometric functions?

The functions use radians. Convert inside the function with sin(pi x/180) or cos(pi x/180), and enter the start, end and step in degrees.

Graphing Calculator

Plot functions, equations, inequalities, parametric and polar curves; find roots and intersections.

Tools

Derivative Calculator

First to fifth derivatives with rule-by-rule steps, f′(a), the tangent line and a graph.

Calculus

Integral Calculator

Antiderivatives with named steps, plus definite and improper integrals with an error estimate and area graph.

Calculus

Limit Calculator

Two-sided, one-sided and infinite limits with steps, a table of values and the indeterminate form named.

Calculus

Polynomial Root Finder

All real and complex roots of a polynomial up to degree 10, with multiplicities, exact forms and steps.

Algebra & Equations

Summation Calculator

Sigma notation with steps: exact fractions, partial sums, closed forms and infinite-series tests.

Calculus

Learn more: For a step-by-step method, read how to make a table of values. To define your own f(x) and reuse it, see custom functions.

Sources and further reading

  1. Algebra and Trigonometry 2e, Section 3.1: Functions and Function Notation (opens in a new tab), OpenStax, Rice University
  2. Calculus Volume 1, Section 2.4: Continuity (intermediate value theorem) (opens in a new tab), OpenStax, Rice University

Results are calculated in your browser with methods checked by automated tests, and are intended for learning and general use. For engineering, medical, financial, legal or safety-critical decisions, verify important values independently and follow the rounding rules your work requires. How accurate are these results?