---
title: "Composite Function — AP Precalculus Definition & Examples"
description: "A composite function f(g(x)) feeds the output of g into f. Learn the domain rule, how composition proves inverses, and how Topic 2.7 tests it on the AP exam."
canonical: "https://fiveable.me/ap-pre-calc/key-terms/composite-function"
type: "key-term"
subject: "AP Pre-Calculus"
unit: "Unit 2"
---

# Composite Function — AP Precalculus Definition & Examples

## Definition

A composite function, written f ∘ g or f(g(x)), is a function built by using the outputs of g as the inputs of f; its domain is limited to inputs of g whose outputs land in the domain of f (AP Precalculus Topic 2.7).

## What It Is

A composite function is what you get when you chain two functions together. You start with 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 run that through f. The result is written (f ∘ g)(x) or f(g(x)), and you read it inside-out: g acts first, f acts second.

The part the AP exam loves is the [domain](/ap-pre-calc/key-terms/domain "fv-autolink") rule (EK 2.7.A.1). The domain of f ∘ g isn't just the domain of g. It's restricted to inputs of g whose **outputs** are legal inputs for f. So if f(x) = √(x − 2) and g(x) = x² − 4, you need g(x) ≥ 2, not just x to be a real number. You can build composites analytically by substituting g(x) for every x in f (EK 2.7.B.2), but the CED also expects you to evaluate compositions from tables, graphs, and verbal descriptions, where you trace an output of g into an input of f by hand.

## Why It Matters

Composite functions are the entire point of Topic 2.7 in [Unit 2](/ap-pre-calc/unit-2 "fv-autolink") (Exponential and Logarithmic Functions), backing three learning objectives. [AP Pre Calc](/ap-pre-calc "fv-autolink") 2.7.A has you evaluate compositions from any representation, AP Pre Calc 2.7.B has you construct them (often to link two quantities with no direct formula, like drug concentration as a function of time and effectiveness as a function of concentration), and AP Pre Calc 2.7.C runs the machine in reverse with decomposition. Composition is also the official test for inverses in Topic 2.8, since f and f⁻¹ are inverses exactly when f(f⁻¹(x)) = f⁻¹(f(x)) = x (EK 2.8.B.1). And it's why exponentials and logs live in the same unit; they undo each other through composition. Beyond this course, composition is the setup for the chain rule in AP Calculus, so the decomposition skill pays off twice.

## Connections

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

Decomposition is [composition](/ap-pre-calc/unit-2/inverse-functions/study-guide/JkTPSAR9TH5LfSXP "fv-autolink") run backward. Instead of building f(g(x)), you take a complicated function like √(x² + 1) and split it into an inner function g(x) = x² + 1 and an outer function f(x) = √x. LO 2.7.C tests this directly, and it's the exact skill the chain rule demands in calculus.

### Inverse functions (Unit 2)

Composition is how you verify an inverse. If composing f with a candidate function gives you back plain x in both orders, you've found f⁻¹ (EK 2.8.B.1). Think of f and f⁻¹ as a do button and an undo button; composing them is pressing both, which leaves the input untouched.

### Multiplicative and additive transformations (Units 1-2)

The CED reframes the transformations from [Unit 1](/ap-pre-calc/unit-1 "fv-autolink") as compositions. A horizontal translation of f is really f composed with g(x) = x + k, and a horizontal dilation is f composed with g(x) = kx (EK 2.7.C.2 and 2.7.C.3). That's why horizontal shifts feel "backwards": the inner function changes the input before f ever sees it.

### Exponential and logarithmic functions (Unit 2)

Logs and exponentials are inverse functions, so composing them collapses to x. Lines like ln(e^x) = x and 2^(log₂x) = x are composition facts, and they're the engine behind solving exponential and log equations later in Unit 2.

## On the AP Exam

Composition shows up in multiple-choice in a few predictable shapes. You'll evaluate f(g(c)) for a specific value, sometimes from a table or graph where you have to chain outputs to inputs by hand. You'll find the domain of f ∘ g, where the trap answer is the domain of g alone. For example, with f(x) = 1/(x+2) and g(x) = 3x − 6, you have to exclude the x-value that makes g(x) = −2, not just check g itself. You'll also build composites in context, like plugging a concentration function C(t) into an effectiveness function E(C) to get effectiveness as a function of time. That's exactly the "relating two quantities not directly related by a formula" idea in EK 2.7.B.1. Expect decomposition questions too, where you identify the inner and outer functions of something like 2(x² − 3) + 1. No released FRQ has used the phrase "composite function" verbatim, but composition is a standard move in FRQ work whenever you verify an inverse or model a chained relationship.

## composite function vs Product of functions, f(x)·g(x)

f(g(x)) is not f(x) times g(x). Composition chains the functions, so g's output becomes f's input, while a product just multiplies two separate outputs of the same input. If f(x) = 2x + 1 and g(x) = x² − 3, then f(g(x)) = 2(x² − 3) + 1 = 2x² − 5, but f(x)·g(x) = (2x + 1)(x² − 3). Totally different functions. A related order trap is f ∘ g versus g ∘ f, which are usually not equal either.

## Key Takeaways

