Functions • Topic 2 of 4

Evaluating & Composing

Composition means feeding the output of one function into another, written f(g(x)) and read "f of g of x". The order matters and it runs inside-out: to compute f(g(2)), first evaluate g(2), then put that number into f. Reversing the order — computing g(f(2)) instead — is the single most common composition mistake, and the GRE builds trap answers around it. Work numerically whenever you can (find g(2) as an actual number, then apply f) rather than building the full algebraic formula for f(g(x)), which is slower and error-prone under time pressure. When the problem does want the general composite expression, substitute the entire g(x) rule into f. Composition also appears with tables or graphs: read g(2) off the table, then look up f of that value. In every case, resist the urge to combine the rules by adding or multiplying — composition is substitution, layered.

✅ Solved examples

1. If f(x) = x + 3 and g(x) = 2x, find f(g(4)).
Inside first: g(4) = 2(4) = 8. Then f(8) = 8 + 3 = 11.
2. With the same f and g, find g(f(4)) and note it differs.
f(4) = 4 + 3 = 7, then g(7) = 2(7) = 14. Compare with f(g(4)) = 11 — order changes the answer.
3. If f(x) = x² and g(x) = x − 1, find the expression f(g(x)).
Substitute g into f: f(g(x)) = (x − 1)² = x² − 2x + 1.
4. If f(x) = 2x − 1 and g(x) = x² + 1, find f(g(3)).
g(3) = 3² + 1 = 10. Then f(10) = 2(10) − 1 = 19.

✏️ Practice — try these, take hints as needed

1. If f(x) = 3x and g(x) = x + 5, find f(g(2)).
Evaluate g(2) first.
g(2) = 7.
f(7) = 3 × 7.
21
2. With f(x) = x − 4 and g(x) = x², find g(f(6)).
Inner function is f here.
f(6) = 2.
g(2) = 2².
4
3. If f(x) = x + 1 and g(x) = 3x, find the expression f(g(x)).
Put g(x) into f.
f(3x) = 3x + 1.
Do not multiply the rules.
3x + 1
4. If f(x) = 2x and g(x) = x − 3, find f(g(5)) − g(f(5)).
f(g(5)): g(5) = 2, f(2) = 4.
g(f(5)): f(5) = 10, g(10) = 7.
Subtract 4 − 7.
−3
5. If f(x) = x² − 1 and g(x) = x + 2, find f(g(1)).
g(1) = 3.
f(3) = 3² − 1.
Compute.
8

📝 Topic test — 8 questions

Auto-graded with full solutions; saved to your dashboard. Use the calculator and formula sheet (top-right) any time.

Loading questions…