Week 1: Introduction to Sets, Relations, and Functions

856 words
4 min read
View

Week 1: Introduction to Sets, Relations, and Functions

Course: Jan 2026 - Mathematics I Difficulty: Foundational Focus: Abstract structures, basic mappings, and notation.

1. Sets and Set Theory

A Set is defined as a well-defined collection of distinct objects. These objects are called the elements or members of the set.

1.1 Representation of Sets

Sets can be represented in two primary ways:
  1. Roster (Tabular) Form: Listing all elements separated by commas, enclosed in curly braces. Example: V={a,e,i,o,u}V = \{a, e, i, o, u\}.
  2. Set-Builder Form: Stating a property that all elements of the set must satisfy. Example: V={x∣x is a vowel in the English alphabet}V = \{x \mid x \text{ is a vowel in the English alphabet}\}.

1.2 Types of Sets

  • Empty Set (Null Set/Void Set): A set containing no elements. Denoted by βˆ…\emptyset or {}\{\}.
  • Singleton Set: A set containing exactly one element. Example: {5}\{5\}.
  • Finite and Infinite Sets: A set is finite if the process of counting its elements terminates. Otherwise, it is infinite. Example of infinite set: Natural numbers N={1,2,3,… }\mathbb{N} = \{1, 2, 3, \dots\}.
  • Equal Sets: Two sets are equal if they have exactly the same elements.
  • Subset: Set AA is a subset of set BB (AβŠ†BA \subseteq B) if every element of AA is also an element of BB.
  • Power Set: The set of all subsets of a set AA is denoted by P(A)\mathcal{P}(A). If AA has nn elements, P(A)\mathcal{P}(A) has 2n2^n elements.

1.3 Set Operations

  • Union (AβˆͺBA \cup B): The set of all elements which are in AA, in BB, or in both.
  • Intersection (A∩BA \cap B): The set of all elements which are common to both AA and BB.
  • Difference (Aβˆ’BA - B): The set of elements which belong to AA but not to BB.
  • Complement (Aβ€²A' or AcA^c): With respect to a universal set UU, it is the set of all elements in UU that are not in AA.

Conceptual Lab

Venn Logic Sandbox

Set A
Set B
UNIVERSESET ASET B12345678910

Computation

A ∩ B

Elements common to both A and B.

Cardinality
2
4
5
Tip
De Morgan’s Laws are incredibly useful for simplifying complex set expressions:
  1. (AβˆͺB)β€²=Aβ€²βˆ©Bβ€²(A \cup B)' = A' \cap B'
  2. (A∩B)β€²=Aβ€²βˆͺBβ€²(A \cap B)' = A' \cup B'

2. Cartesian Product and Relations

2.1 Cartesian Product

The Cartesian product of two non-empty sets AA and BB, denoted as AΓ—BA \times B, is the set of all ordered pairs (a,b)(a, b) where a∈Aa \in A and b∈Bb \in B. AΓ—B={(a,b)∣a∈A,b∈B}A \times B = \{(a, b) \mid a \in A, b \in B\}

2.2 Relations

A Relation RR from a non-empty set AA to a non-empty set BB is a subset of the Cartesian product AΓ—BA \times B. The subset is derived by describing a relationship between the first element and the second element of the ordered pairs in AΓ—BA \times B.
  • Domain: The set of all first elements of the ordered pairs in a relation RR.
  • Range: The set of all second elements of the ordered pairs in a relation RR.
  • Codomain: The entire set BB is called the codomain of the relation RR. Note that Range βŠ†\subseteq Codomain.

2.3 Types of Relations (on a single set A)

  1. Reflexive: If (a,a)∈R(a, a) \in R for every a∈Aa \in A.
  2. Symmetric: If (a,b)∈R(a, b) \in R implies that (b,a)∈R(b, a) \in R for all a,b∈Aa, b \in A.
  3. Transitive: If (a,b)∈R(a, b) \in R and (b,c)∈R(b, c) \in R implies that (a,c)∈R(a, c) \in R for all a,b,c∈Aa, b, c \in A.
A relation that is reflexive, symmetric, and transitive is known as an
Equivalence Relation.

3. Functions

A Function ff from a set AA to a set BB is a specific type of relation that assigns to each element xx in set AA exactly one element yy in set BB. We write this as f:A→Bf: A \to B.
  • The element yy is called the image of xx under ff, and xx is called the pre-image of yy.
  • Domain: The set AA. (Every element in AA must be mapped).
  • Codomain: The set BB.
  • Range: The set of all images of elements of AA. (Range βŠ†\subseteq Codomain).

3.1 Classifications of Functions

  • Injective (One-to-One): Distinct elements of AA have distinct images in BB. That is, if f(x1)=f(x2)f(x_1) = f(x_2), then x1=x2x_1 = x_2.
  • Surjective (Onto): Every element of BB is the image of some element of AA. That is, the Range is equal to the Codomain.
  • Bijective (One-to-One and Onto): A function that is both injective and surjective. Bijective functions are uniquely invertible.

3.2 Verification

  • Vertical Line Test: A curve drawn in a plane represents a function if and only if no vertical line intersects the curve more than once.
  • Horizontal Line Test: Used to determine if a function is injective. If any horizontal line intersects the graph of the function more than once, the function is not one-to-one.


Document Outline
Table of Contents
System Normal // Awaiting Context

Intelligence Hub

Navigate the knowledge graph to generate context. The Hub adapts dynamically to surface backlinks, related notes, and metadata insights.