Mathematics Topic

Relations and How to Represent Them

  1. Read notes
  2. Flashcards
  3. Quiz
  4. Confident

Study focus - 3 things

  1. A relation is a set of ordered pairs (input, output): the domain is the set of inputs, the range is the set of outputs that really occur
  2. Sort a relation by its arrows: one-one, many-one, one-many or many-many depends on whether an input branches and whether an output is shared
  3. Show one relation four ways: ordered pairs, an arrow diagram, plotted points, or a rule with its domain

Visual notes

A one-one relation
Arrow diagram from the domain {1, 2, 3} to the co-domain {4, 6, 8, 10}, showing the rule y = 2x + 2. Arrows: 1 → 4, 2 → 6, 3 → 8. The co-domain member 10 is not reached by any arrow.

Arrow diagram of the rule y = 2x + 2: one-one.

A many-one relation
Arrow diagram from the domain {-2, -1, 1, 2} to the co-domain {1, 4, 9}, showing the rule y = x^2. Arrows: -2 → 4, -1 → 1, 1 → 1, 2 → 4. The co-domain member 9 is not reached by any arrow.

Arrow diagram of the rule y = x^2: many-one.

A one-many relation
Arrow diagram from the domain {1, 4} to the co-domain {-2, -1, 1, 2}, showing the rule x = y^2. Arrows: 1 → -1, 1 → 1, 4 → -2, 4 → 2. Every co-domain member is reached by an arrow.

Arrow diagram of the rule x = y^2: one-many.

A many-many relation
Arrow diagram from the domain {2, 3, 4} to the co-domain {4, 6, 8, 9}, showing the relation 'x is a factor of y'. Arrows: 2 → 4, 2 → 6, 2 → 8, 3 → 6, 3 → 9, 4 → 4, 4 → 8. Every co-domain member is reached by an arrow.

Arrow diagram of the relation 'x is a factor of y': many-many.

The many-one relation as plotted points
Graph of the ordered pairs {(-2, 4), (-1, 1), (1, 1), (2, 4)}: four separate points, two at height 4 (x = -2 and x = 2) and two at height 1 (x = -1 and x = 1). The points are not joined.

The same pairs as the many-one diagram, plotted: each dot is one ordered pair.

Section 1What a relation is

A relation links members of one set to members of another. Each link is an ordered pair (input, output), and the order matters: (3, 8) says 3 goes to 8, which is not the same pair as (8, 3). The whole relation is the set of its pairs, for example R = {(1, 4), (2, 6), (3, 8)}. A relation can also come from a rule in words, like "is a factor of" or "is one more than", so it does not need a neat formula.

Section 2Domain, co-domain, range and image

The domain is the set of all inputs, the first numbers in the pairs. The co-domain is the whole set the outputs are allowed to come from, and a problem usually states it. The range is the set of outputs that actually occur, the second numbers in the pairs, so the range sits inside the co-domain and can be smaller. In the pair (2, 6), the number 6 is the image of 2. Easy to mix up: in the first diagram below the co-domain is {4, 6, 8, 10} but no arrow reaches 10, so the range is only {4, 6, 8}.

Section 3The four types of relation

Ask two questions about the arrows. Does any input have more than one arrow leaving it (more than one image)? Does any output have more than one arrow arriving (is it shared by two or more inputs)? If neither, the relation is one-one. If only the second, it is many-one. If only the first, it is one-many. If both, it is many-many. Always read from input to output, so many-one means many inputs going to one output.

Section 4The four types in the diagrams

One-one: {(1, 4), (2, 6), (3, 8)}, every input and every output used once. Many-one: y = x^2 on the domain {-2, -1, 1, 2} gives {(-2, 4), (-1, 1), (1, 1), (2, 4)}, so -2 and 2 share the image 4. One-many: x = y^2 gives {(1, -1), (1, 1), (4, -2), (4, 2)}, so the input 4 has the two images -2 and 2. Many-many: 'x is a factor of y' gives {(2, 4), (2, 6), (2, 8), (3, 6), (3, 9), (4, 4), (4, 8)}, so 2 has three images and 4 is the image of both 2 and 4.

Section 5Arrow diagrams and graphs

In an arrow diagram, put the domain in the left oval and the whole co-domain in the right oval, even members that nothing reaches, and draw one arrow for each ordered pair. On a graph, plot each pair as a point with x across and y up. When the domain is a list, plot only those points and do not join them, because the numbers in between are not inputs. The graph below plots {(-2, 4), (-1, 1), (1, 1), (2, 4)}: each dot is one pair.

Section 6A relation from a rule and a domain

A rule needs a domain before it makes a relation. Take y = 3x - 1 with x ∈ {1, 2, 3}, also written {(x, y): y = 3x - 1, x ∈ {1, 2, 3}}. Substitute each input: the pairs are {(1, 2), (2, 5), (3, 8)}. The same rule with a different domain is a different relation. A rule can give two images for one input, as x = y^2 does when x = 4 gives y = 2 or y = -2.

Examples

A relation has the ordered pairs {(2, 5), (3, 5), (4, 7), (6, 9)} and its co-domain is {5, 7, 8, 9}. (a) State the domain and the range. (b) What is the image of 3? (c) Which member of the co-domain is not in the range? (d) Name the type of relation.

(a) The domain is the set of first numbers: {2, 3, 4, 6}. The range is the set of second numbers, each listed once: {5, 7, 9}. (b) The pair (3, 5) gives 5 as the image of 3. (c) The number 8 is in the co-domain, but no pair has 8 as its second number, so no arrow reaches it and it is not in the range. (d) No input has two images, but 5 is the image of both 2 and 3, so two inputs share one output. The relation is many-one.

A relation is defined by y = (x - 2)^2 with x ∈ {0, 1, 2, 3, 4}, and its co-domain is {0, 1, 2, 3, 4, 5}. (a) Write it as ordered pairs. (b) State the range. (c) How many arrows does its arrow diagram have, and which co-domain members are not reached? (d) Name the type. (e) A student plots the points and draws a smooth curve through them. What is wrong?

(a) Substitute each input: x = 0 gives (0 - 2)^2 = 4, x = 1 gives 1, x = 2 gives 0, x = 3 gives 1 and x = 4 gives 4. The pairs are {(0, 4), (1, 1), (2, 0), (3, 1), (4, 4)}. (b) The outputs are 4, 1, 0, 1, 4, so the range is {0, 1, 4}. (c) One arrow for each pair gives 5 arrows. The co-domain members 2, 3 and 5 are not reached. (d) The output 1 comes from both 1 and 3, and the output 4 comes from both 0 and 4, but no input has two images, so the relation is many-one. (e) The domain is only those 5 numbers, so the graph is exactly 5 separate points. Numbers such as 0.5 are not inputs, so no curve belongs to this relation.

Now let's water it

Session runs notes to flashcards to quiz back-to-back.

Where this comes from