AP Course

AP Precalculus

Study nine focused AP Precalculus units through topic lessons, original graph examples, quizzes, and practice sets.

Follow the College Board topic sequence across polynomial, rational, exponential, logarithmic, trigonometric, polar, parametric, vector, and matrix functions.

Lessons
Change in TandemRates of ChangeRates of Change in Linear and Quadratic FunctionsPolynomial Functions and Rates of ChangePolynomial Functions and Complex ZerosPolynomial Functions and End BehaviorRational Functions and End BehaviorRational Functions and ZerosRational Functions and Vertical AsymptotesRational Functions and HolesEquivalent Representations of Polynomial and Rational ExpressionsTransformations of FunctionsFunction Model Selection and Assumption ArticulationFunction Model Construction and ApplicationChange in Arithmetic and Geometric SequencesChange in Linear and Exponential FunctionsExponential FunctionsExponential Function ManipulationExponential Function Context and Data ModelingCompeting Function Model ValidationComposition of FunctionsInverse FunctionsLogarithmic ExpressionsInverses of Exponential FunctionsLogarithmic FunctionsLogarithmic Function ManipulationExponential and Logarithmic Equations and InequalitiesLogarithmic Function Context and Data ModelingSemi-log PlotsPeriodic PhenomenaSine, Cosine, and TangentSine and Cosine Function ValuesSine and Cosine Function GraphsSinusoidal FunctionsSinusoidal Function TransformationsSinusoidal Function Context and Data ModelingThe Tangent FunctionInverse Trigonometric FunctionsTrigonometric Equations and InequalitiesThe Secant, Cosecant, and Cotangent FunctionsEquivalent Representations of Trigonometric FunctionsTrigonometry and Polar CoordinatesPolar Function GraphsRates of Change in Polar FunctionsParametric FunctionsParametric Functions Modeling Planar MotionParametric Functions and Rates of ChangeParametrically Defined Circles and LinesImplicitly Defined FunctionsConic SectionsParametrization of Implicitly Defined FunctionsVectorsVector-Valued FunctionsMatricesThe Inverse and Determinant of a MatrixLinear Transformations and MatricesMatrices as FunctionsMatrices Modeling Contexts
Quizzes
Practice Problems Open a unit to choose from 58 topic-aligned practice sets.

Unit 3 · Topic 2.7

Composition of Functions

Build and interpret composite functions by using one function's output as another function's input. Develop the idea through symbolic, numerical, graphical, and contextual representations.

Learning Goals

  • Evaluate compositions from formulas, tables, and graphs.
  • Construct and decompose composite functions.
  • Determine composite domains.

1. Essential Structure

Build and interpret composite functions by using one function's output as another function's input.

\[(f\circ g)(x)=f(g(x))\]

Read the formula together with its domain, units, starting input, and the interval length over which change is measured.

2. Core Ideas

  • In \((f\circ g)(x)=f(g(x))\), \(g\) acts first.
  • Valid inputs must be in the domain of \(g\), and \(g(x)\) must lie in the domain of \(f\).
  • Composition is generally not commutative.
  • Input shifts and horizontal scales can be interpreted as composition.

3. Graph and Representation

Composition of Functions example graphThe inner function changes the input before the outer function acts.
The inner function changes the input before the outer function acts.

Use graphical evidence together with an algebraic or numerical reason. A graphing window alone does not establish domain, end behavior, or model validity.

4. Original Worked Example

If \(f(x)=x^2\) and \(g(x)=x+1\), find \((f\circ g)(x)\).

\((f\circ g)(x)=(x+1)^2\).

Check the result in the original representation and explain its meaning, including units when the quantities are contextual.

5. AP Reasoning Workflow

  1. Identify the inner function.
  2. Evaluate or substitute its output.
  3. Apply the outer function.
  4. Simplify while preserving restrictions.
  5. Check the composite domain.

A strong AP response shows the mathematical evidence first and then states a precise conclusion.

6. Extended Example and Application

If \(C(m)=0.85m\) applies a discount and \(T(p)=1.06p\) applies tax, then \((T\circ C)(m)=0.901m\). A fixed fee would make order more visibly important.

7. Technology and Validation

For tables and graphs, read the inner output first and use it as the next input.

When technology is used, record the model or result, preserve sufficient precision, and explain why the output answers the question.

8. Follow the Input-Output Chain

A composition connects functions by feeding the output of one function into the input of another:

\[x\xrightarrow{\ g\ }g(x)\xrightarrow{\ f\ }f(g(x))=(f\circ g)(x).\]

The function nearest the input acts first. In \(f\circ g\), this is \(g\), even though \(f\) is written first in the composition notation.

ExpressionFirst actionNext action
\(f(g(3))\)Find \(g(3)\)Use that result as an input to \(f\)
\((g\circ f)(x))\)Find \(f(x)\)Substitute the result into \(g\)
\(h(g(f(x)))\)Apply \(f\)Then \(g\), then \(h\)

Composition is not multiplication: \(f(g(x))\) is generally different from \(f(x)g(x)\).

9. Compose Functions Given by Formulas

When formulas are available, replace every occurrence of the outer function's input by the entire inner expression. Let

\[f(u)=u^2-4u+1,\qquad g(x)=3x-2.\]

Then

\[(f\circ g)(x)=f(3x-2)=(3x-2)^2-4(3x-2)+1=9x^2-24x+13.\]

Reversing the order produces

