GRADE 10 · A4 PRINT VIEW
Relations and Functions · Learner pages
Use your browser Print command and select A4. Questions and answers have separate pages.
Lesson 1 · Cartesian products and relations
Write the Cartesian product of two sets, pick out a relation from it and count the possible relations.
Name or initials: Date:

A set is a collection of distinct objects, and n(A) is the number of elements in set A. A point on a graph is written as an ordered pair (x, y).
Order matters in a pair
The pairs (2, 5) and (5, 2) use the same two numbers but mark different points: 2 right and 5 up, or 5 right and 2 up. Two ordered pairs are equal only when first equals first and second equals second.
Pair every element with every element
Let A = {1, 2} and B = {x, y, z}. Pair each element of A with each element of B. That gives 2 rows of 3 pairs, so A × B has 2 × 3 = 6 ordered pairs. In general n(A × B) = n(A) × n(B).
A relation picks some pairs
Let A = {1, 2, 3} and B = {2, 4, 6}. The rule b = 2a keeps only (1, 2), (2, 4) and (3, 6) out of the 9 pairs in A × B. This subset is a relation R. Its domain is {1, 2, 3} and its range is {2, 4, 6}.
Count all possible relations
Every relation is a subset of A × B. For each pair you choose 'in' or 'out', so with n(A) = 2 and n(B) = 3 there are 2⁶ = 64 relations, including the empty relation. In general there are 2 to the power n(A) × n(B).
Worked example: Kavin has 3 shirts (red, blue, white) and 2 trousers (black, grey). Outfits are the ordered pairs in Shirts × Trousers: (red, black), (red, grey), (blue, black), (blue, grey), (white, black), (white, grey). That is 3 × 2 = 6 outfits.
PracticeChoose the correct answer and show your working in the space.
If n(A) = 3 and n(B) = 4, how many elements does A × B have?
○ 7○ 12○ 81
A = {1, 2} and B = {3}. Which set is A × B?
○ {(3, 1), (3, 2)}○ {1, 2, 3}○ {(1, 3), (2, 3)}
n(A) = 2 and n(B) = 2. How many different relations from A to B are there?
○ 4○ 8○ 16
Discuss: A × B has 15 elements and n(A) = 3. What is n(B)? Could A have had 2 elements instead? Explain using n(A × B) = n(A) × n(B).
Lesson 2 · Functions and their types
Test whether a relation is a function, find its range, and decide if it is one-one, onto or a bijection.
Name or initials: Date:

A relation from A to B is a set of ordered pairs (a, b) with a in A and b in B. Its range is the set of second elements used.
One input, exactly one output
Let A = {1, 2, 3, 4}, B = {4, 5, 6, 7, 8} and f(x) = x + 3. Each element of A gets exactly one image: 4, 5, 6, 7. So f is a function. The codomain is B, but the range is only {4, 5, 6, 7}.
Spot a relation that is not a function
A relation fails to be a function if some input has two images, or if some input has none. On a graph this is the vertical line test: a vertical line must not cut the graph twice.
Test one-one and onto
For f(x) = x + 3 from step 1, different inputs give different outputs, so f is one-one. But 8 in B has no input (x would be 5, which is not in A), so f is not onto.
A bijection does both
f: {1, 2, 3} → {2, 4, 6} with f(x) = 2x gives 2, 4, 6. The images are all different and they cover B, so f is one-one and onto: a bijection. Each element of A is matched with exactly one element of B, and none is left over.
Worked example: f: {−2, −1, 0, 1, 2} → {0, 1, 2, 3, 4} with f(x) = x². Images: 4, 1, 0, 1, 4, so the range is {0, 1, 4}. f(−2) = f(2), so f is not one-one. 2 and 3 are never reached, so f is not onto. It is still a function, because every input has exactly one image.
PracticeChoose the correct answer and show your working in the space.
Which set of ordered pairs is a function from {1, 2, 3}?
○ {(1, 4), (2, 4), (3, 4)}○ {(1, 4), (1, 5), (2, 6), (3, 7)}○ {(1, 4), (2, 5)}
f(x) = 3x − 2 with domain {0, 1, 2}. What is the range of f?
○ {0, 1, 2}○ {−2, 1, 4}○ {2, 5, 8}
A function f goes from {1, 2, 3} to {a, b, c, d}. Can f be onto?
○ Yes, if it is one-one○ Only if f is a constant function○ No, 3 inputs cannot reach 4 outputs
Discuss: Think of two rules on your class: each student → their roll number, and each student → their birth month. Which rule is one-one? Could either be onto the set of 12 months? Discuss.
Lesson 3 · Composition of functions
Find g∘f and f∘g for given functions and see that the order of composition matters.
Name or initials: Date:

