A function is a rule that assigns exactly one output to each allowed input. You can think of choosing an input, applying a rule, and recording the result. Different inputs may give the same output; one input must not give two different outputs.
Read function notation as an instruction
The notation means “the output of function when its input is .” It does not mean multiplied by . If the rule is to multiply an input by 3 and then add 2.
For input 4, replace every with 4: For input use parentheses to keep the sign attached: The function's name can be or without changing how the notation works.
An expression can also be an input. For the same rule, Substitute the whole expression, not just its first term.
Example: a function from a table
Consider a rule with these input-output pairs:
| Input | Output |
|---|---|
| 1 | 5 |
| 2 | 8 |
| 3 | 11 |
| 4 | 14 |
Each input has exactly one output, so this is a function. The listed values follow the rule From the table alone, however, the explicitly listed input values are only 1, 2, 3, and 4. A pattern suggests a possible extension; it does not prove that every other input is allowed unless the problem gives that rule or context.
The domain is the set of allowed inputs. For just the listed pairs, it is The range is the set of actual outputs, Domain and range are sets, so repeated values are listed once.
Two inputs can share one output
The rule sends both 3 and to 9. That is still a function because each individual input gives only one result. In contrast, the pairs and cannot both belong to the same function: input 2 would have two outputs.
On a graph, an input is an x-coordinate and an output is a y-coordinate. A vertical line fixes one x-value. If it meets the graph at two points, that input has two outputs, so the graph fails the vertical-line test.
Example: let the situation restrict the inputs
A school bus pass costs 5 dollars plus 2 dollars per trip. The cost rule is For 6 trips, dollars.
Although the expression can be evaluated at a negative number of trips is not meaningful here. If the pass allows up to 10 trips, the domain is the whole numbers from 0 through 10. Its range is not every number between 5 and 25. There is no half-trip in the stated situation.
Algebra can also restrict a domain. For input 4 is excluded because division by zero is undefined. You must inspect the rule as well as the story.
Try it yourself
Let with domain Find and the range. Is this still a function if two allowed inputs have the same output?
Answer: The outputs for 0, and 3 are 7, and 17, so the range is Repeated outputs would be allowed; only multiple outputs for the same input violate the function rule.
What to remember
Inputs belong to the domain; outputs belong to the range. Substitute an entire input wherever the variable appears, and check that the input is actually allowed.