Meaning of a Function
Simple Explanation
A function is a special kind of relation where every element of the domain is paired with exactly one element of the range β no input is ever linked to two different outputs.
Why Do We Need It?
This "exactly one output per input" rule is what makes functions predictable and useful β it is the reason a formula like y = f(x) always gives a single, well-defined answer for any given x.
Worked Example
Decide whether a relation is a function
Is R = {(1,2), (2,3), (1,5), (3,4)} a function?
Why Does This Work?
The function definition is precisely the rule "no repeated first coordinate with a different second coordinate" β scanning the pairs for exactly that situation directly tests the definition.
Real-Life Example
A vending machine
Pressing a specific button on a vending machine always dispenses the exact same item, every time.
This is a function: each input (button) has exactly one output (item) β a machine that sometimes gave a different item for the same button would not be a function.
Practice
Which relation is a function?
MediumCommon mistake
Rejecting a relation as "not a function" just because an output value repeats β repeated outputs are fine; only a repeated input with two different outputs breaks the function rule.
Quick Review
- A function is a relation where every input has exactly one output.
- Repeated outputs are allowed; repeated inputs with different outputs are not.
- Every function is a relation, but not every relation is a function.