Composition of functions — AP Precalculus Study Guide
For: AP Precalculus candidates sitting AP Precalculus.
Covers: Composition notation, evaluating composite functions, finding composite function rules, domain restrictions for composites, and inverse function composition properties for exponential and logarithmic function pairs, aligned with AP Precalculus CED Unit 2.
You should already know: How to find domain/range of exponential, logarithmic, and polynomial functions. How to evaluate functions at numerical and algebraic inputs. The definition of inverse functions for exponential-logarithmic pairs.
A note on the practice questions: All worked questions in the "Practice Questions" section below are original problems written by us in the AP Precalculus style for educational use. They are not reproductions of past College Board / Cambridge / IB papers and may differ in wording, numerical values, or context. Use them to practise the technique; cross-check with official mark schemes for grading conventions.
1. What Is Composition of functions?
Composition of functions is the process of using the output of one function as the input of a second function, combining multiple functions into a single new function. Per the AP Precalculus CED, composition of functions is a core skill within Unit 2 (Exponential and Logarithmic Functions) and appears in roughly 8-12% of Unit 2 exam questions, tested on both multiple-choice (MCQ) and free-response (FRQ) sections. Notation for composition is , read "f composed with g of x", and this is equivalent to : you first evaluate to get an output, then plug that output into as the input. A common synonym is "function chaining", as you chain the output of one step to the input of the next. For Unit 2, composition most frequently pairs exponentials or logarithms with polynomials, or pairs exponential and logarithmic functions with each other, especially when working with inverse functions. Unlike addition or multiplication of functions, composition is not commutative: is almost never equal to , a property frequently tested on the AP exam.
2. Evaluating Composite Functions
Evaluating a composite function means finding the numerical output of for a given input value of . The core rule is to always work from the inside out: evaluate the inner function (the one closest to in the notation) first, then plug that result into the outer function. This process works for all function types, but in Unit 2 you will frequently evaluate composites involving exponentials and logs, so you will often need to use inverse properties of these functions to simplify your result to a numerical value. You can also use the same inside-out process to evaluate composites at algebraic inputs, which is the first step to finding the general rule of a composite function. Common evaluation problems on the AP exam ask for the value of a composite of an exponential and a logarithmic function, leveraging the inverse identity to get a clean numerical result.
Worked Example
Given and , find .
- Recognize that , so we evaluate the inner function first per the order of composition.
- Calculate the inner function output: .
- Substitute this output into the outer function as the input: .
- Simplify using logarithm rules and the inverse identity : , so .
- Add 1 to get the final result: .
Exam tip: On multiple-choice questions, one of the most common distractors is the result of swapping the order of composition (in this example, , which is a common wrong answer). Always explicitly mark which function is inner before you start calculating.
3. Finding the General Rule and Domain of Composite Functions
Once you can evaluate composites at a point, you can find the general algebraic rule for by substituting the entire expression for into the outer function in place of . A critical, frequently tested skill is finding the domain of the new composite function. The domain of is restricted by two rules: first, the input must be in the domain of the inner function , and second, the output of must be in the domain of the outer function . A common mistake is simplifying the composite expression first, then finding the domain of the simplified function, which can lead to incorrectly including disallowed inputs that were restricted by the inner function. For exponential and logarithmic composites, this is especially important because logarithms have a strict domain restriction that their argument must be positive.
Worked Example
Given and , find and state its domain.
- Write the composition by substituting into as the input: .
- First check the domain of the inner function : is a polynomial, so its domain is all real numbers, with no additional restrictions from this step.
- Next, apply the domain restriction of the outer function : the argument of the logarithm must be positive, so solve .
- Solve the inequality: , which holds when or .
- Final result: , domain is .
Exam tip: Always find the domain before simplifying the composite expression, even if simplification removes a term that caused the restriction. For example, still excludes from the domain, even after canceling the term.
4. Composition of a Function and Its Inverse
A key property of inverse functions is that composing a function with its inverse gives the identity function, meaning the output equals the original input. For any one-to-one function with inverse , two identities hold: For Unit 2 (Exponential and Logarithmic Functions), this is most commonly applied to the inverse pairs and (for ), so the identities become (for ) and (for all real ). These identities are used constantly to simplify composite expressions involving exponentials and logs, and they are required for solving most exponential and logarithmic equations on the AP exam. Always remember to apply domain restrictions when using these identities, even after simplification.
Worked Example
Simplify the composite expression where , and state any domain restrictions.
- Write the composition explicitly: .
- Split the product using the logarithm product rule: .
- Apply the inverse composition identity: for all real , so .
- Check the domain: the input to the outer logarithm is , which is always positive (since for all real , multiplied by positive 5). The inner function is defined for all real , so there are no additional domain restrictions.
- Final result: , domain is all real numbers.
Exam tip: When simplifying , the result is , not just . is defined for all non-zero , and , so the simplified form requires the absolute value to retain the correct domain for negative inputs.
5. Common Pitfalls (and how to avoid them)
- Wrong move: Swapping the order of composition to compute instead of when asked for . Why: Students confuse the order of notation, forgetting the function closest to is the inner function evaluated first. Correct move: Always translate explicitly to before starting any calculation, and mark as the inner function.
- Wrong move: Simplifying the composite function first, then finding the domain from the simplified expression, ignoring restrictions from the inner function. Why: Simplification can cancel terms that introduced domain restrictions, leading students to incorrectly include disallowed inputs. Correct move: Find the domain step-by-step: first find all allowed in the inner function, then filter that set to only where the inner output is allowed in the outer function.
- Wrong move: Applying the inverse composition identity to negative inputs of . Why: Students memorize the identity without remembering the domain restriction on the logarithm. Correct move: Before applying , confirm the input to the logarithm is positive, and exclude any negative inputs from your result.
- Wrong move: Claiming composition is commutative, so for all functions . Why: Students confuse composition with multiplication of functions, which is commutative. Correct move: Always assume unless you prove it for the specific functions given.
- Wrong move: When simplifying , writing the result as instead of . Why: Students reverse the power rule , misapplying the coefficient as a multiplicative factor instead of an exponent. Correct move: Move the coefficient inside the logarithm as an exponent first: , then apply the inverse identity, so .
- Wrong move: For a composite where is a logarithm, forgetting that the argument of the inner logarithm must be positive in addition to any restrictions on the output of for the outer function. Why: Students only check the outer function's restrictions, forgetting the inner function already has a domain restriction. Correct move: Always check the domain of the inner function first before checking outer function restrictions.
6. Practice Questions (AP Precalculus Style)
Question 1 (Multiple Choice)
If and , what is the value of ? A) B) C) D)
Worked Solution: First, translate the notation: , so we evaluate the inner function first. Calculate . Next, substitute this output into the outer function : . The most common error is swapping the order of composition, which gives , a common distractor. The correct answer is B.
Question 2 (Free Response)
Let and . (a) Write the rule for and find its domain. (b) Write the rule for and find its domain. (c) Is for this pair of functions? Justify your answer.
Worked Solution: (a) Substitute into to get . First, the inner function requires . The outer function requires its argument to be non-negative: . Final result: Rule: , domain: .
(b) Substitute into to get . First, the inner function requires . The outer function requires . Combining restrictions gives domain . Final result: Rule: , domain: .
(c) No, . Test , which is in the domain of both functions: , while , which is not equal to 2. Since the functions have different outputs at a shared input, they are not equal.
Question 3 (Application / Real-World Style)
In a microbiology experiment, the number of bacteria in a temperature-controlled culture is given by , where is the number of days the culture has been growing. The experiment timer measures time in hours, so the number of growing days as a function of timer hours is . Write the composite function that gives number of bacteria as a function of timer hours , then calculate the number of bacteria after 72 hours on the timer. Round your final answer to the nearest whole number.
Worked Solution: We need as a function of , so we compose with to get . Substitute into : . For , substitute to get . In context, this means after 72 hours (3 full days) of growth, the culture contains approximately 1822 bacteria.
7. Quick Reference Cheatsheet
| Category | Formula | Notes |
|---|---|---|
| Composition Notation | is inner function, evaluate first; is outer. Not commutative: usually. | |
| Evaluating Composite | Evaluate inner first, substitute into outer | Always work inside out, even for multiple layers of composition. |
| Domain of Composite | Domain of = | Check inner domain first, then outer domain; don't simplify before finding domain. |
| Inverse Composition 1 | Only for in the domain of . | |
| Inverse Composition 2 | Only for in the domain of . | |
| Exponential-Log Inverse 1 | Only applies for , where . | |
| Exponential-Log Inverse 2 | Applies for all real , since for all . | |
| Simplifying Composites | The coefficient becomes an exponent, not a multiplicative factor. |
8. What's Next
Mastering composition of functions is a critical prerequisite for the remaining topics in AP Precalculus Unit 2, and for the entire course. Next, you will apply composition and the inverse function identities we covered here to solve exponential and logarithmic equations, where simplifying composite expressions is required to isolate the target variable. You will also use composition regularly when building models for real-world scenarios that involve multiple chained transformations, such as unit conversions or multi-step growth. Beyond Unit 2, composition is the foundational concept for the chain rule in differential calculus, a core topic in AP Calculus AB and BC. Without mastering the order of composition and domain rules here, you will struggle with these more advanced topics.
Solving exponential equations Solving logarithmic equations Inverse functions Modeling with exponential functions