For a function f, f(a) means the image of a: substitute a for x in the rule. If f(x) = x + 2, then f(4) = 6.
Chain two machines
Let f(x) = x + 2 and g(x) = 3x. Put 4 into f to get 6, then put 6 into g to get 18. This chain is (g∘f)(4) = g(f(4)) = g(6) = 18.
Find the formula
Replace x in g by the whole of f(x): g(f(x)) = 3(x + 2) = 3x + 6. Check with x = 4: 3 × 4 + 6 = 18, the same as step 1.
Swap the order
Now apply g first: f(g(x)) = 3x + 2. At x = 4 this gives 14, not 18. So f∘g and g∘f are usually different: composition is not commutative.
Grouping does not matter
Add h(x) = x − 1. With x = 5: h gives 4, g gives 12, f gives 14. Whether you first join f and g, or first join g and h, the answer is 14. Composition is associative: f∘(g∘h) = (f∘g)∘h.
Worked example: f(x) = 2x + 1 and g(x) = x². f∘g(x) = f(x²) = 2x² + 1. g∘f(x) = g(2x + 1) = (2x + 1)² = 4x² + 4x + 1. At x = 1: f∘g gives 3 but g∘f gives 9, so the two compositions differ.
PracticeChoose the correct answer and show your working in the space.
f(x) = x − 3 and g(x) = 2x. What is (g∘f)(5)?
○ 4○ 7○ 10
f(x) = x² and g(x) = x + 1. Which is (f∘g)(x)?
○ x² + 1○ (x + 1)²○ x² + x
f(x) = 4x and g(x) = x ÷ 2. Which is (f∘g)(x)?
○ 8x○ 4x + x ÷ 2○ 2x
Discuss: Find two functions f and g, different from each other, for which f∘g = g∘f. Try f(x) = x + 2 with g(x) = x + 5 and explain why the order does not matter there.
Final check · form A
Final checkWork on your own. Choose one answer for each question.
A = {p, q, r} and B = {1, 2}. How many ordered pairs are in B × A?
○ 5○ 6○ 8
A = {1, 2, 3}, B = {1, 4, 9} and R = {(a, b): b = a²}. What is R?
○ {(1, 1), (2, 4), (3, 9)}○ {(1, 1), (4, 2), (9, 3)}○ {(1, 1), (2, 2), (3, 3)}
f: {1, 2, 3, 4} → {1, 2, 3, 4} with f(x) = 5 − x. What kind of function is f?
○ One-one but not onto○ A bijection○ Neither one-one nor onto
f(x) = x² on the domain {−1, 0, 1}. Which statement is true?
○ f is one-one○ The range is {−1, 0, 1}○ The range is {0, 1}
f(x) = x + 4 and g(x) = x². What is (f∘g)(3)?
○ 49○ 12○ 13
f(x) = 2x and g(x) = x − 1. Which is (g∘f)(x)?
○ 2x − 1○ 2x − 2○ x − 2
Final check · form B
Final checkWork on your own. Choose one answer for each question.
n(A) = 4 and n(A × B) = 20. What is n(B)?
○ 16○ 5○ 24
The relation R = {(1, 3), (2, 5), (4, 9)}. What is its range?
○ {1, 2, 4}○ {1, 3, 2, 5, 4, 9}○ {3, 5, 9}
f: {a, b, c} → {1, 2} with f(a) = 1, f(b) = 2, f(c) = 1. What is f?
○ Onto but not one-one○ One-one but not onto○ Not a function
f(x) = 4x − 1 for x in {1, 2, 3}. Which number is in the range?
○ 4○ 7○ 8
f(x) = x − 5 and g(x) = 3x. What is (f∘g)(4)?
○ −3○ 12○ 7
f(x) = x + 1 and g(x) = x + 6. Which statement is true?
○ f∘g = g∘f, both equal x + 7○ f∘g(x) = x + 6○ g∘f(x) = 6x + 1
Original learning companion for selected outcomes of this chapter: Cartesian products and relations, functions with their domain, range and types (one-one, onto, bijection), and composition of functions. It does not reproduce the textbook, its examples or its exercise solutions.