Sets

1. Definition of a Set

A set is a well-defined collection of distinct objects, called elements. A set is denoted by capital letters like $A$, $B$, $C$, and its elements are written inside braces { }.

Example: $A = \{1, 2, 3\}$

2. Elements of a Set

The individual objects in a set are called its elements. If an element $a$ belongs to set $A$, we write $a \in A$. If not, $a \notin A$.

Example: If $A = \{2, 4, 6\}$, then $4 \in A$, but $5 \notin A$.

3. Order of Sets

Sets are unordered. Thus, $\{1,2,3\}$ and $\{3,1,2\}$ represent the same set.

4. Representation of Sets

5. Types of Sets

6. Operations on Sets

7. Union of Sets

8. Intersection of Sets

9. Cartesian Product of Sets

$A = \{1,2\}$, $B = \{a,b\}$(1,a)(1,b)(2,a)(2,b)

10. Complement of Sets

The complement of a set $A$ is denoted by $A'$ or $A^c$ and includes all elements of the universal set $U$ that are not in $A$.

11. Difference of Sets

$A - B = \{x : x \in A \text{ and } x \notin B\}$

Example: If $A = \{1,2,3,4\}$ and $B = \{3,4,5\}$, then $A - B = \{1,2\}$.

12. Power Set

The set of all subsets of $A$ is called its power set, denoted $\mathcal{P}(A)$.

If $A = \{1,2\}$, then $\mathcal{P}(A) = \{\varnothing, \{1\}, \{2\}, \{1,2\}\}$.

If $|A| = n$, then $|\mathcal{P}(A)| = 2^n$.

13. Number of Elements in Sets

The cardinality of a finite set $A$ is the number of elements in $A$, written as $|A|$.

For finite sets $A$ and $B$: