You need: a partner (a parent, sibling or friend), paper, a pencil and 10 small slips of paper.
- You are machine g: double the number. Your partner is machine f: add 3.
- Write the numbers −2, −1, 0, 1, 2 on slips. For each slip, you apply g and pass your answer to your partner, who applies f and announces the final output. Record (x, f(g(x))).
- Swap order: your partner applies f first and passes to you. Record (x, g(f(x))).
- Compare the two tables. Graph both on one set of axes.
- Bonus: make one machine "square the number" and the other "subtract 1". Does order matter now?
What to look for: f(g(x)) = 2x + 3 gives −1, 1, 3, 5, 7. g(f(x)) = 2(x + 3) = 2x + 6 gives 2, 4, 6, 8, 10. Both are lines with slope 2, but different y-intercepts, so order matters. In the bonus, square-then-subtract gives x² − 1 (3, 0, −1, 0, 3) and subtract-then-square gives (x − 1)² (9, 4, 1, 0, 1): different again.