MatheramaMatherama
← Sets
Sets·Section 4·10 min read

Set Operations

In mathematics, whenever a new type of mathematical object is introduced or studied, one important aspect is defining appropriate operations that can be performed with or on these objects. These operations help in understanding the properties and behaviors of the objects and allow for their manipulation and analysis within the framework of mathematical theory.

  • For numbers (like integers, real numbers), we define operations such as addition, subtraction, multiplication, and division.
  • For sets, we define operations like union, intersection, and difference.
  • For vectors, operations like vector addition and scalar multiplication are defined.
  • For matrices, operations include matrix addition, multiplication, and finding the inverse or determinant.

Each type of mathematical object has operations that are sensibly defined based on the nature of the objects and the needs of the mathematical or applied context in which they are used. These operations are not arbitrary; they are usually designed to be consistent with existing mathematical principles and to provide useful tools for exploration and problem-solving in various domains.

A boy playing with objects{align left}

Set Equality§

Two sets AA and BB are considered equal, denoted as A=BA = B, if both of the following conditions are met:

  1. Every element of AA is an element of BB. In other words, AA is a subset of BB, denoted as A⊆BA \subseteq B.
  2. Every element of BB is an element of AA. In other words, BB is a subset of AA, denoted as B⊆AB \subseteq A.

Examples:

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

    • Since all elements of AA are in BB, A⊆BA \subseteq B.
    • Since all elements of BB are in AA, B⊆AB \subseteq A.
      Therefore, A=BA = B.
  2. Let C={a,b}C = \{a, b\} and D={a,b,c}D = \{a, b, c\}.

    • C⊆DC \subseteq D (as all elements of CC are in DD).
    • However, D⊈CD \nsubseteq C (as c∈Dc \in D but c∉Cc \notin C).
      Therefore, C≠DC \neq D.

Union of Sets§

The union of two sets AA and BB is denoted as A∪BA \cup B. This union set contains all the elements that are either in AA, in BB, or in both.

Examples:

  1. Let A={1,2,3}A = \{1, 2, 3\} and B={3,4,5}B = \{3, 4, 5\}. Then, the union A∪BA \cup B is {1,2,3,4,5}\{1, 2, 3, 4, 5\}.

  2. Let C={a,b}C = \{a, b\} and D={b,c,d}D = \{b, c, d\}. The union C∪DC \cup D is {a,b,c,d}\{a, b, c, d\}.

  3. Let A={x∣x is an even number between 1 and 6}A = \{x \mid x \text{ is an even number between } 1 \text{ and } 6\} and B={x∣x is a prime number less than 5}B = \{x \mid x \text{ is a prime number less than } 5\}.

    • A={2,4,6}A = \{2, 4, 6\}
    • B={2,3}B = \{2, 3\}

    The union A∪BA \cup B is {2,3,4,6}\{2, 3, 4, 6\}.

  4. Let C={x∈Z∣−2≤x≤2}C = \{x \in \mathbb{Z} \mid -2 \leq x \leq 2\} and D={y∈Z∣y is a multiple of 3 and ∣y∣≤6}D = \{y \in \mathbb{Z} \mid y \text{ is a multiple of } 3 \text{ and } |y| \leq 6\}.

    • C={−2,−1,0,1,2}C = \{-2, -1, 0, 1, 2\}
    • D={−6,−3,0,3,6}D = \{-6, -3, 0, 3, 6\}

    The union C∪DC \cup D is {−6,−3,−2,−1,0,1,2,3,6}\{-6, -3, -2, -1, 0, 1, 2, 3, 6\}.

  5. Let E={x∣x is a letter in the word ’APPLE’}E = \{x \mid x \text{ is a letter in the word 'APPLE'}\} and F={y∣y is a letter in the word ’PEAR’}F = \{y \mid y \text{ is a letter in the word 'PEAR'}\}.

    • E={′A′,′P′,′L′,′E′}E = \{'A', 'P', 'L', 'E'\}
    • F={′P′,′E′,′A′,′R′}F = \{'P', 'E', 'A', 'R'\}

    The union E∪FE \cup F is {′A′,′P′,′L′,′E′,′R′}\{'A', 'P', 'L', 'E', 'R'\}.

Algebraic Properties§

The union operation on sets satisfies several algebraic properties:

  1. Closure: The union of any two sets is itself a set.
  2. Identity: The union of a set with the empty set yields the original set, A∪∅=AA \cup \emptyset = A.
  3. Universal Bound: The union of a set with the universal set UU yields the universal set, A∪U=UA \cup U = U.
  4. Idempotence: A set unioned with itself yields the set, A∪A=AA \cup A = A.
  5. Commutativity: The union operation is commutative, A∪B=B∪AA \cup B = B \cup A.
  6. Associativity: The union operation is associative, A∪(B∪C)=(A∪B)∪CA \cup (B \cup C) = (A \cup B) \cup C.
  7. Absorption: If AA is a subset of BB, the union of AA with BB is BB, A⊆BA \subseteq B implies A∪B=BA \cup B = B.

The union of sets A1,A2,A3,…,AnA_1, A_2, A_3, \ldots, A_n is denoted by

