lesson

Updated 1 month ago Β· 6 views
Imagine a factory assembly line: one machine shapes raw clay into a bowl, and the next machine paints it. If you feed clay into the combined system, it doesn't get painted until after it's shaped.
In algebra, a composite function works the exact same way by feeding the entire output of one function into another function as its input. We write this as (fβg)(x) or f(g(x)), which we read aloud as "f of g of x."
πInteractive diagram
How do we build a single formula for this combined machine when both functions are algebraic equations?
The Substitution Strategy
To find f(g(x)), start by writing the outer function f(x) with empty parentheses wherever you see the variable x. Then, drop the entire formula of the inner function g(x) right into every set of parentheses.
πInteractive diagram
Let's walk through the algebra for f(x)=x2β3x and g(x)=2x+1. Expanding the squared binomial gives (2x+1)2=4x2+4x+1.
Next, distribute the β3 across (2x+1) to get β6xβ3. Combining like terms gives the simplified composite formula: f(g(x))=4x2β2xβ2.
What happens if we swap the machines and calculate g(f(x)) instead?
Order Changes the Outcome
Function composition is non-commutative, which means changing the order of composition almost always produces a completely different result: (fβg)(x)ξ =(gβf)(x).
For g(f(x)), g is now the outer function. Substituting f(x)=x2β3x into g(x)=2x+1 yields 2(x2β3x)+1, which simplifies to 2x2β6x+1.