Course 2 - Sets
Table of contents
- Set
- Cardinality
- Power set
- Inclusion
- Complement
- Intersection and union
- Difference of sets
- Cartesian product
1. Set
1.1 Definition
A set is defined as a collection of distinct objects, referred to as its elements. The notation used indicates whether an object is an element of a set or not 4 5 6.
- Elements and Membership:
- If an object 'a' is an element of set 'E', it is written as a∈E. This is read as "a belongs to E," "a is an element of E," or "E contains a." 5.
- If an object 'a' is not an element of set 'E', it is written as a∈/E. This is read as "a does not belong to E," "a is not in E," or "E does not contain a." 6.
1.2 Notation and Special Sets
Sets are typically denoted by capital letters, while their elements are denoted by lowercase letters. Specific sets have standard notations and definitions 8.
-
Standard Designations:
-
Sets: Capital letters (e.g., E, F, A, B).
-
Elements: Small letters (e.g., a, b, x, y) 8.
-
Special Sets:
-
Empty set: The set containing no elements, denoted by ∅ 9.
-
Singleton: A set containing only one element, denoted as E={a} 10.
1.3 Set Equality
Two sets are considered identical or equal if they contain precisely the same elements. If they do not contain the same elements, they are distinct or unequal 11.
1.4 Set Description Methods
Sets can be described in two primary ways: by listing all their elements (extension) or by characterizing their elements based on a property within a known set (comprehension or set-builder notation) 14.
-
Extension: Listing all elements explicitly.
-
Example: E={1,2,3,4} 14.
-
Comprehension (Set-builder notation): Defining elements by a characteristic property.
-
Example: E={x∈R:x≥5}. This denotes the set of all real numbers 'x' such that 'x' is greater than or equal to 5 14.
1.5 Common Number Sets
Several standard sets are used to represent different types of numbers 16 17 18 19 20 21 22 23.
| Symbol | Set Name | Description |
|---|---|---|
| N | Whole (natural) numbers | {0, 1, 2, 3,...} |
| Z | Integers | {..., -2, -1, 0, 1, 2,...} |
| Q | Rational numbers | {p/q: p ∈Z, q ∈Z*} |
| R | Real numbers | Includes numbers like 1, √2, π, ln2 |
| R* | Non-null real numbers | Real numbers excluding 0 |
| R+ | Positive or null real numbers | Real numbers ≥ 0 |
| R*+ | Strictly positive real numbers | Real numbers > 0 |
| C | Complex numbers | Numbers of the form a + bi |
1.6 Example of Set Definition
A set can be defined using set-builder notation to specify its elements based on a condition 24.
- Set A Definition: A={x∈R:x2−3x+2≥0}. This set comprises all real numbers 'x' for which the quadratic expression x2−3x+2 is greater than or equal to zero 24.
📝 For the set A={x∈R:x2−3x+2≥0}, we find the roots of x2−3x+2=0, which are x=1 and x=2. Since the parabola opens upwards, the expression is non-negative when x≤1 or x≥2. Therefore, A=(−∞,1]∪[2,∞) 24.
2. Cardinality
2.1 Definition of cardinality
The cardinality of a set refers to its size, or the number of elements it contains. It is denoted by Card(E) or |A|, where E and A represent sets 25 26 27 28 29.
2.2 Finite and infinite sets
Cardinality applies to both finite and infinite sets. For finite sets, cardinality is a specific non-negative integer.
For infinite sets, cardinality is considered infinite 27 28 29.
| Set Type | Cardinality Notation | Example Set | Cardinality |
|---|---|---|---|
| Finite set | Card(A) or | A | — |
| Infinite set | Card(N) or | N | — |
2.3 Example of cardinality
Consider the set A = {2, 4, 6, 8, 10}. The cardinality of set A, denoted as Card(A), is 5 because there are five elements in the set 27.
📝 For the set A = {2, 4, 6, 8, 10}, the cardinality is 5, meaning |A| = 5 27.
3. Power set
3.1 Definition of power set
The power set of a set E, denoted P(E), is the set containing all possible subsets of E. This includes the empty set (∅) and the set E itself 30 31 32 33.
3.2 Cardinality of the power set
The power set of a finite set E with n elements has 2n elements. This means that if a set has 3 elements, its power set will have 23=8 elements 31 33.
📝 If E = {2, 4, 9}, then the power set P(E) is {∅, {2}, {4}, {9}, {2, 4}, {2, 9}, {4, 9}, {2, 4, 9}}. The cardinality of E is 3, and the cardinality of P(E) is 23=8 33.
4. Inclusion
4.1 Definition of inclusion
We say that a set E is included in a set F, or contained in F, when all elements of E also belong to F. This relationship is denoted as E ⊂ F or F ⊃ E. Mathematically, this is expressed as: (E ⊂ F) ⇔ (∀x, x ∈ E ⇒ x ∈ F) 35.
4.2 Remarks on inclusion
Several important points clarify the concept of set inclusion.
-
Proving set equality: To demonstrate that two sets, E and F, are equal (E = F), it is sufficient to prove that E is included in F (E ⊂ F) and that F is included in E (F ⊂ E). This is expressed as: E = F ⇔ (E ⊂ F) ∧ (F ⊂ E) 37 38 39 40.
-
Non-inclusion: A set F is not included in a set E (F ̸⊂ E) if there exists at least one element x such that x is in F but not in E. This is formally written as: F ̸⊂ E if ∃x(x ∈ F ∧ x ∉ E) 38 39 40.
-
Empty set inclusion: The empty set (∅) is considered to be included in every set E, regardless of E's contents. This is stated as: ∅ ⊂ E for all sets E 39 40.
-
Transitivity of inclusion: The inclusion relation is transitive. If set E is included in set F, and set F is included in set G, then it logically follows that set E is also included in set G. This property is derived from the transitivity of logical implication: (E ⊂ F) ∧ (F ⊂ G) ⇒ (E ⊂ G) 40.
📝 If set A = {1, 2} and set B = {1, 2, 3}, then A ⊂ B because every element in A (1 and 2) is also in B. If set C = {1, 4}, then C is not a subset of B because the element 4 is in C but not in B. The empty set ∅ is a subset of both A and B. If we also have set D = {1, 2, 3, 4}, then since A ⊂ B and B ⊂ D, it follows that A ⊂ D 35 38 39 40.
5. Complement
5.1 Definition of complement
The complement of a set A with respect to a universal set E is the set of all elements in E that are not in A. This is denoted as CEA, E∖A, or Ac 41.
5.2 Properties of complements
The complement operation has several key properties:
- The complement of the complement of a set A is the set A itself: (Ac)c=A 4356.
- If set B is the complement of set A with respect to E, then set A is the complement of set B with respect to E: B=CEA⇔A=CEB 44.
- The complement of the universal set E with respect to E is the empty set: CEE=∅.
- The complement of the empty set with respect to E is the universal set E: CE∅=E 45.
- If subset A is contained within subset B (A⊂B), then the complement of B (CEB) is contained within the complement of A (CEA). Conversely, if CEB⊂CEA, then A⊂B 53 55.
5.3 Examples of complements 45 49 50 53 55 56
The concept of complement can be illustrated with various sets:
- The complement of the set containing only zero ({0}) with respect to the natural numbers (N) is the set of all non-zero natural numbers (N∗). Similarly, the complement of {0} with respect to integers (Z), rational numbers (Q), and real numbers (R) are the sets Z∗, Q∗, and R∗, respectively 47 48 49.
- The set of irrational numbers is the complement of the set of rational numbers (Q) within the set of real numbers (R). This set includes numbers like π and 2 50.
- In a universal set S representing all first-year engineering students, if G1 is the set of students in group 1, then the complement of G1 (CSG1) is the union of all other groups (G2∪G3∪G4) 51 52.
| Universal Set (E) | Set (A) | Complement (C_E^A) |
|---|---|---|
| Natural Numbers (N) | {0} | N* (non-zero natural numbers) |
| Integers (Z) | {0} | Z* (non-zero integers) |
| Rational Numbers (Q) | {0} | Q* (non-zero rational numbers) |
| Real Numbers (R) | {0} | R* (non-zero real numbers) |
| Real Numbers (R) | Rational Numbers (Q) | Irrational Numbers |
| Condition | Implication |
|---|---|
| A \subset B | C_E^B \subset C_E^A |
| C_E^B \subset C_E^A | A \subset B |
| Set Operation | Result |
|---|---|
| (A^c)^c | A |
| C_E^E | \emptyset |
| C_E^\emptyset | E |
6. Intersection and union
6.1 Intersection
The intersection of two sets, denoted E∩F, is the set containing all elements that are common to both set E and set F. This means an element x is in the intersection if and only if it is present in E AND it is present in F 57.
- Notation: E∩F is read as "E intersects F" 58.
- Meaning: If E∩F is not empty, the sets E and F are said to "cut" or "meet".
- Disjoint sets: If the intersection of two sets is empty (E∩F=∅), the sets are called disjoint 59.
6.2 Union
The union of two sets, denoted E∪F, is the set containing all elements that belong to at least one of the sets E or F. An element x is in the union if it is present in E OR it is present in F (or both) 60.
📝 The union of sets E and F, denoted E∪F, contains all elements that are in E OR in F (or both) 60.
6.3 Properties of intersection and union62
The operations of intersection and union follow several key properties when applied to sets. These properties are analogous to those found in arithmetic operations like addition and multiplication 61.
| Property | Intersection | Union |
|---|---|---|
| Commutative | A ∩ B = B ∩ A | A ∪ B = B ∪ A |
| Associative | (A ∩ B) ∩ C = A ∩ (B ∩ C) | (A ∪ B) ∪ C = A ∪ (B ∪ C) |
| Idempotent | A ∩ A = A | A ∪ A = A |
| Identity with empty set | A ∩ ∅ = ∅ | A ∪ ∅ = A |
| Property | Description |
|---|---|
| Distributive (∩ over ∪) | A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C) |
| Distributive (∪ over ∩) | A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C) |
| De Morgan's Laws | (A ∩ B)ᶜ = Aᶜ ∪ Bᶜ |
7. Difference of sets
7.1 Difference
The difference of two subsets, A and B, of a universal set E is defined as the set containing all elements that are in A but not in B. This operation is denoted as A∖B or A−B 63.
- Difference (A \ B): This set includes elements x such that x is in E, x is in A, and x is not in B 63.
7.2 Symmetric difference
The symmetric difference of two subsets, A and B, of a universal set E is the set of elements that are in either A or B, but not in both. It can be expressed as the union of the difference of A and B, and the difference of B and A 64.
- Symmetric difference (A△B): This set is defined as the union of the difference of A and B, and the difference of B and A. Mathematically, A△B=(A∖B)∪(B∖A) 64.
7.3 Operation on sets example
Let E = {1, 2, 3, 4, 5, 6, 7, 8} be a universal set of integers. Consider two subsets A = {1, 2, 3, 4, 5, 6} and B = {2, 4, 6, 8}. [page=66 [page=67 [page=68 [page=69 [page=70 [page=71 [page=72 [page=73 [page=74 [page=75 [page=76 [page=77 [page=78 [page=79 [page=80 [page=81 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81.
-
Subset check: A is not a subset of B because 1∈A but 1∈/B. B is not a subset of A because 8∈B but 8∈/A. [page=69 [page=70 [page=71 68 69 70 71.
-
Intersection (A ∩ B): The intersection of A and B is the set of elements common to both A and B, which is {2,4,6}. [page=73 72 73.
-
Union (A ∪ B): The union of A and B is the set of all elements present in either A or B or both, which is {1,2,3,4,5,6,8}. [page=75 74 75.
-
Difference (A \ B): The difference of A and B contains elements in A but not in B, resulting in {1,3,5}. [page=77 76 77.
-
Difference (B \ A): The difference of B and A contains elements in B but not in A, resulting in {8}. [page=79 78 79.
-
Symmetric difference (A△B): The symmetric difference combines elements unique to A and unique to B, yielding {1,3,5,8}. [page=81 80 81.
📝 For the sets A = {1, 2, 3, 4, 5, 6} and B = {2, 4, 6, 8}, the difference A∖B consists of elements in A that are not in B. These are 1, 3, and 5, so A∖B={1,3,5} 77.
8. Cartesian product
8.1 Definition of Cartesian product
The Cartesian product of two sets, denoted A × B, is the set of all possible ordered pairs where the first element comes from set A and the second element comes from set B. This operation forms a new set containing these ordered pairs 82.
- Cartesian product (A × B): It is defined as the set of all ordered pairs (x, y) such that x is an element of set A (x ∈ A) and y is an element of set B (y ∈ B). A × B = {(x, y): x ∈ A and y ∈ B} 82.
8.2 Example: Cartesian product of finite sets
Consider two finite sets, A = {1, 2} and B = {1, 2, 3}. The Cartesian product A × B is formed by pairing each element of A with each element of B 84 85 86.
- Set A: Contains the elements {1, 2}.
- Set B: Contains the elements {1, 2, 3} 84.
- Cartesian product A × B: This set includes all ordered pairs (x, y) where x is from A and y is from B.
- (1, 1)
- (1, 2)
- (1, 3)
- (2, 1)
- (2, 2)
- (2, 3) A × B = {(1, 1), (1, 2), (1, 3), (2, 1), (2, 2), (2, 3)} 86.
8.3 Non-commutativity of Cartesian product
The order of sets in a Cartesian product matters, meaning that A × B is generally not the same as B × A. This is because the first element of the ordered pair must come from the first set listed, and the second element from the second set 87 88 89 90.
- Set B × A: This set includes all ordered pairs (y, x) where y is from B and x is from A.
- (1, 1)
- (1, 2)
- (2, 1)
- (2, 2)
- (3, 1)
- (3, 2) B × A = {(1, 1), (1, 2), (2, 1), (2, 2), (3, 1), (3, 2)} 88.
- Comparison of A × B and B × A: The sets A × B and B × A are not equal. For instance, the ordered pair (3, 2) is in B × A because 3 ∈ B and 2 ∈ A, but it is not in A × B because 3 is not an element of A. A × B ̸= B × A 89 90.
📝 Given A = {1, 2} and B = {1, 2, 3}, A × B = {(1, 1), (1, 2), (1, 3), (2, 1), (2, 2), (2, 3)} and B × A = {(1, 1), (1, 2), (2, 1), (2, 2), (3, 1), (3, 2)}. The pair (3, 2) is in B × A but not in A × B, demonstrating that the order of sets in the Cartesian product is significant 90.
8.4 Cartesian product with the set of real numbers
The Cartesian product can involve infinite sets, such as the set of real numbers (R). The product of R with itself, R × R, is fundamental in analytical geometry 91 92.
- R²: This notation represents the Cartesian product of the set of real numbers with itself (R × R).
- Definition of R²: It is the set of all ordered pairs (x, y) where both x and y are real numbers (x, y ∈ R).
- Geometric interpretation: R² is geometrically represented as the two-dimensional plane used in analytical geometry, where each point corresponds to an ordered pair of real numbers 91 92.
8.5 Cartesian product with an interval and the set of real numbers
The Cartesian product can also be formed between a closed interval and the set of real numbers, defining a region in the plane 93 94.
- Interval: This set includes all real numbers x such that 0 ≤ x ≤ 1.
- Cartesian product × R: This set consists of all ordered pairs (x, y) where x is a real number between 0 and 1 (inclusive), and y is any real number 1 93.
- Geometric representation: This product defines a vertical strip in the Cartesian plane, bounded by the lines x = 0 and x = 1, extending infinitely in the positive and negative y directions 94.
📝 The set × R contains all points (x, y) where 0 ≤ x ≤ 1 and y can be any real number. This forms a region in the xy-plane that is infinitely tall and has a width of 1 unit, extending from the y-axis to the line x = 1 1 94.
© 2026 Maeve. All rights reserved. This content is protected by copyright.