How to use these solutions#
These are the worked solutions to the Practice questions in the lesson Cartesian Products and Relations. Attempt each question on your own first, then read the solution step by step and compare. Most questions here are about careful listing, so write out every pair yourself and count them.
Question 1: Equal ordered pairs#
The problem#
Find x and y:
(a) (2x+1, y−3)=(7, 5)
(b) (3x+1, y−32)=(35, 31)
Understanding the problem#
Two ordered pairs are equal only when their first entries are equal and their second entries are equal. Each part therefore gives two simple equations.
The idea#
Use (a,b)=(c,d)⟺a=c and b=d.
Step-by-step solution#
Part (a)
Step 1. Equate the first entries and solve for x.
2x+1=7⇒2x=6⇒x=3
Step 2. Equate the second entries and solve for y.
y−3=5⇒y=8
Part (b)
Step 1. First entries:
3x+1=35⇒3x=35−1=32⇒x=2
Step 2. Second entries:
y−32=31⇒y=31+32=1
Checking the answer#
(a) (2⋅3+1, 8−3)=(7,5). (b) (32+1, 1−32)=(35,31). Both match.
Answer#
(a) x=3, y=8 (b) x=2, y=1
Question 2: Writing A×B and B×A#
The problem#
A={−1,1}, B={0,2,4}. Write A×B and B×A. Are they equal?
Understanding the problem#
A×B is the set of all ordered pairs whose first entry comes from A and second entry from B. B×A reverses the roles.
The idea#
List systematically: fix the first entry, run through all second entries, then move to the next first entry. Expect n(A)n(B)=2×3=6 pairs each time.
Step-by-step solution#
Step 1. Pair each element of A with each element of B.
A×B={(−1,0),(−1,2),(−1,4),(1,0),(1,2),(1,4)}
Step 2. Pair each element of B with each element of A.
B×A={(0,−1),(0,1),(2,−1),(2,1),(4,−1),(4,1)}
Step 3. Compare. (−1,0) is in A×B but not in B×A (there, −1 never comes first). So the sets are different.
Checking the answer#
Each list has 6 pairs, which equals 2×3. No pair is repeated.
Answer#
A×B and B×A are as listed above (6 pairs each); they are not equal.
Common mistake to avoid#
Thinking (a,b) and (b,a) are the same. In an ordered pair the order matters.
Question 3: Counting pairs and relations#
The problem#
A has 4 elements and B has 3. How many elements are in A×B? How many relations are there from A to B?
Understanding the problem#
A relation from A to B is any subset of A×B, including the empty set and the whole of A×B.
The idea#
n(A×B)=n(A)n(B). A set with m elements has 2m subsets, because each element is either in or out.
Step-by-step solution#
Step 1. Count the pairs.
n(A×B)=4×3=12
Step 2. Each of the 12 pairs can be included or left out of a relation: 2 choices each, independently.
number of relations=212=4096
Checking the answer#
Small case check: with n(A)=1 and n(B)=1 there is one pair and 21=2 relations: ∅ and {(a,b)}. The rule works.
Answer#
12 elements; 4096 relations.
Question 4: Recovering A from A×A#
The problem#
A×A has 9 elements, two of which are (2,5) and (5,7). Find A and the remaining elements.
Understanding the problem#
n(A×A)=n(A)2=9, so A has 3 elements. Every entry of a pair in A×A must belong to A.
The idea#
Read off the elements of A from the given pairs, then list all 9 pairs and remove the two already given.
Step-by-step solution#
Step 1. Find n(A).
n(A)2=9⇒n(A)=3
Step 2. From (2,5), both 2 and 5 are in A. From (5,7), 7 is in A. That is three different elements, so
A={2,5,7}
Step 3. List all of A×A.
{(2,2),(2,5),(2,7),(5,2),(5,5),(5,7),(7,2),(7,5),(7,7)}
Step 4. Remove (2,5) and (5,7). The remaining seven are
(2,2), (2,7), (5,2), (5,5), (7,2), (7,5), (7,7)
Checking the answer#
2+7=9 pairs in total, matching n(A×A)=9.
Answer#
A={2,5,7}; the other elements are (2,2),(2,7),(5,2),(5,5),(7,2),(7,5),(7,7).
Question 5: Verifying A×C⊂B×D#
The problem#
A={1,2}, B={1,2,3,4}, C={5,6}, D={5,6,7,8}. Verify A×C⊂B×D.
Understanding the problem#
To show one set is a subset of another, we must show every element of the first set also lies in the second.
The idea#
Notice A⊂B and C⊂D. Then any pair built from A and C is automatically a pair built from B and D. We can also check by listing.
Step-by-step solution#
Step 1. List A×C.
A×C={(1,5),(1,6),(2,5),(2,6)}
Step 2. Take any pair (a,c) from this list. Its first entry a is 1 or 2, both in B. Its second entry c is 5 or 6, both in D.
Step 3. So (a,c) has first entry in B and second entry in D, which means (a,c)∈B×D. This holds for all four pairs, so A×C⊂B×D.
Checking the answer#
B×D has 16 pairs and includes (1,5),(1,6),(2,5),(2,6) in its first rows.
Answer#
Every pair of A×C has its first entry in A⊂B and second in C⊂D, so A×C⊂B×D.
The problem#
On A={1,2,3,…,12} define R={(a,b):b=2a−1}. Write R in roster form; find its domain and range.
Understanding the problem#
"On A" means both a and b must be in A. So b=2a−1 must itself be a number from 1 to 12. Roster form means listing every pair.
The idea#
Try a=1,2,3,… and keep only the pairs where 2a−1≤12.
Step-by-step solution#
Step 1. Find which a are allowed.
2a−1≤12⇒2a≤13⇒a≤6.5
So a=1,2,3,4,5,6.
Step 2. Compute b for each.
Step 3. Write the relation, domain (first entries) and range (second entries).
RDomainRange={(1,1),(2,3),(3,5),(4,7),(5,9),(6,11)}={1,2,3,4,5,6}={1,3,5,7,9,11}
Checking the answer#
a=7 would give b=13, which is not in A, so stopping at 6 is right. The codomain is all of A, but the range is only the odd numbers up to 11.
Answer#
R={(1,1),(2,3),(3,5),(4,7),(5,9),(6,11)}; domain {1,…,6}; range {1,3,5,7,9,11}.
Common mistake to avoid#
Including (7,13) and beyond. Both entries must lie in A.
Question 7: Primes and cubes#
The problem#
R={(x,x3):x is a prime less than 8}. Write R and its range.
Understanding the problem#
We need the primes below 8, and for each we pair it with its cube. Recall that 1 is not a prime.
The idea#
List the primes, cube each, and write the pairs. The range is the set of second entries.
Step-by-step solution#
Step 1. Primes less than 8: 2,3,5,7.
Step 2. Their cubes: 23=8, 33=27, 53=125, 73=343.
Step 3. Write R and the range.
RRange={(2,8),(3,27),(5,125),(7,343)}={8,27,125,343}
Checking the answer#
4 primes give 4 pairs. 7×7×7=49×7=343.
Answer#
R={(2,8),(3,27),(5,125),(7,343)}; range {8,27,125,343}.
Question 8: Reading an arrow diagram#
The problem#
From an arrow diagram with 1→4, 2→5, 3→4, 3→6: write R, its domain and range.
Understanding the problem#
Each arrow a→b stands for one ordered pair (a,b) in R. An element can send more than one arrow (here 3 sends two).
The idea#
Turn each arrow into a pair, then read off the first and second entries.
Step-by-step solution#
Step 1. Write one pair per arrow.
R={(1,4),(2,5),(3,4),(3,6)}
Step 2. Domain: the first entries, each listed once.
Domain={1,2,3}
Step 3. Range: the second entries, each listed once (4 appears twice but is written once).
Range={4,5,6}
Checking the answer#
Four arrows, four pairs. Every arrow's tail is in the domain and every head is in the range.
Answer#
R={(1,4),(2,5),(3,4),(3,6)}; domain {1,2,3}; range {4,5,6}.
Question 9: Testing membership of a relation#
The problem#
On Z, R={(a,b):a−b is a multiple of 3}. Is (7,1)∈R? (5,−1)? (2,6)?
Understanding the problem#
A pair belongs to R exactly when the first entry minus the second entry is a multiple of 3 (such as …,−6,−3,0,3,6,…).
The idea#
Compute a−b for each pair and check divisibility by 3.
Step-by-step solution#
Step 1. (7,1): 7−1=6=3×2. A multiple of 3, so yes.
Step 2. (5,−1): 5−(−1)=5+1=6. A multiple of 3, so yes.
Step 3. (2,6): 2−6=−4. Not a multiple of 3, so no.
Checking the answer#
Be careful with the sign in Step 2: subtracting −1 means adding 1.
Answer#
(7,1)∈R: yes. (5,−1)∈R: yes. (2,6)∈R: no.
Question 10: True or false#
The problem#
True or false: if (a,b)∈A×B and (b,c)∈B×C, then (a,c)∈A×C.
Understanding the problem#
We must decide whether the conclusion always follows. To show "true" we give a reason that works in every case; to show "false" one counterexample would be enough.
The idea#
Unpack what membership of a Cartesian product means: (a,b)∈A×B says exactly a∈A and b∈B.
Step-by-step solution#
Step 1. From (a,b)∈A×B we get a∈A (and b∈B).
Step 2. From (b,c)∈B×C we get c∈C (and b∈B).
Step 3. Now a∈A and c∈C, so by the definition of the Cartesian product, (a,c)∈A×C.
Checking the answer#
Example: A={1}, B={2}, C={3}. (1,2)∈A×B, (2,3)∈B×C, and (1,3)∈A×C.
Answer#
True.