Function Machine

The function concept through a machine that turns an input into an output by a rule: the numbers put in fill a table and a graph, the machine hides a rule that students guess from the outputs, two machines in a row show composition and why the order matters, the machine in reverse looks for the input behind an output and shows when an inverse function does not exist, and an arrow diagram checks whether a mapping is a function, an injection, a surjection or a bijection.

Open the app

Free, runs in the browser, no sign-in or installation.

Subject
Mathematics
Area
Algebra and Functions
Level
Primary and secondary school
A function machine with the rule f(x) = 2x + 1, input 3 and output 7, a table of values and a graph with points on a line

What you can do

  • In Machine, choose a rule from the list, from add 3 and double to square, square root and reciprocal, or type your own, e.g. (x − 1) ÷ 2 or √(x + 1). The numbers put in pass through the machine and fill a table of values and a graph; a number outside the domain is rejected.
  • In Guess the rule, the machine hides a rule at three levels; students choose inputs, read the outputs and type the rule, which the app checks and, if it is wrong, answers with a counterexample. For pair work one student sets a secret rule and the other guesses it.
  • In Two machines, the output of the first machine goes into the second: the table tracks x, f(x) and g(f(x)), a button swaps the order, and “One machine?” shows the rule of the composition, e.g. g(f(x)) = (2x + 1)².
  • In Reverse, you type an output and the machine looks for the input: for x² it shows two inputs and explains why the rule is not an injection, restricting the domain to x ≥ 0 gives a unique input, and the graph shows the reflection in the line y = x and the reverse rule f⁻¹(y) = √y.
  • In Arrow diagram, students drag arrows between the sets A and B, and the app says at once whether the mapping is a function, an injection, a surjection or a bijection and why, sets tasks such as “draw a surjection that is not an injection” and counts all possible mappings. Every drawing downloads as a PNG.

Worksheets and lessons

Lessons with worksheets that use this app.

More apps: Algebra and Functions

All apps →