Skip to content
Gioi Toan
Start learning

Function machines Maths skill, first learned in Grade 6

What you will be able to do

This content is not yet available in English. It is shown below in the original Vietnamese.

Biểu diễn hàm số bằng máy vào ra, bảng ánh xạ và tìm đầu vào từ đầu ra.

Strand
Số và Đại số
Topic
Số và Đại số (Vinschool extension)
Track
Vinschool extension
Difficulty
from Basic (M1) to Applying (M3)

Definitions and formulas

You can picture a function as a function machine: put a number in (input), the machine does the operations in the right order, then gives out a number (output).

A function can also be written as a mapping x↦3x+2x \mapsto 3x + 2, read as "x maps to 3x + 2". Each input gives exactly one output. An input-output table lists the pairs (input; output).

To find the input when you know the output, go backwards through the machine (inverse): do the inverse operation of each step, in order from the last step back to the first. The inverse of addition is subtraction, the inverse of multiplication is division.

Key points to remember

  • The order of the operations in the machine matters a lot: "multiply by 2 then add 3" is different from "add 3 then multiply by 2".

  • For an input-output table with inputs 1, 2, 3, ... and outputs increasing steadily, the rule has the form x↦ax+bx \mapsto ax + b, where aa is the increase in the output.

  • After going backwards, try putting the number you found back into the machine to check.

Worked examples

Example 1

The machine is "multiply by 4 then subtract 3". What output does input 5 give? Which input gives output 29?

Show the solution to example 1

Step 1: 5×4−3=175 \times 4 - 3 = 17.
Step 2: Go backwards: add 3 then divide by 4: (29+3):4=8(29 + 3) : 4 = 8.
Step 3: Check: 8×4−3=298 \times 4 - 3 = 29.
Result: output 17; input 8.

Example 2

Input-output table: 1 gives 5, 2 gives 8, 3 gives 11. Find the rule.

Show the solution to example 2

Step 1: The output increases by 3 when the input increases by 1, so the rule has the form x↦3x+bx \mapsto 3x + b.
Step 2: 3×1+b=53 \times 1 + b = 5 so b=2b = 2.
Result: x↦3x+2x \mapsto 3x + 2.

Common mistakes

Read these carefully so you can avoid them.

  • Going backwards but keeping the same order of steps, like dividing by 4 first and only then adding 3.
  • Changing the operation but forgetting to invert: going backwards from "subtract 3" and still subtracting 3.
  • Reading the input-output table by looking at just one pair and guessing the rule "add 4" from the pair 1 and 5.

Secure first, learn next

Secure first

Learn next

Lessons that teach this skill

Choose the textbook you use at school.

Toan Vinschool, Learner's Book 7

Toan Vinschool, Learner's Book 8

Practice

Questions go from easy to hard. Answer each one, then press Check. If you get stuck, open the hint right below the question.

Question 1 of 1Fill in the number · Recognising

The input-output machine is "multiply by 3 then add 5". The input is 4. What is the output?

Decimals can use a comma or a point. Write fractions as a/b, for example -5/3.

Asking the teacher while practising is for children who have a profile. It is free to turn on: Parent sign-in.

More practice for this skill is waiting for you

  • Calculate the output in order
  • Inverse operation
  • Find the input
  • Find the rule from the table
  • Read the mapping
  • Go backwards with a decimal
  • Compare the two machines
  • Model with an input-output machine

Ask a parent to sign in and create your profile to unlock more. It's free. Sign in