# Cartesian Product of Sets

We are quite familiar with the term ‘product’ mathematically. It means multiplying. For example, 2 multiplied by 4 gives 8, 16 multiplied by 7 gives 112. Now let’s understand what does the term ‘Cartesian’ stand for? And further, what does a cartesian product mean. Complicated? Let’s find out.

## Cartesian Product

Before getting familiar with this term, let us understand what does Cartesian mean. Remember the terms used when plotting a graph paper like axes (x-axis, y-axis), origin etc. For example, (2, 3) depicts that the value on the x-plane (axis) is 2 and that for y is 3 which is not the same as (3, 2).

The way of representation is fixed that the value of the x coordinate will come first and then that for y (ordered way). Cartesian product means the product of the elements say x and y in an ordered way.

## Cartesian Product of Sets

The Cartesian products of sets mean the product of two non-empty sets in an ordered way. Or, in other words, the collection of all ordered pairs obtained by the product of two non-empty sets. An ordered pair means that two elements are taken from each set.

For two non-empty sets (say A & B), the first element of the pair is from one set A and the second element is taken from the second set B. The collection of all such pairs gives us a Cartesian product.

The Cartesian product of two non-empty sets A and B is denoted by A × B. Also, known as the cross-product or the product set of A and B. The ordered pairs (a, b) is such that a ∈ A and b ∈ B. So, A × B = {(a,b): a ∈ A, b ∈ B}. For example, Consider two non-empty sets A = {a1, a2, a3} and B = {b1, b2, b3}

Cartesian product A×B = {(a1,b1), (a1,b2), (a1,b3), ( a2,b1), (a2,b2),(a2,b3), (a3,b1), (a3,b2), (a3,b3)}.

It is interesting to know that (a1,b1) will be different from (b1,a1). If either of the two sets is a null set, i.e., either A = Φ or B = Φ, then, A × B = Φ i.e., A × B will also be a null set

### Number of Ordered Pairs

For two non-empty sets, A and B. If the number of elements of A is h i.e., n(A) = h & that of B is k i.e., n(B) = k, then the number of ordered pairs in Cartesian product will be n(A × B) = n(A) × n(B) = hk.

## Solved Example for You

Question 1: Let P & Q be two sets such that n(P) = 4 and n(Q) = 2. If in the Cartesian product we have (m,1), (n,-1), (x,1), (y, -1). Find P and Q, where m, n, x, and y are all distinct.

Answer : P = set of first elements = {m, n, x, y} and Q = set of second elements = {1, -1}

Question 2: What is the Cartesian product used for?

Answer: A Cartesian product in computing is basically the exact same as in mathematics. It will be applicable to matrix applications. In SQL it explains a bug where you join two tables wrongly and get many records from one table being connected to each of the records of the other, instead of the expected one.

Question 3: What is a Cartesian product example?

Answer: As we know that the Cartesian product is the multiplication of two sets to make the set of all ordered pairs. The first element of the ordered pair will be belonging to the first set and the second pair belong the second set. For instance, Suppose, A = {cow, horse} B = {egg, juice} then, A×B = {(cow, egg), (horse, juice), (cow, juice), (horse, egg)}

Question 4: What is the Cartesian product of Sets?

Answer: The Cartesian product of sets refers to the product of two non-empty sets in an ordered way. Or, in other words, the assortment of all ordered pairs attained by the product of two non-empty sets. An ordered pair basically means that two elements are taken from each set.

Question 5: Who invented the Cartesian product?

Answer: René Descartes invented the Cartesian product. It derives the name from the same person. René formulated analytic geometry which helped in the origination of this concept which we further generalize in terms of direct product.

Share with friends
Browse
##### Relations and Functions
Customize your course in 30 seconds

Which class are you in?

5th
6th
7th
8th
9th
10th
11th
12th
Get ready for all-new Live Classes!
Now learn Live with India's best teachers. Join courses with the best schedule and enjoy fun and interactive classes.
Ashhar Firdausi
IIT Roorkee
Biology
Dr. Nazma Shaik
VTU
Chemistry
Gaurav Tiwari
APJAKTU
Physics
Get Started
Browse