Relations and Arrow Diagrams: Domain, Range, Mappings and Functions

FORM 2 • TERM 1 • LESSON 14

A relation is a rule that links the members of one set with the members of another. You meet relations all the time: each student and their form class, each country and its capital, each number and its square. In this lesson you will show relations with arrow diagrams, learn the words domain and range, and see how a relation, a mapping and a function differ.

Learning outcomes

By the end of this lesson you should be able to:

  • 2.2.2.1 – Make up relations between two sets.
  • 2.2.2.2 – Explain what an arrow diagram is.
  • 2.2.2.3 – Use arrow diagrams to show how sets are related.
  • 2.2.2.4 – Draw arrow diagrams for simple mathematical relations.
  • 2.2.2.5 – Explain what the domain and the range are.
  • 2.2.2.6 – Explain what a relation, a mapping and a function are.
  • 2.2.2.7 – Tell the difference between a relation, a mapping and a function.
  • 2.2.2.8 – Find missing members in an arrow diagram, given the relation.

Relations between two sets

To make a relation you need a first set, a second set and a rule that says which members go together. For example, with A = {2, 3, 5} and B = {6, 10, 15}, the rule “is a factor of” links 2 with 6 and 10, 3 with 6 and 15, and 5 with 10 and 15.

Arrow diagrams

An arrow diagram shows a relation as a picture. Each set is drawn as an oval with its members inside, and an arrow goes from a member of the first set to each member of the second set it is linked to. The rule is written above or below the diagram.

Arrow diagram for the relation is a factor of, from A equals 2, 3, 5 to B equals 6, 10, 15 A B 2 3 5 6 10 15 is a factor of
Figure 1 – The relation “is a factor of” from A to B. Each member of A has two arrows.

Domain and range

  • The domain is the set of members that the arrows start from – the inputs. In Figure 1 the domain is {2, 3, 5}.
  • The range is the set of members that the arrows actually point to – the outputs. In Figure 1 the range is {6, 10, 15}.
  • Some books call the whole second set the codomain. The range is then only the part of the codomain that is reached by an arrow.

Kinds of relation

TypeWhat the arrows doExample
One-to-oneEach input has one arrow, and each output receives one arroweach student → their seat number
Many-to-oneEach input has one arrow, but some outputs receive more than oneeach student → their form class
One-to-manySome input has more than one arroweach parent → their children
Many-to-manyInputs can have several arrows and outputs can receive several“is a factor of” in Figure 1

Relation, mapping or function?

These three words describe relations that obey stricter and stricter rules:

  • A relation is any rule linking members of two sets. Some members of the first set may have no arrow at all, and some may have several.
  • A mapping is a relation in which every member of the domain has at least one arrow going out. Each member is “mapped” to something.
  • A function is a mapping in which every member of the domain has exactly one arrow going out. So functions are one-to-one or many-to-one, never one-to-many.

So every function is a mapping, and every mapping is a relation, but not the other way round. A quick test for a function: count the arrows leaving each input. If every input has exactly one, it is a function. (Some books use “mapping” and “function” to mean the same thing; ask your teacher which definition your class uses.)

Arrow diagram for x maps to 2x plus 1 from 1, 2, 3, 4 to 3, 5, 7, 9, each input with exactly one arrow x 2x + 1 1 2 3 4 3 5 7 9 x → 2x + 1
Figure 2 – The function x → 2x + 1. Every input has exactly one arrow.

Finding missing members

If you know the rule, you can fill in a missing output by putting the input into the rule. To find a missing input, work backwards – or write an equation. For x → 2x + 1, an output of 15 means 2x + 1 = 15, so x = 7.

Worked examples

Example 1: Making a relation

Question: A = {Trinidad, Tobago, Barbados} and B = {Port of Spain, Scarborough, Bridgetown, San Fernando}. List the arrows for the relation “contains the town or city”, and say what type of relation it is.

  1. Port of Spain and San Fernando are both in Trinidad: Trinidad → Port of Spain and Trinidad → San Fernando.
  2. Tobago → Scarborough and Barbados → Bridgetown.
  3. Trinidad has two arrows, and each town receives only one.

Answer: Four arrows as above. It is a one-to-many relation.

Example 2: Domain and range

Question: For the relation “is half of” from {1, 3, 5, 7} to {2, 4, 6, 10, 14}, list the arrows, the domain and the range.

  1. 1 → 2, 3 → 6, 5 → 10, 7 → 14.
  2. The domain is {1, 3, 5, 7}.
  3. The arrows reach 2, 6, 10 and 14 only; 4 is not reached.

Answer: Domain {1, 3, 5, 7}; range {2, 6, 10, 14}.

Example 3: Is it a function?

Question: Students and their favourite subject: Ana → Maths, Ben → Art, Cal → Maths, Dee → Science. Is this a function? What type is it?

  1. Each student has exactly one arrow, so it is a function.
  2. Maths receives two arrows, so it is many-to-one.

Answer: Yes – a many-to-one function.

Example 4: Relation, mapping or function

Question: Domain {1, 4, 9}. The relation “is the square of” goes to {−3, −2, −1, 1, 2, 3}. Is it a relation, a mapping or a function?

  1. 1 → −1 and 1; 4 → −2 and 2; 9 → −3 and 3.
  2. Every input has at least one arrow, so it is a mapping.
  3. Each input has two arrows, so it is not a function.

Answer: It is a mapping (one-to-many), but not a function.

Example 5: Missing terms

Question: For the rule x → 3x − 2 the domain is {1, 2, ☐, 6} and the range is {1, ☐, 10, ☐}. Fill in the gaps.

  1. 1 → 3 − 2 = 1 and 2 → 6 − 2 = 4.
  2. 10 is an output: 3x − 2 = 10, so x = 4.
  3. 6 → 18 − 2 = 16.

Answer: Domain {1, 2, 4, 6}; range {1, 4, 10, 16}.

Example 6: Finding the rule

Question: An arrow diagram shows 2 → 7, 4 → 13, 5 → 16 and 7 → 22. Find the rule.

  1. When the input goes up by 1, the output goes up by 3 (from 13 to 16), so the rule starts “3x”.
  2. 3 × 2 = 6, and 7 − 6 = 1, so add 1.
  3. Check: 3 × 7 + 1 = 22. ✓

Answer: x → 3x + 1.

Common mistakes

  • Drawing arrows the wrong way. Arrows go from the domain (first set) to the second set.
  • Listing the whole second set as the range. The range is only what the arrows reach.
  • Calling a one-to-many relation a function. In a function each input has exactly one output.
  • Thinking two inputs cannot share an output in a function. Many-to-one is allowed; one-to-many is not.
  • Guessing missing inputs. Set up an equation from the rule and solve it.

Practice questions

Try these yourself first, then open each answer to check your working.

1. Draw an arrow diagram for “is 4 less than” from {1, 2, 3, 4} to {5, 6, 7, 8, 9}. State the domain and range.

Show answer

1 → 5, 2 → 6, 3 → 7, 4 → 8. Domain {1, 2, 3, 4}; range {5, 6, 7, 8}.

2. For “is a multiple of” from {6, 8, 9} to {2, 3, 4}, list all the arrows.

Show answer

6 → 2, 6 → 3, 8 → 2, 8 → 4, 9 → 3.

3. Name the type (one-to-one, many-to-one, one-to-many or many-to-many):
(a) each person → their date of birth
(b) each car → its registration number
(c) each teacher → the classes they teach.

Show answer

(a) Many-to-one
(b) One-to-one
(c) One-to-many.

4. Which of these are functions?
(a) 1 → 4, 2 → 5, 3 → 6
(b) 1 → 4, 1 → 5, 2 → 6
(c) 1 → 7, 2 → 7, 3 → 7.

Show answer

(a) and (c). In (b), 1 has two arrows.

5. Domain {a, b, c}. Relation: a → 1, b → 2. Is this a mapping? Explain.

Show answer

No – c has no arrow, so it is a relation but not a mapping (and not a function).

6. For x → x² − 1 with domain {−2, −1, 0, 1, 2}, find the range. What type of function is it?

Show answer

(−2)² − 1 = 3, 0, −1, 0, 3, so the range is {−1, 0, 3}. Many-to-one.

7. For x → 5x + 2, find
(a) the output for 4
(b) the input that gives 37.

Show answer

(a) 22
(b) 5x + 2 = 37, so x = 7.

8. An arrow diagram shows 1 → 1, 2 → 3, 3 → 5, 4 → 7. Find the rule and the output for 10.

Show answer

x → 2x − 1. The output for 10 is 19.

Quick check

1. What is the domain of a relation?

Show answer

The set of inputs – the members the arrows start from.

2. Is a one-to-many relation a function?

Show answer

No.

3. For x → x + 6, what input gives 11?

Show answer

5.

Previous: Sets: Union, Intersection and Solving Two-Set Venn Diagram Problems

Next: Ordered Pairs: Writing Relations as Pairs, Domain and Range, and Plotting Them

Curriculum link: This post is relevant to the Trinidad and Tobago National Lower Secondary (NCSE) Mathematics Curriculum – Form 2, Term 1, Strand 2.2 Sets, Relations and Functions, Topic 2.2.2 Relations, Mappings and Functions – Learning Outcomes 2.2.2.1 (generating relations), 2.2.2.2 (arrow diagrams), 2.2.2.3 and 2.2.2.4 (drawing arrow diagrams for relations), 2.2.2.5 (domain and range), 2.2.2.6 and 2.2.2.7 (relations, mappings and functions) and 2.2.2.8 (missing terms in an arrow diagram).

Updates

2026/10/23

– First version of this lesson.

2026/10/25

– Put each lettered part of the questions and answers on its own line.

© 2026 Vedesh Kungebeharry. All rights reserved.

2 thoughts on “Relations and Arrow Diagrams: Domain, Range, Mappings and Functions”

Leave a Reply