Composite functions

An SAT Math micro-topic under Nonlinear functions (Advanced Math). Free to read — no account needed.

A composite function feeds the output of one function into another.
The notation f(g(x))f(g(x)) means "put g(x)g(x) in place of the input of ff".
You always work from the inside out: deal with the inner function first, then the outer one.
composite_machine.png
To evaluate at a number, find the inner value, then apply the outer function to it.
Suppose f(2)=4f(2) = 4 and g(x)=2x+1g(x) = 2^x + 1.
Then g(f(2))=g(4)=24+1=17g(f(2)) = g(4) = 2^4 + 1 = 17.
The same works when the functions have formulas.
Let f(x)=ax+2f(x) = ax + 2 and g(x)=3x−1g(x) = 3x - 1.
To find f(g(−1))f(g(-1)), first g(−1)=3(−1)−1=−4g(-1) = 3(-1) - 1 = -4, then f(−4)=a(−4)+2f(-4) = a(-4) + 2.
You can also compose a function with itself and simplify symbolically.
For h(x)=4−2xh(x) = 4 - 2x, the composite h(h(x))h(h(x)) replaces the input of hh with h(x)h(x): h(h(x))=4−2(h(x))=4−2(4−2x)h(h(x)) = 4 - 2(h(x)) = 4 - 2(4 - 2x).
Multiplying out gives 4−8+4x=4x−44 - 8 + 4x = 4x - 4.
Finally, the order of composition matters.
In general f(g(x))f(g(x)) is not the same as g(f(x))g(f(x)), because putting gg inside ff is different from putting ff inside gg.

Worked examples

Let f(x)=2x+1f(x) = 2x + 1 and g(x)=x2g(x) = x^2. What is f(g(3))f(g(3))?
Work inside first: g(3)=32=9g(3) = 3^2 = 9.
Then f(9)=2(9)+1=19f(9) = 2(9) + 1 = 19.
Let f(x)=3xf(x) = 3x and g(x)=x+4g(x) = x + 4. What is g(f(2))g(f(2))?
Work inside first: f(2)=3(2)=6f(2) = 3(2) = 6.
Then g(6)=6+4=10g(6) = 6 + 4 = 10.
Let p(x)=3x−1p(x) = 3x - 1. What is p(p(x))p(p(x))?
Replace the input of pp with p(x)p(x): p(p(x))=3(3x−1)−1p(p(x)) = 3(3x - 1) - 1.
Multiplying out gives 9x−3−1=9x−49x - 3 - 1 = 9x - 4.

Is this one of the topics costing you points?

Take the free 10-question diagnostic for a predicted SAT score and a breakdown of which domains are costing you points.

Predict your SAT score →

More in Nonlinear functions