01 / 21

Composite
Functions

Learn to build, evaluate, and interpret composite functions, and determine reasonable domains for real-world contexts.

Math 3

What Is a Composite Function?

A composite function takes the output of one function and feeds it as the input of another. We write it as \( (f \circ g)(x) = f(g(x)) \).

Think of it as a two-step machine: first \( g \) processes \( x \), then \( f \) processes the result.

The Function Machine Model

\(x\) \(g\) \(g(x)\) \(f\) \(f(g(x))\) Inner function first, then outer function

Why Do Composites Matter?

Modeling
Chain together real-world relationships: temperature depends on altitude, which depends on time.
Calculus Prep
The chain rule for derivatives is built entirely on composite functions.
Efficiency
Combine simple functions into one powerful expression instead of writing many separate steps.

The Formal Definition

Domain of g Domain of f Range of g Range of f \(x\) \(g(x)\) \(f(g(x))\) \(g\) \(f\) \(f \circ g\)

Finding the Domain of \( f \circ g \)

1
Start with the domain of \( g \). Identify all \( x \)-values where \( g(x) \) is defined.
2
Check the domain of \( f \). Keep only those \( x \)-values where \( g(x) \) falls in the domain of \( f \).
3
Intersect the two restrictions. The domain of \( f \circ g \) is the set of \( x \) that satisfies both conditions.

\( f \circ g \) vs \( g \circ f \): Order Matters

Composition is not commutative. In general, \( f(g(x)) \neq g(f(x)) \). Swapping the order usually produces a completely different function.

\( f \circ g \) \( g \circ f \)
Inner \( g \) runs first \( f \) runs first
Outer \( f \) wraps around \( g \) wraps around
Example \( f(x)=x^2,\; g(x)=x+1 \) \( f(x)=x^2,\; g(x)=x+1 \)
Result \( (x+1)^2 \) \( x^2+1 \)

How to Evaluate a Composite

1
Identify inner and outer. In \( f(g(x)) \), the inner function is \( g \) and the outer is \( f \).
2
Evaluate the inner function at the given input to get a numeric value or expression.
3
Substitute that result into the outer function. Simplify fully.
4
Check the domain. Verify the original input was valid for the inner, and the intermediate result was valid for the outer.

Example 1: Numeric Evaluation

Let \( f(x) = 2x + 3 \) and \( g(x) = x^2 - 1 \). Find \( (f \circ g)(4) \).

1
Inner: \( g(4) = 4^2 - 1 = 16 - 1 = \) \( 15 \)
2
Outer: \( f(15) = 2(15) + 3 = 30 + 3 = \) \( 33 \)

Example 2: Algebraic Expression

Let \( f(x) = x^2 \) and \( g(x) = 3x - 5 \). Find \( (f \circ g)(x) \).

1
Replace \( x \) in \( f \) with \( g(x) \): \( f(g(x)) = (g(x))^2 \)
2
Substitute \( g(x) = 3x - 5 \): \( (3x - 5)^2 \)
3
Expand: \( 9x^2 - 30x + 25 \)

Example 3: Domain Restrictions

Let \( f(x) = \sqrt{x} \) and \( g(x) = 5 - 2x \). Find \( (f \circ g)(x) \) and its domain.

1
Compose: \( f(g(x)) = \sqrt{5 - 2x} \)
2
Domain of \( g \): All reals (no restriction).
3
Domain of \( f \): input \( \geq 0 \). So we need \( 5 - 2x \geq 0 \), giving \( x \leq \tfrac{5}{2} \).

Example 4: Real-World Context

A circular oil spill grows. Its radius \(r\) (in meters) after \(t\) hours is \( r(t) = 3t \). The area \(A\) of a circle is \( A(r) = \pi r^2 \). Find the area as a function of time.

1
Compose: \( A(r(t)) = \pi (3t)^2 = 9\pi t^2 \)
2
Reasonable domain: \( t \geq 0 \) (time cannot be negative).

Decomposing a Composite Function

Sometimes you need to work backwards: given a composite, identify the inner and outer functions.

Given: \( h(x) = (2x+1)^3 \)
Inner: \( g(x) = 2x + 1 \)
Outer: \( f(x) = x^3 \)
Given: \( h(x) = \sqrt{x^2 - 9} \)
Inner: \( g(x) = x^2 - 9 \)
Outer: \( f(x) = \sqrt{x} \)

Composing Three Functions

You can chain more than two functions. For \( f \circ g \circ h \), evaluate from the innermost outward:

Example: Let \( f(x) = x + 1 \), \( g(x) = 2x \), \( h(x) = x^2 \). Then:

1
\( h(3) = 9 \)
2
\( g(9) = 18 \)
3
\( f(18) = 19 \)

Common Mistakes to Avoid

Wrong Order
Evaluating \( f \) before \( g \) in \( f(g(x)) \). Always start with the innermost function.
Multiplying Instead
Treating \( (f \circ g)(x) \) as \( f(x) \cdot g(x) \). Composition is not multiplication.
Ignoring Domain
Forgetting to check that \( g(x) \) lies in the domain of \( f \). This is especially critical with square roots and logarithms.

Summary at a Glance

Concept Key Idea Watch Out
\( f \circ g \) Notation \( f(g(x)) \) \( \neq g(f(x)) \)
Evaluation Inner first, then outer Don't multiply
Domain \( x \in \text{dom}(g) \) and \( g(x) \in \text{dom}(f) \) Check both restrictions
Decomposition Last operation = outer Multiple valid splits
Context Chain dependent quantities Units and reasonable domain

Question 1 of 5

If \( f(x) = 3x - 2 \) and \( g(x) = x + 4 \), what is \( (f \circ g)(5) \)?

Question 2 of 5

If \( f(x) = x^2 \) and \( g(x) = x - 3 \), what is \( (f \circ g)(x) \)?

Question 3 of 5

Given \( f(x) = \sqrt{x} \) and \( g(x) = 7 - x \), what is the domain of \( (f \circ g)(x) \)?

Question 4 of 5

The temperature \(T\) (in \(^\circ\mathrm{C}\)) at altitude \(a\) km is \( T(a) = 20 - 6a \). A balloon's altitude after \(t\) minutes is \( a(t) = 0.5t \). Which expression gives temperature as a function of time?

Question 5 of 5

If \( h(x) = (4x + 1)^5 \), which pair of functions satisfies \( h(x) = f(g(x)) \)?