---
title: "Function Composition — AP Precalc Definition & Exam Guide"
description: "Function composition feeds the output of one function into another, written f(g(x)) or f∘g. It powers Topic 2.7, transformations, and inverse functions."
canonical: "https://fiveable.me/ap-pre-calc/key-terms/function-composition"
type: "key-term"
subject: "AP Pre-Calculus"
unit: "Unit 2"
---

# Function Composition — AP Precalc Definition & Exam Guide

## Definition

Function composition combines two functions so the output of one becomes the input of the other, written (f ∘ g)(x) = f(g(x)). In AP Precalculus (Topic 2.7), it relates quantities with no direct formula, and its domain is limited to inputs of g whose outputs land in the domain of f.

## What It Is

Function composition is a chain. You take an [input](/ap-pre-calc/unit-1/change-tandem/study-guide/eQFiTo22fpkDFsnj "fv-autolink") x, run it through g, then take whatever g spits out and feed it into f. The result is the [composite function](/ap-pre-calc/key-terms/composite-function "fv-autolink") (f ∘ g)(x), which means exactly the same thing as f(g(x)). Think of it like an assembly line where one machine's finished product immediately becomes the next machine's raw material.

That assembly-line picture explains the one domain rule the CED cares about (2.7.A.1). The composite function only accepts inputs of g whose outputs are legal inputs for f. If g produces a value that f can't handle, that x gets kicked out of the domain of f ∘ g. Why does this matter beyond algebra practice? Essential knowledge 2.7.B.1 says it directly: [composition](/ap-pre-calc/unit-2/inverse-functions/study-guide/JkTPSAR9TH5LfSXP "fv-autolink") lets you relate two quantities that don't share a formula. If radius depends on time and area depends on radius, composing those functions gives you area as a function of time, a relationship you never had written down.

## Why It Matters

Function composition lives in Topic 2.7 of [Unit 2](/ap-pre-calc/unit-2 "fv-autolink") (Exponential and Logarithmic Functions), and it carries three learning objectives. [AP Pre Calc](/ap-pre-calc "fv-autolink") 2.7.A asks you to evaluate compositions for given values, and not just from formulas. You're expected to pull values from graphs, tables, and verbal descriptions too (2.7.A.2). AP Pre Calc 2.7.B asks you to build a composition, usually by substituting g(x) for every x in f. AP Pre Calc 2.7.C runs the process in reverse, decomposing a complicated function into simpler ones. Composition is also the secret machinery behind two big ideas in this course. Transformations are compositions in disguise (translations come from composing with x + k, dilations from composing with kx), and inverse functions are defined by composition, since f and f⁻¹ undo each other. That's exactly why composition sits right before exponentials and logarithms, the course's headline inverse pair.

## Connections

### Composite Function and f(g(x)) Notation (Unit 2)

The composite function is the object you create when you compose, and f(g(x)) is its working notation. Read it inside-out. The function closest to x acts first, so in f(g(x)), g goes first even though f is written first.

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

Decomposition is composition run backwards (2.7.C.1). Given h(x) = √(3x + 1), you spot the inner function g(x) = 3x + 1 and outer function f(x) = √x. This 'see the layers' skill is the same one calculus later demands for the chain rule.

### Transformations as Compositions (Units 1-2)

Every translation and [dilation](/ap-pre-calc/key-terms/dilation "fv-autolink") you learned is secretly a composition. Composing f with g(x) = x + k shifts the graph (2.7.C.2), and composing with g(x) = kx stretches or compresses it (2.7.C.3). A horizontal dilation is just f(kx), which is f after a multiplicative inner function.

### Inverse Functions, Exponentials, and Logs (Unit 2)

Composition is how you verify inverses. If f(g(x)) = x and g(f(x)) = x, the functions undo each other and you land back on the [identity function](/ap-pre-calc/unit-2/inverses-exponential-functions/study-guide/7mdx6zi19alJ4hK3 "fv-autolink"). That's the whole logic behind log and exponential pairs like ln(e^x) = x, the centerpiece of Unit 2.

## On the AP Exam

Composition shows up in multiple-choice questions in several flavors. Some ask you to evaluate (f ∘ g)(x) at a specific value, often pulling f from a table and g from a graph, so practice mixing representations. Others test the concept itself, like recognizing that the identity function f(x) = x plays the same role in composition that 1 plays in multiplication (composing with it changes nothing), or explaining why composition is useful when two quantities have no direct formula linking them. Watch for domain traps too. The exam can ask for the domain of f ∘ g, which means checking which inputs of g produce outputs f can accept, not just looking at the final simplified formula. On free-response work, composition tends to appear inside modeling, where you chain two relationships (like time → radius → area) to answer a question about quantities that were never directly connected.

## function composition vs Function multiplication, f(x) · g(x)

Composition f(g(x)) and the product f(x)·g(x) look similar but are completely different operations. In multiplication, both functions take the same input x and you multiply the outputs. In composition, g takes x first and f takes g's output. Order matters in composition (f ∘ g is usually not g ∘ f), while multiplication doesn't care about order. If f(x) = x² and g(x) = x + 1, the product is x²(x + 1) but the composition f(g(x)) is (x + 1)².

