Kahibaro
Discord Login Register

Input–output concept

When working with functions, it is helpful to think of them as machines that take something in (an input), do a specific job, and then produce something out (an output). The input–output idea is the core of what a function is.

In this chapter, we focus on that idea without going into formal function notation, which has its own section.

The function as a “machine”

Imagine a machine on a table.

The key point: a function always follows the same rule. For the same input, you always get the same output.

For example, suppose the machine doubles any number you put in. If you put in $3$, it outputs $6$. If you put in $10$, it outputs $20$. The rule is:

$$
\text{output} = 2 \times \text{input}
$$

Here:

If the input is $x$, the output is $2x$.

Input–output tables

An input–output table is a simple way to keep track of how a function works. It shows the rule in action on several example inputs.

For the doubling rule above:

An input–output table might look like this:

The table is not the function itself; it just shows some examples of how the function behaves.

Another example: a function that adds $5$ to the input.

Sample table:

To fill such a table, you apply the same rule to each input.

Describing rules in different ways

The same input–output rule can be described in several ways:

For example, for the rule “triple the number and subtract $1$”:

You should be able to:

Working from input to output

Given a rule and an input, you find the output by substituting the input into the rule and calculating.

Example: rule “multiply by $4$ and add $3$”:

$$
\text{output} = 4 \times \text{input} + 3
$$

Here the inputs are $2$ and $-1$, and the outputs are $11$ and $-1$.

Working backward from output to input (informally)

Sometimes you know the output and the rule, and you want to find what input produced it. This is “working backward.”

Using the same rule:

$$
\text{output} = 4 \times \text{input} + 3
$$

Suppose the output is $19$. Which input gives that?

You look for an input such that $4 \times \text{input} + 3 = 19$.

So input $4$ gives output $19$.

You do not need to solve such equations formally here; the main idea is just that the same rule connects input and output in either direction.

One input, one output

A key idea about functions is that each allowed input has exactly one output.

Using the rule $\text{output} = 2 \times \text{input}$:

So:

Different inputs, sometimes the same output

Different inputs can sometimes produce the same output. That does not break the function idea.

Example rule:

$$
\text{output} = \text{input}^2
$$

Here $\text{input}^2$ means “input multiplied by itself.”

So:

The function still gives only one output for each input. It is allowed that different inputs share the same output.

Inputs that are not numbers

Often in algebra we use numbers as inputs, but the input–output idea is more general. The input can be many kinds of things, as long as the rule tells you clearly what to do with them.

For example:

In later work, we mostly use numbers, but keep in mind that the input–output concept itself is broader.

Real-world input–output examples

Many real-life situations can be seen as input–output relationships.

  1. Taxi fare:
    • Input: number of kilometers traveled.
    • Output: total cost of the trip.
    • Rule (for example): “Start at \$3.00 and add \$1.50 for each kilometer.”
  2. Weekly pay:
    • Input: hours worked in a week.
    • Output: amount of money earned.
    • Rule (simple case): “Multiply the hours by the hourly wage.”
  3. Temperature conversion:
    • Input: temperature in degrees Celsius.
    • Output: temperature in degrees Fahrenheit.
    • Rule (in formula form): $\text{Fahrenheit} = \dfrac{9}{5} \times \text{Celsius} + 32$.

Each of these is a function: a clear rule that takes an input and produces an output.

Recognizing when something is not a function

Not every input–output setup describes a function. It is not a function if some inputs are assigned more than one output.

Consider a “machine” that:

If input $4$ could give either $8$ or $12$ depending on the day, then the rule is not fixed and this is not a function.

The input–output concept for functions always assumes:

Summary

Views: 14

Comments

Please login to add a comment.

Don't have an account? Register now!