Relations and FunctionsCartesian Products of Sets
At the school's Diwali mela, Riya runs a dyeing stall. She has dye in two colours, red and blue, and three plain things to dye: a bag (b), a coat (c) and a shirt (s). Each customer picks one colour and one thing. How many different coloured things can Riya offer?
Call the set of colours A = {red, blue} and the set of things B = {b, c, s}. Throughout this chapter, elements of the first set are blue, elements of the second set are green, and the pairs that link them are purple.
Make every coloured thing Riya can offer. Tap a colour, then a thing — the pair lands on the grid. Stop when there is no new pair left to make.
You made 6
Definition 1: Let P and Q be two non-empty sets. The
So Riya's whole menu is = {(red, b), (red, c), (red, s), (blue, b), (blue, c), (blue, s)}. If either set is the
Codes on Number Plates
Order matters even more when pairs are used as codes. Suppose three states — Delhi (DL), Madhya Pradesh (MP) and Karnataka (KA) — make number-plate codes that start with a state from A = {DL, MP, KA} and end with a number from B = {01, 02, 03}.
Every dot of the grid is one code, so holds 3 × 3 = 9 codes: (DL, 01), (DL, 02), (DL, 03), (MP, 01), (MP, 02), (MP, 03), (KA, 01), (KA, 02) and (KA, 03).
Which of these is not a code in ?
Order is everything
(01, DL) has its entries the wrong way round: the first entry of a pair in must come from A. Swapping the two entries of an ordered pair gives a different pair, unless the two entries are equal. That is why and are, in general, different sets.
As a final illustration, take and . Now has 2 × 4 = 8 ordered pairs. When A and B are sets of
How Many Pairs?
Riya had 2 colours and 3 things, and got 2 × 3 = 6 pairs; the number plates had 3 × 3 = 9 codes. Let A have p elements and B have q elements.
Drag p and q. Find all four ways to make a product with exactly 12 ordered pairs.
Remarks
(i) Two ordered pairs are equal exactly when their first elements are equal and their second elements are equal: means and .
(ii) If and , then .
(iii) If A and B are non-empty and either of them is
(iv) Three sets can be multiplied as well: . Here (a, b, c) is called an
Two quick examples, one on equal pairs and one on order.
Example 1 : If , find the values of x and y.
Solution : Equal ordered pairs have equal first elements and equal second elements, so and . Hence
Example 2 : If P = {a, b, c} and Q = {r}, form the sets P × Q and Q × P. Are these two products equal?
Solution : By the definition, P × Q = {(a, r), (b, r), (c, r)} and Q × P = {(r, a), (r, b), (r, c)}. The pair (a, r) is
Products Meet Unions and Intersections
Example 3 : Let A = {1, 2, 3}, B = {3, 4} and C = {4, 5, 6}. Find
(i) (ii)
(iii) (iv)
Every dot of the grid below is a pair (a, y) with a from A. The blue bar marks the rows that belong to B and the green bar the rows that belong to C.
Tap each part, (i) to (iv), and watch which dots light up.
Solution : (i) , so .
(ii) A × B = {(1, 3), (1, 4), (2, 3), (2, 4), (3, 3), (3, 4)} and A × C = {(1, 4), (1, 5), (1, 6), (2, 4), (2, 5), (2, 6), (3, 4), (3, 5), (3, 6)}. The pairs in both lists are (1, 4), (2, 4) and (3, 4), so (A × B)
(iii) , so has 3 × 4 =
(iv) Putting the lists of A × B and A × C from part (ii) together gives the same twelve pairs, so (A × B) ∪ (A × C) = A × (B ∪ C).
Tip
What you just saw holds for all sets: and . The product "spreads over" intersections and unions.
Products of three sets, and the most famous product of all.
Example 4 : If P = {1, 2}, form the set P × P × P.
Solution : Each triplet has three places, and each place can hold 1 or 2, so there are 2 × 2 × 2 =
Example 5 : If R is the set of all real numbers, what do the products R × R and R × R × R represent?
Solution : is the set of coordinates of all the points of the
A well-known story says that
Example 6 : If A × B = {(p, q), (p, r), (m, q), (m, r)}, find A and B.
Solution : A is the set of
Speed Round: In or Out?
Read the two sets, then decide: is the pair in ? Or how many pairs does it have? After each answer you will see why.
Get five right to move on.