A composite function combines two functions so that the output of one becomes the input of the other, written as or . You work the inside function first, then feed that result into the outside function.
Why This Matters for the AP Precalculus Exam
Composition shows up across AP Precalculus because it lets you connect two quantities that do not have a single direct formula. You will see it on the exam when you evaluate from equations, tables, or graphs, build a new composite function, or break a complicated function into simpler inside and outside pieces.
Composition also sets up later topics in this unit. Inverse functions are defined through composition, since a function and its inverse compose to give the identity function. Getting comfortable here makes the inverse and logarithm work that follows much smoother.
On the AP Precalculus exam, some multiple-choice and free-response questions allow a graphing calculator and some do not. When you show composition work in free-response, writing each substitution step clearly is important for clear exam work and helps you avoid small algebra slips.

Key Takeaways
- means apply first, then use that output as the input for .
- The domain of is limited to inputs of whose outputs are valid inputs for .
- Composition is not commutative: and are usually different.
- The identity function leaves any function unchanged: .
- To build analytically, substitute for every in .
- You can also build from tables or graphs by reading outputs of as inputs of .
What Composition of Functions Means
A composite function is built from two or more simpler functions chained together. The notation , also written , tells you to apply to first, then use that result as the input to .
The key idea is that the output of the inside function becomes the input of the outside function. So in , you find first, then plug that value into .
For example, with and :
Here replaces the inside , and then the whole thing is squared.
Domain of a Composite Function
The domain of is restricted to the input values of whose outputs are valid inputs for . In other words, an has to be allowed in , and then has to be allowed in . Watch for inside functions that create restrictions, such as a square root that needs a nonnegative input, a denominator that cannot be zero, or a logarithm that needs a positive input.
Notation and Properties
Order Matters
The composition of functions is not commutative, so and are typically different functions.
Take and :
These are different functions with different outputs, so you cannot just swap the order.
The Identity Function
The identity function returns its input unchanged. When you compose it with any function , you get back:
This works because does nothing to the input. It behaves like for addition and for multiplication: an identity that leaves the other function alone. For example, composing with just gives back.
Working with Composite Functions
Building f(g(x)) Analytically
When you have equations for and , build by substituting for every instance of in .
For example, with and :
Every in became .
Building f(g(x)) from Tables or Graphs
You can also construct numerically or graphically by finding values for .
- Numerical: Use a table of values. Read from the table, then use that output as an input in the table for .
- Graphical: Read off the graph of , then go to the graph of and read the output at that input value.
This is handy when you only have data or pictures, not equations.
Decomposing a Function
Decomposition is the reverse process: breaking a complicated function into simpler inside and outside pieces. When you decompose correctly, the variable in the inside function should replace each instance of that inside function in the outside function.
For example, can be decomposed as:
- inside:
- outside:
so that . Picking a clean inside function is the key to decomposing well.
Composition and Transformations
Transformations can be viewed as compositions, which connects this topic to function shifts and stretches.
- An additive transformation that produces translations can be seen as composing with . This shifts the graph horizontally or vertically by a constant amount.
- A multiplicative transformation that produces dilations can be seen as composing with . This stretches or shrinks the graph by a factor of .
Seeing transformations as compositions helps you predict how the graph of a function changes when you build a new function from it.
How to Use This on the AP Precalculus Exam
Problem Solving
- Read the composition carefully and identify which function is inside. In , is the inside function and runs first.
- To evaluate at a number like , find first, then plug that result into .
- For analytic compositions, substitute the entire inside function for every in the outside function. Use parentheses so you do not lose exponents or signs.
From Tables and Graphs
- With tables, locate the input in the column, read its output, then use that output as the input for .
- With graphs, find first on the graph of , then read at that value on the graph of .
Common Trap
- Do not assume . Order changes the result almost every time.
- Watch domain restrictions created by the inside function, like negative inputs under a square root or a zero denominator.
Calculator Note
Some multiple-choice and free-response questions allow a graphing calculator and some do not. When work is required, write each substitution step clearly. Clean notation is important for clear exam work and helps you catch algebra mistakes.
Common Misconceptions
- Thinking order does not matter. and are usually different functions. Always check which function is on the inside.
- Forgetting the domain of the composite. An input must be valid for first, and then must be valid for . Restrictions from the inside function still apply even if the final formula looks fine.
- Substituting only one . When building , replace every in with the inside function, not just the first one.
- Dropping parentheses during substitution. Writing without parentheses before squaring leads to wrong results. Keep the inside function grouped.
- Confusing composition with multiplication. is not . Composition feeds one output into the next function, it does not multiply the two functions.
Related AP Precalculus Guides
Vocabulary
The following words are mentioned explicitly in the College Board Course and Exam Description for this topic.Term | Definition |
|---|---|
additive transformation | A transformation of a function involving addition or subtraction, resulting in vertical and horizontal translations. |
analytic representation | An algebraic formula or equation that explicitly defines a function. |
commutative | A property where the order of operations does not affect the result; composition of functions is not commutative, meaning f ∘ g typically produces a different result than g ∘ f. |
composite function | A function formed by combining two or more functions, where the output of one function becomes the input of another function, denoted as f ∘ g or f(g(x)). |
composition of functions | A function operation where one function is applied to the output of another function, written as (f ∘ g)(x) = f(g(x)). |
decomposed | The process of breaking down a complex function into simpler component functions that can be composed together. |
domain | The set of all possible input values for which a function is defined. |
function composition | The process of combining two or more functions where the output of one function becomes the input of another function. |
graphical representation | A visual representation of a function displayed on a coordinate plane. |
horizontal dilation | A transformation that stretches or compresses the graph of a function horizontally by multiplying the input by a constant factor b, written as g(x) = f(bx). |
horizontal translation | A transformation that shifts the graph of a function left or right by adding a constant to the input, written as g(x) = f(x + h). |
identity function | The function h(x) = x, which serves as the line of reflection between inverse exponential and logarithmic functions. |
input value | The x-values or independent variable values used as inputs to a function. |
multiplicative transformation | A transformation of a function involving multiplication, resulting in vertical and horizontal dilations. |
numerical representation | A representation of a function using tables of values or ordered pairs (x, y). |
output value | The y-values or results produced by a function for given input values. |
vertical dilation | A transformation that stretches or compresses the graph of a function vertically by multiplying the function by a constant factor a, written as g(x) = af(x). |
vertical translation | A transformation that shifts the graph of a function up or down by adding a constant k to the function, written as g(x) = f(x) + k. |
Frequently Asked Questions
What does f(g(x)) mean in AP Precalculus?
f(g(x)) means apply g first, then use the output of g as the input for f. The inside function runs first and the outside function runs second.
How do I evaluate a composite function from a formula?
Identify the inside function, substitute the entire inside expression into every x of the outside function, use parentheses, and then simplify. For f(g(2)), find g(2) first, then plug that value into f.
How do I find the domain of a composite function?
An input must be allowed in the inside function, and the output of the inside function must be allowed in the outside function. Check restrictions like square roots, logarithms, and denominators.
Is function composition commutative?
No. f(g(x)) and g(f(x)) are usually different functions and usually produce different outputs. Order matters because one function's output becomes the other function's input.
How do I use tables or graphs for composition of functions?
Use the starting x-value in the inside function first. Then take that output and use it as the input for the outside function, reading the second output from the table or graph.
What does it mean to decompose a function?
Decomposing a function means rewriting a complicated expression as a composition of simpler functions. You identify an inside function and an outside function whose composition produces the original function.