Lecture 02: Applicable Maths - Venn Diagrams

Set Theory and Venn Diagram Applications

  • Fundamental Set Terminology and Notation:

    • The universal set or total population is represented by the entire bounding rectangle.

    • The term "or" corresponds mathematically to the union of sets (∪\cup) or total summation.

    • The term "both" corresponds mathematically to the intersection of sets (∩\cap).

    • Set inclusion-exclusion principle identity:     n(A∪B)+n(A∩B)=n(A)+n(B)n(A \cup B) + n(A \cap B) = n(A) + n(B)

  • Problem Statement: Football and Hockey Participation:

    • In a class, 76%76\% of students like football and 63%63\% of students like hockey.

    • Total student percentage representing the complete union (F∪HF \cup H):     n(F∪H)=100%n(F \cup H) = 100\%

    • Percentage liking football (FF):     n(F)=76%n(F) = 76\%

    • Percentage liking hockey (HH):     n(H)=63%n(H) = 63\%

  • Calculation of Students Liking Both Sports:

    • Substitute the known values into the fundamental set relationship:     n(F∪H)+n(F∩H)=n(F)+n(H)n(F \cup H) + n(F \cap H) = n(F) + n(H)     100%+n(F∩H)=76%+63%100\% + n(F \cap H) = 76\% + 63\%     100%+n(F∩H)=139%100\% + n(F \cap H) = 139\%

    • Solve for the intersection (F∩HF \cap H):     n(F∩H)=139%−100%n(F \cap H) = 139\% - 100\%     

    • Thus, 39%39\% of students like both football and hockey.

  • Disjoint Subset Calculations:

    • Sub-problem (i) — Students who like football but not hockey (football only):

    • Formula: n(F∖H)=n(F)−n(F∩H)n(F \setminus H) = n(F) - n(F \cap H)

    • Calculation:       76%−39%=37%76\% - 39\% = 37\%

    • Sub-problem (ii) — Students who like hockey but not football (hockey only):

    • Formula: n(H∖F)=n(H)−n(F∩H)n(H \setminus F) = n(H) - n(F \cap H)

    • Calculation:       63%−39%=24%63\% - 39\% = 24\%

    • Verification of Partition Totals:

    • Summing the mutually exclusive subsets confirms the total union:       37%+39%+24%=100%37\% + 39\% + 24\% = 100\%


Venn diagram showing intersection and union for football and hockey student percentages

