Composite Function

A composite function is a function built by plugging one function into another, written f(g(x)), where the inner function g(x) is evaluated first and its output becomes the input of the outer function f. In AP Calculus, composite functions are differentiated using the chain rule (Topic 3.1).

Verified for the 2027 AP Calculus AB/BC examLast updated June 2026

What is Composite Function?

A composite function is what you get when one function's output becomes another function's input. Notation-wise, that's f(g(x)) or (f ∘ g)(x). The function on the inside, g(x), runs first. Its result gets fed into the outer function f. Think of it as a two-stage machine. The inner machine processes x, then hands its output to the outer machine.

Here's the skill that actually matters in AP Calc: recognizing compositions in disguise. Something like (x² + 5x + 2)⁵ doesn't have an obvious f(g(x)) written on it, but it's a composition. The inner function is x² + 5x + 2 and the outer function is u⁵. Same with ln(sin(x)), where sin(x) is inner and ln(u) is outer. Once you can decompose a function this way, the chain rule tells you exactly how to differentiate it.

Why Composite Function matters in AP Calculus

Composite functions live in Unit 3: Differentiation: Composite, Implicit, and Inverse Functions, specifically Topic 3.1 (The Chain Rule). Learning objective AP Calc 3.1.A asks you to calculate derivatives of compositions of differentiable functions, and the essential knowledge is direct about it: the chain rule provides the way to differentiate composite functions. So this term is the gatekeeper for the chain rule. If you can't see that ln(sin(x)) is a composition with a clear inner and outer layer, you can't apply the chain rule correctly. And the chain rule isn't a one-topic skill. It powers implicit differentiation, derivatives of inverse functions, and related rates later on. Mess up composition recognition in Topic 3.1 and the errors ripple through the rest of the course.

Keep studying AP Calculus Unit 3

How Composite Function connects across the course

Inner Function (Unit 3)

The inner function is the layer that gets evaluated first in a composition. In (x² + 5x + 2)⁵, the inner function is x² + 5x + 2. The chain rule multiplies by this layer's derivative at the end.

Outer Function (Unit 3)

The outer function is the layer wrapped around the inside. In ln(sin(x)), the outer function is ln(u). When you apply the chain rule, you differentiate the outer function first and leave the inner function untouched inside it.

Function Composition (Unit 3)

Function composition is the operation, and a composite function is the result. Composing f with g produces the composite function f(g(x)). Same idea, two names, depending on whether you're talking about the process or the product.

Is Composite Function on the AP Calculus exam?

Composite functions are tested through the chain rule, almost never as a standalone vocabulary question. Multiple-choice questions hand you a function like ln(sin(x)) or (x² + 5x + 2)⁵ and expect you to (1) recognize it as a composition, (2) identify the inner and outer functions, and (3) differentiate using d/dx[f(g(x))] = f'(g(x)) · g'(x). The most common trap is forgetting to multiply by the inner function's derivative, which is exactly the mistake distractor answer choices are built around. You'll also see compositions defined by tables or graphs, where you evaluate f'(g(a)) · g'(a) at a specific point using given values. On FRQs, chain rule fluency shows up inside bigger problems like implicit differentiation and related rates rather than as its own question.

Composite Function vs Product of functions

f(g(x)) is not the same as f(x) · g(x). A composite function nests one function inside another, so x flows through g first, then f. A product just multiplies two outputs side by side. The distinction decides which rule you use. Compositions get the chain rule, products get the product rule. Something like x² · sin(x) is a product (product rule), while sin(x²) is a composition (chain rule).

Key things to remember about Composite Function

  • A composite function f(g(x)) is built by feeding the output of the inner function g into the outer function f.

  • The chain rule exists specifically to differentiate composite functions, which is the essential knowledge behind learning objective AP Calc 3.1.A.

  • To decompose a function, ask what gets calculated first. That first calculation is the inner function, and whatever wraps around it is the outer function.

  • Functions like (x² + 5x + 2)⁵ and ln(sin(x)) are compositions even though they aren't written as f(g(x)), and spotting them is the real exam skill.

  • A composition f(g(x)) is different from a product f(x) · g(x), and confusing the two means using the wrong derivative rule.

  • Composite functions come back in implicit differentiation, inverse function derivatives, and related rates, so the recognition skill from Topic 3.1 keeps paying off.

Frequently asked questions about Composite Function

What is a composite function in calculus?

A composite function is one function plugged into another, written f(g(x)). The inner function g(x) runs first, and its output becomes the input of the outer function f. In AP Calc, you differentiate composites with the chain rule (Topic 3.1).

Is (x² + 5x + 2)⁵ a composite function?

Yes. The inner function is x² + 5x + 2 and the outer function is u⁵. Its derivative by the chain rule is 5(x² + 5x + 2)⁴ · (2x + 5).

Is f(g(x)) the same as f(x) times g(x)?

No. f(g(x)) is a composition, where g's output feeds into f, and it requires the chain rule. f(x) · g(x) is a product of two separate outputs and requires the product rule. Mixing these up is one of the most common errors on Unit 3 questions.

How do I find the inner and outer function of a composite function?

Ask what you'd compute first if you plugged in a number. That first step is the inner function. For ln(sin(x)), you'd compute sin(x) first, so sin(x) is inner and ln(u) is outer.

Why do composite functions need the chain rule?

Because a composition has layers, and each layer changes at its own rate. The chain rule multiplies those rates together: d/dx[f(g(x))] = f'(g(x)) · g'(x). Basic rules like the power rule alone can't account for the inner function's rate of change.