Mathfolis

Composition of Functions

Unit 2 · Exponential and Logarithmic Functions

What AP Precalc asks here

The composition (fg)(x)=f(g(x))(f \circ g)(x) = f(g(x)) applies gg to xx first, then ff to the result. Composition is generally not commutative — (fg)(x)(gf)(x)(f \circ g)(x) \neq (g \circ f)(x). The domain has two requirements: xx must be in the domain of gg, and g(x)g(x) must be in the domain of ff.

Composition

Definition
(fg)(x)=f(g(x))(f \circ g)(x) = f(g(x))
Three-function
(fgh)(x)=f(g(h(x)))(f \circ g \circ h)(x) = f(g(h(x)))

Domain of fgf \circ g

Both must hold
xdom(g)   AND   g(x)dom(f)x \in \text{dom}(g) \;\text{ AND }\; g(x) \in \text{dom}(f)
Caution: Order matters. (fg)(x)=f(g(x))(f \circ g)(x) = f(g(x)), applying gg first; (gf)(x)=g(f(x))(g \circ f)(x) = g(f(x)), applying ff first. These usually differ.
Type 1

Evaluate a composition at a value

Compute the inner function first, then the outer. Substitute carefully.

Example 1
If f(x)=2x+1f(x) = 2x + 1 and g(x)=x2g(x) = x^2, find (fg)(3)(f \circ g)(3). (A) 77 (B) 1919 (C) 3737 (D) 4949

Practice more of this type— AI-generated · always-new problems

Generate Problems →
Type 2

Express (f ∘ g)(x) as a formula

Substitute g(x)g(x) into every xx in ff, then simplify.

Example 2
For f(x)=3xf(x) = 3x and g(x)=x+2g(x) = x + 2, find (fg)(x)(f \circ g)(x). (A) 3x+23x + 2 (B) 3x+63x + 6 (C) x+6x + 6 (D) 3(x+2)23(x + 2)^2

Practice more of this type— AI-generated · always-new problems

Generate Problems →
Type 3

Domain of a composition

Stack the restrictions: xx must be in dom(gg), AND g(x)g(x) must be in dom(ff).

Example 3
For f(x)=1xf(x) = \dfrac{1}{x} and g(x)=xg(x) = \sqrt{x}, find the domain of (fg)(x)(f \circ g)(x). (A) R\mathbb{R} (B) [0,)[0, \infty) (C) (0,)(0, \infty) (D) (,0)(-\infty, 0)

Practice more of this type— AI-generated · always-new problems

Generate Problems →