Set Operations and Group Cayley Tables

  • Context and Tested Curricula:

    • Group tables for set operations are applicable to entrance preparation for NED and NUST.

  • Set Definitions:

    • Let the family of sets be defined as:

    • A={a}A = \{a\}

    • B={a,b}B = \{a, b\}

    • C={a,b,c}C = \{a, b, c\}

    • D=∅={}D = \emptyset = \{\} (the empty set)

  • Union Table (∪\cup):

    • Evaluates the operation X∪YX \cup Y for all elements X,Y∈{A,B,C,D}X, Y \in \{A, B, C, D\}.

    • Element-by-Element Evaluations:

    • A∪A={a}∪{a}={a}=AA \cup A = \{a\} \cup \{a\} = \{a\} = A

    • A∪B={a}∪{a,b}={a,b}=BA \cup B = \{a\} \cup \{a, b\} = \{a, b\} = B

    • A∪C={a}∪{a,b,c}={a,b,c}=CA \cup C = \{a\} \cup \{a, b, c\} = \{a, b, c\} = C

    • A∪D={a}∪{}={a}=AA \cup D = \{a\} \cup \{\} = \{a\} = A

    • B∪A={a,b}∪{a}={a,b}=BB \cup A = \{a, b\} \cup \{a\} = \{a, b\} = B

    • B∪B={a,b}∪{a,b}={a,b}=BB \cup B = \{a, b\} \cup \{a, b\} = \{a, b\} = B

    • B∪C={a,b}∪{a,b,c}={a,b,c}=CB \cup C = \{a, b\} \cup \{a, b, c\} = \{a, b, c\} = C

    • B∪D={a,b}∪{}={a,b}=BB \cup D = \{a, b\} \cup \{\} = \{a, b\} = B

    • C∪A={a,b,c}∪{a}={a,b,c}=CC \cup A = \{a, b, c\} \cup \{a\} = \{a, b, c\} = C

    • C∪B={a,b,c}∪{a,b}={a,b,c}=CC \cup B = \{a, b, c\} \cup \{a, b\} = \{a, b, c\} = C

    • C∪C={a,b,c}∪{a,b,c}={a,b,c}=CC \cup C = \{a, b, c\} \cup \{a, b, c\} = \{a, b, c\} = C

    • C∪D={a,b,c}∪{}={a,b,c}=CC \cup D = \{a, b, c\} \cup \{\} = \{a, b, c\} = C

    • D∪A={}∪{a}={a}=AD \cup A = \{\} \cup \{a\} = \{a\} = A

    • D∪B={}∪{a,b}={a,b}=BD \cup B = \{\} \cup \{a, b\} = \{a, b\} = B

    • D∪C={}∪{a,b,c}={a,b,c}=CD \cup C = \{\} \cup \{a, b, c\} = \{a, b, c\} = C

    • D∪D={}∪{}={}=DD \cup D = \{\} \cup \{\} = \{\} = D

    • Cayley Table for Union:

    • Row AA: A,B,C,AA, B, C, A

    • Row BB: B,B,C,BB, B, C, B

    • Row CC: C,C,C,CC, C, C, C

    • Row DD: A,B,C,DA, B, C, D

  • Intersection Table (∩\cap):

    • Evaluates the operation X∩YX \cap Y for all elements X,Y∈{A,B,C,D}X, Y \in \{A, B, C, D\}.

    • Element-by-Element Evaluations:

    • A∩A={a}∩{a}={a}=AA \cap A = \{a\} \cap \{a\} = \{a\} = A

    • A∩B={a}∩{a,b}={a}=AA \cap B = \{a\} \cap \{a, b\} = \{a\} = A

    • A∩C={a}∩{a,b,c}={a}=AA \cap C = \{a\} \cap \{a, b, c\} = \{a\} = A

    • A∩D={a}∩{}={}=DA \cap D = \{a\} \cap \{\} = \{\} = D

    • B∩A={a,b}∩{a}={a}=AB \cap A = \{a, b\} \cap \{a\} = \{a\} = A

    • B∩B={a,b}∩{a,b}={a,b}=BB \cap B = \{a, b\} \cap \{a, b\} = \{a, b\} = B

    • B∩C={a,b}∩{a,b,c}={a,b}=BB \cap C = \{a, b\} \cap \{a, b, c\} = \{a, b\} = B

    • B∩D={a,b}∩{}={}=DB \cap D = \{a, b\} \cap \{\} = \{\} = D

    • C∩A={a,b,c}∩{a}={a}=AC \cap A = \{a, b, c\} \cap \{a\} = \{a\} = A

    • C∩B={a,b,c}∩{a,b}={a,b}=BC \cap B = \{a, b, c\} \cap \{a, b\} = \{a, b\} = B

    • C∩C={a,b,c}∩{a,b,c}={a,b,c}=CC \cap C = \{a, b, c\} \cap \{a, b, c\} = \{a, b, c\} = C

    • C∩D={a,b,c}∩{}={}=DC \cap D = \{a, b, c\} \cap \{\} = \{\} = D

    • D∩A={}∩{a}={}=DD \cap A = \{\} \cap \{a\} = \{\} = D

    • D∩B={}∩{a,b}={}=DD \cap B = \{\} \cap \{a, b\} = \{\} = D

    • D∩C={}∩{a,b,c}={}=DD \cap C = \{\} \cap \{a, b, c\} = \{\} = D

    • D∩D={}∩{}={}=DD \cap D = \{\} \cap \{\} = \{\} = D

    • Cayley Table for Intersection:

    • Row AA: A,A,A,DA, A, A, D

    • Row BB: A,B,B,DA, B, B, D

    • Row CC: A,B,C,DA, B, C, D

    • Row DD: D,D,D,DD, D, D, D


Union and intersection Cayley tables for a four-element set family

