Try it with your numbers
Show every step
Most errors come from three places: reading the notation in the wrong order, dropping brackets during substitution, and forgetting that the domain of the composite can be smaller than the final formula suggests. Each one has a quick fix below.
What does f of g of x mean in a composition?
Read from the inside out. Start with , apply , and hand the result to . The small circle in is read “f after g”, which is why the function on the right acts first. The notation feels backward until you remember that it mirrors , where sits closest to . If the bracket style is unfamiliar, a quick look at function notation clears it up.
The one idea behind everything is that composition is substitution. A rule like really says “square whatever is in the bracket.” So squares the entire expression , brackets and all. Nothing new is invented here; you are replacing the variable in with a whole expression.
This works because a function gives exactly one output for each input, so always hands a single, definite value. That is the defining property covered in relations and functions, and it is why you cannot compose a relation that gives two outputs for one input.
Quick check
Answer:
How do you find a composite function step by step?
Use the same three moves every time:
- Write the outer function with an empty bracket: .
- Put the whole inner function in that bracket, wrapped in parentheses.
- Expand and simplify.
Example 1. Let and . Find and .
The costly slip is in the second line: is not . The middle term appears only if you keep the parentheses and expand properly.
A two-second check catches most mistakes. Pick . Directly, and , and the formula gives . For the other order, and , and the formula gives . Both agree.
How do you evaluate a composition with negatives or a table?
If you need a value at one point, skip the algebra and go inside out with numbers. With the functions from Example 1 and :
The formula confirms it: . Square negatives with brackets, so , never . When you need many values, build the composite formula once and reuse it.
Tables and graphs follow the same chain. Find in ‘s table, read its output, then look up that output as the input in ‘s table.
On a graph, the output of (a height) becomes the input of (a position on the horizontal axis), so you cross over from the -axis to the -axis between steps. If produces a value that ‘s table or graph does not contain, the composite is undefined there. That is the doorway to domains.
How do you find the domain of a composite function?

A number is allowed in only if it survives two filters: must be allowed in , and then must be allowed in . The domain of the composite is always a subset of the domain of . For the vocabulary of allowed inputs and outputs, see domain and range.
Run both filters on the original expressions. Simplifying first can cancel a factor and hide a value that was never allowed, such as in below.
Example 2. Let and . Find and its domain.
First the formula. Replace in with and clear the small fraction by multiplying top and bottom by :
Filter 1: needs . Filter 2: cannot accept , so , which means and . The domain is all real numbers except and .
The trap is plain to see: the simplified fraction only warns you about . At it happily returns , yet does not exist, so does not either. A square root works the same way: with and , the second filter demands , giving or .
Quick check
Answer:
Why does f composed with g differ from g composed with f?

Take two lines, and . Substituting both ways gives
The slopes match because multiplication commutes, but the intercepts and are generally different. They agree only in special cases, such as when and are inverses of each other (both compositions then give ). If you want the line basics behind this, see slope-intercept form.
The same split shows up in graphs. With , the inner change slides the parabola left by 3, while the outer change lifts it up by 3. This is the whole logic of transformations of functions: changes inside the bracket act on , changes outside act on the output.
Three fast checks save time on tests:
- Degrees multiply. If has degree and has degree , then has degree , so a quadratic inside a quadratic gives a quartic. This predicts the end behavior of the polynomial.
- If is even, is even, and if and are both odd, is odd (see even and odd functions).
- Grouping is free: . Only the order of the functions matters.
Try this: Let and . Compute and with numbers, then build both formulas and check that each one reproduces your number.
Can you compose a function with itself?
Yes. Writing means , the same rule applied twice. For :
Apply it a third time and you get . The pattern is , which you can verify with and above.
Watch the notation. In iteration, means , but in algebra and trigonometry means . And never means the reciprocal ; it names the inverse function. The context (a composition chapter versus a trig chapter) tells you which one is meant, and when in doubt, write out .
Some functions return to the start after two passes. The function gives for , so it is its own inverse. Practice problem 5 below uses another one of these.
How do you use composition to check an inverse function?
Two functions and are inverses exactly when each undoes the other: and on the right domains. This is the cleanest way to verify an answer you got from solving for .
Example 3. Check that and are inverses.
Both come out as , so they are inverses. You can find such a partner yourself with the method on inverse of a linear function.
multiplies by 3, then subtracts 4. Its inverse must add 4 first, then divide by 3, just as you take off shoes before socks.
Now the failure case. Let and . Then for , but . So , not . Squaring loses the sign, so no function can undo it on all real numbers. The cure is to restrict the domain, which is the reason a function must be one-to-one to have an inverse, and why the inverse of a quadratic function needs a restricted domain.
Quick check
Answer:
How do you break a function into a composition?
Decomposing is the reverse of composing. Ask what you would do first if you evaluated with a calculator. That first operation is the inner function, and what happens to its result is the outer function.
For , you first compute , then raise to the fourth power. So and , and the check is . Some functions have more than two layers. For the chain is: take , add , then take the reciprocal. That is with , and .
Decompositions are not unique. You could also write using and . The useful choice is the one where each layer is something simple, ideally one of the familiar parent functions. That habit pays off in calculus, where the chain rule asks you to name the inner and outer parts before you differentiate.
Where is composition of functions used in real life?
Unit conversions chain naturally. Fahrenheit to Celsius is , and Celsius to Kelvin is . Composing gives . As a check, gives and , the boiling point of water in Kelvin.
Pricing shows why order matters in practice. A $100 item with 20% off and then a $10 coupon costs . Take the coupon first and then 20% off, and it costs . Two percentage discounts, in contrast, commute: 20% off then 10% off multiplies to , which is 28% off, not 30%.
The same structure runs through software, where each step in a data pipeline is a function fed by the previous one, and through calculus, where . Type your own pair of functions into the solver above and compare both orders to see how the structure behaves.
Practice problems
0 of 5 solved
- Let and . Find .
Answer:
Work inside out. . Then . - Let and . Find in expanded form.
Answer:
Put all of into : . Expand the square: . Combine: . - Let and . Find .
Answer:
Inner function first: . Then . - Let and . Find the domain of .
Answer: and
Filter 1: needs . Filter 2: cannot take , so , which means . The composite is with both restrictions. - Let . Simplify .
Answer: (for )
Numerator: . Denominator: . Divide: . The input is still excluded, so is its own inverse.
Common questions
What is the composition of functions?
It is the process of using the output of one function as the input of another. In symbols, : runs first, then acts on the result.
Is the same as ?
No. The circle means substitute into , while the dot means multiply the two outputs. For and , composition gives and multiplication gives .
Does the order of composition matter?
Almost always. and are usually different functions, with equality only in special cases such as a function and its inverse. Grouping of three functions does not matter, though: .
How do you find the domain of a composite function?
Keep only the values that are allowed in the inner function and that make allowed in the outer function . Test these on the unsimplified expressions, because simplifying can hide a removed value.
How do you know if two functions are inverses using composition?
Compute both and . If each one simplifies to on the proper domains, the functions are inverses of each other.
Can you compose more than two functions?
Yes. Apply them from the inside out, as in . This is exactly how the chain rule in calculus is set up.