Function composition: \((f \circ g)(x) = f(g(x))\) means apply \(g\) first, then apply \(f\) to the result
• \((f \circ g)(x)\) is read as "\(f\) composed with \(g\) of \(x\)"
• Order matters: \((f \circ g)(x)\) is generally not equal to \((g \circ f)(x)\)
- Identify the inner function and outer function
- Substitute the inner function into the outer function
- Simplify the resulting expression
First, identify the inner function: \(g(x) = x^2\)
Apply \(f\) to the result of \(g(x)\): \(f(g(x)) = f(x^2)\)
Since \(f(x) = 2x + 3\), we have: \(f(x^2) = 2(x^2) + 3 = 2x^2 + 3\)
First, identify the inner function: \(f(x) = 2x + 3\)
Apply \(g\) to the result of \(f(x)\): \(g(f(x)) = g(2x + 3)\)
Since \(g(x) = x^2\), we have: \(g(2x + 3) = (2x + 3)^2 = 4x^2 + 12x + 9\)
\((f \circ g)(x) = 2x^2 + 3\) and \((g \circ f)(x) = 4x^2 + 12x + 9\)
• Composition definition: \((f \circ g)(x) = f(g(x))\)
• Order matters: Generally \((f \circ g)(x) \neq (g \circ f)(x)\)
• Substitution: Replace the variable in the outer function with the inner function
Three-function composition: \((f \circ g \circ h)(x) = f(g(h(x)))\) means apply \(h\) first, then \(g\), then \(f\)
• Work from the inside out: evaluate the rightmost function first
Apply \(h(x) = x^2\): the result is \(x^2\)
Apply \(g\) to the result: \(g(x^2) = 2(x^2) = 2x^2\)
Apply \(f\) to the result: \(f(2x^2) = (2x^2) + 1 = 2x^2 + 1\)
We evaluated: \(f(g(h(x))) = f(g(x^2)) = f(2x^2) = 2x^2 + 1\)
\((f \circ g \circ h)(x) = 2x^2 + 1\)
• Inside-out order: Evaluate the rightmost function first
• Sequential composition: Apply functions one by one
• Associativity: Composition is associative: \((f \circ g) \circ h = f \circ (g \circ h)\)
Domain of composition: The domain of \((f \circ g)(x)\) consists of all \(x\) in the domain of \(g\) such that \(g(x)\) is in the domain of \(f\)
\((f \circ g)(x) = f(g(x)) = f(x - 4) = \sqrt{x - 4}\)
For \(\sqrt{x - 4}\) to be defined: \(x - 4 \geq 0\)
\(x - 4 \geq 0\) implies \(x \geq 4\)
\(g(x) = x - 4\) has domain \(\mathbb{R}\), but we need \(g(x) \geq 0\) for \(f(g(x))\) to be defined
\((f \circ g)(x) = \sqrt{x - 4}\) with domain \([4, \infty)\)
• Domain restriction: \(x\) must be in domain of \(g\) AND \(g(x)\) must be in domain of \(f\)
• Composition domain: More restrictive than individual domains
• Radical constraint: Expression under radical must be non-negative
Inverse functions: If \(f\) and \(g\) are inverse functions, then \((f \circ g)(x) = x\) and \((g \circ f)(x) = x\)
Apply \(f\) to \(f^{-1}(x)\): \(f\left(\frac{x - 1}{2}\right)\)
Since \(f(x) = 2x + 1\): \(f\left(\frac{x - 1}{2}\right) = 2\left(\frac{x - 1}{2}\right) + 1\)
\(2\left(\frac{x - 1}{2}\right) + 1 = (x - 1) + 1 = x\)
Apply \(f^{-1}\) to \(f(x)\): \(f^{-1}(2x + 1)\)
Since \(f^{-1}(x) = \frac{x - 1}{2}\): \(f^{-1}(2x + 1) = \frac{(2x + 1) - 1}{2}\)
\(\frac{(2x + 1) - 1}{2} = \frac{2x}{2} = x\)
\((f \circ f^{-1})(x) = x\) and \((f^{-1} \circ f)(x) = x\), confirming that \(f\) and \(f^{-1}\) are inverse functions.
• Inverse property: Composition of function and its inverse yields identity function
• Bidirectional: Both \((f \circ f^{-1})(x) = x\) and \((f^{-1} \circ f)(x) = x\)
• Verification: Use composition to verify inverse relationships
Real-world composition: Using function composition to model relationships between different variables in practical situations
Cost as function of units: \(C(x) = 50x + 1000\)
Units as function of price: \(x(p) = 100 - 2p\)
We want cost as function of price: \((C \circ x)(p) = C(x(p))\)
\(C(x(p)) = C(100 - 2p)\)
Substitute \((100 - 2p)\) into \(C(x)\): \(C(100 - 2p) = 50(100 - 2p) + 1000\)
\(50(100 - 2p) + 1000 = 5000 - 100p + 1000 = 6000 - 100p\)
The cost as a function of price is \(C(p) = 6000 - 100p\)
The cost as a function of price is \(C(p) = 6000 - 100p\). As price increases, cost decreases because fewer units are sold.
• Modeling: Use composition to connect related variables
• Substitution: Replace variables with appropriate functions
• Interpretation: Understand the real-world meaning of the composition
Function composition: The operation of applying one function to the results of another
Inner function: The function that is applied first in a composition
Outer function: The function that is applied second in a composition
Domain of composition: The set of all inputs for which the composition is defined
Inverse functions: Functions whose composition yields the identity function
- Identify the functions: Determine which function is the inner and which is the outer
- Set up the composition: Write the composition in the form \((f \circ g)(x) = f(g(x))\)
- Substitute: Replace the variable in the outer function with the inner function
- Simplify: Perform algebraic simplification
- Determine domain: Find the domain of the composition
• Definition: \((f \circ g)(x) = f(g(x))\)
• Non-commutative: \((f \circ g)(x) \neq (g \circ f)(x)\) in general
• Associative: \((f \circ g) \circ h = f \circ (g \circ h)\)
• Domain: \(x\) must be in domain of \(g\) and \(g(x)\) must be in domain of \(f\)
• Inverse property: \(f \circ f^{-1} = f^{-1} \circ f = I\) (identity function)
\(f(g(x)) = x^2 + 1\)
\(g(f(x)) = (x + 1)^2\)
\(f(f(x)) = x + 2\)
\(g(g(x)) = x^4\)
Analysis: The chart compares the behavior of different function compositions.
- \(f(g(x)) = x^2 + 1\) is a parabola shifted up by 1
- \(g(f(x)) = (x + 1)^2\) is a parabola shifted left by 1
- \(f(f(x)) = x + 2\) is a linear function with slope 1 and y-intercept 2
- \(g(g(x)) = x^4\) is a quartic function