Math Lab
Home/Class XI/Ch 2/Ordered pairs and Cartesian products

Ordered pairs and Cartesian products

To talk about relations such as "xx is less than yy" or "PP lies on the line y=2xy = 2x", we need a way to write a pair of objects in which order matters. The set {2,3}\{2, 3\} does not distinguish first from second. The ordered pair (2,3)(2, 3) does.

Definitions

An ordered pair (a,b)(a, b) is a pair of objects where aa is the first coordinate (or first component) and bb is the second coordinate.

Equality. Two ordered pairs are equal iff their first coordinates match and their second coordinates match: (a,b)=(c,d)    a=c and b=d.(a, b) = (c, d) \iff a = c \ \text{and}\ b = d.

In particular, (2,3)(3,2)(2, 3) \ne (3, 2) , order matters.

Given two sets AA and BB, the Cartesian product of AA and BB is A×B={(a,b):aA, bB}.A \times B = \{(a, b) : a \in A,\ b \in B\}. We read A×BA \times B as "A cross B". If either AA or BB is empty, A×B=A \times B = \varnothing.

We similarly define A×B×C={(a,b,c):aA,bB,cC}A \times B \times C = \{(a, b, c) : a \in A, b \in B, c \in C\} , ordered triples.

Size of the Cartesian product

Theorem. If AA and BB are finite sets, A×B=AB|A \times B| = |A| \cdot |B|.

Proof. Each element of A×BA \times B is a pair (a,b)(a, b). There are A|A| choices for aa and, independently, B|B| choices for bb. By the multiplication principle, the total number of pairs is AB|A| \cdot |B|. \qed\qed

Cartesian plane

When A=B=RA = B = \mathbb{R}, we get R×R=R2={(x,y):x,yR}.\mathbb{R} \times \mathbb{R} = \mathbb{R}^2 = \{(x, y) : x, y \in \mathbb{R}\}. This is the Cartesian plane , every point of which is described by an ordered pair (x,y)(x, y) of real numbers. The coordinate axes and the four quadrants you learned in geometry are nothing but a picture of R2\mathbb{R}^2.

Standard identities

For all sets A,B,CA, B, C:

  • A×(BC)=(A×B)(A×C)A \times (B \cup C) = (A \times B) \cup (A \times C).
  • A×(BC)=(A×B)(A×C)A \times (B \cap C) = (A \times B) \cap (A \times C).
  • A×=A \times \varnothing = \varnothing.
  • If ABA \subseteq B, then A×CB×CA \times C \subseteq B \times C for any CC.

These follow by checking ordered-pair-by-ordered-pair. For instance, (x,y)A×(BC)    xA(x, y) \in A \times (B \cup C) \iff x \in A and yBC    xAy \in B \cup C \iff x \in A and (yBy \in B or yCy \in C)     (x,y)A×B\iff (x, y) \in A \times B or (x,y)A×C    (x,y)(A×B)(A×C)(x, y) \in A \times C \iff (x, y) \in (A \times B) \cup (A \times C).

Worked examples

Example 1. If A={1,2}A = \{1, 2\} and B={a,b,c}B = \{a, b, c\}, list A×BA \times B and B×AB \times A and find their sizes.

A×B={(1,a),(1,b),(1,c),(2,a),(2,b),(2,c)}A \times B = \{(1, a), (1, b), (1, c), (2, a), (2, b), (2, c)\}, A×B=6|A \times B| = 6.

B×A={(a,1),(a,2),(b,1),(b,2),(c,1),(c,2)}B \times A = \{(a, 1), (a, 2), (b, 1), (b, 2), (c, 1), (c, 2)\}, B×A=6|B \times A| = 6.

The two have the same size but are different sets ((1,a)A×B(1, a) \in A \times B but (1,a)B×A(1, a) \notin B \times A).

Example 2. If (x+1,y2)=(3,1)(x + 1, y - 2) = (3, 1), find xx and yy.

