5m left·0%
Reading Time: 5 min
Last Updated: July 20, 2026
Main Ideas: 5
Reading Time: 5 min
Last Updated: July 20, 2026
Main Ideas: 5

Topic 2.7 Notes – Composition of Functions

Verified for 2027 AP® Precalculus Exam
Read aloud
Composition of functions is about chaining functions together. One function takes the input first, and its output becomes the input of the next function. In this topic, you need to read, evaluate, build, and break apart these chains, and connect them to transformations like shifts and stretches.

Nesting one function inside another

If you see

(f∘g)(x)=f(g(x)), (f\circ g)(x)=f(g(x)),

read it as “gg happens first, then ff”.

That means the path is

x→g(x)→f(g(x)). x \to g(x) \to f(g(x)).

  • Inside function means the one closest to xx. Here, that is gg.
  • Outside function means the one applied after that. Here, that is ff.
  • f(g(x))f(g(x)) is function notation. It does not mean f(x)g(x)f(x)g(x).

Composition is useful when two quantities connect through a middle quantity.
Example: time →\to radius →\to area.

  • If r(t)=1+2tr(t)=1+2t and A(r)=πr2A(r)=\pi r^2, then

(A∘r)(t)=A(r(t))=π(1+2t)2. (A\circ r)(t)=A(r(t))=\pi(1+2t)^2.

The domain of f∘gf\circ g needs both steps to work:

  • xx must be in the domain of gg
  • g(x)g(x) must be in the domain of ff

Also, order matters. Usually,

f∘g≠g∘f. f\circ g \ne g\circ f.

One special function does nothing to the input. The identity function is

I(x)=x. I(x)=x.

So

I∘g=g∘I=g. I\circ g=g\circ I=g.

Evaluating and Constructing Composites

Evaluating values

For a number input, do the inside first.

If f(x)=x2+1f(x)=x^2+1 and g(x)=3x−2g(x)=3x-2, then

(f∘g)(2)=f(g(2)). (f\circ g)(2)=f(g(2)).

Compute:

  1. g(2)=3(2)−2=4g(2)=3(2)-2=4
  2. f(4)=42+1=17f(4)=4^2+1=17

So (f∘g)(2)=17(f\circ g)(2)=17.

If there are three functions, work from the innermost outward.

Constructing a formula

To build a rule for f∘gf\circ g, replace every xx in f(x)f(x) with g(x)g(x).

(f∘g)(x)=f(g(x)) (f\circ g)(x)=f(g(x))

Example: f(x)=x2+5f(x)=x^2+5, g(x)=2x−1g(x)=2x-1

(f∘g)(x)=(2x−1)2+5=4x2−4x+6. (f\circ g)(x)=(2x-1)^2+5=4x^2-4x+6.

The graph helps you see that the composite uses the output of gg as the input to ff.

Parentheses matter a lot, especially with powers and negatives.

Graphs of ff, gg, and f∘gf\circ g

From tables, graphs, and situations

  • Tables: find g(x)g(x) in the first table, then use that output as the input in the ff table.
  • If that input is missing in the second table, the composite may be undefined or cannot be determined.
  • Graphs: read g(a)g(a), then go to the graph of ff and evaluate at that value.
  • Watch for holes, endpoints, and restricted domains on both graphs.
  • Verbal situations: let units guide the order. If miles →\to gallons →\to cost, that tells you which function is inside.

Domain and Order Matter

This is where students lose easy points.

The full rule is

  • an input survives only if gg accepts it and
  • the result g(x)g(x) is allowed in ff

Common restrictions:

  • denominator cannot be zero
  • even-root radicand must be nonnegative
  • context may restrict values too

A simplified formula can hide excluded values.

Example:

f(x)=x2−1x−1,g(x)=x f(x)=\frac{x^2-1}{x-1},\quad g(x)=x Then (f∘g)(x)=x2−1x−1=x+1, (f\circ g)(x)=\frac{x^2-1}{x-1}=x+1, but x=1x=1 is still excluded.

Reversing order can change formula, domain, range, graph, and even units.

Decomposing a Function into Simpler Functions

Decomposition means reversing composition.

Suppose

h(x)=3x2+7. h(x)=\sqrt{3x^2+7}.

A clean decomposition is

  • g(x)=3x2+7g(x)=3x^2+7
  • f(x)=xf(x)=\sqrt{x}

Then

h(x)=f(g(x)). h(x)=f(g(x)).

Look for the natural inside piece, often a repeated expression or the part “done first.”

Sometimes you can use more than two layers. Decompositions are often not unique. What matters is that recomposing gives the original function back, with the same domain.

Transformations as Compositions

This is the connection to graph transformations.

f(x)+k=(Ak∘f)(x),Ak(x)=x+k f(x)+k=(A_k\circ f)(x), \quad A_k(x)=x+k This changes outputs, so it is a vertical translation.

f(x+k)=(f∘Ak)(x) f(x+k)=(f\circ A_k)(x) This changes inputs, so it is a horizontal translation.

kf(x)=(Mk∘f)(x),Mk(x)=kx kf(x)=(M_k\circ f)(x), \quad M_k(x)=kx This is a vertical dilation. If k<0k<0, it also reflects across the xx-axis.

f(kx)=(f∘Mk)(x) f(kx)=(f\circ M_k)(x) This is a horizontal dilation by factor 1/∣k∣1/|k|. If k<0k<0, it also reflects across the yy-axis.

The lock-in idea is simple:

  • outside composition changes outputs
  • inside composition changes inputs

Key Takeaways

In f(g(x))f(g(x)), gg happens first even though ff is written first.
f(g(x))f(g(x)) means composition, not multiplication.
The domain of f∘gf\circ g includes only inputs where both stages are defined.
When building f(g(x))f(g(x)), substitute g(x)g(x) for every xx in ff, not just one.
Simplifying a composite does not remove original domain restrictions.
f∘gf\circ g and g∘fg\circ f are usually different functions.
The identity function I(x)=xI(x)=x leaves a function unchanged under composition.
Outside changes like f(x)+kf(x)+k and kf(x)kf(x) affect outputs, while inside changes like f(x+k)f(x+k) and f(kx)f(kx) affect inputs.

AP® is a trademark registered by the College Board, which is not affiliated with, and does not endorse this website.

Notes

1 credit used · 5/5 remaining