The Assembly Line
A Composite Function is a function inside another function. You take the output of one machine and immediately feed it as the input into another.
Notation: \((f \circ g)(x)\) or \(f(g(x))\). Read as "f of g of x."
Worked Examples
Example 1: Basic Composition
If \(f(x) = x + 5\) and \(g(x) = 2x\), find \(f(g(3))\).
- Step 1 (Inner): \(g(3) = 2(3) = 6\).
- Step 2 (Outer): Put 6 into \(f\). \(f(6) = 6 + 5 = 11\).
- Result: 11
Example 2: Finding the Combined Formula
Using the same functions, find \(f(g(x))\) and \(g(f(x))\).
- \(f(g(x)) = f(2x) = (2x) + 5\).
- \(g(f(x)) = g(x + 5) = 2(x + 5) = 2x + 10\).
- Notice: Order matters! \(f(g(x)) \neq g(f(x))\).
Example 3: Complex Nesting
If \(h(x) = x^2\), find \(h(h(x))\).
- \(h(h(x)) = (x^2)^2 = x^4\).
- Result: \(x^4\)
The Bridge to Quantum Mechanics
In Quantum Mechanics, the concept that "Order Matters" is the single most important rule. When we apply two operations to a particle—say, measuring its position and then measuring its momentum—it is not the same as measuring momentum and then position. This difference, \((f \circ g) - (g \circ f)\), is called the Commutator. If the commutator is not zero, it means you literally cannot know both things at the same time. This is the origin of the Heisenberg Uncertainty Principle.