How to use these solu­tions

These are the worked solu­tions to the Prac­tice ques­tions in the les­son Carte­sian Prod­ucts and Rela­tions. Attempt each ques­tion on your own first, then read the solu­tion step by step and com­pare. Most ques­tions here are about care­ful list­ing, so write out every pair your­self and count them.

Ques­tion 1: Equal ordered pairs

The prob­lem

Find xx and yy:

(a) (2x+1, y−3)=(7, 5)(2x + 1,\ y - 3) = (7,\ 5)

(b) (x3+1, y−23)=(53, 13)\displaystyle \left(\frac{x}{3} + 1,\ y - \frac{2}{3}\right) = \left(\frac{5}{3},\ \frac{1}{3}\right)

Under­stand­ing the prob­lem

Two ordered pairs are equal only when their first entries are equal and their sec­ond entries are equal. Each part there­fore gives two sim­ple equa­tions.

The idea

Use (a,b)=(c,d)  ⟺  a=c(a, b) = (c, d) \iff a = c and b=db = d.

Step-by-step solu­tion

Part (a)

Step 1. Equate the first entries and solve for xx.

2x+1=7  ⇒  2x=6  ⇒  x=32x + 1 = 7 \;\Rightarrow\; 2x = 6 \;\Rightarrow\; x = 3

Step 2. Equate the sec­ond entries and solve for yy.

y−3=5  ⇒  y=8y - 3 = 5 \;\Rightarrow\; y = 8

Part (b)

Step 1. First entries:

x3+1=53  ⇒  x3=53−1=23  ⇒  x=2\displaystyle \frac{x}{3} + 1 = \frac{5}{3} \;\Rightarrow\; \frac{x}{3} = \frac{5}{3} - 1 = \frac{2}{3} \;\Rightarrow\; x = 2

Step 2. Sec­ond entries:

y−23=13  ⇒  y=13+23=1\displaystyle y - \frac{2}{3} = \frac{1}{3} \;\Rightarrow\; y = \frac{1}{3} + \frac{2}{3} = 1

Check­ing the answer

(a) (2⋅3+1, 8−3)=(7,5)(2 \cdot 3 + 1,\ 8 - 3) = (7, 5). (b) (23+1, 1−23)=(53,13)\displaystyle \left(\tfrac{2}{3} + 1,\ 1 - \tfrac{2}{3}\right) = \left(\tfrac{5}{3}, \tfrac{1}{3}\right). Both match.

Answer

(a) x=3x = 3, y=8y = 8 (b) x=2x = 2, y=1y = 1

Ques­tion 2: Writ­ing A×BA \times B and B×AB \times A

The prob­lem

A={−1,1}A = \{-1, 1\}, B={0,2,4}B = \{0, 2, 4\}. Write A×BA \times B and B×AB \times A. Are they equal?

Under­stand­ing the prob­lem

A×BA \times B is the set of all ordered pairs whose first entry comes from AA and sec­ond entry from BB. B×AB \times A reverses the roles.

The idea

List sys­tem­at­i­cally: fix the first entry, run through all sec­ond entries, then move to the next first entry. Expect n(A) n(B)=2×3=6n(A)\,n(B) = 2 \times 3 = 6 pairs each time.

Step-by-step solu­tion

Step 1. Pair each ele­ment of AA with each ele­ment of BB.

A×B={(−1,0),(−1,2),(−1,4),(1,0),(1,2),(1,4)}A \times B = \{(-1, 0), (-1, 2), (-1, 4), (1, 0), (1, 2), (1, 4)\}

Step 2. Pair each ele­ment of BB with each ele­ment of AA.

B×A={(0,−1),(0,1),(2,−1),(2,1),(4,−1),(4,1)}B \times A = \{(0, -1), (0, 1), (2, -1), (2, 1), (4, -1), (4, 1)\}

Step 3. Com­pare. (−1,0)(-1, 0) is in A×BA \times B but not in B×AB \times A (there, −1-1 never comes first). So the sets are dif­fer­ent.

Check­ing the answer

Each list has 66 pairs, which equals 2×32 \times 3. No pair is repeated.

Answer

A×BA \times B and B×AB \times A are as listed above (6 pairs each); they are not equal.

Com­mon mis­take to avoid

