A vending machine is a fair picture of a function. You press a button and one particular snack drops out, the same snack every time you press that button. Two buttons may give the same snack, and that is fine. A button that sometimes gives chips and sometimes gives a candy bar would be broken. Calculus studies how outputs change as inputs change, and that only makes sense when each input has one definite output.
Key terms
Function
Definition A function from a set to a set is an assignment that gives to every element of exactly one element of . In this course and are sets of real numbers unless stated otherwise. Two conditions are built into this definition. Every element of gets an output, and no element of gets more than one.
In plain words A function takes each allowed input and hands back one output, never zero and never two.
Example On the inputs , the assignment , , is a function. The assignment , , is not, for two reasons. The input gets two different outputs, and the input gets none.
Input and output
Definition An input of a function is an element of its domain. The output at is the single element that the function assigns to , written and also called the value of at . The set of all outputs, , is the range of .
In plain words The input is what you put in, the output is what comes out. In a real situation each comes with its own meaning and units.
Example Let be the temperature in degrees Celsius minutes after a cup of tea is poured. The input is a time in minutes. If , the output is a temperature in degrees Celsius. Mixing the two up, for example reading as “after 62 minutes”, misreads the function.
Domain
Definition The domain of a function is the set of inputs on which it is defined. It is part of the function and should be stated. When a function is given only by a formula and no domain is stated, the domain is taken to be the set of all real numbers for which the formula produces a real number. A context, such as time or length, may restrict the domain further.
In plain words The domain is the list of inputs the function accepts. Change the domain and you have changed the function.
Example The formula
has domain , since makes the denominator zero. So and , but does not exist. If the same formula described a quantity at time hours after noon with , the domain would be .
Rule
Definition A rule is a description, usually a formula, that tells how to compute the output from the input. A rule defines a function only together with a domain on which it produces exactly one output for each input. The same rule on different domains gives different functions, and a function may also be given by a rule in words or by several formulas on different parts of its domain.
In plain words The rule is the recipe. The domain says which ingredients the recipe is meant for.
Example The rule “square the input and subtract ” is the formula . On the domain it gives
Restricted to the domain , the same rule makes a different function, which no longer accepts .
Function notation
Definition The symbol denotes the output of the function at the input . The letter names the function, and the parentheses enclose the input. The notation does not mean multiplied by . The input may be a number or any expression in the domain, as in , or , and evaluating means substituting that whole input into the rule.
In plain words Read as “f of x”, the output when goes in. You cannot cancel or distribute the .
Example For ,
So and are different. Also , while , so you cannot split as if were a number multiplying a sum.
Table
Definition A table of values lists inputs in one column or row and the corresponding outputs beside them. A table describes a function exactly when each listed input appears with only one output. A finite table gives the values at the listed inputs only. Values at other inputs are not determined by the table unless a rule or an assumption supplies them.
In plain words A table is a list of input and output pairs. It is a function if no input appears with two different outputs.
Example The rule produces this table.
The rule, the table and a picture of arrows from each input to its output all describe the same assignment on these five inputs.
Unique output
Definition Each input of a function has a unique output. For a relation given as a set of input and output pairs, this means that whenever and are both pairs with the same input , the outputs agree, . A relation that pairs some input with two different outputs is not a function. The reverse is not required, so different inputs may share an output, and with is allowed.
In plain words One input, one output. Two inputs landing on the same output is fine. One input pointing to two outputs is not.
Example In the table of the inputs and share the output , and is still a function. Now look at this table.
| Input | ||||
|---|---|---|---|---|
| Output |
The input appears with the outputs and , so this table does not define a function. If the second had output again, it would only repeat the same pair and cause no conflict.
Check yourself
- For , find the domain, and .
Show the answer
The denominator is zero at , so the domain is . The values are
- Does the assignment , , define a function on ? What about , , on ?
Show the answer
The first is a function, because each input has one output, and sharing the output is allowed. The second is not, because the input is sent to both and .
- For , compute and , and explain why does not mean times .
Show the answer
The values are and . The notation means the output when the input is , a single number, not a product of and .