Composite Function Calculator

Enter two functions to compose them, or put in a number to find f(g(a)).

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

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

Try

Result

You enteredf(x)=2x+1,g(x)=x2f\left(x\right) = 2x + 1,\quad g\left(x\right) = x^{2}

f(g(x))=2x2+1\displaystyle f\left(g\left(x\right)\right) = 2x^{2} + 1
Show the work
  1. Substitute g(x) into f

    In f(g(x))f\left(g\left(x\right)\right) the output of gg becomes the input of ff. Replace every xx in the formula of ff by the whole expression g(x)g(x), kept in brackets so it is treated as one number.

    f(g(x))=2x2+1f\left(g\left(x\right)\right) = 2x^{2} + 1
  2. Result

    So f(g(x))=2x2+1f\left(g\left(x\right)\right) = 2x^{2} + 1.

Worked examples