Skip to content
Infinitesimal Dynamics home
Notebook: 0 XP

Discrete Mathematics / Counting and structure

Sets, Relations and Functions

The vocabulary of modern mathematics: set operations, relations and the three properties functions can have.

3 min read · 2 sections · 2 checks

Contents 3 sections
  1. §1Sets
  2. §2Functions
  3. ?Check yourself

By the end you can

  • Use union, intersection, complement and Cartesian product
  • Recognise equivalence relations
  • Classify functions as injective, surjective or bijective

Helps to know: Propositional Logic

§1Sets

A set is a collection with no order and no repeats. A∪BA \cup B contains everything in either, A∩BA \cap B everything in both, A∖BA \setminus B what is in AA but not BB, and A×BA \times B every ordered pair (a,b)(a, b).

§2Functions

PropertyMeaningExample on ℝ
InjectiveDifferent inputs give different outputsx↦2xx \mapsto 2x
SurjectiveEvery possible output is hitx↦x3x \mapsto x^3
BijectiveBoth: a perfect pairingx↦x+1x \mapsto x + 1

Check yourself

  1. Q1
    ∣A∣=10|A| = 10, ∣B∣=7|B| = 7, ∣A∩B∣=3|A \cap B| = 3. Then ∣A∪B∣=|A \cup B| =
  2. Q2
    Is f(x)=x2f(x) = x^2 on all real numbers injective?