Function decomposition in AP Pre-Calculus

Function decomposition is the process of rewriting a complicated function as a composition of two or more simpler functions, so that f(g(x)) reproduces the original. In AP Precalculus (Topic 2.7, LO 2.7.C), a decomposition is valid when the inner function's output replaces every instance of the variable in the outer function.

Verified for the 2027 AP Pre-Calculus examLast updated June 2026

What is function decomposition?

Function decomposition is composition run in reverse. Instead of starting with two functions and building f(g(x)), you start with one messy function and figure out which simpler pieces it's made of. Take r(x) = √(2x - 5). The inside job is g(x) = 2x - 5, and the outside job is f(x) = √x. Substitute g into f and you're back to the original. That substitution test is the whole game. Per the CED (2.7.C.1), a decomposition is correct only when the variable in one function replaces each instance of the function it was composed with. If even one x in the outer function doesn't get the inner function plugged in, the decomposition is wrong.

The CED also gives you two ready-made decompositions you should recognize on sight. A vertical or horizontal translation of f is really f composed with g(x) = x + k (2.7.C.2). A vertical or horizontal dilation is f composed with g(x) = kx (2.7.C.3). In other words, every transformation you learned in Unit 1 was secretly a composition the whole time. Decomposition just makes that structure visible.

Why function decomposition matters in AP® Precalculus

Function decomposition lives in Topic 2.7 (Composition of Functions) in Unit 2: Exponential and Logarithmic Functions, under learning objective AP Pre Calc 2.7.C ("Rewrite a given function as a composition of two or more functions"). It's the flip side of 2.7.A (evaluating compositions) and 2.7.B (constructing them), and you need all three to fully own the topic. Beyond the exam, decomposition is the single most important precalc skill for the chain rule in AP Calculus, where you can't differentiate a composite function until you've identified its inner and outer pieces. Learning to see √(2x - 5) as "square root of (linear thing)" now saves you serious pain later.

How function decomposition connects across the course

Function Composition (Unit 2)

Decomposition and composition are inverse processes. Composition builds f(g(x)) from known pieces; decomposition takes a finished function apart to find those pieces. The check is the same in both directions, since substituting g(x) for every x in f must reproduce the original function.

Multiplicative Transformations and Horizontal Dilations (Unit 2)

The CED treats dilations as a special case of decomposition. f(kx) is just f composed with g(x) = kx, which means a horizontal dilation isn't a separate rule to memorize. It's a composition where the inner function scales the input before f ever sees it.

Transformations of Functions (Unit 1)

Every translation from Unit 1 can be rewritten as a composition with g(x) = x + k (EK 2.7.C.2). Decomposition unifies the transformation rules you already know into one idea, so f(x - 3) + 2 stops being a memorized recipe and becomes layered function machines.

Domain of Composite Functions (Unit 2)

Once you decompose r(x) = √(2x - 5) into f and g, the domain story gets clearer. The composite only accepts inputs of g whose outputs land in the domain of f, which here means 2x - 5 must be nonnegative.

Is function decomposition on the AP® Precalculus exam?

Decomposition shows up as multiple-choice questions that hand you a function like r(x) = √(2x - 5) and ask you to identify a valid f and g with r(x) = f(g(x)), or to justify why a given decomposition works. The justification always comes back to EK 2.7.C.1, meaning g(x) must replace every instance of x in f. Watch for trap answers that swap the inner and outer functions, since f(g(x)) and g(f(x)) are usually different. You may also see contextual versions, like a shadow length s(h) = 2h + 5 feeding into a darkness function D(s) = √s, where you have to recognize that composing them links height directly to darkness. Decomposition can also be the hidden step in transformation questions, where you're asked to express f(kx) or f(x + k) as a composition.

Function decomposition vs function composition

Composition combines two functions into one, going from f and g to f(g(x)). Decomposition does the opposite, starting from one complicated function and splitting it into simpler inner and outer functions. They're the same relationship read in different directions, and the exam tests both: 2.7.B is composition (build it), 2.7.C is decomposition (take it apart). If a question gives you two functions and asks for one, that's composition. If it gives you one function and asks for two, that's decomposition.

Key things to remember about function decomposition

  • Function decomposition rewrites a complicated function as a composition of simpler functions, which is composition run backwards.

  • A decomposition is valid only when the inner function's output replaces every single instance of the variable in the outer function (EK 2.7.C.1).

  • For r(x) = √(2x - 5), the standard decomposition is g(x) = 2x - 5 as the inner function and f(x) = √x as the outer function.

  • Translations are compositions with g(x) = x + k, and dilations are compositions with g(x) = kx, so transformations are really decompositions in disguise.

  • Order matters in compositions, so always check whether your proposed f(g(x)) actually reproduces the original function before picking an answer.

  • Decomposition is the precalc foundation for the chain rule in AP Calculus, where identifying inner and outer functions is step one of every problem.

Frequently asked questions about function decomposition

What is function decomposition in AP Precalculus?

It's the process of rewriting a complicated function as a composition of simpler ones, so that f(g(x)) equals the original function. It's tested under learning objective AP Pre Calc 2.7.C in Topic 2.7, Composition of Functions.

How is function decomposition different from function composition?

Composition combines two known functions into f(g(x)); decomposition starts with one function and splits it into an inner and outer piece. Same relationship, opposite directions, and the AP exam tests both skills separately (2.7.B vs 2.7.C).

Is there only one correct way to decompose a function?

No. Most functions have multiple valid decompositions. For h(x) = (x + 1)², you could use g(x) = x + 1 with f(x) = x², among other options. Any pair works as long as substituting g(x) for every x in f reproduces the original function.

How do I check if a decomposition is valid on the AP exam?

Substitute the inner function g(x) for every instance of x in the outer function f, then simplify. If the result matches the original function exactly, the decomposition is valid. The CED's requirement (2.7.C.1) is that g(x) replaces each instance of the variable, not just some of them.

Why does function decomposition matter for AP Calculus?

The chain rule requires you to identify the inner and outer functions of a composite before you can differentiate it. If you can decompose √(2x - 5) into f(x) = √x and g(x) = 2x - 5 now, the chain rule will feel like a familiar move instead of a new skill.