Think­ing (a,b)(a, b) and (b,a)(b, a) are the same. In an ordered pair the order mat­ters.

Ques­tion 3: Count­ing pairs and rela­tions

The prob­lem

AA has 44 ele­ments and BB has 33. How many ele­ments are in A×BA \times B? How many rela­tions are there from AA to BB?

Under­stand­ing the prob­lem

A rela­tion from AA to BB is any sub­set of A×BA \times B, includ­ing the empty set and the whole of A×BA \times B.

The idea

n(A×B)=n(A) n(B)n(A \times B) = n(A)\,n(B). A set with mm ele­ments has 2m2^m sub­sets, because each ele­ment is either in or out.

Step-by-step solu­tion

Step 1. Count the pairs.

n(A×B)=4×3=12n(A \times B) = 4 \times 3 = 12

Step 2. Each of the 1212 pairs can be included or left out of a rela­tion: 22 choices each, inde­pen­dently.

number of relations=212=4096\text{number of relations} = 2^{12} = 4096

Check­ing the answer

Small case check: with n(A)=1n(A) = 1 and n(B)=1n(B) = 1 there is one pair and 21=22^1 = 2 rela­tions: ∅\varnothing and {(a,b)}\{(a, b)\}. The rule works.

Answer

1212 ele­ments; 40964096 rela­tions.

Ques­tion 4: Recov­er­ing AA from A×AA \times A

The prob­lem

A×AA \times A has 99 ele­ments, two of which are (2,5)(2, 5) and (5,7)(5, 7). Find AA and the remain­ing ele­ments.

Under­stand­ing the prob­lem

n(A×A)=n(A)2=9n(A \times A) = n(A)^2 = 9, so AA has 33 ele­ments. Every entry of a pair in A×AA \times A must belong to AA.

The idea

Read off the ele­ments of AA from the given pairs, then list all 99 pairs and remove the two already given.

Step-by-step solu­tion

Step 1. Find n(A)n(A).

n(A)2=9  ⇒  n(A)=3n(A)^2 = 9 \;\Rightarrow\; n(A) = 3

Step 2. From (2,5)(2, 5), both 22 and 55 are in AA. From (5,7)(5, 7), 77 is in AA. That is three dif­fer­ent ele­ments, so

A={2,5,7}A = \{2, 5, 7\}

Step 3. List all of A×AA \times A.

{(2,2),(2,5),(2,7),(5,2),(5,5),(5,7),(7,2),(7,5),(7,7)}\{(2,2), (2,5), (2,7), (5,2), (5,5), (5,7), (7,2), (7,5), (7,7)\}

Step 4. Remove (2,5)(2, 5) and (5,7)(5, 7). The remain­ing seven are

(2,2), (2,7), (5,2), (5,5), (7,2), (7,5), (7,7)(2, 2),\ (2, 7),\ (5, 2),\ (5, 5),\ (7, 2),\ (7, 5),\ (7, 7)

Check­ing the answer

2+7=92 + 7 = 9 pairs in total, match­ing n(A×A)=9n(A \times A) = 9.

Answer

A={2,5,7}A = \{2, 5, 7\}; the other ele­ments are (2,2),(2,7),(5,2),(5,5),(7,2),(7,5),(7,7)(2,2), (2,7), (5,2), (5,5), (7,2), (7,5), (7,7).

Ques­tion 5: Ver­i­fy­ing A×C⊂B×DA \times C \subset B \times D

The prob­lem

A={1,2}A = \{1, 2\}, B={1,2,3,4}B = \{1, 2, 3, 4\}, C={5,6}C = \{5, 6\}, D={5,6,7,8}D = \{5, 6, 7, 8\}. Ver­ify A×C⊂B×DA \times C \subset B \times D.

Under­stand­ing the prob­lem

To show one set is a sub­set of another, we must show every ele­ment of the first set also lies in the sec­ond.

The idea

Notice A⊂BA \subset B and C⊂DC \subset D. Then any pair built from AA and CC is auto­mat­i­cally a pair built from BB and DD. We can also check by list­ing.

Step-by-step solu­tion

Step 1. List A×CA \times C.

A×C={(1,5),(1,6),(2,5),(2,6)}A \times C = \{(1, 5), (1, 6), (2, 5), (2, 6)\}

