Function Evaluator Calculator

Enter a function of x and a number to find the value of the function there.

Use x, + − × ÷ ^, brackets, sqrt, abs, ln, log and e.

The number to put in for x.

Try

Result

You enteredf(x)=x2−2x+1,x=3f\left(x\right) = x^{2} - 2x + 1,\quad x = 3

f(3)=4\displaystyle f\left(3\right) = 4
Show the work
  1. Substitute x = 3

    To evaluate a function at a number, replace every xx in its formula by that number. A negative number goes in brackets so that its sign stays attached to it.

    f(3)=32−2⋅3+1f\left(3\right) = 3^{2} - 2 \cdot 3 + 1
  2. Order of operations

    Work out brackets and powers first, then multiplication and division, then addition and subtraction, from left to right.

    32−2⋅3+1=43^{2} - 2 \cdot 3 + 1 = 4
  3. Result

    So f(3)=4f\left(3\right) = 4.

Worked examples