On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Advanced Functions · Grade 6-8

Input-Output View

The input-output view sees a function as a black box — feed in an input, get one determined output, without caring how it computes.

x→ff(x)

Quick Answer

The input-output view sees a function as a black box — feed in an input, get one determined output, without caring how it computes. Use it when you care about what a function does rather than how: what comes out for a given input, which input produced a given output, or what happens when one machine feeds the next. Writing f(3)=7 is input-output language: put 3 into the machine f and 7 comes out. The only rule is that the same input always gives the same output.

Why This Matters

The black-box view lets you use a function you cannot see inside, such as a calculator's square-root key, a spreadsheet formula someone else wrote, or a pattern in data. You can still run it forward, work backwards from an output, or connect it to another box. Without this view, f(3) looks like 'f times 3' and a function seems useless until you know its formula.

Intuitive Explanation

A calculator's square-root key is a black box. Press 49 and you get 7; press 2 and you get 1.414…, and you have no idea how the chip works it out. You do not need to. What matters is the behaviour: each input produces one output, and the same input always produces the same output. Thinking of a function this way is the input-output view.

In symbols, f(x) means 'the output of machine f when x goes in'. For the machine 'double and add 1', written f(x)=2x+1, the statement f(3)=7 reads 'input 3, output 7'. The brackets mean 'put this in', not multiply. You can ask two kinds of question: forward (what is f(5)? It is 11) and backward (which input gives 15? Undo the steps: 15−1=14, then 14÷2=7).

Not every box qualifies. A box that sometimes answers 3 and sometimes −3 for the input 9 is unpredictable, so it is not a function machine. A random-number button fails for the same reason: pressing it twice gives different results. A function machine may give the same output for different inputs, as 32 and (−3)2 both give 9, but never different outputs for the same input.

Think of it like this. In the input-output view, a function is like a toaster with a dial: set it to 3 and you always get the same shade of toast, without knowing anything about the wiring inside. If the same setting sometimes burned the bread and sometimes left it pale, it would not be a function.

Core idea. The input-output view treats a function as a machine: a value goes in and one determined value comes out, ignoring the inner workings.


When to Use

Use the input-output view when a problem describes a function machine, a rule you put in a number and get out another, or a table of results from a process whose formula is hidden. Answer forward questions by applying the rule and backward questions by undoing it. When two machines are chained, so one's output becomes the next one's input, use function composition; when you must show the rule as a graph or table, use multiple representations.

Tip. Ask: Am I tracking what comes out for a given input, treating the rule as a sealed box?

How to Recognize It

Before working with a function machine, note what goes in, what comes out, and whether the question runs the machine forward or backward.

  1. Are you given the input and asked for the output?

    Yes means run the machine forward: if the rule is 'double, then add 1', the input 4 gives 9. If you are given the output instead, work backward.

  2. Are you given the output and asked what went in?

    Yes means undo the steps in reverse order: for 'double, then add 1', the output 15 came from (15−1)÷2=7. Check by running 7 forward again.

  3. Does one machine's output go straight into a second machine?

    Yes means a chain, which is composition: 'add 3' followed by 'multiply by 2' turns 5 into 16. With only one machine, the single input-output view is enough.

  4. Do you only have a table of inputs and outputs, with no rule given?

    Then look for one rule that fits every row: inputs 1, 2, 3 giving 5, 8, 11 suggest 'multiply by 3, then add 2'. Showing that rule as a formula, table and graph is the job of multiple representations.

Input-Output View compared with Function notation, Composition, and Multiple representations

All four rows describe one machine from different angles. Ask what you are doing with it: running it (input-output view), writing its output as a symbol (notation), chaining two machines (composition), or showing it as a table, graph or formula (representations).

Input-Output View

Meaning
Use this when you want to reason about what a function does to inputs, not the formula behind it.
Key test
Am I tracking what comes out for a given input, treating the rule as a sealed box?
Formula
x→ff(x)
Example
A function machine adds 4 to whatever goes in. What comes out when 7 goes in, and what went in if 10 came out?

Function notation

Meaning
The written symbol f(x) for the box's output; the view is the mental picture.
Key test
Use when reading or writing the symbolic name of the output.
Formula
f(x)
Example
f(3)=7 records the box turning input 3 into output 7

Composition

Meaning
Chains two boxes so one's output feeds the next; the view is a single box.
Key test
Use when stacking two machines in sequence.
Formula
f(g(x))
Example
Output of box g becomes input of box f

Multiple representations

Meaning
The four ways (formula, table, graph, words) to show the box; the view is just one lens.
Key test
Use when comparing or converting between formats.
Example
The same machine shown as a table or a graph

Formula & Notation

x→ff(x)
f ⁣:X→Y acts as a process: for each x∈X, f produces f(x)∈Y. The composition (f∘g)(x)=f(g(x)) chains processes sequentially.

How to read it: f(x) means 'the output of f when the input is x.' Read as 'f of x,' not 'f times x.'

Worked Examples

Example 1 — Use the machine

Easy

A function machine adds 4 to whatever goes in. What comes out when 7 goes in, and what went in if 10 came out?
Show the steps and the answer
  1. Run the machine forward: 7→7+4=11.

    A forward question just applies the rule to the input.

  2. Run it backward for the output 10: undo 'add 4' by subtracting 4, so 10−4=6.

    To find an unknown input, reverse the machine's step.

  3. Check by feeding 6 forward: 6+4=10.

    Putting the found input back in must give the output you were told.

