Function Composition Calculator (f∘g)

Compose two functions: f(g(x)) and g(f(x)) as expressions and evaluated at any x.

Results

Enter your details and click Calculate to see your results.
About This Calculator

f(g(x)) means: work out g first, then feed the result into f. Composition usually isn't commutative.

Example

Example: f(x) = x², g(x) = x + 1: f(g(2)) = 9, g(f(2)) = 5; f∘g = x^2 + 2x + 1.

Assumptions

Expressions in x.

Frequently Asked Questions

Is f(g(x)) the same as g(f(x))?

Usually not — order matters.

Related Calculators

About the Author

Imran Hossain
Imran Hossain

Professional SEO, Digital Marketer Specialist

I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist

View full profile