5 Set Theory

5.4 Cartesian Products

5.4.1 Beginning Activity 1 (An Equation with Two Variables)

In Section 2.3, we introduced the concept of the truth set of an open sentence with one variable. This was defined to be the set of all elements in the universal set that can be substituted for the variable to make the open sentence a true statement.

In previous mathematics courses, we have also had experience with open sentences with two variables. For example, if we assume that x and y represent real numbers, then the equation

is an open sentence with two variables. An element of the truth set of this open sentence (also called a solution of the equation) is an ordered pair (a,b) of real numbers so that when a is substituted for x and b is substituted for y, the open sentence becomes a true statement (a true equation in this case). For example, we see that the ordered pair (6,0) is in the truth set for this open sentence since

is a true statement. On the other hand, the ordered pair (4,1) is not in the truth set for this open sentence since

is a false statement.
Important Note: The order of the two numbers in the ordered pair is very important. We are using the convention that the first number is to be substituted for x and the second number is to be substituted for y. With this convention, (3,2) is a solution of the equation 2x+3y=12, but (2,3) is not a solution of this equation.

  1. 1.

    List six different elements of the truth set (often called the solution set) of the open sentence with two variables 2x+3y=12.

  2. 2.

    From previous mathematics courses, we know that the graph of the equation 2x+3y=12 is a straight line. Sketch the graph of the equation 2x+3y=12 in the xy-coordinate plane. What does the graph of the equation 2x+3y=12 show?

  3. 3.

    Write a description of the solution set S of the equation 2x+3y=12 using set builder notation.

5.4.2 Beginning Activity 2 (The Cartesian Product of Two Sets)

In Activity 1, we worked with ordered pairs without providing a formal definition of an ordered pair. We instead relied on your previous work with ordered pairs, primarily from graphing equations with two variables. Following is a formal definition of an ordered pair.

Definition. Let A and B be sets. An ordered pair (with first element from A and second element from B) is a single pair of objects, denoted by (a,b), with aA and bB and an implied order. This means that for two ordered pairs to be equal, they must contain exactly the same objects in the same order. That is, if a,cA and b,dB, then

The objects in the ordered pair are called the coordinates of the ordered pair. In the ordered pair (a,b),a is the first coordinate and b is the second coordinate.

We will now introduce a new set operation that gives a way of combining elements from two given sets to form ordered pairs. The basic idea is that we will create a set of ordered pairs.

Definition. If A and B are sets, then the Cartesian product, A×B, of A and B is the set of all ordered pairs (x,y) where xA and yB. We use the notation A×B for the Cartesian product of A and B, and using set builder notation, we can write

We frequently read A×B as "A cross B." In the case where the two sets are the same, we will write A2 for A×A. That is,

Let A={1,2,3} and B={a,b}.

  1. 1.

    Is the ordered pair (3,a) in the Cartesian product A×B? Explain.

  2. 2.

    Is the ordered pair (3,a) in the Cartesian product A×A? Explain.

  3. 3.

    Is the ordered pair (3,1) in the Cartesian product A×A? Explain.

  4. 4.

    Use the roster method to specify all the elements of A×B. (Remember that the elements of A×B will be ordered pairs.)

  5. 5.

    Use the roster method to specify all of the elements of the set A×A=A2.

  6. 6.

    List all the relationships between the sets in Part (1) that you observe.

5.4.3 The Cartesian Plane

In Beginning Activity 1, we sketched the graph of the equation 2x+3y=12 in the xy-plane. This xy-plane, with which you are familiar, is a representation of the set × or 2. This plane is called the Cartesian plane.

The basic idea is that each ordered pair of real numbers corresponds to a point in the plane, and each point in the plane corresponds to an ordered pair of real numbers. This geometric representation of 2 is an extension of the geometric representation of as a straight line whose points correspond to real numbers.

Since the Cartesian product 2 corresponds to the Cartesian plane, the Cartesian product of two subsets of corresponds to a subset of the Cartesian plane. For example, if A is the interval [ 1,3 ], and B is the interval [ 2,5 ], then

A graph of the set A×B can then be drawn in the Cartesian plane as shown in Figure 5.6.

Shaded rectangle where x ranges from 1 to 3 and y ranges from 2 to 5
Figure 5.6: Cartesian Product A×B

