Unit 1: Set Theory, Relation and Function
I. Orientation: The Language of Sets
Set theory (formalised by Georg Cantor, 1874) supplies the foundational vocabulary for relations and functions. A set is a well-defined collection of distinct objects, called its elements or members. "Well-defined" means membership is unambiguous: for any object, we can decide yes or no whether it belongs.
- Membership notation: if
xbelongs to setA, writex ∈ A; otherwisex ∉ A. Example:3 ∈ {1,2,3},4 ∉ {1,2,3}. - Distinctness: elements are never repeated;
{1,1,2}is just{1,2}. - Order-independence:
{a,b} = {b,a}; sequence carries no meaning in a set. - Cardinality: the number of elements is written
n(A)or|A|. ForA = {a,e,i,o,u},n(A) = 5. - Universal set (U): the fixed superset containing every element under discussion in a given context.
II. Describing and Classifying Sets
A. Description of a Set
A set can be specified two ways, and both must define membership unambiguously.
- Roster (tabular) form: list every element inside braces, separated by commas:
A = {2,4,6,8}. - Set-builder form: state the defining property:
A = {x : x is an even natural number, x ≤ 8}. The colon reads "such that". - Conversion example:
{x : x² = 9, x ∈ ℤ}in roster form is{-3, 3}.
B. Types of Sets
Sets are classified by size and content.
- Empty (null) set: contains no element, written
∅or{};n(∅) = 0. Example:{x : x² = -1, x ∈ ℝ} = ∅. - Singleton set: exactly one element, e.g.
{0}. - Finite set: countable, terminating membership;
n(A)is a natural number. - Infinite set: membership never terminates, e.g.
ℕ = {1,2,3,…}. - Equal sets:
A = Biff they have exactly the same elements.{1,2,3} = {3,2,1}. - Equivalent sets: same cardinality,
n(A) = n(B), even if elements differ. - Disjoint sets: share no element;
A ∩ B = ∅.
C. Subsets
A subset relation orders sets by containment.
- Definition:
A ⊆ Biff every element ofAis also inB. Formallyx ∈ A ⟹ x ∈ B. - Proper subset:
A ⊂ BwhenA ⊆ BbutA ≠ B(B has an extra element). - Standing facts:
∅ ⊆ Afor every set;A ⊆ A(reflexive). - Number of subsets: a set of
nelements has2ⁿsubsets and2ⁿ − 1proper subsets. For{a,b}: subsets are∅, {a}, {b}, {a,b}— that is2² = 4.
D. Power Set
The power set collects all subsets into one set.
- Definition:
P(A)is the set whose elements are every subset ofA. - Cardinality:
n(P(A)) = 2ⁿwheren = n(A). - Example: for
A = {1,2},P(A) = {∅, {1}, {2}, {1,2}}, son(P(A)) = 4.
E. Venn Diagrams
Venn diagrams (John Venn, 1880) picture sets as regions to make relations visible.
- Convention: the universal set
Uis a rectangle; each set is a circle inside it. - Reading them: overlaps show
A ∩ B; the total shaded region showsA ∪ B; the region ofUoutsideAshows the complementAᶜ. - Use: they verify identities and count elements when regions are labelled with cardinalities.
III. Operations on Sets
A. Union, Intersection and Difference
These build new sets from given ones; each has a defining condition.
- Union:
A ∪ B = {x : x ∈ A or x ∈ B}— every element in either set.- Example:
{1,2,3} ∪ {3,4} = {1,2,3,4}.
- Example:
- Intersection:
A ∩ B = {x : x ∈ A and x ∈ B}— elements common to both.- Example:
{1,2,3} ∩ {3,4} = {3}.
- Example:
- Difference:
A − B = {x : x ∈ A and x ∉ B}— in A but not B; noteA − B ≠ B − A.- Example:
{1,2,3} − {3,4} = {1,2}.
- Example:
- Complement:
Aᶜ = U − A, all elements of the universal set outsideA. - Inclusion–exclusion (counting):
n(A ∪ B) = n(A) + n(B) − n(A ∩ B).
B. Laws of Set Theory
These algebraic identities let expressions be simplified; each holds for all sets in a universe U.
- Commutative:
A ∪ B = B ∪ A;A ∩ B = B ∩ A. - Associative:
(A ∪ B) ∪ C = A ∪ (B ∪ C); likewise for∩. - Distributive:
A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C);A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C). - Identity:
A ∪ ∅ = A;A ∩ U = A. - Idempotent:
A ∪ A = A;A ∩ A = A. - Complement:
A ∪ Aᶜ = U;A ∩ Aᶜ = ∅. - De Morgan's laws:
(A ∪ B)ᶜ = Aᶜ ∩ Bᶜ;(A ∩ B)ᶜ = Aᶜ ∪ Bᶜ.
C. Cartesian Product of Sets
The Cartesian product pairs elements to build the ground on which relations live.
- Definition:
A × B = {(a,b) : a ∈ A, b ∈ B}, a set of ordered pairs. - Ordered pair:
(a,b) = (c,d)iffa = candb = d; order matters, soA × B ≠ B × Ain general. - Cardinality:
n(A × B) = n(A) × n(B). - Example:
{1,2} × {x,y} = {(1,x),(1,y),(2,x),(2,y)}, four pairs.
IV. Relations
A. Relations as Subsets of a Product
A relation captures an association between two sets by selecting ordered pairs.
- Definition: a relation
RfromAtoBis any subsetR ⊆ A × B. If(a,b) ∈ R, writea R b. - Domain and range: the domain is
{a : (a,b) ∈ R}; the range is{b : (a,b) ∈ R}. - Example: on
A = {1,2,3},R = {(a,b) : a < b} = {(1,2),(1,3),(2,3)}. - Total count: since
A × Bhasn(A)·n(B)pairs, there are2^{n(A)·n(B)}possible relations. - Key types (on a set A):
- Reflexive:
(a,a) ∈ Rfor alla ∈ A. - Symmetric:
(a,b) ∈ R ⟹ (b,a) ∈ R. - Transitive:
(a,b),(b,c) ∈ R ⟹ (a,c) ∈ R.
- Reflexive:
V. Functions
A. Functions as Special Relations
A function is a relation that assigns each input exactly one output.
- Definition:
f : A → Bis a relation fromAtoBsuch that everya ∈ Amaps to one and only oneb ∈ B, writtenf(a) = b. - Domain, codomain, range:
Ais the domain,Bthe codomain, and the range is{f(a) : a ∈ A} ⊆ B. - Vertical line test: a graph is a function iff no vertical line meets it more than once.
- Example:
f(x) = x²onℝmaps−2and2both to4— allowed, since each input still has a single output.
B. Some Functions and Their Graphs
Each standard function is defined by its rule, and its graph reveals its behaviour.
- Identity function:
f(x) = x. Every input maps to itself; the graph is the straight line through the origin at 45°, slope 1. Domain and range are bothℝ. - Polynomial function:
f(x) = aₙxⁿ + … + a₁x + a₀with real coefficients and non-negative integer powers. A linearf(x) = 2x+1graphs as a straight line; a quadraticf(x) = x²as an upward parabola. - Modulus function:
f(x) = |x|, equal toxforx ≥ 0and−xforx < 0. The graph is a V with vertex at the origin; range is[0, ∞). - Greatest integer function:
f(x) = ⌊x⌋, the largest integer not exceedingx. So⌊2.7⌋ = 2,⌊−1.3⌋ = −2. Its graph is a step function of horizontal segments jumping by 1 at each integer.
C. One-One and Onto Functions
These properties classify how a function distributes its outputs; they decide invertibility.
- One-one (injective): distinct inputs give distinct outputs —
f(a₁) = f(a₂) ⟹ a₁ = a₂. Test on a graph with the horizontal line test (no horizontal line cuts twice).f(x) = 2x+3is injective;f(x) = x²onℝis not, sincef(−2) = f(2). - Onto (surjective): every element of the codomain is hit — range equals codomain,
f(A) = B.f : ℝ → ℝ, f(x) = x³is onto;f(x) = x²ontoℝis not, since negatives are never reached.
- Bijective: a function both one-one and onto; it pairs
AandBperfectly and admits an inversef⁻¹. - Counting for finite sets: if
n(A) = n(B) = n, the number of bijections isn!; injections requiren(A) ≤ n(B), surjections requiren(A) ≥ n(B).
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill. The rest comes out of a student's own pocket: the domain, the storage, and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason. to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it. What it pays for →