Restricted Binary Operation Tables

  • Definition of Restricted Binary Operations:

    • A restricted operation table maps an operation rule ∗* applied to elements of a specified set S⊂RS \subset \mathbb{R}.

    • Domain set:     S={0,1,2}S = \{0, 1, 2\}

  • Operation 1: First Element Projection (a∗b=aa * b = a):

    • The output is strictly defined by the first operand (aa), rendering the second operand (bb) irrelevant.

    • Evaluation Computations:

    • For a=0a = 0:       0∗0=00 * 0 = 0       0∗1=00 * 1 = 0       0∗2=00 * 2 = 0

    • For a=1a = 1:       1∗0=11 * 0 = 1       1∗1=11 * 1 = 1       1∗2=11 * 2 = 1

    • For a=2a = 2:       2∗0=22 * 0 = 2       2∗1=22 * 1 = 2       2∗2=22 * 2 = 2

    • Cayley Table for a∗b=aa * b = a:

    • Row 00 across columns 0,1,20, 1, 2: 0,0,00, 0, 0

    • Row 11 across columns 0,1,20, 1, 2: 1,1,11, 1, 1

    • Row 22 across columns 0,1,20, 1, 2: 2,2,22, 2, 2

  • Operation 2: Second Element Projection (a∗b=ba * b = b):

    • The output is strictly defined by the second operand (bb), rendering the first operand (aa) irrelevant.

    • Evaluation Computations:

    • For a=0a = 0:       0∗0=00 * 0 = 0       0∗1=10 * 1 = 1       0∗2=20 * 2 = 2

    • For a=1a = 1:       1∗0=01 * 0 = 0       1∗1=11 * 1 = 1       1∗2=21 * 2 = 2

    • For a=2a = 2:       2∗0=02 * 0 = 0       2∗1=12 * 1 = 1       2∗2=22 * 2 = 2

    • Cayley Table for a∗b=ba * b = b:

    • Row 00 across columns 0,1,20, 1, 2: 0,1,20, 1, 2

    • Row 11 across columns 0,1,20, 1, 2: 0,1,20, 1, 2

    • Row 22 across columns 0,1,20, 1, 2: 0,1,20, 1, 2


Restricted binary operation tables for projection rules a*b=a and a*b=b

Modulo Arithmetic and Cayley Tables

  • Context and Tested Curricula:

    • Modulo tables are tested extensively in entrance examinations such as NUST and FAST.

  • Addition Modulo System on S={1,2,3}S = \{1, 2, 3\}:

    • Defined over S={1,2,3}⊂RS = \{1, 2, 3\} \subset \mathbb{R} under addition with reduction modulo 33 (where 33 serves as the modulus identity representative).

    • Calculations:

    • 1+1=21 + 1 = 2

    • 1+2=31 + 2 = 3

    • 1+3=4−3=11 + 3 = 4 - 3 = 1

    • 2+1=32 + 1 = 3

    • 2+2=4−3=12 + 2 = 4 - 3 = 1

    • 2+3=5−3=22 + 3 = 5 - 3 = 2

    • 3+1=4−3=13 + 1 = 4 - 3 = 1

    • 3+2=5−3=23 + 2 = 5 - 3 = 2

    • 3+3=6−3=33 + 3 = 6 - 3 = 3

    • Cayley Table Layout:

    • Row 11: 2,3,12, 3, 1

    • Row 22: 3,1,23, 1, 2

    • Row 33: 1,2,31, 2, 3

  • Addition Modulo 4 on S={0,1,2,3}S = \{0, 1, 2, 3\}:

    • Defined over S={0,1,2,3}⊂RS = \{0, 1, 2, 3\} \subset \mathbb{R} under standard addition modulo 44.

    • Calculations:

    • For a=0a = 0: 0+0=00 + 0 = 0, 0+1=10 + 1 = 1, 0+2=20 + 2 = 2, 0+3=30 + 3 = 3

    • For a=1a = 1: 1+0=11 + 0 = 1, 1+1=21 + 1 = 2, 1+2=31 + 2 = 3, 1+3=4−4=01 + 3 = 4 - 4 = 0

    • For a=2a = 2: 2+0=22 + 0 = 2, 2+1=32 + 1 = 3, 2+2=4−4=02 + 2 = 4 - 4 = 0, 2+3=5−4=12 + 3 = 5 - 4 = 1

    • For a=3a = 3: 3+0=33 + 0 = 3, 3+1=4−4=03 + 1 = 4 - 4 = 0, 3+2=5−4=13 + 2 = 5 - 4 = 1, 3+3=6−4=23 + 3 = 6 - 4 = 2

    • Cayley Table Layout:

    • Row 00: 0,1,2,30, 1, 2, 3

    • Row 11: 1,2,3,01, 2, 3, 0

    • Row 22: 2,3,0,12, 3, 0, 1

    • Row 33: 3,0,1,23, 0, 1, 2

  • Multiplication Modulo 3 on S={0,1,2}S = \{0, 1, 2\}:

    • Defined over S={0,1,2}⊂RS = \{0, 1, 2\} \subset \mathbb{R} under multiplication (⋅\cdot or ∗*) modulo 33.

    • Calculations:

    • For a=0a = 0: 0×0=00 \times 0 = 0, 0×1=00 \times 1 = 0, 0×2=00 \times 2 = 0

    • For a=1a = 1: 1×0=01 \times 0 = 0, 1×1=11 \times 1 = 1, 1×2=21 \times 2 = 2

    • For a=2a = 2: 2×0=02 \times 0 = 0, 2×1=22 \times 1 = 2, 2×2=4−3=12 \times 2 = 4 - 3 = 1

    • Cayley Table Layout:

    • Row 00: 0,0,00, 0, 0

    • Row 11: 0,1,20, 1, 2

    • Row 22: 0,2,10, 2, 1

  • Multiplication Modulo 4 on S={0,1,2,3}S = \{0, 1, 2, 3\}:

    • Defined over S={0,1,2,3}⊂RS = \{0, 1, 2, 3\} \subset \mathbb{R} under multiplication (∗*) modulo 44.

    • Calculations:

    • For a=0a = 0: 0×0=00 \times 0 = 0, 0×1=00 \times 1 = 0, 0×2=00 \times 2 = 0, 0×3=00 \times 3 = 0

    • For a=1a = 1: 1×0=01 \times 0 = 0, 1×1=11 \times 1 = 1, 1×2=21 \times 2 = 2, 1×3=31 \times 3 = 3

    • For a=2a = 2: 2×0=02 \times 0 = 0, 2×1=22 \times 1 = 2, 2×2=4−4=02 \times 2 = 4 - 4 = 0, 2×3=6−4=22 \times 3 = 6 - 4 = 2

    • For a=3a = 3: 3×0=03 \times 0 = 0, 3×1=33 \times 1 = 3, 3×2=6−4=23 \times 2 = 6 - 4 = 2, 3×3=9−8=13 \times 3 = 9 - 8 = 1

    • Cayley Table Layout:

    • Row 00: 0,0,0,00, 0, 0, 0

    • Row 11: 0,1,2,30, 1, 2, 3

    • Row 22: 0,2,0,20, 2, 0, 2

    • Row 33: 0,3,2,10, 3, 2, 1


