Composition of Functions: and Its Domain
When you solve mathematical models in physics, finance, or engineering, a single input rarely produces a final output in one step. Often, one process feeds its result directly into another process.
In mathematics, this "assembly line" operation is called the composition of functions. Instead of calculating an intermediate number, you can combine the algebraic rules of two functions into a single new function.
1. Concepts & Paper Visuals
The Function Machine Analogy
Think of a function as an input-output machine:
- The inner function takes an initial input and produces the output .
- The outer function takes that intermediate output as its raw material and produces the final output .
Initial Input: x
│
▼
┌───────────────────┐
│ Inner Machine: g │ Produces intermediate output: g(x)
└─────────┬─────────┘
│
▼ Intermediate value enters f
┌───────────────────┐
│ Outer Machine: f │ Evaluates f at the value g(x)
└─────────┬─────────┘
│
▼
Final Output: f(g(x))Mathematical Notation
The composite function is denoted with a small circle :
Read this aloud as: "f of g of x" or "f composed with g of x".
[!IMPORTANT] The order of operations is strictly right-to-left:
- In , the rightmost function acts first.
- In , the rightmost function acts first. Function composition is not commutative: in general, .
2. Formula Box & Domain Definition
┌─────────────────────────────────────────────────────────────────────────────┐
│ COMPOSITE FUNCTION & DOMAIN │
│ │
│ Definition: │
│ (f ∘ g)(x) = f(g(x)) │
│ │
│ Domain of (f ∘ g): │
│ D_{f ∘ g} = { x ∈ ℝ | x ∈ D_g and g(x) ∈ D_f } │
│ │
│ In plain words: │
│ 1. x must be an allowed input for the inner function g. │
│ 2. The resulting value g(x) must be an allowed input for outer function f. │
└─────────────────────────────────────────────────────────────────────────────┘3. Step-by-Step Paper Notebook Method
When working on paper, follow this systematic four-step protocol:
[ Step 1: Identify Inner & Outer Functions ]
- Determine which function is applied first (inner) and second (outer).
- State the natural domain of the inner function: D_g.
[ Step 2: Set Up Algebraic Substitution ]
- Write outer function template f(□) with blank parentheses:
f(x) = 2x² - 3 ──> f(□) = 2(□)² - 3
- Insert g(x) into every placeholder:
f(g(x)) = 2(g(x))² - 3
[ Step 3: Expand and Simplify Algebraically ]
- Expand powers, distribute factors, and collect like terms.
- Keep denominators factored when simplifying rational expressions.
[ Step 4: Determine the Composite Domain ]
- Condition A: x must satisfy the domain of g (x ∈ D_g).
- Condition B: g(x) must satisfy the domain restrictions of f (g(x) ∈ D_f).
- Intersect both conditions: D_{f ∘ g} = Condition A ∩ Condition B.4. Step-by-Step Notebook Examples
Example 1: Basic Polynomial Composition & Order Dependence
Problem: Let and .
- Find the formula for and evaluate .
- Find the formula for and evaluate .
Solution (1): Computing
- Identify inner and outer: Inner is , outer is .
- Substitute into :
- Evaluate at :
Solution (2): Computing
Identify inner and outer: Inner is , outer is .
Substitute into :
Evaluate at :
Paper Conclusion:
Since , this confirms on paper that .
Example 2: Radical and Rational Functions with Domain Restrictions
Problem: Let and .
Find the formula for and state its exact domain in interval notation.
Solution:
Step 1: Write down the expression
Step 2: Find the domain of the inner function
The inner function requires a non-negative radicand:Therefore, the initial domain requirement is .
Step 3: Apply the domain restriction of the outer function
The outer function requires that its denominator cannot be zero:Since the input to is , we require:
Step 4: Intersect the two conditions on paper
Combine with :Final Answer:
Example 3: Composition of Rational Functions (Compound Fraction Simplification)
Problem: Let and .
Find in fully simplified form and state its domain.
Solution:
Step 1: Substitute into
Step 2: Simplify the compound fraction on paper
Multiply numerator and denominator by the common denominator , assuming :Step 3: Analyze the domain
- Condition 1 (Inner function ): The denominator of cannot be zero:
- Condition 2 (Outer function ): The denominator of cannot be zero:Solving the equation:The equation has no solutions, so is automatically satisfied for all .
- Condition 1 (Inner function ): The denominator of cannot be zero:
Final Answer:
(Notice that even though the simplified formula is the line , the domain excludes because is undefined!)
5. Common Mistakes & Paper Traps
[!WARNING]
Trap 1: Finding Domain Only From the Simplified Expression
If and , then:
Looking only at the final simplified formula "", a student might wrongly write .
Reality: The number cannot even enter the inner machine , because is undefined in . The domain is strictly . Always check the inner function first!
[!CAUTION]
Trap 2: Confusing Composition with Multiplication
- Composition:
- Multiplication: Never multiply the two formulas together when you see the circle symbol .
[!TIP]
Trap 3: Dropping Parentheses on Substitution
If and :
- Wrong:
- Correct: Always place brackets around the entire inner function when substituting.
6. Pencil & Paper Practice
Try these exercises on paper before checking the worked solutions below.
Practice 1
Given and .
- Find and its domain.
- Find and its domain.
Practice 2
Given and .
Find and state its domain in interval notation.
Worked Solutions
Solution to Practice 1:
For :
Inner function is defined for all . Outer function requires denominator .
For :
Inner function requires . Outer function has no further restrictions.
Solution to Practice 2:
For the domain:
Domain: .
Test yourself
Let and . What is the value of ?
What is the natural domain of if and ?
If and , what is the domain of ?