CSCA Mathematics · Functions · Section 5 of 17

Composite Functions

A composite function (复合函数) chains two functions together: the output of one becomes the input of the other.

Notation: (f ∘ g)(x) = f(g(x)). Read as "f of g of x". Apply g first, then f to the result.

Example: f(x) = x², g(x) = x + 3.

  • (f ∘ g)(x) = f(g(x)) = f(x+3) = (x+3)².
  • (g ∘ f)(x) = g(f(x)) = g(x²) = x² + 3.

Key Point: Composition is NOT commutative — f ∘ g ≠ g ∘ f in general!

Domain of a Composition
For f(g(x)) to work, x must be in the domain of g, AND g(x) must be in the domain of f.

Example: f(x) = √x (domain x ≥ 0), g(x) = x - 5 (domain ℝ). For f(g(x)) = √(x-5), we need x - 5 ≥ 0 → x ≥ 5.

Decomposing Functions
The reverse skill: given h(x) = √(2x + 1), express as h = f ∘ g. Choose g(x) = 2x + 1 (inner function) and f(x) = √x (outer function).

Connection to Inverse: If g = f⁻¹, then (f ∘ g)(x) = f(f⁻¹(x)) = x. Composition with the inverse gives the identity function.

Key takeaway: (f ∘ g)(x) = f(g(x)): apply g first, then f. Order matters! Domain: x must be in domain of g, and g(x) must be in domain of f.

Key Formulas

(f ∘ g)(x) = f(g(x))  |  Domain: x ∈ dom(g) and g(x) ∈ dom(f)
f ∘ f⁻¹ = f⁻¹ ∘ f = identity

Worked Example 1

Example 1: f(x) = 2x - 1, g(x) = x². Find (f ∘ g)(3).

g(3) = 9. f(9) = 2(9) - 1 = 17. Answer: 17.

Worked Example 2

Example 2: Find (g ∘ f)(x) for f(x) = x + 1, g(x) = 1/x.

g(f(x)) = g(x+1) = 1/(x+1). Domain: x ≠ -1.

Worked Example 3

Example 3: Decompose h(x) = (3x - 2)⁵ into f ∘ g.

g(x) = 3x - 2, f(x) = x⁵. Then f(g(x)) = (3x-2)⁵ = h(x). ✓

Exam Tips

Always apply the INNER function first. In f(g(x)), g is inner, f is outer.

For decomposition, look for the "inner" expression — it is usually inside brackets, under a root, or inside a log.

Common Mistakes

Applying f first instead of g: f(g(x)) means apply g first! This is the most common error.

Forgetting to adjust the domain: Even if g has domain ℝ, f(g(x)) may have restrictions based on f's domain.

Try This Yourself

f(x) = x - 4, g(x) = x². Find (g ∘ f)(5).

Show the answer

f(5) = 1. g(1) = 1. (g ∘ f)(5) = 1.

Practise It