- A composite function (f ∘ g)(x) = f(g(x)) uses the outputs of g as the inputs of f, and you always evaluate it inside-out with g going first.
- The domain of f ∘ g includes only those inputs of g whose outputs are in the domain of f, so check both functions before answering a domain MCQ.
- To build f(g(x)) analytically, substitute g(x) for every instance of x in the formula for f.
- Two functions are inverses exactly when composing them in both orders returns x, which is the identity function (EK 2.8.B.1).
- Composition lets you connect two quantities that have no direct formula, like turning concentration-as-a-function-of-time and effectiveness-as-a-function-of-concentration into effectiveness over time.
- Decomposing a function into inner and outer pieces is the reverse skill (LO 2.7.C), and it explains transformations: composing f with x + k shifts, and composing with kx dilates.

## FAQs

### What is a composite function in AP Precalculus?

It's a function built by chaining two functions, written f ∘ g or f(g(x)), where the output of g becomes the input of f. It's the core of [Topic 2.7](/ap-pre-calc/unit-2/composition-functions/study-guide/glFlt2HgsCSjvjSL "fv-autolink") in Unit 2, and the exam tests evaluating, constructing, and decomposing compositions.

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

No. f(g(x)) means you plug the entire function g(x) into f wherever x appears, while f(x)·g(x) multiplies two outputs together. With f(x) = 2x + 1 and g(x) = x² − 3, the composite is 2x² − 5, which is nothing like the product (2x + 1)(x² − 3).

### Does f(g(x)) equal g(f(x))?

Usually not, because order matters in composition. The big exception is inverse functions, where f(f⁻¹(x)) = f⁻¹(f(x)) = x in both orders. That's actually the CED's official test for whether two functions are inverses.

### How do you find the domain of a composite function f(g(x))?

Start with the domain of g, then throw out any x-values whose output g(x) is not in the domain of f. For f(x) = √(x − 2) and g(x) = x² − 4, you need x² − 4 ≥ 2, so the domain is x ≤ −√6 or x ≥ √6, not all real numbers.

### How is a composite function different from an inverse function?

A composite is any chaining of two functions, while an inverse is one specific partner function that reverses f's input-output pairs. Composition is the tool you use to check an inverse: if f(g(x)) = x and g(f(x)) = x, then g is f⁻¹ (Topic 2.8).

## 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/composite-function#resource","name":"Composite Function — AP Precalculus Definition & Examples","url":"https://fiveable.me/ap-pre-calc/key-terms/composite-function","learningResourceType":"Concept explainer","educationalLevel":"AP® / High School","about":{"@id":"https://fiveable.me/ap-pre-calc/key-terms/composite-function#term"},"audience":{"@type":"EducationalAudience","educationalRole":"student"},"dateModified":"2026-06-11T05:27:27.906Z","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/composite-function#term","name":"composite function","description":"A composite function, written f ∘ g or f(g(x)), is a function built by using the outputs of g as the inputs of f; its domain is limited to inputs of g whose outputs land in the domain of f (AP Precalculus Topic 2.7).","url":"https://fiveable.me/ap-pre-calc/key-terms/composite-function","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 a composite function in AP Precalculus?","acceptedAnswer":{"@type":"Answer","text":"It's a function built by chaining two functions, written f ∘ g or f(g(x)), where the output of g becomes the input of f. It's the core of [Topic 2.7](/ap-pre-calc/unit-2/composition-functions/study-guide/glFlt2HgsCSjvjSL \"fv-autolink\") in Unit 2, and the exam tests evaluating, constructing, and decomposing compositions."}},{"@type":"Question","name":"Is f(g(x)) the same as f(x) times g(x)?","acceptedAnswer":{"@type":"Answer","text":"No. f(g(x)) means you plug the entire function g(x) into f wherever x appears, while f(x)·g(x) multiplies two outputs together. With f(x) = 2x + 1 and g(x) = x² − 3, the composite is 2x² − 5, which is nothing like the product (2x + 1)(x² − 3)."}},{"@type":"Question","name":"Does f(g(x)) equal g(f(x))?","acceptedAnswer":{"@type":"Answer","text":"Usually not, because order matters in composition. The big exception is inverse functions, where f(f⁻¹(x)) = f⁻¹(f(x)) = x in both orders. That's actually the CED's official test for whether two functions are inverses."}},{"@type":"Question","name":"How do you find the domain of a composite function f(g(x))?","acceptedAnswer":{"@type":"Answer","text":"Start with the domain of g, then throw out any x-values whose output g(x) is not in the domain of f. For f(x) = √(x − 2) and g(x) = x² − 4, you need x² − 4 ≥ 2, so the domain is x ≤ −√6 or x ≥ √6, not all real numbers."}},{"@type":"Question","name":"How is a composite function different from an inverse function?","acceptedAnswer":{"@type":"Answer","text":"A composite is any chaining of two functions, while an inverse is one specific partner function that reverses f's input-output pairs. Composition is the tool you use to check an inverse: if f(g(x)) = x and g(f(x)) = x, then g is f⁻¹ (Topic 2.8)."}}]},{"@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":"composite function"}]}]}
```
