What is a function?
Function
Let and be any sets. A function from to is a rule $f$ that associates each element of $A$ with exactly one element of $B$.
If associates with , then we write and say ” of is ” or ” maps to ” or the “value of at is ”.
If is a function from to , then we write: .
Function Rules
We call the domain of and the codomain of .
Link to original
- every element of the domain has to be mapped somewhere in the codomain (but this does not have to apply in reverse)
- one element cannot be mapped to 2 different places (but it can happen that different elements are mapped to the same place)
Example 1
Let be the set of all humans, alive or dead. Making associations, are the following functions or not:
- Not a function: people have two parents
- Function: each person has exactly one mother
- Not a function: some people have no children
- This is a function but it is not a function because each person is associated with a set of people. This is a function.