A pebble dropped into a pond makes a circular ripple. The radius of the ripple grows with time, and the area of the circle depends on the radius. So the area depends on time — but only indirectly, through the radius. Two separate rules are chained together: time goes in, a radius comes out, that radius goes in, an area comes out. Chaining functions like this is called composition, and it is how almost every real model is actually assembled.

One machine feeding another
Line up two function machines so the output chute of empties into the input hopper of . Put in, get out, and feed that straight into to get . We write this as , read " composed with " or " of of ". The function written on the inside acts first — reading the notation from the inside out is reading it in the order things actually happen. And because order is built into the notation, swapping the two machines usually changes the result: socks then shoes is a sensible outcome, shoes then socks is not.
Order matters
- f(g(x)) = (2x − 3)² + 1
- = 4x² − 12x + 9 + 1
- = 4x² − 12x + 10
- At x = 2: f(g(2)) = f(1) = 2
- g(f(x)) = 2(x² + 1) − 3
- = 2x² + 2 − 3
- = 2x² − 1
- At x = 2: g(f(2)) = g(5) = 7
The domain of a composition
For to make sense, two things must both be true. First, has to be a legal input for — otherwise nothing comes out of the first machine at all. Second, the value that comes out has to be a legal input for . Miss either condition and the chain breaks. So you check the inner function's domain, then check which of those survivors produce outputs will accept.
Decomposing a complicated function
The reverse skill is just as useful: given a messy function, spot the simpler ones it is built from. Look for the operation applied last — that outer action is , and whatever it was applied to is . There is usually more than one valid answer, so aim for pieces that are as simple as possible.
| Composite h(x) | Inner g(x) | Outer f(x) | Last operation performed |
|---|---|---|---|
| take a square root | |||
| raise to the fifth power | |||
| take a logarithm | |||
| square the result | |||
| take a reciprocal |
When algebra runs out
Combining and composing functions produces equations that no algebraic technique can solve. You can solve with logarithms and with roots, but mixes a polynomial with an exponential, and there is simply no rearrangement that isolates . This is normal, not a sign you have missed a method. The response is to switch tools: graph both sides and read off the intersections, or evaluate the difference at trial values and narrow down where it changes sign. A modelling answer found this way is a real answer — just state the accuracy you used, for example "correct to two decimal places".