Function Composition Calculator
Calculate f(g(x)) and g(f(x)) with step-by-step solutions. Enter two functions and get the composed result instantly.
Want to solve ANY math problem? Just take a screenshot.
Math.Photos handles algebra, calculus, geometry, statistics, and more — all from a photo or your handwritten notes.
20 free solves · no credit card · no account needed to start
Compose Two Functions
How It Works
What is function composition?
Function composition combines two functions by plugging one into the other. f(g(x)) means "first apply g, then apply f to the result." It's written as (f ∘ g)(x).
f(g(x)) vs g(f(x))
Order matters! f(g(x)) applies g first, then f. g(f(x)) applies f first, then g. These usually give different results.
How to compute f(g(x))
Replace every x in f(x) with the entire expression g(x). Then simplify by expanding and combining like terms.
Evaluating at a point
To find f(g(2)): first compute g(2), then plug that result into f. For example, if g(x) = 2x+1, then g(2) = 5, and f(5) gives your answer.
Related Tools
Already did the work? Get it checked instead.
A calculator gives you an answer. It doesn't tell you which line of your working went wrong. Photograph your own steps — handwritten notebook, whiteboard, or a screenshot of an online assignment — and Math.Photos checks them line by line, then points at the exact step where the sign flipped.
Reads handwriting
Photo of your notebook, not a retyped expression.
Step-level verdict
"Line 3 dropped a negative", not just "wrong".
Teach Me mode
Questions that lead you to the fix, not the answer.
Pricing
Start free — 20 solves, no card. Upgrade only when you run out.
Lite
$1.99 /month
50 solves/month
Enough for a weekly problem set.
Student
$4.99 /month
500 solves/month
Every assignment, all semester, plus Teach Me mode.
Pro
$9.99 /month
3,000 solves/month
Multi-device sync and LaTeX/PDF export.
Annual billing saves 37%. Cancel anytime — see full plan comparison.
Need more than a function composition calculator?
Math.Photos solves any math problem from a screenshot — algebra, calculus, geometry, statistics, and more. With step-by-step explanations.
Install20 free solves · no credit card