SECTION 1
Historical Context & Motivation
Mathematics has always been about building complex ideas from simpler pieces. The concept of a function — a rule that assigns each input exactly one output — took centuries to develop into the precise tool we use today. Once mathematicians had functions, a natural question arose: what happens when the output of one function becomes the input of another? This idea of composition became essential as scientists and engineers realized that real-world processes rarely happen in isolation. Temperature affects air density, which affects airplane lift — each relationship is a function, and chaining them together is composition.
~300 BCE • Euclid's Geometric Relationships
1673 • Leibniz Coins 'Function'
1748 • Euler Formalizes Function Notation
1837 • Dirichlet's Modern Definition
20th Century • Composition in Computer Science
The central question this lesson addresses is: when you chain two functions together, what new function do you get, and what inputs are actually valid for the composite? Understanding this question unlocks your ability to model multi-step real-world processes with algebra.
SECTION 2
Core Principles & Definitions
A composite function is formed when the output of one function is used as the input of another. If you have two functions f and g, the composite (f ∘ g)(x) — read as "f of g of x" — means you first apply g to x, then apply f to the result. The small circle ∘ is the composition operator. Before you dive into calculations, there are a few foundational ideas you need to internalize.
Inside-Out Evaluation
Order Matters
Domain of the Composite
Algebraic Composition
KEY TAKEAWAY
SECTION 3
Visual Explanation — The Function Pipeline
The diagram below shows how a composite function works as a pipeline. An input x enters function g, producing the intermediate value g(x). That value then enters function f, yielding the final output f(g(x)). The colored arrows trace the path of a specific input through both stages.
Notice how the pipeline flows from left to right, but the algebraic notation reads from the outside in. When you see f(g(x)), the innermost function g acts first even though f appears first in the expression. This inside-out reading is one of the most common sources of confusion, so always pause and ask yourself: which function acts on x directly? That is your inner function.
SECTION 4
Mathematical Framework
Let's formalize the notation and then tackle the domain question, which is the most important — and most frequently tested — aspect of composite functions.
COMPOSITE FUNCTION DEFINITION
Read as "f composed with g of x." First evaluate g(x) (inner), then apply f to the result (outer). The ∘ symbol denotes composition, not multiplication.
DOMAIN OF A COMPOSITE FUNCTION
An x-value is in the domain of (f ∘ g) only if both conditions are met: (1) x must be a valid input for g, and (2) the output g(x) must be a valid input for f.
The domain rule is critical because even if the simplified algebraic formula looks like it could accept any real number, the original composition might exclude some values. For example, consider f(x) = √x and g(x) = x − 5. The composite (f ∘ g)(x) = √(x − 5) requires x − 5 ≥ 0, so x ≥ 5. But if instead we had f(x) = x² and g(x) = 1/(x − 3), the composite is 1/(x − 3)², and x = 3 must be excluded because g(3) is undefined, even though squaring is defined for all real numbers.
REVERSE COMPOSITION
This is a different function from (f ∘ g)(x). Here f is evaluated first and g second. The domain rule follows the same pattern: x must be in the domain of f, and f(x) must be in the domain of g.
Common Mistake Alert
SECTION 5
Determining Reasonable Domains
Finding the domain of a composite function requires you to think carefully about restrictions from both functions. The diagram below illustrates how the domain of f ∘ g is determined by tracing which inputs survive both stages of the pipeline.
Step-by-Step Domain Strategy
- Identify the inner function's domain. Write down all restrictions on the input x for the inner function g.
- Identify the outer function's domain. Determine what values the outer function f can accept as inputs.
- Set up the inequality. Require that g(x) satisfies the domain condition of f. Solve for x.
- Intersect the restrictions. The final domain is the set of x-values that satisfy both the restriction from step 1 and the restriction from step 3.
SECTION 6
Worked Example — Composition in Context
A clothing store runs a promotion: the price of an item is first reduced by $10, and then a 20% discount is applied to the reduced price. Let g(x) = x − 10 represent the $10 price reduction and f(x) = 0.80x represent the 20% discount. Find (f ∘ g)(x), interpret it in context, and determine a reasonable domain.
Clothing Store Discount Problem
- 1
Step 1 — Identify the Functions
The inner function is g(x) = x − 10, which subtracts $10 from the original price x. The outer function is f(x) = 0.80x, which takes 80% of whatever value it receives (applying a 20% discount). Since the $10 reduction happens first, g is the inner function. - 2
Step 2 — Form the Composite
Replace the input of f with the entire expression for g(x): (f ∘ g)(x) = f(g(x)) = f(x − 10) = 0.80(x − 10)(f ∘ g)(x) = 0.80x − 8 - 3
Step 3 — Interpret in Context
The composite function tells us that the final price equals 80% of the original price minus $8. This single formula captures both discount steps. For a $50 item: (f ∘ g)(50) = 0.80(50) − 8 = 40 − 8 = $32. You can verify: $50 − $10 = $40, then 80% of $40 = $32. ✓ - 4
Step 4 — Determine the Reasonable Domain
Algebraically, 0.80(x − 10) is defined for all real x. However, context tells us x represents a price in dollars, so x > 0. Additionally, after the $10 reduction the price should remain non-negative, meaning x − 10 ≥ 0, so x ≥ 10. The final sale price should also be non-negative: 0.80x − 8 ≥ 0 gives x ≥ 10 (same restriction). Therefore, the reasonable domain is x ≥ 10.Reasonable domain: x ≥ 10 (or [10, ∞) in interval notation) - 5
Step 5 — Compare with (g ∘ f)(x)
If the 20% discount were applied first, the composition reverses: (g ∘ f)(x) = g(f(x)) = g(0.80x) = 0.80x − 10. For a $50 item: 0.80(50) − 10 = 40 − 10 = $30. This is $2 less than the other order! This confirms that order matters in composition.(g ∘ f)(x) = 0.80x − 10 ≠ (f ∘ g)(x) = 0.80x − 8
SECTION 7
Composition vs. Other Function Operations
It is easy to mix up composition with other ways of combining functions. The table below compares four common operations so you can see exactly how composition is different.
| Operation | Notation | What It Does |
|---|---|---|
| Sum | (f + g)(x) = f(x) + g(x) | Evaluates both functions at x and adds the two outputs. |
| Product | (f × g)(x) = f(x) × g(x) | Evaluates both functions at x and multiplies the two outputs. |
| Quotient | (f / g)(x) = f(x) / g(x) | Divides the outputs; g(x) ≠ 0 is an extra domain restriction. |
| Composition | (f ∘ g)(x) = f(g(x)) | Feeds the output of g into f as its input — a chain, not a pair. |
Comparing four ways to combine functions f and g.
KEY TAKEAWAY
SECTION 8
Connection to Advanced Topics
Composite functions are not just a standalone topic — they are a gateway to several powerful ideas you will encounter in future math courses. Understanding composition now gives you a head start on each of these concepts.
| This Lesson (Math 3) | Where It Leads |
|---|---|
| Finding (f ∘ g)(x) algebraically | In Precalculus, you decompose complicated functions into simpler compositions to analyze transformations. |
| Checking if (f ∘ g)(x) = x | This is the test for inverse functions: f and g are inverses if both f(g(x)) = x and g(f(x)) = x. |
| Domain of composite functions | In Calculus, the Chain Rule differentiates composite functions. Knowing the domain ensures the derivative exists. |
| Composition in context (word problems) | In data science and computer science, function composition models data transformation pipelines. |
How composite functions connect to future coursework.
The most immediate connection is to inverse functions. If you can compose f and g and get back the original input x, the two functions "undo" each other. You will explore this idea in depth soon, and your fluency with composition will make it much more intuitive.
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
SUMMARY
Lesson Summary
Summary
A composite function is created by feeding the output of one function into another: (f ∘ g)(x) = f(g(x)). You always evaluate the inner function g first, then pass its result to the outer function f. Because the order in which functions are applied affects the result, composition is not commutative — (f ∘ g)(x) and (g ∘ f)(x) are generally different functions.
The domain of a composite requires two checks: x must belong to the domain of the inner function, and g(x) must belong to the domain of the outer function. In applied problems, real-world context often introduces additional reasonable domain restrictions — such as non-negative time or positive prices — that narrow the domain further. Mastering composition prepares you for inverse functions, the Chain Rule in Calculus, and real-world modeling where processes occur in sequence.