All tools Algebra and graphs

Function Machine

Drop a number in and see what comes out. Guess the rule.

How to use the Function Machine

  1. Drag a number card from the tray into the hopper (IN), or tap a card. To use a different number, type a whole number from −20 to 100 and press Drop in.
  2. The machine shakes, the gears turn and the output card slides into the OUT tray. Each run adds a row to the table. The table keeps eight rows; the oldest row goes first. A number that is in the table already does not make a second row: its row lights up.
  3. In Set the rule, choose the operation and the number under the machine (on a phone, press Rule). Turn off Show rule to put the cover over the screen.
  4. In Guess the rule, the rule is a secret. Choose a level, feed the machine some numbers, then build a guess under the machine (on a phone, press Guess) and press Check.
  5. Turn on Two machines to join two machines. The output of machine 1 is the input of machine 2. Show middle shows or hides the number between them.
  6. Press Backward. The machine turns orange, the arrows turn round and each operation on the screen changes to its opposite. Put a number in the OUT tray, and the input comes out of the hopper.

Division uses only 2, 4, 5 and 10, so each answer is an exact decimal. When the machine runs backward through × 3, the answer can be a fraction such as 3 1/3. The tool shows it as a fraction, because the decimal does not end.

Teaching ideas

Input, output and rule

Start with Set the rule and + 3 on the screen. Feed in 2, then 5, then 10. Say the words each time: “The input is 5. The rule is add 3. The output is 8.” Then ask students to say the output before the card comes out.

Why one row is not enough

Choose Guess the rule and the level 2 steps. Feed in one number, for example 2, and suppose the output is 11. Ask for rules that fit: × 3 then + 5, × 2 then + 7 and × 4 then + 3 all give 11. Guess one of them and press Check. When the guess is wrong, the machine shows a row that does not agree. If each row of the table agrees with the guess, the machine tries a new number by itself. Students learn that one row is not enough: two rows (or more) are needed to be sure of a rule. With the levels + − and × ÷, ask why 2 → 6 can be + 4 or × 3.

Inverse operations

Set × 4 and press Backward. The screen changes to ÷ 4. Put 28 in the OUT tray and 7 comes out of the hopper. Ask: “What number went in to give 28?” Addition and subtraction undo each other, and so do multiplication and division. The opposite operation is the inverse operation.

Two machines and the order of the inverse steps

Turn on Two machines with × 4 then − 3. Input 6 gives 24 in the middle and 21 at the end. Now run it backward: machine 2 runs first. To undo “× 4 then − 3”, add 3 first, then divide by 4. Compare it with putting on socks and then shoes: to take them off, the shoes come off first. The level “2 steps” puts both steps in one machine, and the screen shows the reverse order when it runs backward.

Look for patterns

Turn on Sort by input and feed in 1, 2, 3, 4. For a rule with ×, the outputs go up by the same amount each time. That amount is the number that multiplies. This is the start of linear rules and graphs.

Questions to ask

  • What is the input? What is the output? What does the machine do to each number?
  • Which number should we try next to learn the most about the rule?
  • Can two different rules give the same output for one input? Can they for two inputs?
  • If 20 came out, what went in? How do you know?
  • With two machines, which machine must run first when we go backward? Why?

Common mistakes to look for

  • Students guess a rule from one row only, for example + 4 when 2 gives 6, and do not test it with a second input.
  • Students undo × 4 with − 4 instead of ÷ 4. They use the opposite sign, not the inverse operation.
  • Students undo two steps in the same order as they were done (divide by 4, then add 3) and get the wrong input.
  • Students think that the machine cannot give a number that is not a whole number. 7 ÷ 2 is 3.5, and 3 ÷ 4 is 0.75.