\[(g\circ f)(x)=g(x^2-4x+1)=3(x^2-4x+1)-2=3x^2-12x+1.\]

The results demonstrate that composition is usually not commutative. Parentheses protect the inner expression during substitution; dropping them is a common source of sign and exponent errors.

10. Evaluate Composition from a Table

Use the table twice: first read the inner output, then find that number in the input column for the outer function.

\(x\)\(f(x)\)\(g(x)\)
-21-1
-132
003
120
2-1-2
3-21

For example, \(g(-1)=2\), so

\[(f\circ g)(-1)=f(g(-1))=f(2)=-1.\]

In the reverse order, \(f(-1)=3\), so \((g\circ f)(-1)=g(3)=1\). If the inner output does not appear among the available inputs for the outer table, the composite value cannot be determined from the table, even if both functions have a listed value at the original input.

11. Evaluate and Construct Graphical Representations

For graphs, trace the same input-output chain without inventing an algebraic formula.

  1. Locate the starting input \(x=a\) on the graph of the inner function.
  2. Read or estimate the inner output \(g(a)=b\).
  3. Move to input \(x=b\) on the graph of the outer function.
  4. Read the final output \(f(b)=c\), so \((f\circ g)(a)=c\).

To construct points on the composite graph, repeat the process for several starting inputs and plot the pairs \((a,c)\). The intermediate value \(b\) guides the calculation but is not a coordinate of \(f\circ g\).

Estimation: when a graph does not pass through labeled grid points, state an approximate value and keep reasonable precision through both readings.

12. Determine the Domain of a Composition

The domain of \(f\circ g\) contains inputs that pass two tests:

\[x\in\operatorname{Dom}(g)\quad\text{and}\quad g(x)\in\operatorname{Dom}(f).\]

Example 1: If \(f(u)=1/(u-4)\) and \(g(x)=x^2\), then

\[(f\circ g)(x)=\frac{1}{x^2-4}.\]

The inner function accepts every real number, but its output cannot equal 4 because 4 is excluded from the domain of \(f\). Thus \(x\ne-2,2\), and the domain is \(( -\infty,-2)\cup(-2,2)\cup(2,\infty)\).

Example 2: If \(p(u)=\sqrt{u-1}\) and \(q(x)=3/(x-2)\), require both \(x\ne2\) and \(q(x)\ge1\):

\[\frac{3}{x-2}\ge1\quad\Longrightarrow\quad\frac{5-x}{x-2}\ge0.\]

A sign analysis gives domain \((2,5]\). Simplifying a formula does not erase restrictions inherited from the component functions.

13. Identity Functions, Decomposition, and Transformations

The identity function \(I(x)=x\) leaves every valid input unchanged:

\[(I\circ f)(x)=(f\circ I)(x)=f(x).\]

Decomposition reverses the composition process. For

\[H(x)=\sqrt{5+(2x-1)^4},\]

one useful three-stage decomposition is

\[r(x)=2x-1,\qquad q(u)=u^4+5,\qquad p(v)=\sqrt v,\]
\[H=p\circ q\circ r.\]

There can be more than one valid decomposition. Choose component functions that expose the operations or transformations relevant to the question.

Transformed functionComposition viewpoint
\(f(x+h)\)\((f\circ s)(x))\), where \(s(x)=x+h\)
\(f(kx)\)\((f\circ d)(x))\), where \(d(x)=kx\)
\(f(x)+c\)\((t\circ f)(x))\), where \(t(u)=u+c\)
\(af(x)\)\((m\circ f)(x))\), where \(m(u)=au\)

14. Construct a Composite Model in Context

Composition is useful when two quantities are connected through an intermediate variable. Suppose \(F(c)=1.8c+32\) converts Celsius temperature \(c\) to Fahrenheit, and \(C(t)=18-6(0.82)^t\) models a chamber's Celsius temperature \(t\) hours after cooling begins.

\[(F\circ C)(t)=1.8\big(18-6(0.82)^t\big)+32=64.4-10.8(0.82)^t.\]

The unit chain verifies the order:

\[\text{hours}\xrightarrow{\ C\ }\text{degrees Celsius}\xrightarrow{\ F\ }\text{degrees Fahrenheit}.\]

At \(t=3\), the model gives approximately \(58.45^{\circ}\text{F}\). The reverse composition \(C(F(t))\) is not meaningful here because \(C\) expects hours, but \(F(t)\) produces a temperature.

AP-ready interpretation: identify the intermediate quantity, justify the composition order using units, write the composite formula, and preserve the contextual domain \(t\ge0\). A formula can be algebraically defined beyond that interval while still being inappropriate for the scenario.

15. Common Errors

  • Do not reverse the order: \(f\circ g\) is generally different from \(g\circ f\).
  • Multiplying \(f(x)g(x)\) instead of evaluating \(f(g(x))\).
  • Ignoring outer-function restrictions on the inner output.
  • Giving a numerical result without a domain check, units, or interpretation.

Key Takeaways

  • Build and interpret composite functions by using one function's output as another function's input.
  • Core relationship: \((f\circ g)(x)=f(g(x))\)
  • Error check: Do not reverse the order: \(f\circ g\) is generally different from \(g\circ f\).
Checkpoint · Topic 2.7
  1. Find \(f\circ g\) and its domain for \(f(x)=\sqrt{x}\), \(g(x)=x-5\).
  2. Decompose \(h(x)=\ln(3x+1)\).
  3. Create a context where reversing composition changes the result.