Matching coordinates: x+1=3x=2x + 1 = 3 \Rightarrow x = 2; y2=1y=3y - 2 = 1 \Rightarrow y = 3.

Example 3. Let A={xR:0<x<1}A = \{x \in \mathbb{R} : 0 < x < 1\} and B={1,2,3}B = \{1, 2, 3\}. Describe A×BA \times B.

A×BA \times B is the union of three horizontal segments in the plane: {(x,1):0<x<1}\{(x, 1) : 0 < x < 1\}, {(x,2):0<x<1}\{(x, 2) : 0 < x < 1\}, {(x,3):0<x<1}\{(x, 3) : 0 < x < 1\}.

Example 4. If A=3|A| = 3 and A×B=12|A \times B| = 12, find B|B|.

A×B=AB|A \times B| = |A| \cdot |B| gives 12=3B12 = 3 \cdot |B|, so B=4|B| = 4.

Example 5 (harder). Show A×B=B×A    A=BA \times B = B \times A \iff A = B or one of them is empty.

If A=BA = B then A×B=A×A=B×AA \times B = A \times A = B \times A. If A=A = \varnothing or B=B = \varnothing, both products are \varnothing.

Conversely, suppose AA \ne \varnothing, BB \ne \varnothing, and A×B=B×AA \times B = B \times A. Pick aA,bBa \in A, b \in B. Then (a,b)A×B=B×A(a, b) \in A \times B = B \times A, forcing aBa \in B and bAb \in A. Hence ABA \subseteq B and BAB \subseteq A, so A=BA = B. \qed\qed

Try it yourself

  1. Find (x,y)(x, y) if (2x1,y+3)=(5,2)(2x - 1, y + 3) = (5, -2).
  2. List A×BA \times B for A={1,2,3}A = \{1, 2, 3\}, B={a}B = \{a\}. What is A×B|A \times B|?
  3. Find A×B|A \times B| if A=7|A| = 7, B=5|B| = 5.
  4. If A×BA \times B has 99 elements and contains (1,2)(1, 2) and (2,4)(2, 4), find AA and BB (given A=B|A| = |B|).
  5. Let A={1,2}A = \{1, 2\}. List all elements of A×A×AA \times A \times A.
  6. Show (AB)×C=(A×C)(B×C)(A \cup B) \times C = (A \times C) \cup (B \times C).
  7. If A={1,2},B={3,4},C={2,5}A = \{1, 2\}, B = \{3, 4\}, C = \{2, 5\}, find A×(BC)A \times (B \cap C) and (A×B)(A×C)(A \times B) \cap (A \times C).
  8. Plot A×BA \times B on graph paper for A={1,2,3}A = \{1, 2, 3\} and B={2,4}B = \{2, 4\}.
  9. If (x+y,xy)=(5,1)(x + y, x - y) = (5, 1), find x,yx, y.
  10. Verify A×=×A=A \times \varnothing = \varnothing \times A = \varnothing.
  11. If A={xR:1x2}A = \{x \in \mathbb{R} : 1 \le x \le 2\} and B={yR:0y3}B = \{y \in \mathbb{R} : 0 \le y \le 3\}, describe A×BA \times B geometrically.
  12. Show that for sets A,BA, B, A×B=B×AA \times B = B \times A does not in general hold.

Pitfalls / Tricks

  • (a,b){a,b}(a, b) \ne \{a, b\}. The ordered pair is not the same as the unordered set.
  • In general A×BB×AA \times B \ne B \times A even though A×B=B×A|A \times B| = |B \times A|.
  • A×=A \times \varnothing = \varnothing: any product with the empty set is empty.
  • Insight. Cartesian products are how you encode several pieces of information at once. A pair (x,y)(x, y) stores two numbers; a triple (x,y,z)(x, y, z) stores three. Multi-dimensional thinking starts here.

Practice quiz

Quick check on this topic.

Quiz
Quick check : Ordered pairs and Cartesian product
6 questions · pick the best answer
Q1

Q2

Q3

Q4

Q5

Q6