Answer: Out: 11; in: 6

Takeaway: Forward questions apply the rule, backward questions undo it, and feeding the answer back in confirms it.

Example 2 — Not a single output

Standard

A box returns either +3 or −3 for the same input. Is this a function machine?
Show the steps and the answer
  1. Imagine feeding in the same input twice, say 9, and getting 3 the first time and −3 the second.

    A function machine must give the same output every time for the same input.

  2. Picture a box that behaves this way: given 9, it returns some number whose square is 9, and both 3 and −3 qualify.

    With two valid answers and no rule for choosing, the output is not determined by the input.

  3. Repair it by fixing one choice: a box that always returns the positive one, 9=3, is a function.

    A rule that picks exactly one output turns the unreliable box into a function machine.

Answer: No — not a function machine

Takeaway: If you cannot predict the output from the input, the box is not a function; one fixed choice makes it one.

Example 3 — Find the mistake: no formula needed

Application

A sealed function machine produced these results: 1→5, 2→8, 3→11, 4→14. Tom says: "We can't say what comes out for 10, because we don't know the formula inside." Find the mistake and use the results to answer.
Show the steps and the answer
  1. Look at how the outputs change: 5→8→11→14, up 3 each time the input goes up 1.

    The input-output pairs alone show the machine's behaviour, without opening it.

  2. Write a rule that fits every pair: output =3× input +2, since 3(1)+2=5 and 3(4)+2=14.

    A rule that matches all the recorded results is a good model of the box.

  3. Predict: 3(10)+2=32.

    Tom assumed the formula had to be known in advance, but the table was enough to build one.

  4. Note the condition: this assumes the machine keeps the same pattern, which one test with input 10 would confirm.

    A black box can always surprise you, so a prediction from data is worth testing.

Answer: If the pattern continues, input 10 gives output 32 (the rule is multiply by 3, then add 2).

Takeaway: You can reason about a black box from its inputs and outputs alone: find the pattern, write a rule that fits every pair, then test a new input.

Where You'll See It

  • A spreadsheet price-with-tax cell

    A spreadsheet cell shows a price including tax for whatever price you type. Type 20 and it shows 21.60; type 50 and it shows 54. Even without reading the formula, the pairs reveal the rule: multiply by 1.08, an 8% tax.

  • Face unlock on a phone

    Face unlock takes a camera image as input and outputs 'unlock' or 'stay locked'. Engineers test it as a black box, feeding in thousands of photos and checking each output, because the model inside is far too complex to read line by line.

Common Mistakes

  1. The slip: Letting one input map to two outputs in the box

    Instead: a function box gives exactly one output per input.

  2. The slip: Reading f(x) as multiplication

    Instead: it names the box's output, not f times x.

  3. The slip: Thinking you must know the inner formula to use the box

    Instead: you can reason from inputs and outputs alone.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. A function machine multiplies the input by 3, then subtracts 2. What comes out when 5 goes in?

    Hint: Do the steps in order: multiply first.

  2. The same machine, times 3 then minus 2, gives an output of 22. What went in?

    Hint: Undo the steps in reverse order.

  3. A function box gives 1→4, 2→7, 3→10, 4→13. What output does an input of 10 give?

    Hint: How much does the output grow each time the input goes up by 1? What is the output for input 0?

  4. For f(x)=x2−1, find f(4) and f(−4). Does sharing an output break the function rule?

    Hint: Square first, then subtract 1.

  5. You put 3 into a doubling machine and feed its output into an add-5 machine. Is that one input-output step, or a composition of two functions?

    Hint: How many boxes does the number pass through?

  6. A student reads f(6)=20 as 'f times 6 is 20, so f=206.' Find and correct the mistake.

    Hint: What do the parentheses in f(6) mean?

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Can two different machines give the same output for every input?

Yes. 'Add 2, then double' and 'double, then add 4' look different inside, but both turn 3 into 10, and every input xx into 2x+42x+4. From outside the box they are the same function. This is exactly why the input-output view is useful: only the pairs going in and coming out decide what the function is, not the steps inside.

If I test a machine with a few inputs, can I be sure I know its rule?

No, not from a few tests alone. Inputs 1, 2 and 3 giving 2, 4 and 6 fit 'double it', but they also fit the rule 2x+(x−1)(x−2)(x−3)2x+(x-1)(x-2)(x-3), which gives 14 for input 4 instead of 8. More tests make a guess more believable, but only knowing the rule makes it certain.

Is a calculator's random-number button a function?

No. Pressing the same button with the same setting gives a different number each time, so one input has many possible outputs. A function must give the same output every time for the same input. The square-root key is a function: 49\sqrt{49} is 7 today, tomorrow and on every calculator.

Can a function machine refuse some inputs?

Yes. A machine that divides 12 by the input cannot accept 0, because 12÷012\div 0 has no answer. A machine that counts the pages in a stack of books cannot accept a negative number of books. The inputs a machine accepts are called its domain, and stating them is part of describing the machine.

Learning Path

← Before

Function
Input-Output View

You are here

You need Function: one output for each input. The input-output view adds the black-box habit of reasoning from what goes in and what comes out, including working backwards. Next, Function Composition chains boxes so one's output feeds the next, and Function Families group boxes with similar behaviour, such as linear and quadratic rules.

See Also