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)=2x,x=−2f\left(x\right) = 2^{x},\quad x = -2

f(−2)=14\displaystyle f\left(-2\right) = \frac{1}{4}
Show the work
  1. Substitute x = -2

    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(−2)=2−2f\left(-2\right) = 2^{-2}
  2. Order of operations

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

    2−2=142^{-2} = \frac{1}{4}
  3. Result

    So f(−2)=14f\left(-2\right) = \frac{1}{4}.

Worked examples