## Key Takeaways

- (f ∘ g)(x) means f(g(x)), and you always work inside-out, applying g first and then feeding its output into f.
- The domain of f ∘ g includes only the inputs of g whose outputs are in the domain of f, so check the inner function's outputs before trusting the simplified formula.
- Composition is the tool for relating two quantities that have no direct formula, like getting area as a function of time by composing area-of-radius with radius-of-time.
- You can evaluate compositions from graphs, tables, formulas, or verbal descriptions, and the exam mixes these representations on purpose.
- Translations and dilations are compositions in disguise, since composing f with x + k shifts the graph and composing with kx dilates it.
- The identity function f(x) = x acts like the number 1 in multiplication, because composing any function with it leaves the function unchanged.

## FAQs

### What is function composition in AP Precalculus?

Function composition combines two functions so the output of one becomes the input of the other, written (f ∘ g)(x) = f(g(x)). It's [Topic 2.7](/ap-pre-calc/unit-2/composition-functions/study-guide/glFlt2HgsCSjvjSL "fv-autolink") in Unit 2, and the CED frames it as the way to relate two quantities that aren't directly connected by a formula.

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

No, almost never. Composition is order-sensitive, so f ∘ g and g ∘ f are usually different functions. If f(x) = x² and g(x) = x + 1, then f(g(x)) = (x + 1)² while g(f(x)) = x² + 1, which are clearly not equal.

### How is function composition different from multiplying functions?

Multiplication feeds the same x into both functions and multiplies the results, giving f(x)·g(x). Composition chains them, feeding g's output into f to get f(g(x)). The product of x² and x + 1 is x³ + x², but their composition is (x + 1)².

### How do I find the domain of a composite function?

Start with the domain of the inner function g, then throw out any x whose output g(x) isn't in the domain of f. Per the CED (2.7.A.1), the domain of f ∘ g is restricted to inputs of g for which the corresponding output is a valid input of f, so don't just read the domain off the simplified formula.

### Why does function composition matter for inverse functions?

Composition is the official test for inverses. Two functions are inverses exactly when f(g(x)) = x and g(f(x)) = x, meaning their composition is the identity function. This is the foundation for the exponential-logarithm relationship that drives the rest of Unit 2.

## 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-composition#resource","name":"Function Composition — AP Precalc Definition & Exam Guide","url":"https://fiveable.me/ap-pre-calc/key-terms/function-composition","learningResourceType":"Concept explainer","educationalLevel":"AP® / High School","about":{"@id":"https://fiveable.me/ap-pre-calc/key-terms/function-composition#term"},"audience":{"@type":"EducationalAudience","educationalRole":"student"},"dateModified":"2026-06-11T05:27:28.458Z","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-composition#term","name":"function composition","description":"Function composition combines two functions so the output of one becomes the input of the other, written (f ∘ g)(x) = f(g(x)). In AP Precalculus (Topic 2.7), it relates quantities with no direct formula, and its domain is limited to inputs of g whose outputs land in the domain of f.","url":"https://fiveable.me/ap-pre-calc/key-terms/function-composition","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 composition in AP Precalculus?","acceptedAnswer":{"@type":"Answer","text":"Function composition combines two functions so the output of one becomes the input of the other, written (f ∘ g)(x) = f(g(x)). It's [Topic 2.7](/ap-pre-calc/unit-2/composition-functions/study-guide/glFlt2HgsCSjvjSL \"fv-autolink\") in Unit 2, and the CED frames it as the way to relate two quantities that aren't directly connected by a formula."}},{"@type":"Question","name":"Is f(g(x)) the same as g(f(x))?","acceptedAnswer":{"@type":"Answer","text":"No, almost never. Composition is order-sensitive, so f ∘ g and g ∘ f are usually different functions. If f(x) = x² and g(x) = x + 1, then f(g(x)) = (x + 1)² while g(f(x)) = x² + 1, which are clearly not equal."}},{"@type":"Question","name":"How is function composition different from multiplying functions?","acceptedAnswer":{"@type":"Answer","text":"Multiplication feeds the same x into both functions and multiplies the results, giving f(x)·g(x). Composition chains them, feeding g's output into f to get f(g(x)). The product of x² and x + 1 is x³ + x², but their composition is (x + 1)²."}},{"@type":"Question","name":"How do I find the domain of a composite function?","acceptedAnswer":{"@type":"Answer","text":"Start with the domain of the inner function g, then throw out any x whose output g(x) isn't in the domain of f. Per the CED (2.7.A.1), the domain of f ∘ g is restricted to inputs of g for which the corresponding output is a valid input of f, so don't just read the domain off the simplified formula."}},{"@type":"Question","name":"Why does function composition matter for inverse functions?","acceptedAnswer":{"@type":"Answer","text":"Composition is the official test for inverses. Two functions are inverses exactly when f(g(x)) = x and g(f(x)) = x, meaning their composition is the identity function. This is the foundation for the exponential-logarithm relationship that drives the rest of Unit 2."}}]},{"@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 composition"}]}]}
```
