Skip to main content
United StatesPrecalculusSyllabus dot point

How do you combine two functions by composition, and what is the domain of the result?

Topic 2.7 Composition of Functions: form the composition of two functions, evaluate it, decompose a composite function, and determine the domain of a composition.

A focused answer to AP Precalculus Topic 2.7, covering how to form and evaluate the composition of two functions, decompose a composite into inner and outer functions, and find the domain of a composition.

Generated by Claude Opus 4.89 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this topic is asking
  2. Forming and evaluating a composition
  3. Decomposing a composite
  4. The domain of a composition
  5. Try this

What this topic is asking

The College Board (Topic 2.7) wants you to compose two functions, written (f∘g)(x)=f(g(x))(f \circ g)(x) = f(g(x)): apply gg first, then apply ff to the result. You must evaluate compositions, decompose a given composite into an inner and an outer function, and find the domain of a composition, which depends on both functions.

Forming and evaluating a composition

Order is essential. (f∘g)(x)=f(g(x))(f \circ g)(x) = f(g(x)) applies gg then ff, while (g∘f)(x)=g(f(x))(g \circ f)(x) = g(f(x)) applies ff then gg, and these usually give different results.

Decomposing a composite

The reverse skill is decomposition: given a composite like 3x+1\sqrt{3x + 1}, identify an inner function (g(x)=3x+1g(x) = 3x + 1) and an outer function (f(u)=uf(u) = \sqrt{u}) so that f(g(x))f(g(x)) reproduces it. Decomposition is what lets you recognize structure, and it sets up the inverse and logarithm work later in the unit, where you peel functions apart one layer at a time.

The domain of a composition

For example, f(x)=1xf(x) = \frac{1}{x} and g(x)=x−2g(x) = x - 2 give (f∘g)(x)=1x−2(f \circ g)(x) = \frac{1}{x - 2}, with domain x≠2x \neq 2, coming from the requirement that g(x)≠0g(x) \neq 0 since 00 is excluded from ff's domain.

Composition also lets you evaluate a function at the output of another, which is how layered models are built. If a balloon's radius grows with time as r(t)r(t), and its volume depends on radius as V(r)V(r), then the composition V(r(t))V(r(t)) gives the volume directly as a function of time. The exam exploits this chaining in tables: given values of ff and gg at several inputs, you may be asked for f(g(3))f(g(3)) by first reading g(3)g(3) from the table and then reading ff at that result. Working strictly from the inside out, one table lookup at a time, keeps the order straight and is the same discipline that makes symbolic compositions reliable.

A point that distinguishes careful work is checking both domains rather than only the surface formula. A composition like f(g(x))=x−4f(g(x)) = \sqrt{x - 4} shows its restriction openly, but a case like g(x)\sqrt{g(x)} where gg itself has a restricted domain hides one constraint inside another. Tracking the inner function's domain first, then the requirement that its output be acceptable to the outer function, guarantees you catch every restriction, which is exactly the layered reasoning the exam tests with composition.

Try this

Q1. If f(x)=2xf(x) = 2x and g(x)=x+5g(x) = x + 5, find (g∘f)(3)(g \circ f)(3). [1 point]

  • Cue. f(3)=6f(3) = 6, then g(6)=6+5=11g(6) = 6 + 5 = 11.

Q2. Decompose h(x)=x2+1h(x) = \sqrt{x^2 + 1} into an inner and outer function. [1 point]

  • Cue. Inner g(x)=x2+1g(x) = x^2 + 1, outer f(u)=uf(u) = \sqrt{u}, so h=f∘gh = f \circ g.

Exam-style practice questions

Practice questions written in the style of College Board exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

AP 2023 (style)1 marksSection I, Part A (multiple choice, no calculator). If f(x)=x2+1f(x) = x^2 + 1 and g(x)=3x−2g(x) = 3x - 2, what is f(g(2))f(g(2))? (A) 55 (B) 1616 (C) 1717 (D) 2626
Show worked answer →

The correct answer is (C), 1717.

Work from the inside out: g(2)=3(2)−2=4g(2) = 3(2) - 2 = 4, then f(4)=42+1=17f(4) = 4^2 + 1 = 17. The composition f(g(x))f(g(x)) means apply gg first, then feed the result into ff. Choice (B) would be f(2)f(2) then something, mixing up the order.

AP 2024 (style)3 marksSection II (free response, calculator allowed). Let f(x)=xf(x) = \sqrt{x} and g(x)=x−4g(x) = x - 4. (a) Write a formula for (f∘g)(x)(f \circ g)(x). (b) Determine the domain of f∘gf \circ g and justify.
Show worked answer →

A 3-point question on composition and domain.

(a) Composition (1 point): (f∘g)(x)=f(g(x))=g(x)=x−4(f \circ g)(x) = f(g(x)) = \sqrt{g(x)} = \sqrt{x - 4}.
(b) Domain (2 points): the square root requires a non-negative input, so x−4≥0x - 4 \geq 0, giving x≥4x \geq 4. The domain of f∘gf \circ g is [4,∞)[4, \infty), because the output of gg must lie in the domain of ff (which is [0,∞)[0, \infty)).

Related dot points

Sources & how we know this