Step 2. Take any pair (a,c)(a, c) from this list. Its first entry aa is 11 or 22, both in BB. Its sec­ond entry cc is 55 or 66, both in DD.

Step 3. So (a,c)(a, c) has first entry in BB and sec­ond entry in DD, which means (a,c)∈B×D(a, c) \in B \times D. This holds for all four pairs, so A×C⊂B×DA \times C \subset B \times D.

Check­ing the answer

B×DB \times D has 1616 pairs and includes (1,5),(1,6),(2,5),(2,6)(1,5), (1,6), (2,5), (2,6) in its first rows.

Answer

Every pair of A×CA \times C has its first entry in A⊂BA \subset B and sec­ond in C⊂DC \subset D, so A×C⊂B×DA \times C \subset B \times D.

Ques­tion 6: A rela­tion in ros­ter form

The prob­lem

On A={1,2,3,…,12}A = \{1, 2, 3, \ldots, 12\} define R={(a,b):b=2a−1}R = \{(a, b) : b = 2a - 1\}. Write RR in ros­ter form; find its domain and range.

Under­stand­ing the prob­lem

"On AA" means both aa and bb must be in AA. So b=2a−1b = 2a - 1 must itself be a num­ber from 11 to 1212. Ros­ter form means list­ing every pair.

The idea

Try a=1,2,3,…a = 1, 2, 3, \dots and keep only the pairs where 2a−1≤122a - 1 \le 12.

Step-by-step solu­tion

Step 1. Find which aa are allowed.

2a−1≤12  ⇒  2a≤13  ⇒  a≤6.52a - 1 \le 12 \;\Rightarrow\; 2a \le 13 \;\Rightarrow\; a \le 6.5

So a=1,2,3,4,5,6a = 1, 2, 3, 4, 5, 6.

Step 2. Com­pute bb for each.

aa 1 2 3 4 5 6
b=2a−1b = 2a - 1 1 3 5 7 9 11

Step 3. Write the rela­tion, domain (first entries) and range (sec­ond entries).

R={(1,1),(2,3),(3,5),(4,7),(5,9),(6,11)}Domain={1,2,3,4,5,6}Range={1,3,5,7,9,11}\begin{aligned} R &= \{(1, 1), (2, 3), (3, 5), (4, 7), (5, 9), (6, 11)\}\\ \text{Domain} &= \{1, 2, 3, 4, 5, 6\}\\ \text{Range} &= \{1, 3, 5, 7, 9, 11\} \end{aligned}

Check­ing the answer

a=7a = 7 would give b=13b = 13, which is not in AA, so stop­ping at 66 is right. The codomain is all of AA, but the range is only the odd num­bers up to 1111.

Answer

R={(1,1),(2,3),(3,5),(4,7),(5,9),(6,11)}R = \{(1,1), (2,3), (3,5), (4,7), (5,9), (6,11)\}; domain {1,…,6}\{1, \ldots, 6\}; range {1,3,5,7,9,11}\{1, 3, 5, 7, 9, 11\}.

Com­mon mis­take to avoid

Includ­ing (7,13)(7, 13) and beyond. Both entries must lie in AA.

Ques­tion 7: Primes and cubes

The prob­lem

R={(x,x3):x is a prime less than 8}R = \{(x, x^3) : x \text{ is a prime less than } 8\}. Write RR and its range.

Under­stand­ing the prob­lem

We need the primes below 88, and for each we pair it with its cube. Recall that 11 is not a prime.

The idea

List the primes, cube each, and write the pairs. The range is the set of sec­ond entries.

Step-by-step solu­tion

Step 1. Primes less than 88: 2,3,5,72, 3, 5, 7.

Step 2. Their cubes: 23=82^3 = 8, 33=273^3 = 27, 53=1255^3 = 125, 73=3437^3 = 343.

Step 3. Write RR and the range.

R={(2,8),(3,27),(5,125),(7,343)}Range={8,27,125,343}\begin{aligned} R &= \{(2, 8), (3, 27), (5, 125), (7, 343)\}\\ \text{Range} &= \{8, 27, 125, 343\} \end{aligned}

Check­ing the answer

44 primes give 44 pairs. 7×7×7=49×7=3437 \times 7 \times 7 = 49 \times 7 = 343.

Answer

