Function Composition: The process of creating a new function by applying one function to the result of another
Algebraic Composition: Replacing the independent variable in one function with another function
Notation (f ∘ g)(x): Read as "f composed with g of x" or "f of g of x"
Inner Function: The function that is applied first (g in f(g(x)))
Outer Function: The function that is applied second (f in f(g(x)))
Domain Restrictions: The output of the inner function must be in the domain of the outer function
- Identify the inner and outer functions
- Replace every occurrence of the variable in the outer function with the inner function
- Simplify the resulting expression algebraically
- State the domain if required
For (f ∘ g)(x): Substitute g(x) into f(x). For (g ∘ f)(x): Substitute f(x) into g(x).
- Find (f ∘ g)(x) by substituting g(x) into f(x)
- Find (g ∘ f)(x) by substituting f(x) into g(x)
- Compare results to demonstrate non-commutativity
\( (f \circ g)(x) = f(g(x)) \)
Substitute g(x) = x - 1 into f(x) = 2x + 3
\( f(g(x)) = f(x - 1) = 2(x - 1) + 3 \)
\( f(g(x)) = 2(x - 1) + 3 = 2x - 2 + 3 = 2x + 1 \)
\( (g \circ f)(x) = g(f(x)) \)
Substitute f(x) = 2x + 3 into g(x) = x - 1
\( g(f(x)) = g(2x + 3) = (2x + 3) - 1 \)
\( g(f(x)) = (2x + 3) - 1 = 2x + 2 \)
\( (f \circ g)(x) = 2x + 1 \)
\( (g \circ f)(x) = 2x + 2 \)
Since they are different, composition is not commutative.
\( (g \circ f)(x) = 2x + 2 \)
\( (f \circ g)(x) = 2x + 1 \)
\( (g \circ f)(x) = 2x + 2 \)
• Substitution: Replace input variable with entire function
• Algebraic Simplification: Distribute and combine like terms
• Non-Commutativity: Order of composition matters
For (f ∘ g)(x): Substitute g(x) into f(x) and expand. For (g ∘ f)(x): Substitute f(x) into g(x).
\( (f \circ g)(x) = f(g(x)) \)
Substitute g(x) = x + 1 into f(x) = x² + 2x
\( f(g(x)) = f(x + 1) = (x + 1)^2 + 2(x + 1) \)
\( (x + 1)^2 = x^2 + 2x + 1 \)
\( 2(x + 1) = 2x + 2 \)
\( f(g(x)) = x^2 + 2x + 1 + 2x + 2 = x^2 + 4x + 3 \)
\( (g \circ f)(x) = g(f(x)) \)
Substitute f(x) = x² + 2x into g(x) = x + 1
\( g(f(x)) = g(x^2 + 2x) = (x^2 + 2x) + 1 \)
\( g(f(x)) = x^2 + 2x + 1 \)
\( (g \circ f)(x) = x^2 + 2x + 1 \)
\( (f \circ g)(x) = x^2 + 4x + 3 \)
\( (g \circ f)(x) = x^2 + 2x + 1 \)
• Binomial Expansion: (a + b)² = a² + 2ab + b²
• Distribution: Apply to each term separately
• Combining Like Terms: Add coefficients of like terms
For (f ∘ g)(x): Substitute g(x) into f(x). For (g ∘ f)(x): Substitute f(x) into g(x). Check domain restrictions.
\( (f \circ g)(x) = f(g(x)) \)
Substitute g(x) = x + 2 into f(x) = 1/x
\( f(g(x)) = f(x + 2) = \frac{1}{x + 2} \)
For f(g(x)) to be defined, g(x) must be in the domain of f
Since f(x) = 1/x, we need g(x) ≠ 0
So x + 2 ≠ 0, which means x ≠ -2
\( (g \circ f)(x) = g(f(x)) \)
Substitute f(x) = 1/x into g(x) = x + 2
\( g(f(x)) = g\left(\frac{1}{x}\right) = \frac{1}{x} + 2 \)
For g(f(x)) to be defined, f(x) must be in the domain of g
Since g(x) = x + 2, it's defined for all real numbers
But f(x) = 1/x requires x ≠ 0
So the domain is x ≠ 0
\( (f \circ g)(x) = \frac{1}{x + 2}, x \neq -2 \)
\( (g \circ f)(x) = \frac{1}{x} + 2, x \neq 0 \)
\( (g \circ f)(x) = \frac{1}{x} + 2, x \neq 0 \)
\( (f \circ g)(x) = \frac{1}{x + 2}, x \neq -2 \)
\( (g \circ f)(x) = \frac{1}{x} + 2, x \neq 0 \)
• Domain Restriction: Output of inner function must be in domain of outer function
• Rational Functions: Denominator cannot be zero
• Composition Domain: Intersection of all relevant domains
Chain of compositions: Evaluate from right to left: h(x), then g(h(x)), then f(g(h(x))).
\( h(x) = x - 3 \)
\( g(h(x)) = g(x - 3) = 2(x - 3) + 1 = 2x - 6 + 1 = 2x - 5 \)
\( f(g(h(x))) = f(2x - 5) = (2x - 5)^2 \)
\( (2x - 5)^2 = 4x^2 - 20x + 25 \)
\( (f \circ g \circ h)(x) = (2x - 5)^2 = 4x^2 - 20x + 25 \)
\( (f \circ g \circ h)(x) = (2x - 5)^2 \)
• Right-to-Left Evaluation: Evaluate compositions from inside out
• Chain Rule: Each function feeds into the next
• Binomial Expansion: Expand when necessary
Self-composition: Substitute the function into itself: f(f(x)).
\( (f \circ f)(x) = f(f(x)) \)
We need to substitute f(x) wherever x appears in f(x)
\( f(f(x)) = [f(x)]^2 - 2[f(x)] + 1 \)
Where \( f(x) = x^2 - 2x + 1 \)
\( [f(x)]^2 = (x^2 - 2x + 1)^2 \)
\( = (x^2)^2 + (-2x)^2 + 1^2 + 2(x^2)(-2x) + 2(x^2)(1) + 2(-2x)(1) \)
\( = x^4 + 4x^2 + 1 - 4x^3 + 2x^2 - 4x \)
\( = x^4 - 4x^3 + 6x^2 - 4x + 1 \)
\( -2[f(x)] = -2(x^2 - 2x + 1) = -2x^2 + 4x - 2 \)
\( f(f(x)) = [f(x)]^2 - 2[f(x)] + 1 \)
\( = (x^4 - 4x^3 + 6x^2 - 4x + 1) + (-2x^2 + 4x - 2) + 1 \)
\( = x^4 - 4x^3 + 6x^2 - 2x^2 - 4x + 4x + 1 - 2 + 1 \)
\( = x^4 - 4x^3 + 4x^2 \)
Double-check by substituting a value, say x = 0:
\( f(0) = 0^2 - 2(0) + 1 = 1 \)
\( f(f(0)) = f(1) = 1^2 - 2(1) + 1 = 0 \)
\( x^4 - 4x^3 + 4x^2 \) at x = 0: \( 0 - 0 + 0 = 0 \) ✓
\( (f \circ f)(x) = x^4 - 4x^3 + 4x^2 \)
• Self-Composition: Substitute function into itself
• Polynomial Expansion: Expand binomial expressions
• Verification: Check with specific values
Domain Considerations: The range of the inner function must be contained in the domain of the outer function
Associativity: Composition is associative: (f ∘ g) ∘ h = f ∘ (g ∘ h)
Non-Commutativity: Generally f ∘ g ≠ g ∘ f
Identity Element: The identity function I(x) = x acts as an identity element
- Substitution method: Replace variable with entire function
- Domain analysis: Check restrictions at each step
- Pattern recognition: Identify when compositions simplify
- Algebraic simplification: Combine like terms and factor when possible
- Verification: Use specific values to check correctness
• Composition Order: (f ∘ g)(x) = f(g(x)) - evaluate g first
• Domain Restriction: Range of g ⊆ Domain of f
• Non-Commutativity: f ∘ g ≠ g ∘ f in general
• Algebraic Substitution: Replace variable with entire function
• Verification: Check with specific values when possible