Cartesian products of two sets
Cartesian Products of Two Sets
The Cartesian product of two sets is a fundamental concept in set theory and is used to define the product set that consists of all possible ordered pairs where the first element is from the first set and the second element is from the second set.
Definition
Given two sets $A$ and $B$, the Cartesian product of $A$ and $B$, denoted by $A \times B$, is the set of all ordered pairs $(a, b)$ where $a \in A$ and $b \in B$.
Mathematically, it is defined as:
$$ A \times B = {(a, b) \mid a \in A \text{ and } b \in B} $$
Properties
The Cartesian product has several important properties:
- Non-commutative: Generally, $A \times B \neq B \times A$ unless $A = B$ or one of the sets is empty.
- Cardinality: If $A$ has $m$ elements and $B$ has $n$ elements, then $A \times B$ has $m \times n$ elements.
- Associativity: $(A \times B) \times C = A \times (B \times C)$, although the resulting pairs are grouped differently.
Differences and Important Points
Here is a table summarizing some of the key differences and points regarding Cartesian products:
Property | Description |
---|---|
Order Matters | The order of the elements in the pairs is significant. |
Notation | $A \times B$ is used to denote the Cartesian product of sets $A$ and $B$. |
Elements | Elements of $A \times B$ are ordered pairs $(a, b)$. |
Empty Set | If either $A$ or $B$ is empty, then $A \times B$ is also empty. |
Cardinality | The number of elements in $A \times B$ is the product of the number of elements in $A$ and $B$. |
Examples
Let's look at some examples to understand the concept better.
Example 1: Finite Sets
Let $A = {1, 2}$ and $B = {x, y}$. The Cartesian product $A \times B$ is:
$$ A \times B = {(1, x), (1, y), (2, x), (2, y)} $$
And the Cartesian product $B \times A$ is:
$$ B \times A = {(x, 1), (x, 2), (y, 1), (y, 2)} $$
Notice that $A \times B \neq B \times A$.
Example 2: Infinite Sets
Let $A = \mathbb{N}$ (the set of natural numbers) and $B = {a, b}$. The Cartesian product $A \times B$ includes infinitely many ordered pairs:
$$ A \times B = {(1, a), (1, b), (2, a), (2, b), (3, a), (3, b), \ldots} $$
Example 3: Cartesian Product with Itself
A set can also be paired with itself. For example, if $A = {0, 1}$, then:
$$ A \times A = {(0, 0), (0, 1), (1, 0), (1, 1)} $$
Example 4: Empty Set
If $A = {1, 2}$ and $B = \emptyset$, then:
$$ A \times B = \emptyset $$
Because there are no elements in $B$ to pair with elements in $A$.
Applications
The concept of Cartesian products is widely used in various fields of mathematics and computer science, including:
- Defining relations and functions.
- Constructing multidimensional coordinate systems.
- Database theory, particularly in the context of join operations.
Understanding Cartesian products is essential for anyone studying advanced mathematics, as it forms the basis for many more complex structures and concepts.