R={(2,8),(3,27),(5,125),(7,343)}R = \{(2, 8), (3, 27), (5, 125), (7, 343)\}; range {8,27,125,343}\{8, 27, 125, 343\}.

Ques­tion 8: Read­ing an arrow dia­gram

The prob­lem

From an arrow dia­gram with 1→41 \to 4, 2→52 \to 5, 3→43 \to 4, 3→63 \to 6: write RR, its domain and range.

Under­stand­ing the prob­lem

Each arrow a→ba \to b stands for one ordered pair (a,b)(a, b) in RR. An ele­ment can send more than one arrow (here 33 sends two).

The idea

Turn each arrow into a pair, then read off the first and sec­ond entries.

Step-by-step solu­tion

Step 1. Write one pair per arrow.

R={(1,4),(2,5),(3,4),(3,6)}R = \{(1, 4), (2, 5), (3, 4), (3, 6)\}

Step 2. Domain: the first entries, each listed once.

Domain={1,2,3}\text{Domain} = \{1, 2, 3\}

Step 3. Range: the sec­ond entries, each listed once (44 appears twice but is writ­ten once).

Range={4,5,6}\text{Range} = \{4, 5, 6\}

Check­ing 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)}R = \{(1, 4), (2, 5), (3, 4), (3, 6)\}; domain {1,2,3}\{1, 2, 3\}; range {4,5,6}\{4, 5, 6\}.

Ques­tion 9: Test­ing mem­ber­ship of a rela­tion

The prob­lem

On Z\mathbf{Z}, R={(a,b):a−b is a multiple of 3}R = \{(a, b) : a - b \text{ is a multiple of } 3\}. Is (7,1)∈R(7, 1) \in R? (5,−1)(5, -1)? (2,6)(2, 6)?

Under­stand­ing the prob­lem

A pair belongs to RR exactly when the first entry minus the sec­ond entry is a mul­ti­ple of 33 (such as …,−6,−3,0,3,6,…\dots, -6, -3, 0, 3, 6, \dots).

The idea

Com­pute a−ba - b for each pair and check divis­i­bil­ity by 33.

Step-by-step solu­tion

Step 1. (7,1)(7, 1): 7−1=6=3×27 - 1 = 6 = 3 \times 2. A mul­ti­ple of 33, so yes.

Step 2. (5,−1)(5, -1): 5−(−1)=5+1=65 - (-1) = 5 + 1 = 6. A mul­ti­ple of 33, so yes.

Step 3. (2,6)(2, 6): 2−6=−42 - 6 = -4. Not a mul­ti­ple of 33, so no.

Check­ing the answer

Be care­ful with the sign in Step 2: sub­tract­ing −1-1 means adding 11.

Answer

(7,1)∈R(7, 1) \in R: yes. (5,−1)∈R(5, -1) \in R: yes. (2,6)∈R(2, 6) \in R: no.

Ques­tion 10: True or false

The prob­lem

True or false: if (a,b)∈A×B(a, b) \in A \times B and (b,c)∈B×C(b, c) \in B \times C, then (a,c)∈A×C(a, c) \in A \times C.

Under­stand­ing the prob­lem

We must decide whether the con­clu­sion always fol­lows. To show "true" we give a rea­son that works in every case; to show "false" one coun­terex­am­ple would be enough.

The idea

Unpack what mem­ber­ship of a Carte­sian prod­uct means: (a,b)∈A×B(a, b) \in A \times B says exactly a∈Aa \in A and b∈Bb \in B.

Step-by-step solu­tion

Step 1. From (a,b)∈A×B(a, b) \in A \times B we get a∈Aa \in A (and b∈Bb \in B).

Step 2. From (b,c)∈B×C(b, c) \in B \times C we get c∈Cc \in C (and b∈Bb \in B).

Step 3. Now a∈Aa \in A and c∈Cc \in C, so by the def­i­n­i­tion of the Carte­sian prod­uct, (a,c)∈A×C(a, c) \in A \times C.

Check­ing the answer

Exam­ple: A={1}A = \{1\}, B={2}B = \{2\}, C={3}C = \{3\}. (1,2)∈A×B(1, 2) \in A \times B, (2,3)∈B×C(2, 3) \in B \times C, and (1,3)∈A×C(1, 3) \in A \times C.

Answer

True.