Function Composition Calculator

Calculate function compositions (f∘g)(x) = f(g(x)) and explore properties.

Define Functions

Supported: +, -, *, /, ^, sqrt, sin, cos, tan, log, exp, abs

Compositions at x = 2

(f ∘ g)(x) = f(g(x)):

9

(g ∘ f)(x) = g(f(x)):

25

Step by Step

1. g(2) = 4

2. f(4) = 9

Therefore (f ∘ g)(2) = 9

1. f(2) = 5

2. g(5) = 25

Therefore (g ∘ f)(2) = 25

Commutative at x = 2?NO

Function composition is generally NOT commutative

Evaluation Table

xf(x)g(x)(f∘g)(x)(g∘f)(x)
-2-3499
-1-1131
01011
13139
254925
3791949