This illustrates that the graph of a Cartesian product of two intervals of finite length in corresponds to the interior of a rectangle and possibly some or all of its
boundary. The solid line for the boundary in Figure 5.6 indicates that the boundary is included. In this case, the Cartesian product contained all of the boundary of the rectangle. When the graph does not contain a portion of the boundary, we usually draw that portion of the boundary with a dotted line.

Note: A Caution about Notation. The standard notation for an open interval in is the same as the notation for an ordered pair, which is an element of ×. We need to use the context in which the notation is used to determine which interpretation is intended. For example,

  • If we write (2,7)×, then we are using (2,7) to represent an ordered pair of real numbers.

  • If we write (1,2)×{4}, then we are interpreting (1,2) as an open interval. We could write

The following progress check explores some of the same ideas explored in Progress Check 5.23 except that intervals of real numbers are used for the sets.

5.4.4 Progress Check 5.24 (Cartesian Products of Intervals)

We will use the following intervals that are subsets of .

  1. 1.

    Draw a graph of each of the following subsets of the Cartesian plane and write each subset using set builder notation.

    1. (a)

      A×B

    2. (b)

      T×B

    3. (c)

      A×C

    4. (d)

      A×(BC)

    5. (e)

      (A×B)(A×C)

    6. (f)

      A×(BC)

    7. (g)

      (A×B)(A×C)

    8. (h)

      A×(BC)

    9. (i)

      (A×B)(A×C)

    10. (j)

      B×A

  2. 2.

    List all the relationships between the sets in Part (1) that you observe.

One purpose of the work in Progress Checks 5.23 and 5.24 was to indicate the plausibility of many of the results contained in the next theorem.

Theorem 5.25. Let A,B, and C be sets. Then

  1. 1.

    A×(BC)=(A×B)(A×C)

  2. 2.

    A×(BC)=(A×B)(A×C)

  3. 3.

    (AB)×C=(A×C)(B×C)

  4. 4.

    (AB)×C=(A×C)(B×C)

  5. 5.

    A×(BC)=(A×B)(A×C)

  6. 6.

    (AB)×C=(A×C)(B×C)

  7. 7.

    If TA, then T×BA×B.

  8. 8.

    If YB, then A×YA×B.

We will not prove all these results; rather, we will prove Part (2) of Theorem 5.25 and leave some of the rest to the exercises. In constructing these proofs, we need to keep in mind that Cartesian products are sets, and so we follow many of the same principles to prove set relationships that were introduced in Sections 5.2 and 5.3.

The other thing to remember is that the elements of a Cartesian product are ordered pairs. So when we start a proof of a result such as Part (2) of Theorem 5.25, the primary goal is to prove that the two sets are equal. We will do this by proving that each one is a subset of the other one. So if we want to prove that A×(BC)(A×B)(A×C), we can start by choosing an arbitrary element of A×(BC). The goal is then to show that this element must be in (A×B)(A×C). When we start by choosing an arbitrary element of A×(BC), we could give that element a name. For example, we could start by letting

We can then use the definition of "ordered pair" to conclude that

In order to prove that A×(BC)(A×B)(A×C), we must now show that the ordered pair u from (1) is in (A×B)(A×C). In order to do this, we can use the definition of set union and prove that

Since u=(x,y), we can prove (3) by proving that

If we look at the sentences in (2) and (4), it would seem that we are very close to proving that A×(BC)(A×B)(A×C). Following is a proof of Part (2) of Theorem 5.25.

Theorem 5.25 (Part (2)). Let A,B, and C be sets. Then

Proof. Let A,B, and C be sets. We will prove that A×(BC) is equal to (A×B)(A×C) by proving that each set is a subset of the other set.

To prove that A×(BC)(A×B)(A×C), we let uA×(BC). Then there exists xA and there exists yBC such that u=(x,y). Since yBC, we know that yB or yC.

In the case where yB, we have u=(x,y), where xA and yB. So in this case, uA×B, and hence u(A×B)(A×C). Similarly, in the case where yC, we have u=(x,y), where xA and yC. So in this case, uA×C and, hence, u(A×B)(A×C).