⋃i=1nAi=A1∪A2∪A3∪…∪An\bigcup_{i=1}^{n} A_i = A_1 \cup A_2 \cup A_3 \cup \ldots \cup A_n

Intersection of sets§

The intersection of two sets contains only the elements common to both sets. For sets AA and BB, the intersection is denoted A∩BA \cap B and is defined as:

A∩B={x:x∈A and x∈B}A \cap B = \{ x : x \in A \text{ and } x \in B \}

An element xx belongs to A∩BA \cap B if and only if xx is an element of both AA and BB.

Here are some examples:

  1. Consider A={1,2,3}A = \{1, 2, 3\} and B={2,3,4}B = \{2, 3, 4\}. The intersection A∩BA \cap B is {2,3}\{2, 3\}.

  2. Let C={m,n}C = \{m, n\} and D={n,o,p}D = \{n, o, p\}. The intersection C∩DC \cap D is {n}\{n\}.

  3. Define A={x∣x is a multiple of 2 between 1 and 7}A = \{x | x \text{ is a multiple of } 2 \text{ between } 1 \text{ and } 7\} and B={x∣x is a prime number less than 6}B = \{x | x \text{ is a prime number less than } 6\}.

    • A={2,4,6}A = \{2, 4, 6\}
    • B={2,3,5}B = \{2, 3, 5\}

    The intersection A∩BA \cap B is {2}\{2\}.

  4. Let C={x∈Z∣−4≤x≤4}C = \{x \in \mathbb{Z} | -4 \leq x \leq 4 \} and D={y∈Z∣y is a multiple of 4}D = \{y \in \mathbb{Z} | y \text{ is a multiple of } 4\}.

    • C={−4,−3,−2,−1,0,1,2,3,4}C = \{-4, -3, -2, -1, 0, 1, 2, 3, 4\}
    • D={…,−8,−4,0,4,8,…}D = \{\ldots, -8, -4, 0, 4, 8, \ldots\}

    The intersection C∩DC \cap D is {−4,0,4}\{-4, 0, 4\}.

  5. Consider E={x∣x is a letter in the word ’BANANA’}E = \{x | x \text{ is a letter in the word 'BANANA'}\} and F={y∣y is a letter in the word ’CANADA’}F = \{y | y \text{ is a letter in the word 'CANADA'}\}.

    • E={′B′,′A′,′N′}E = \{'B', 'A', 'N'\}
    • F={′C′,′A′,′N′,′D′}F = \{'C', 'A', 'N', 'D'\}

    intersection E∩FE \cap F is {′A′,′N′}\{'A', 'N'\}.

Intersection of two sets

In Venn diagrams, the intersection of AA and BB is represented by the area common to both circles representing the sets. This region highlights the elements shared by AA and BB.

Properties of Intersection§

The intersection of sets exhibits the following fundamental properties:

  1. Null Set: The intersection of any set with the null set is the null set, A∩∅=∅A \cap \emptyset = \emptyset.

  2. Identity: The intersection of a set with the universal set is the set itself, A∩U=AA \cap U = A.

  3. Commutative Law: The intersection of two sets is commutative, A∩B=B∩AA \cap B = B \cap A.

  4. Associativity: The intersection of a set with the intersection of two other sets can be grouped in any order without affecting the result,

    A∩(B∩C)=(A∩B)∩CA \cap (B \cap C) = (A \cap B) \cap C
  5. Idempotent Law: A set intersected with itself is the set, A∩A=AA \cap A = A.

  6. Subset Property: A set is a subset of another set if and only if their intersection is the first set, A⊆BA \subseteq B if and only if A∩B=AA \cap B = A.

Disjoint Sets§

Two sets AA and BB are considered disjoint if they have no common elements, explicitly stated as A∩B=∅A \cap B = \emptyset.

Disjoint sets

In the figure, sets AA and BB are disjoint as there is no overlapping region between them, indicating no common elements. On the other hand, set CC intersects with both AA and BB, showing common elements with each.

Pairwise Disjoint Sets: For any collection of sets A1,A2,…,AnA_1, A_2, \ldots, A_n, these sets are pairwise disjoint if every pair of distinct sets in the collection has an empty intersection; that is, Ai∩Aj=∅A_i \cap A_j = \emptyset for all i≠ji \neq j, with ii and jj ranging from 1 to nn.

Partitioning: Partitioning a set SS involves dividing it into distinct, non-empty subsets S1,S2,…,SnS_1, S_2, \ldots, S_n such that two conditions are met:

  1. Each subset is mutually exclusive; there is no overlap between them, which is formally described as Si∩Sj=∅S_i \cap S_j = \emptyset for every pair of indices i≠ji \neq j within the index set {1,…,n}\{1, \ldots, n\}. This property ensures that the subsets are pairwise disjoint.

  2. The union of all subsets reconstructs the original set SS, denoted by S1∪S2∪…∪Sn=SS_1 \cup S_2 \cup \ldots \cup S_n = S. This indicates that the subsets are collectively exhaustive, covering all elements of SS without omission.

Each subset SiS_i represents a unique piece or component of the entire set SS, akin to a puzzle piece that fits into the larger picture formed by the set's partition.

alt text

Section 4 of 4 · Sets

Mark this section complete when you have worked through its proofs.