Free preview: one of our 15 free lessons, the first lesson of each topic. No account needed.
Video Lesson
Ready to check your understanding?
Take the short multiple-choice test. If you need more help, review the written lesson and worked examples below.
You can pause, replay or use the written lesson below to review at any time.
Written Lesson
A relation is a way of connecting members of one set to members of another set. In Mathematics, relations are often shown using ordered pairs, tables, arrow diagrams, or rules. Learning about relations helps you understand the important ideas of domain, co-domain, range, and image. These ideas are also the foundation for studying functions.
What you will learn
Explain what a relation is
Explain why the order of an ordered pair matters
Represent a relation using ordered pairs, a table, an arrow diagram, and a rule
Read a relation from an arrow diagram
Identify the domain, co-domain, range, and image
Tell the difference between the range and the co-domain
Recognise that one input can have more than one output, and that two inputs can share the same output
Recognise examples and non-examples of relations
Key Vocabulary
Term
Meaning
Relation
A rule or connection that pairs members of one set with members of another set.
Input
The starting value in a relation.
Output
The value that an input is paired with.
Domain
The set of all input values.
Co-domain
The set of possible output values.
Range
The set of output values actually used by the relation.
Image
The output value that a particular input maps to.
Key Ideas
A relation pairs values from one set with values from another set.
The first value in an ordered pair is usually the input.
The second value in an ordered pair is usually the output.
The order of an ordered pair matters: (1, 2) is not the same as (2, 1).
The domain is the set of all input values.
The co-domain is the set of possible output values.
The range is the set of output values that are actually used.
The image of an input is the output connected to that input.
Understanding Relations
A relation can be written as a set of ordered pairs. For example:
{(1, 2), (2, 4), (3, 6)}
This means:
1 is paired with 2
2 is paired with 4
3 is paired with 6
In each ordered pair, the first number is the input and the second number is the output.
Ordered Pair
Input
Output
(1, 2)
1
2
(2, 4)
2
4
(3, 6)
3
6
The Order Matters
The word ordered in ordered pair is important. The input always comes first and the output always comes second. Changing the order changes the relation.
Relation
Inputs (domain)
Outputs (range)
{(1, 2), (2, 4)}
{1, 2}
{2, 4}
{(2, 1), (4, 2)}
{2, 4}
{1, 2}
(1, 2) means 1 is the input and 2 is the output. (2, 1) means 2 is the input and 1 is the output. They are different ordered pairs.
Arrow Diagram
An arrow diagram is a useful way to show a relation. The arrows show which input is paired with which output.
Arrow diagram for the relation: 1 → 2, 2 → 4, 3 → 6
Domain, Co-domain and Range
Consider this relation:
X = {1, 2, 3}
Y = {2, 4, 6, 8}
Relation = {(1, 2), (2, 4), (3, 6)}
Part
Answer
Reason
Domain
{1, 2, 3}
These are the input values.
Co-domain
{2, 4, 6, 8}
These are all the possible output values in set Y.
Range
{2, 4, 6}
These are the output values actually used.
Important: The range does not always equal the co-domain.
In this example, 8 is in the co-domain, but no arrow points to 8. So 8 is not in the range.
Image of an Input
The image of an input is the output value that the input maps to.
For the relation:
{(1, 2), (2, 4), (3, 6)}
The image of 1 is 2.
The image of 2 is 4.
The image of 3 is 6.
Different Pairings You May See
So far, every input had its own output. But a relation can be built in other ways too. It only needs to pair values together.
What happens
Example
Domain
Range
One input is paired with more than one output
{(1, 2), (1, 3)}
{1}
{2, 3}
Two inputs are paired with the same output
{(1, 5), (2, 5)}
{1, 2}
{5}
Both of these are still relations. Notice that the range lists the value 5 only once, even though two inputs map to it.
Later, you will see that a special kind of relation, called a function, has exactly one output for each input.
Different Ways to Show a Relation
The same relation can be shown in different forms.
Form
Example
Ordered pairs
{(1, 2), (2, 4), (3, 6)}
Table
x
1
2
3
y
2
4
6
Arrow diagram
1 → 2, 2 → 4, 3 → 6 (see the diagram above)
Rule
y = 2x
Words
The output is twice the input.
Worked Examples
Example 1: State the domain and range of the relation {(1, 2), (2, 4), (3, 6)}.
Look at the first numbers in each ordered pair.
The first numbers are 1, 2, and 3.
So the domain is {1, 2, 3}.
Look at the second numbers in each ordered pair.
The second numbers are 2, 4, and 6.
So the range is {2, 4, 6}.
Answer: Domain = {1, 2, 3}, Range = {2, 4, 6}.
Example 2: For the relation {(0, 1), (1, 3), (2, 5), (3, 7)}, state the image of 2.
Find the ordered pair that begins with 2.
The ordered pair is (2, 5).
This means 2 maps to 5.
Answer: The image of 2 is 5.
Example 3: A relation is shown in the table below. State the domain and range.
Example 5: The relation is given by the rule y = x + 3. If the domain is {1, 2, 3}, find the range.
Substitute each input into the rule.
When x = 1, y = 1 + 3 = 4.
When x = 2, y = 2 + 3 = 5.
When x = 3, y = 3 + 3 = 6.
The outputs are 4, 5, and 6.
Answer: Range = {4, 5, 6}.
Example 6: Four students each name their favourite fruit. Kemar chooses mango, Shanice chooses banana, Andre chooses mango, and Tricia chooses guava. Write this relation as ordered pairs and state the domain and range.
Each student is the input and their favourite fruit is the output.
The ordered pairs are (Kemar, mango), (Shanice, banana), (Andre, mango), and (Tricia, guava).
The domain is the set of students: {Kemar, Shanice, Andre, Tricia}.
The range is the set of fruits chosen: mango, banana, and guava.
Mango was chosen by two students, but it is written only once in the range.
A relation must show a clear connection or pairing between values. It may be shown by ordered pairs, a table, a diagram, or a rule.
Example
Is it a relation?
Reason
{(1, 3), (2, 5), (3, 7)}
Yes
It pairs each input with an output.
y = 4x
Yes
The rule connects each input x to an output y.
A table showing students and their ages
Yes
Each student is paired with an age.
{(1, 2), (1, 3)}
Yes
One input can be paired with more than one output.
{(1, 5), (2, 5)}
Yes
Two inputs can be paired with the same output.
{2, 4, 6, 8} only
No
This is only a set of numbers. It does not show any pairing.
A list of four students’ names on its own
No
The names are not paired with anything, such as an age or a fruit.
Common Mistakes
Mistake 1: Confusing the domain with the range. The domain is the input set; the range is the output set actually used.
Mistake 2: Saying the co-domain and range are always the same. The co-domain includes possible outputs, but the range includes only outputs that are actually used.
Mistake 3: Forgetting that the image is the output for one specific input.
Mistake 4: Repeating values unnecessarily in a set. For example, the range of {(1, 2), (2, 2), (3, 4)} is {2, 4}, not {2, 2, 4}.
Mistake 5: Writing an ordered pair the wrong way round. The input goes first and the output goes second.
Multiple Choice Questions
1. For the relation {(1, 5), (2, 6), (3, 7)}, what is the domain?
{5, 6, 7}
{1, 2, 3}
{1, 5, 7}
{2, 6}
Answer: B. The domain is the set of input values.
2. For the relation {(2, 4), (3, 6), (4, 8)}, what is the image of 3?
2
3
6
8
Answer: C. The ordered pair (3, 6) shows that 3 maps to 6.
3. Which statement is true?
The domain is the set of output values.
The range is always equal to the co-domain.
The image of an input is its output.
A relation can only be shown by an arrow diagram.
Answer: C. The image of an input is the output it maps to.
4. Which of the following is NOT a relation?
{(1, 2), (3, 4)}
y = x + 5
{1, 2, 3, 4}
A table showing students and their heights
Answer: C. {1, 2, 3, 4} is only a set of numbers. It does not pair any values together.
5. For the relation {(1, 3), (2, 3), (4, 5)}, what is the range?
{1, 2, 4}
{3, 5}
{3, 3, 5}
{1, 2, 3, 4, 5}
Answer: B. The outputs are 3, 3, and 5. The value 3 is written only once in the range.
Practice Questions
For the relation {(0, 1), (1, 3), (2, 5)}, state the domain.
For the same relation, state the range.
What is the image of 1?
For the relation {(2, 10), (4, 20), (6, 30)}, state the domain.
For the same relation, state the range.
What is the image of 6?
The co-domain is {3, 6, 9, 12} and the relation is {(1, 3), (2, 6), (3, 9)}. State the range.
In the previous question, which value is in the co-domain but not in the range?
A relation is given by y = 2x + 1. If the domain is {1, 2, 3}, find the range.
In your own words, explain the difference between the co-domain and the range.
The arrow diagram shows a relation from X to Y.
Arrow diagram for Practice Question 11
(a) Write the relation as ordered pairs.
(b) State the domain, the co-domain, and the range.
Which of the following are relations? Give a reason for each.
(a) {(1, 4), (2, 5), (3, 6)}
(b) {7, 8, 9}
(c) the rule y = x − 2
(d) a list of the names of four students on its own
Complete the table for the rule y = 3x, and then state the range.
x
1
2
3
4
y
Kemar likes mango, Shanice likes guava, and Andre likes mango. Write this relation as ordered pairs, and state the domain and the range.
Are (3, 7) and (7, 3) the same ordered pair? Explain your answer.
Answers
{0, 1, 2}
{1, 3, 5}
3
{2, 4, 6}
{10, 20, 30}
30
{3, 6, 9}
12
When x = 1, y = 2(1) + 1 = 3.
When x = 2, y = 2(2) + 1 = 5.
When x = 3, y = 2(3) + 1 = 7.
Range = {3, 5, 7}.
The co-domain is the set of possible output values, while the range is the set of output values actually used by the relation.
(a) {(2, 1), (4, 2), (6, 3)}
(b) Domain = {2, 4, 6}. Co-domain = {1, 2, 3, 4}. Range = {1, 2, 3}. (The value 4 is in the co-domain but no arrow points to it.)
(a) Yes. It pairs each input with an output.
(b) No. It is only a set of numbers, with no pairing.
(c) Yes. The rule pairs each input x with an output y.
(d) No. The names are not paired with anything.
When x = 1, y = 3(1) = 3.
When x = 2, y = 3(2) = 6.
When x = 3, y = 3(3) = 9.
When x = 4, y = 3(4) = 12.
The table shows y = 3, 6, 9, 12. Range = {3, 6, 9, 12}.
Ordered pairs: {(Kemar, mango), (Shanice, guava), (Andre, mango)}.
Domain = {Kemar, Shanice, Andre}. Range = {mango, guava}. (Mango is written only once.)
No. In (3, 7) the input is 3 and the output is 7. In (7, 3) the input is 7 and the output is 3. The order matters, so they are different ordered pairs.
Lesson Summary
A relation connects inputs to outputs.
In an ordered pair, the input comes first and the output comes second. The order matters.
The domain is the set of input values.
The co-domain is the set of possible output values.
The range is the set of output values actually used.
The image of an input is the output it maps to.
One input can have more than one output, and two inputs can share one output. Both are still relations.
Relations can be shown using ordered pairs, tables, arrow diagrams, rules, or words.
Finished reviewing the lesson?
Take the multiple-choice test to check your understanding and complete this lesson.
What would you like to do next?
Try the first lesson of another course, or unlock every lesson for US$49 for one full year.