In both cases, u(A×B)(A×C). Hence, we may conclude that if u is an element of A×(BC), then u(A×B)(A×C), and this proves that

We must now prove that (A×B)(A×C)A×(BC). So we let v(A×B)(A×C). Then v(A×B) or v(A×C).

In the case where v(A×B), we know that there exists sA and there exists tB such that v=(s,t). But since tB, we know that tBC, and hence vA×(BC). Similarly, in the case where v(A×C), we know that there exists sA and there exists tC such that v=(s,t). But because tC, we can conclude that tBC and, hence, vA×(BC).

In both cases, vA×(BC). Hence, we may conclude that if v(A×B)(A×C), then vA×(BC), and this proves that

The relationshipsin (1) and (2) prove that A×(BC)=(A×B)(A×C).

Final Note. The definition of an ordered pair in Beginning Activity 2 may have seemed like a lengthy definition, but in some areas of mathematics, an even more formal and precise definition of "ordered pair" is needed. This definition is explored in Exercise (10).

5.4.5 Exercises for Section 5.4

  1. 1.

    () Let A={1,2},B={a,b,c,d}, and C={1,a,b}. Use the roster method to list all of the elements of each of the following sets:

    1. (a)

      A×B

    2. (b)

      B×A

    3. (c)

      A×C

    4. (d)

      A2

    5. (e)

      A×(BC)

    6. (f)

      (A×B)(A×C)

    7. (g)

      A×

    8. (h)

      B×{2}

  2. 2.

    Sketch a graph of each of the following Cartesian products in the Cartesian plane.

    1. (a)

      [0,2]×[1,3]

    2. (b)

      (0,2)×(1,3]

    3. (c)

      [2,3]×{1}

    4. (d)

      {1}×[2,3]

    5. (e)

      ×(2,4)

    6. (f)

      (2,4)×

    7. (g)

      ×{1}

    8. (h)

      {1}×[1,+)

  3. 3.

    () Prove Theorem 5.25, Part(1):A×(BC)=(A×B)(A×C).

  4. 4.

    () Prove Theorem 5.25, Part (4): (AB)×C=(A×C)(B×C).

  5. 5.

    Prove Theorem 5.25, Part (5): A×(BC)=(A×B)(A×C).

  6. 6.

    Prove Theorem 5.25, Part (7): If TA, then T×BA×B.

  7. 7.

    Let A={1},B={2}, and C={3}.

    1. (a)

      Explain why A×BB×A.

    2. (b)

      Explain why (A×B) × CA×(B×C).

  8. 8.

    Let A and B be nonempty sets. Prove that A×B=B×A if and only if A=B.

  9. 9.

    Is the following proposition true or false? Justify your conclusion.

    Let A,B, and C be sets with A. If A×B=A×C, then B=C. Explain where the assumption that A is needed.

5.4.6 Explorations and Activities

  1. 10.

    (A Set Theoretic Definition of an Ordered Pair) In elementary mathematics, the notion of an ordered pair introduced at the beginning of this section will suffice. However, if we are interested in a formal development of the Cartesian product of two sets, we need a more precise definition of ordered pair. Following is one way to do this in terms of sets. This definition is credited to Kazimierz Kuratowski (1896-1980). Kuratowski was a famous Polish mathematician whose main work was in the areas of topology and set theory. He was appointed the Director of the Polish Academy of Sciences and served in that position for 19 years.

    Let x be an element of the set A, and let y be an element of the set B. The ordered pair (x,y) is defined to be the set {{x},{x,y}}. That is,

    1. (a)

      Explain how this definition allows us to distinguish between the ordered pairs (3,5) and (5,3).

    2. (b)

      Let A and B be sets and let a,cA and b,dB. Use this definition of an ordered pair and the concept of set equality to prove that (a,b)= (c,d) if and only if a=c and b=d.

      An ordered triple can be thought of as a single triple of objects, denoted by (a,b,c), with an implied order. This means that in order for two ordered triples to be equal, they must contain exactly the same objects in the same order. That is, (a,b,c)=(p,q,r) if and only if a=p,b=q and c=r.

    3. (c)

      Let A,B, and C be sets, and let xA,yB, and zC. Write a set theoretic definition of the ordered triple (x,y,z) similar to the set theoretic definition of "ordered pair."