Addition and multiplication modulo tables for finite numeric sets

Number Sets and Algebraic Closure Properties

  • Standard Number Set Definitions:

    • Natural Numbers (NN):     N={1,2,3,… }N = \{1, 2, 3, \dots\}

    • Whole Numbers (WW):     W={0,1,2,3,… }W = \{0, 1, 2, 3, \dots\}

    • Integers (ZZ):     Z={0,±1,±2,±3,… }Z = \{0, \pm 1, \pm 2, \pm 3, \dots\}

  • Closure Property Criterion:

    • A set SS is closed under a binary operation ∘\circ if and only if for every pair of elements a,b∈Sa, b \in S, the result of a∘ba \circ b is also an element of SS.

  • Operation Evaluation #01: Closure of (N,+)(N, +):

    • Hypothesis Statement: a+b∈Na + b \in N for all a,b∈Na, b \in N.

    • Test Cases:

    • 1+2=3∈N1 + 2 = 3 \in N

    • 10+23=33∈N10 + 23 = 33 \in N

    • Conclusion: True.

    • The sum of any two natural numbers is strictly a natural number.

  • Operation Evaluation #02: Closure of (N,−)(N, -):

    • Hypothesis Statement: a−b∈Na - b \in N for all a,b∈Na, b \in N.

    • Test Cases:

    • 2−1=1∈N2 - 1 = 1 \in N (holds for this pair)

    • 5−3=2∈N5 - 3 = 2 \in N (holds for this pair)

    • Counterexample: 3−5=−2∉N3 - 5 = -2 \notin N

    • Conclusion: False.

    • Because −2-2 is not a natural number, the set of natural numbers fails closure under subtraction.

  • Operation Evaluation #03: Closure of (Z,−)(Z, -):

    • Hypothesis Statement: a−b∈Za - b \in Z for all a,b∈Za, b \in Z.

    • Test Cases:

    • 1−2=−1∈Z1 - 2 = -1 \in Z

    • 2−1=1∈Z2 - 1 = 1 \in Z

    • Conclusion: True.

    • The difference between any two integers always yields an integer.