Precalculus A — Functions & Transformations
Composition — machines feeding machines
continues from lesson 1 — values defined earlier in the course stay live here
ELI5: f(g(x)) wires g's output straight into f's input — two machines on an assembly line. Order matters: f(g(x)) is usually not the same as g(f(x)), and the check proves it with a real number.
a second machine
= g first: g(3) = 7, then f(7) = 28
= f first: f(3) = 0, then g(0) = 1
✓ pass f∘g at 3 is 28
✓ pass order matters: f(g(3)) ≠ g(f(3))
Real-world hook: composition is a pipeline — convert miles→km, then km→fuel-needed; or quantity→cost, then cost→price.
Try it yourself: with the same f and g above, compute g(f(2)) (run f first, then g).
= ✏️ Your turn: compute g(f(2)). Work out f(2) first, then feed it through g.
✓ pass green when it equals g(f(2))