2.1 Cartesian Products of Sets
An ordered pair $(a,b)$ remembers which entry comes first. The set $A\times B$ of all such pairs has $n(A)\cdot n(B)$ elements, and $\mathbb{R}\times\mathbb{R}$ is the coordinate plane itself.
A canteen offers three main dishes โ idli, dosa and poha โ and two drinks โ tea and coffee. A "combo" is one dish together with one drink, so the canteen has six combos: (idli, tea), (idli, coffee), (dosa, tea), and so on. Each combo is a pair, and the order in which we write it carries meaning: the first entry is always the dish, the second always the drink. Writing (tea, idli) would break the convention and confuse the kitchen.
The same structure appears whenever two independent choices are made together: a square of a chessboard is a pair (file, rank) such as (e, 4); a point of the plane is a pair $(x,y)$ of numbers; the outcome of throwing a red die and a blue die is a pair such as $(3,5)$. In this section we make "pair" precise, collect all possible pairs into a new set called the Cartesian product, and learn to count and picture it. Relations and functions (Sections 2.2 and 2.3) will be chosen from inside such products.
Ordered Pairs
An ordered pair $(a,b)$ is a pair of objects written in a definite order: $a$ is its first component (or first element) and $b$ its second component. Two ordered pairs are equal exactly when their corresponding components are equal: $$(a,b)=(c,d)\quad\iff\quad a=c\ \text{ and }\ b=d.$$
So $(2,5)\ne(5,2)$: the components are the same numbers, but in different positions. Contrast this with sets, where $\{2,5\}=\{5,2\}$ because a set has no order. The rule of equality turns one statement about pairs into two equations about numbers โ which is how most problems on ordered pairs are solved.
The Cartesian Product of Two Sets
Let $A$ and $B$ be non-empty sets. The Cartesian product $A\times B$ (read "$A$ cross $B$") is the set of all ordered pairs whose first component is in $A$ and whose second component is in $B$: $$A\times B=\{(a,b) : a\in A,\ b\in B\}.$$ If $A=\phi$ or $B=\phi$, we put $A\times B=\phi$. The product $A\times A$ is also written $A^2$.
If $A$ and $B$ are finite sets with $n(A)=p$ and $n(B)=q$, then $$n(A\times B)=p\,q=n(A)\cdot n(B).$$ If one of $A$, $B$ is infinite and the other is non-empty, then $A\times B$ is infinite.
Proof. Arrange the pairs in a table with one row for each $a\in A$ and one column for each $b\in B$, writing $(a,b)$ where row $a$ meets column $b$. Every pair of $A\times B$ appears in exactly one cell โ its first component fixes the row and its second fixes the column โ and every cell holds a pair of $A\times B$. The table has $p$ rows of $q$ cells each, so $p\,q$ cells in all. If $B$ is infinite and $a\in A$, the pairs $(a,b)$ with $b\in B$ are already infinitely many (and similarly if $A$ is infinite). $\blacksquare$
(b) If $n(A)=4$ and $n(A\times B)=20$, find $n(B)$ and $n(B\times B)$.
An ordered triple $(a,b,c)$ has three components in a definite order, and $(a,b,c)=(d,e,f)$ exactly when $a=d$, $b=e$ and $c=f$. For sets $A$, $B$, $C$, $$A\times B\times C=\{(a,b,c) : a\in A,\ b\in B,\ c\in C\},$$ and, by the same table argument applied twice, $n(A\times B\times C)=n(A)\cdot n(B)\cdot n(C)$. In particular $\mathbb{R}\times\mathbb{R}\times\mathbb{R}$ is the set of points of space (Chapter 11).
Products of Sets of Real Numbers: the Plane
The most important Cartesian product is $\mathbb{R}\times\mathbb{R}=\{(x,y) : x,y\in\mathbb{R}\}$. Its elements are exactly the coordinates of points in the plane, which is why the plane of Class 10 coordinate geometry is called the Cartesian plane. Products of subsets of $\mathbb{R}$ therefore have pictures: if $A$ and $B$ are intervals, $A\times B$ is a rectangle; if one is a finite set, the picture is made of points or line segments.
For any sets $A$, $B$, $C$: $$A\times(B\cup C)=(A\times B)\cup(A\times C),$$ $$A\times(B\cap C)=(A\times B)\cap(A\times C),$$ $$A\times(B-C)=(A\times B)-(A\times C).$$
Proof of the second law. For any ordered pair $(x,y)$: $$\begin{aligned}(x,y)\in A\times(B\cap C)&\iff x\in A \text{ and } y\in B \text{ and } y\in C\\&\iff (x\in A \text{ and } y\in B) \text{ and } (x\in A \text{ and } y\in C)\\&\iff (x,y)\in(A\times B)\cap(A\times C).\end{aligned}$$ The other two are proved in the same way (Exercise III). $\blacksquare$
1. Order matters. $(1,2)\ne(2,1)$, and $A\times B\ne B\times A$ unless $A=B$ (or one of them is empty).
2. Multiply, do not add. $n(A\times B)=n(A)\cdot n(B)$, not $n(A)+n(B)$. With $3$ dishes and $2$ drinks there are $6$ combos, not $5$.
3. A pair is one element. $(1,2)$ is a single element of $A\times B$, while $\{1,2\}$ is a set with two elements. Do not write $A\times B=\{1,2,x,y\}$.
4. The empty set kills the product. $A\times\phi=\phi$: with no second component available, no pair can be formed.
5. Same brackets, different meanings. $(1,3)$ may be an ordered pair (a point) or an open interval. Context decides; in this chapter, a pair inside $A\times B$ is always an ordered pair.
Exercises
- 1 $(x+1,\ y-2)=(3,\ 1)$
- 2 $(2x,\ x+y)=(6,\ 2)$
- 3 $(x-y,\ x+y)=(6,\ 10)$
- 4 $(x^2,\ y)=(4,\ x)$ โ find all solutions.
- 5 Is $(1,2)=(2,1)$? Is $\{1,2\}=\{2,1\}$? Explain the difference.
- 1 $A=\{a,b\}$, $B=\{1,2,3\}$. Write $A\times B$ and $B\times A$.
- 2 $A=\{0,1\}$. Write $A\times A$ and find $n(A\times A\times A)$.
- 3 $n(A)=4$, $n(B)=5$. Find $n(A\times B)$, $n(B\times A)$ and $n(A\times A)$.
- 4 $A\times A$ has $9$ elements, two of which are $(-1,0)$ and $(0,1)$. Find $A$ and the remaining elements of $A\times A$.
- 5 $A\times B=\{(p,x),(p,y),(q,x),(q,y)\}$. Find $A$ and $B$.
- 6 $G=\{7,8\}$, $H=\{5,4,2\}$. Write $G\times H$ and $H\times G$.
- 7 If $A\times B=\phi$, what can you say about $A$ and $B$?
- 8 $n(A)=2$, $n(B)=3$, $n(C)=4$. Find $n(A\times B\times C)$.
- 9 If $n(A\times B)=15$ and $n(A)\gt n(B)\gt1$, find $n(A)$ and $n(B)$.
- 1 $A=\{1,2\}$, $B=\{3,4\}$, $C=\{4,5\}$. Find $A\times(B\cap C)$ and $(A\times B)\cap(A\times C)$.
- 2 With the sets of part 1, find $A\times(B\cup C)$ and check its number of elements with Theorem 2.1.
- 3 Prove that $A\times(B\cup C)=(A\times B)\cup(A\times C)$.
- 4 If $A\subset B$, show that $A\times C\subset B\times C$.
- 5 Describe $\{2\}\times\mathbb{R}$ and $\mathbb{R}\times\{-1\}$ in the plane.
- 6 Describe $[0,1]\times[0,1]$ in the plane and find its area.
- 7 $A=\{-1,1\}$. Plot $A\times A$ and show that its points are the corners of a square. Find the area of that square.
- 8 Is $(2,3)\in[1,2)\times[3,5]$? Is $(1,5)$?
- 1 Canteen. A canteen has $4$ kinds of sandwich and $3$ drinks. Describe the set of "one sandwich + one drink" combos as a Cartesian product and count it.
- 2 Chess. The files of a chessboard are $F=\{a,b,\dots,h\}$ and the ranks are $R=\{1,2,\dots,8\}$. Which product is the set of squares, and how many squares are there? Which square is $(e,4)$?
- 3 Dice. A red and a blue die are thrown. Write the set of outcomes as a Cartesian product, find its number of elements, and list the outcomes with sum $4$.
- 4 Codes. A locker code is one digit followed by one capital English letter, e.g. $(7,K)$. How many codes are possible?
- 5 Seating. In an auditorium the rows are labelled A to P and each row has seats numbered $1$ to $24$. How many seats are there? Write the set of seats in row C as a product.
How this is examined: Board papers ask for the values of unknowns from equal ordered pairs (1 mark), for $A\times B$ in roster form and $n(A\times B)$ (2 marks), and for a verification of a product law such as $A\times(B\cap C)=(A\times B)\cap(A\times C)$ (3 marks). JEE combines products with intersections and counting.
E1. Board ยท 1 mark If $(a+2,\ b-3)=(5,\ 1)$, then $a+b$ equals (A) $7$ (B) $3$ (C) $4$ (D) $1$
E2. Board ยท 2 marks Let $A=\{1,2\}$ and $B=\{2,3\}$. Write $A\times B$ and $B\times A$, and show that $A\times B\ne B\times A$.
E3. Board ยท 3 marks Let $A=\{1,2,3\}$, $B=\{3,4\}$ and $C=\{4,5,6\}$. Find (i) $A\times(B\cap C)$ (ii) $(A\times B)\cap(A\times C)$ (iii) $A\times(B\cup C)$, giving the number of elements in (iii).
E4. JEE Main Sets $A$ and $B$ have $3$ and $4$ elements respectively, and $A\cap B$ has $2$ elements. The number of elements of $(A\times B)\cap(B\times A)$ is (A) $4$ (B) $6$ (C) $9$ (D) $12$
E5. JEE Main Numerical value. Let $A=\{1,2,3,4\}$ and $B=\{1,2,3\}$. Find the number of elements $(a,b)\in A\times B$ for which $a+b$ is even.
E6. JEE Advanced One or more options correct. For non-empty sets $A$, $B$, $C$, which statements are always true? (A) $A\times(B\cup C)=(A\times B)\cup(A\times C)$ (B) $(A\times B)\cap(B\times A)=(A\cap B)\times(A\cap B)$ (C) $A\times B=B\times A$ (D) if $A\times B=A\times C$ then $B=C$
Research question. How do everyday "grid reference" systems โ map grids, stadium and cinema seats, chessboards, spreadsheet cells such as C7 โ use Cartesian products, and how large are they?
Why it matters. Any system that names an object by two independent labels is a Cartesian product, and $n(A\times B)=n(A)\cdot n(B)$ tells its designers how many objects it can name. Spreadsheet software, for example, must label over a million rows and thousands of columns; railway coaches label berths by (coach, berth number).
What to do.
- Choose two grid systems you can observe: a cinema seating plan, a city map with a lettered grid, a spreadsheet, a parking lot or a railway coach chart.
- For each, identify the two sets $A$ and $B$ whose product labels the objects, and state which component comes first.
- Compute $n(A\times B)$ and compare it with the actual number of objects. Explain any difference (missing seats, aisles, reserved cells).
- Design a labelling system of your own for a school hall of $600$ seats as a product $A\times B$, and justify your choice of $n(A)$ and $n(B)$.
Tools: Phone camera for seating plans; a spreadsheet app
Hand in: A one-page table (system, $A$, $B$, $n(A\times B)$, actual count) and your hall design.
Going further. A spreadsheet column label runs A, โฆ, Z, AA, AB, โฆ, ZZ, AAA, โฆ How many columns can be labelled with at most three letters? (Each length is itself a product: $26$, $26\times26$, $26\times26\times26$.)
๐งช Self-check quiz
Q1. If $(x,3)=(2,y)$, then
Q2. If $n(A)=3$ and $n(B)=2$, then $n(A\times B)$ is
Q3. Which of these is an element of $\{1,2\}\times\{3\}$?
Q4. For any set $A$, $A\times\phi$ equals
Q5. In the Cartesian plane, $[0,2]\times[0,1]$ is