Function Machine

About this tool

The class sends numbers into a machine that applies a hidden rule, watches the answer come out and builds an input-output table. To guess the rule they type it as an expression in x; it is accepted when it gives the same results on many inputs, so 2(x + 3) is right for 2x + 6. Rules are one step, two steps or, optionally, squares and halves, with negatives and decimals as options. Reverse mode shows an output and asks for the input. You can type your own rule, and Reveal shows the rule in symbols and words. The animation is skipped for students who prefer reduced motion.

Classroom ideas

  • Fill the table with five inputs and ask the class to describe the pattern in words before any rule is typed.
  • Switch to reverse mode to practise inverse operations: given the output, which number went in?
  • Type your own rule such as 3x − 4 and let teams test inputs to find it with as few tries as possible.

Related tools