Functions and relations
Functions are special binary relations.
A function can be considered as a relation from to :
Relations that are also functions have two special properties, following from function rules:
- For every element , there is some with being in the relation.
- No two ordered pairs in the relation have the same first element.
For example:
- Not a function: is not mapped.
- Function:
- Not a function: and are both present in the relation.
- Not a function: is not mapped.
- Function: