Algebra 1-Chapter-2

Table of contents

  1. Chapter 2 Sets and Mappings

1. Chapter 2 Sets and Mappings

1.1 The set

A set is a collection of objects, referred to as its elements. Elements are denoted as belonging to a set using the symbol '∈\in'.

Common sets include the natural numbers (N\mathbb{N}), integers (Z\mathbb{Z}), rational numbers (Q\mathbb{Q}), real numbers (R\mathbb{R}), and complex numbers (C\mathbb{C}). The empty set, denoted by '∅\emptyset', contains no elements.

The cardinality of a finite set, denoted Card(A), is the number of elements it contains.

  • N={0,1,2,… }\mathbb{N} = \{0, 1, 2, \dots\} is the set of natural numbers.
  • Z={0,±1,±2,±3,… }\mathbb{Z} = \{0, \pm 1, \pm 2, \pm 3, \dots\} is the set of integers.
  • Q={p/q∣p,q∈Z,q≠0}\mathbb{Q} = \{p/q \mid p, q \in \mathbb{Z}, q \neq 0\} is the set of rational numbers.
  • R\mathbb{R} is the set of real numbers.
  • C\mathbb{C} is the set of complex numbers.
  • ∅\emptyset is the empty set.
  • For a finite set AA, Card(AA) represents the number of elements in AA.
  • Card(∅\emptyset) = 0 2.

1.2 Operations on sets

Set operations allow us to combine or compare sets. Inclusion (or subset) means all elements of one set are in another.

Two sets are equal if they contain exactly the same elements. The difference between two sets (A∖BA \setminus B) includes elements in AA but not in BB.

The complement of a set AA within a universal set EE (CEAC_E^A) contains elements of EE not in AA. The intersection (A∩BA \cap B) contains elements common to both AA and BB.

The union (A∪BA \cup B) contains elements from either AA or BB (or both). The symmetric difference (AΔBA \Delta B) contains elements in either AA or BB, but not both.

The Cartesian product (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.

  • Set AA is a subset of set BB (A⊆BA \subseteq B) if every element of AA is also an element of BB.
  • If A⊆BA \subseteq B and B⊆AB \subseteq A, then A=BA = B.
  • The difference A∖BA \setminus B is the set of elements xx such that x∈Ax \in A and x∉Bx \notin B 3.
  • The complement of AA in EE, denoted CEAC_E^A, is the set of elements x∈Ex \in E such that x∉Ax \notin A.
  • The intersection A∩BA \cap B is the set of elements xx such that x∈Ax \in A and x∈Bx \in B 4.
  • The union A∪BA \cup B is the set of elements xx such that x∈Ax \in A or x∈Bx \in B.
  • The symmetric difference AΔBA \Delta B is the set of elements that belong to (A∖B)(A \setminus B) or (B∖A)(B \setminus A) 5.
  • The Cartesian product A×BA \times B is the set of all ordered pairs (a,b)(a, b) such that a∈Aa \in A and b∈Bb \in B 6.

📝 If A={1,0,2}A = \{1, 0, 2\} and B={3,1,4}B = \{3, 1, 4\}, then A∖B={0,2}A \setminus B = \{0, 2\} 3.

1.3 Set Operations Examples

  • If A={1,0,2}A = \{1, 0, 2\} and B={3,1,4}B = \{3, 1, 4\}, then A∖B={0,2}A \setminus B = \{0, 2\}.
  • If A={1,0,2}A = \{1, 0, 2\} and B={3,1,4}B = \{3, 1, 4\}, then B∖A={3,4}B \setminus A = \{3, 4\}.
  • Let E={3,1,0,2,4,7,9,12}E = \{3, 1, 0, 2, 4, 7, 9, 12\}, A={1,0,2}A = \{1, 0, 2\}, and B={3,1,4}B = \{3, 1, 4\}. Then CEA={3,4,7,9,12}C_E^A = \{3, 4, 7, 9, 12\} and CEB={0,2,7,9,12}C_E^B = \{0, 2, 7, 9, 12\} 4.
  • If A={1,0,2}A = \{1, 0, 2\} and B={3,1,4}B = \{3, 1, 4\}, then A∩B={1}A \cap B = \{1\}.
  • If A={1,0,2}A = \{1, 0, 2\} and B={3,1,4}B = \{3, 1, 4\}, then A∪B={1,0,2,3,4}A \cup B = \{1, 0, 2, 3, 4\} 5.
  • If A={1,0,2}A = \{1, 0, 2\} and B={3,1,4}B = \{3, 1, 4\}, then AΔB={0,2}∪{3,4}={0,2,3,4}A \Delta B = \{0, 2\} \cup \{3, 4\} = \{0, 2, 3, 4\}.
  • For finite sets AA and BB, Card(A×BA \times B) = Card(AA) ×\times Card(BB).
  • A×BA \times B is generally not equal to B×AB \times A.
  • If A=∅A = \emptyset or B=∅B = \emptyset, then A×B=∅A \times B = \emptyset.
  • If a≠ba \neq b, then the ordered pair (a,b)≠(b,a)(a, b) \neq (b, a).
  • Let A={1,0,2}A = \{1, 0, 2\} and B={3,1,4}B = \{3, 1, 4\}. Then A×B={(1,3),(1,1),(1,4),(0,3),(0,1),(0,4),(2,3),(2,1),(2,4)}A \times B = \{(1, 3), (1, 1), (1, 4), (0, 3), (0, 1), (0, 4), (2, 3), (2, 1), (2, 4)\}.
  • Let A={1,0,2}A = \{1, 0, 2\} and B={3,1,4}B = \{3, 1, 4\}. Then B×A={(3,1),(3,0),(3,2),(1,1),(1,0),(1,2),(4,1),(4,0),(4,2)}B \times A = \{(3, 1), (3, 0), (3, 2), (1, 1), (1, 0), (1, 2), (4, 1), (4, 0), (4, 2)\} 6.

1.4 Set Properties 7

PropertyDescription
IdempotenceA \cap A = A and A \cup A = A
CommutativityA \cap B = B \cap A and A \cup B = B \cup A
Associativity(A \cap B) \cap C = A \cap (B \cap C) and (A \cup B) \cup C = A \cup (B \cup C)
Distributivity(A \cap B) \cup C = (A \cup C) \cap (B \cup C) and (A \cup B) \cap C = (A \cap C) \cup (B \cap C)
IdentityA \cap \emptyset = \emptyset and A \cup \emptyset = A
Complement LawsIf A \subseteq E, then A \setminus C_E^A = \emptyset and A \cup C_E^A = E
De Morgan's LawsIf A, B \subseteq E, then C_E^{A \cap B} = C_E^A \cup C_E^B and C_E^{A \cup B} = C_E^A \cap C_E^B
Complement of SubsetIf A \subseteq B, then C_E^B \subseteq C_E^A

1.5 Definition of mapping

A mapping f:E→Ff: E \to F is a relation between a starting set EE and an arriving set FF where each element x∈Ex \in E has exactly one unique image f(x)∈Ff(x) \in F. This is formally stated as: for every x∈Ex \in E, there exists a unique y∈Fy \in F such that y=f(x)y = f(x).

Mappings that do not satisfy this condition are not considered valid mappings.

  • A mapping requires that every element in the domain (EE) maps to precisely one element in the codomain (FF).
  • f1f_1 and f4f_4 are mappings, while f2f_2 and f3f_3 are not.
  • f2:R→Rf_2: \mathbb{R} \to \mathbb{R} defined by f2(x)=1/xf_2(x) = 1/x is not a mapping because f2(0)f_2(0) is undefined.
  • f3:R→Rf_3: \mathbb{R} \to \mathbb{R} defined by f3(x)=xf_3(x) = \sqrt{x} is not a mapping for negative real numbers as their square roots are not real.
  • f1:R→R+f_1: \mathbb{R} \to \mathbb{R}^+ defined by f1(x)=x2+1f_1(x) = x^2 + 1 is a mapping.
  • f4:R→R+f_4: \mathbb{R} \to \mathbb{R}^+ defined by f4(x)=x2f_4(x) = x^2 is a mapping 8.

1.6 Direct image and inverse image

For a mapping f:E→Ff: E \to F, the direct image of a subset A⊆EA \subseteq E, denoted f(A)f(A), is the set of all images of elements in AA. The inverse image of a subset B⊆FB \subseteq F, denoted f−1(B)f^{-1}(B), is the set of all elements in EE whose images are in BB.

  • The direct image f(A)f(A) is a subset of the codomain FF, i.e., f(A)⊆Ff(A) \subseteq F.
  • The inverse image f−1(B)f^{-1}(B) is a subset of the domain EE, i.e., f−1(B)⊆Ef^{-1}(B) \subseteq E.
  • f(∅)=∅f(\emptyset) = \emptyset and f−1(∅)=∅f^{-1}(\emptyset) = \emptyset.
  • For distinct elements a,b∈Ea, b \in E, f({a,b})={f(a),f(b)}f(\{a, b\}) = \{f(a), f(b)\}.
  • For disjoint subsets B1,B2⊆FB_1, B_2 \subseteq F, f−1(B1∪B2)=f−1(B1)∪f−1(B2)f^{-1}(B_1 \cup B_2) = f^{-1}(B_1) \cup f^{-1}(B_2) 11.

1.7 Direct and Inverse Image Examples

  • Let E=[0,1]E = [0, 1], F=[1,1]F = [1, 1], and G=[0,2]G = [0, 2]. Define f:E→Gf: E \to G by f(x)=32−xf(x) = \frac{3}{2} - x and g:F→Gg: F \to G by g(x)=x2+1g(x) = x^2 + 1.
  • f−1(∅)=∅f^{-1}(\emptyset) = \emptyset.
  • f−1({0})=∅f^{-1}(\{0\}) = \emptyset because x=3/2x = 3/2 is not in EE.
  • g−1([1/2,0])=[1,5/4]g^{-1}([1/2, 0]) = [1, 5/4].
  • g−1([0,3])=[−1,1]g^{-1}([0, 3]) = [-1, 1] 10.
  • g−1([3/2,2])=[−1,−1/2]∪[1/2,1]g^{-1}([3/2, 2]) = [-1, -1/\sqrt{2}] \cup [1/\sqrt{2}, 1] 11.

1.8 Injective, Surjective, and Bijective Mappings

  • A mapping f:E→Ff: E \to F is injective (or one-to-one) if distinct elements in EE map to distinct elements in FF. Formally, if f(x1)=f(x2)f(x_1) = f(x_2), then x1=x2x_1 = x_2 11.
  • An equivalent condition for injectivity is: if x1≠x2x_1 \neq x_2, then f(x1)≠f(x2)f(x_1) \neq f(x_2).
  • A mapping f:E→Ff: E \to F is surjective (or onto) if every element in FF is the image of at least one element in EE. Formally, for every y∈Fy \in F, there exists an x∈Ex \in E such that f(x)=yf(x) = y.
  • A mapping f:E→Ff: E \to F is bijective if it is both injective and surjective. This means for every y∈Fy \in F, there exists exactly one x∈Ex \in E such that f(x)=yf(x) = y 12.

1.9 Injectivity, Surjectivity, and Bijectivity Examples

  • f(x)=x+2f(x) = x + 2 from R\mathbb{R} to R\mathbb{R} is injective.
  • f(x)=x2f(x) = x^2 from R\mathbb{R} to R+\mathbb{R}^+ is not injective because f(x)=f(−x)f(x) = f(-x).
  • f(x)=x2f(x) = x^2 from R\mathbb{R} to R+\mathbb{R}^+ is surjective because for any y∈R+y \in \mathbb{R}^+, x=±yx = \pm\sqrt{y} are real solutions.
  • f(x)=exf(x) = e^x from R\mathbb{R} to R+\mathbb{R}^+ is not surjective because y=0y=0 has no solution for ex=0e^x = 0.
  • f(x)=x2f(x) = x^2 from R\mathbb{R} to R+\mathbb{R}^+ is not bijective because it is not injective.
  • f(x)=1/xf(x) = 1/x from R∖{0}\mathbb{R} \setminus \{0\} to R∖{0}\mathbb{R} \setminus \{0\} is bijective 12.

📝 For g(x)=x2+1g(x) = x^2 + 1, g−1([0,3])=[−1,1]g^{-1}([0, 3]) = [-1, 1] 10.

1.10 Inverse mapping

The identity mapping IdE:E→EId_E: E \to E is defined by IdE(x)=xId_E(x) = x for all x∈Ex \in E. If f:E→Ff: E \to F is a bijective mapping, its inverse mapping f−1:F→Ef^{-1}: F \to E is characterized by f(x)=y  ⟺  x=f−1(y)f(x) = y \iff x = f^{-1}(y).

The inverse mapping f−1f^{-1} is also a bijection, and f(f−1(y))=yf(f^{-1}(y)) = y and f−1(f(x))=xf^{-1}(f(x)) = x.

  • The inverse mapping f−1f^{-1} exists only if ff is bijective.
  • f(f−1(y))=yf(f^{-1}(y)) = y and f−1(f(x))=xf^{-1}(f(x)) = x 13.

1.11 Inverse Mapping Examples

  • The mapping f:R→Rf: \mathbb{R} \to \mathbb{R} with f(x)=2x+2f(x) = 2x + 2 is bijective, and its inverse is f−1:R→Rf^{-1}: \mathbb{R} \to \mathbb{R} with f−1(y)=y/2f^{-1}(y) = y/2.
  • The inverse mapping of ln⁡(x)\ln(x) from R+\mathbb{R}^+ to R\mathbb{R} is exe^x from R\mathbb{R} to R+\mathbb{R}^+ 13.

1.12 Composition of mappings

The composition of two mappings f:E→Ff: E \to F and g:F→Gg: F \to G, denoted g∘fg \circ f, is a mapping from EE to GG defined by (g∘f)(x)=g(f(x))(g \circ f)(x) = g(f(x)). Composition of mappings is associative: (h∘g)∘f=h∘(g∘f)(h \circ g) \circ f = h \circ (g \circ f).

  • If ff and gg are injective, then g∘fg \circ f is injective.
  • If ff and gg are surjective, then g∘fg \circ f is surjective.
  • If ff and gg are bijective, then g∘fg \circ f is bijective, and (g∘f)−1=f−1∘g−1(g \circ f)^{-1} = f^{-1} \circ g^{-1}.
  • If g∘fg \circ f is injective, then ff is injective.
  • If g∘fg \circ f is surjective, then gg is surjective 14.

1.13 Composition of Mappings Example

  • Let E=F=G=RE = F = G = \mathbb{R}, f(x)=sin⁡(x)f(x) = \sin(x), and g(x)=x3+1g(x) = x^3 + 1. Then (g∘f)(x)=(sin⁡(x))3+1(g \circ f)(x) = (\sin(x))^3 + 1, and (f∘g)(x)=sin⁡(x3+1)(f \circ g)(x) = \sin(x^3 + 1). This demonstrates that g∘f≠f∘gg \circ f \neq f \circ g in general 13.

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also