Definition
Domain, range and codomain of a relation
Algebra • Relations and Functions
Statement
For a relation from to , the domain is , the range is , and the codomain is . The range is always a subset of the codomain.
How to use it
- 1List the pairs first: for each allowed value of one entry, solve the rule for the other and keep the pair only if both entries lie in their sets.
- 2Then read the domain off the first entries and the range off the second entries.
- 3The codomain is given by the question, not found from the pairs; range equals codomain only if every element of is used.
Worked example
Let and . Find the domain and range of .
Step-by-step
- 1
Why:
give , which are not in , so those pairs are left out. - 2Domain , range
Why: Read off the first and second entries.
Answer
Domain , range ; the codomain is .
Watch out
A value of belongs to the domain only if its partner also lies in the codomain; forgetting this check adds wrong elements to the domain.