---
title: "Function Decomposition — AP Precalc Definition & Examples"
description: "Function decomposition means rewriting a complicated function as a composition of simpler ones, like √(2x-5) = f(g(x)). Tested in AP Precalc Topic 2.7."
canonical: "https://fiveable.me/ap-pre-calc/key-terms/function-decomposition"
type: "key-term"
subject: "AP Pre-Calculus"
unit: "Unit 2"
---

# Function Decomposition — AP Precalc Definition & Examples

## Definition

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.

## What It Is

Function decomposition is [composition](/ap-pre-calc/unit-2/inverse-functions/study-guide/JkTPSAR9TH5LfSXP "fv-autolink") 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](/ap-pre-calc/key-terms/dilation "fv-autolink")** is f composed with g(x) = kx (2.7.C.3). In other words, every transformation you learned in [Unit 1](/ap-pre-calc/unit-1 "fv-autolink") was secretly a composition the whole time. Decomposition just makes that structure visible.

## Why It Matters

Function decomposition lives in **Topic 2.7 (Composition of Functions)** in [Unit 2](/ap-pre-calc/unit-2 "fv-autolink"): Exponential and Logarithmic Functions, under learning objective **[AP Pre Calc](/ap-pre-calc "fv-autolink") 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.

## Connections

### [Function Composition (Unit 2)](/ap-pre-calc/key-terms/function-composition)

Decomposition and composition are inverse processes. Composition builds f(g(x)) from known pieces; decomposition takes a finished [function](/ap-pre-calc/unit-1/change-tandem/study-guide/eQFiTo22fpkDFsnj "fv-autolink") 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](/ap-pre-calc/key-terms/horizontal-dilation "fv-autolink") 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](/ap-pre-calc/unit-1/function-model-construction-application/study-guide/n3ZaYWJqkvxnoJEt "fv-autolink") 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.

## On the AP 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 Takeaways

- 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.

## FAQs

### 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.

## Related Study Guides

- [2.7 Composition of Functions](/ap-pre-calc/unit-2/composition-functions/study-guide/glFlt2HgsCSjvjSL)

## Structured Data

```json
{"@context":"https://schema.org","@graph":[{"@type":"LearningResource","@id":"https://fiveable.me/ap-pre-calc/key-terms/function-decomposition#resource","name":"Function Decomposition — AP Precalc Definition & Examples","url":"https://fiveable.me/ap-pre-calc/key-terms/function-decomposition","learningResourceType":"Concept explainer","educationalLevel":"AP® / High School","about":{"@id":"https://fiveable.me/ap-pre-calc/key-terms/function-decomposition#term"},"audience":{"@type":"EducationalAudience","educationalRole":"student"},"dateModified":"2026-06-11T05:27:27.002Z","isPartOf":{"@type":"Collection","name":"AP Pre-Calculus Key Terms","url":"https://fiveable.me/ap-pre-calc/key-terms"},"publisher":{"@type":"Organization","name":"Fiveable","url":"https://fiveable.me"}},{"@type":"DefinedTerm","@id":"https://fiveable.me/ap-pre-calc/key-terms/function-decomposition#term","name":"function decomposition","description":"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.","url":"https://fiveable.me/ap-pre-calc/key-terms/function-decomposition","inDefinedTermSet":{"@type":"DefinedTermSet","name":"AP Pre-Calculus Key Terms","url":"https://fiveable.me/ap-pre-calc/key-terms"}},{"@type":"FAQPage","mainEntity":[{"@type":"Question","name":"What is function decomposition in AP Precalculus?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","name":"How is function decomposition different from function composition?","acceptedAnswer":{"@type":"Answer","text":"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)."}},{"@type":"Question","name":"Is there only one correct way to decompose a function?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","name":"How do I check if a decomposition is valid on the AP exam?","acceptedAnswer":{"@type":"Answer","text":"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."}},{"@type":"Question","name":"Why does function decomposition matter for AP Calculus?","acceptedAnswer":{"@type":"Answer","text":"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."}}]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"AP Pre-Calculus","item":"https://fiveable.me/ap-pre-calc"},{"@type":"ListItem","position":2,"name":"Key Terms","item":"https://fiveable.me/ap-pre-calc/key-terms"},{"@type":"ListItem","position":3,"name":"Unit 2","item":"https://fiveable.me/ap-pre-calc/unit-2"},{"@type":"ListItem","position":4,"name":"function decomposition"}]}]}
```
