PracticeVideosBlogFlashcards

2.1 Real Numbers, Sets, Logic, Binary Operations & Groups

Key Takeaways

  • Real numbers split into rationals (terminating or recurring decimals, such as 0.3750.375 or 0.3‾0.\overline{3}) and irrationals (non-terminating, non-recurring, such as 2\sqrt{2} and π\pi); the field and order properties govern every algebraic manipulation.

  • A set with nn elements has 2n2^n subsets (2n−12^n - 1 proper subsets), and n(A∪B)=n(A)+n(B)−n(A∩B)n(A \cup B) = n(A) + n(B) - n(A \cap B) solves most Venn-diagram counting questions.

  • De Morgan's laws, (A∪B)′=A′∩B′(A \cup B)' = A' \cap B' and (A∩B)′=A′∪B′(A \cap B)' = A' \cup B', have exact logical twins: ∼(p∨q)≡∼p∧∼q\sim(p \vee q) \equiv \sim p \wedge \sim q and ∼(p∧q)≡∼p∨∼q\sim(p \wedge q) \equiv \sim p \vee \sim q.

  • A conditional p→qp \to q is false only when pp is true and qq is false, and it is logically equivalent to its contrapositive ∼q→∼p\sim q \to \sim p, not to its converse q→pq \to p.

  • A group is a set with a binary operation satisfying closure, associativity, an identity and inverses; it is abelian if the operation is also commutative.

Last updated: October 2026

Real Numbers, Sets, Logic, Binary Operations & Groups

The first chapters of Intermediate Mathematics Part I set up the language that the rest of the course uses: number systems, sets, logic and algebraic structures. These topics produce short recall and reasoning questions, so they are worth securing early.


1. The Real Number System

SetSymbolDescriptionExamples
Natural numbersN\mathbb{N}{1,2,3,… }\{1, 2, 3, \dots\}77
Whole numbersWW{0,1,2,… }\{0, 1, 2, \dots\}00
IntegersZ\mathbb{Z}{…,−2,−1,0,1,2,… }\{\dots, -2, -1, 0, 1, 2, \dots\}−5-5
Rational numbersQ\mathbb{Q}pq\frac{p}{q} with p,q∈Zp, q \in \mathbb{Z}, q≠0q \neq 038=0.375\frac{3}{8} = 0.375, 0.3‾0.\overline{3}
Irrational numbersQ′\mathbb{Q}'Non-terminating, non-recurring decimals2\sqrt{2}, π\pi, ee
Real numbersR\mathbb{R}Q∪Q′\mathbb{Q} \cup \mathbb{Q}'all of the above

Every terminating or recurring decimal is rational. To convert a recurring decimal, multiply by a power of 10 and subtract:

x=0.45‾  ⟹  100x=45.45‾  ⟹  99x=45  ⟹  x=4599=511x = 0.\overline{45} \implies 100x = 45.\overline{45} \implies 99x = 45 \implies x = \frac{45}{99} = \frac{5}{11}

Common trap: π\pi is irrational, so 227\frac{22}{7} is only an approximation. Likewise 4=2\sqrt{4} = 2 is rational even though it is written with a root sign.

Field and Order Properties of R\mathbb{R}

For all real aa, bb, cc:

  • Closure: a+ba + b and abab are real.
  • Commutative: a+b=b+aa + b = b + a, ab=baab = ba.
  • Associative: (a+b)+c=a+(b+c)(a + b) + c = a + (b + c), (ab)c=a(bc)(ab)c = a(bc).
  • Identities: 00 for addition, 11 for multiplication.
  • Inverses: −a-a for addition; 1a\frac{1}{a} for multiplication when a≠0a \neq 0.
  • Distributive: a(b+c)=ab+aca(b + c) = ab + ac.
  • Order (trichotomy): exactly one of a<ba < b, a=ba = b, a>ba > b holds.
  • Transitive: a<ba < b and b<cb < c imply a<ca < c.
  • Multiplicative order: if a<ba < b and c>0c > 0 then ac<bcac < bc; if c<0c < 0 the inequality reverses, ac>bcac > bc.

The last rule is the source of many errors when solving inequalities: multiplying or dividing by a negative number flips the sign.


2. Sets and Set Operations

A set is a well-defined collection of distinct objects. It can be written in tabular form, A={2,4,6}A = \{2, 4, 6\}, or set-builder form, A={x∣x is an even natural number,x≤6}A = \{x \mid x \text{ is an even natural number}, x \le 6\}.

  • Subset: A⊆BA \subseteq B if every element of AA is in BB. A set with nn elements has 2n2^n subsets and 2n−12^n - 1 proper subsets.
  • Power set: P(A)P(A) is the set of all subsets of AA, so n(P(A))=2nn(P(A)) = 2^n. For A={a,b,c}A = \{a, b, c\}, n(P(A))=8n(P(A)) = 8.
  • Union, intersection, difference, complement: A∪BA \cup B, A∩BA \cap B, A−B=A∩B′A - B = A \cap B', and A′=U−AA' = U - A.
  • Disjoint sets: A∩B=∅A \cap B = \varnothing.

Laws of Set Algebra

LawUnion formIntersection form
CommutativeA∪B=B∪AA \cup B = B \cup AA∩B=B∩AA \cap B = B \cap A
Associative(A∪B)∪C=A∪(B∪C)(A \cup B) \cup C = A \cup (B \cup C)(A∩B)∩C=A∩(B∩C)(A \cap B) \cap C = A \cap (B \cap C)
DistributiveA∪(B∩C)=(A∪B)∩(A∪C)A \cup (B \cap C) = (A \cup B) \cap (A \cup C)A∩(B∪C)=(A∩B)∪(A∩C)A \cap (B \cup C) = (A \cap B) \cup (A \cap C)
De Morgan(A∪B)′=A′∩B′(A \cup B)' = A' \cap B'(A∩B)′=A′∪B′(A \cap B)' = A' \cup B'

Counting with Venn Diagrams

n(A∪B)=n(A)+n(B)−n(A∩B)n(A \cup B) = n(A) + n(B) - n(A \cap B)

n(A∪B∪C)=n(A)+n(B)+n(C)−n(A∩B)−n(B∩C)−n(A∩C)+n(A∩B∩C)n(A \cup B \cup C) = n(A) + n(B) + n(C) - n(A \cap B) - n(B \cap C) - n(A \cap C) + n(A \cap B \cap C)

Worked example: In a class of 60 students, 35 study Physics, 30 study Chemistry and 12 study both. Then n(P∪C)=35+30−12=53n(P \cup C) = 35 + 30 - 12 = 53, so 60−53=760 - 53 = 7 study neither. The number studying Physics only is 35−12=2335 - 12 = 23.

Ordered Pairs and Cartesian Products

(a,b)=(c,d)(a, b) = (c, d) only if a=ca = c and b=db = d. The Cartesian product A×B={(a,b)∣a∈A,b∈B}A \times B = \{(a, b) \mid a \in A, b \in B\} has n(A)⋅n(B)n(A) \cdot n(B) elements. A relation from AA to BB is any subset of A×BA \times B, so there are 2n(A)n(B)2^{n(A)n(B)} possible relations. A function is a relation in which every element of AA appears as a first entry exactly once (functions are developed in Section 5.1).


3. Propositional Logic

A proposition is a statement that is either true or false. The basic connectives are:

ppqq∼p\sim pp∧qp \wedge qp∨qp \vee qp→qp \to qp↔qp \leftrightarrow q
TTFTTTT
TFFFTFF
FTTFTTF
FFTFFTT

The conditional p→qp \to q is false only when pp is true and qq is false. A false premise makes the conditional true ("vacuously true").

Converse, Inverse and Contrapositive

For the conditional p→qp \to q:

  • Converse: q→pq \to p
  • Inverse: ∼p→∼q\sim p \to \sim q
  • Contrapositive: ∼q→∼p\sim q \to \sim p

A conditional is logically equivalent to its contrapositive; the converse and inverse are equivalent to each other but not to the original. Example: "If a number is divisible by 4, it is even" is true; its converse "If a number is even, it is divisible by 4" is false (6 is a counterexample); its contrapositive "If a number is not even, it is not divisible by 4" is true.

Tautologies, Contradictions and Quantifiers

  • A tautology is always true, such as p∨∼pp \vee \sim p or (p∧q)→p(p \wedge q) \to p.
  • A contradiction is always false, such as p∧∼pp \wedge \sim p.
  • A contingency is sometimes true and sometimes false.
  • Logical De Morgan laws: ∼(p∧q)≡∼p∨∼q\sim(p \wedge q) \equiv \sim p \vee \sim q and ∼(p∨q)≡∼p∧∼q\sim(p \vee q) \equiv \sim p \wedge \sim q.
  • Quantifiers: the negation of "for all xx, P(x)P(x)" is "there exists an xx such that not P(x)P(x)".

4. Binary Operations and Groups

A binary operation ∗* on a set SS combines any two elements of SS to give an element of SS (closure is built into the definition). A non-empty set GG with a binary operation ∗* is a group if:

  1. Closure: a∗b∈Ga * b \in G for all a,b∈Ga, b \in G.
  2. Associativity: (a∗b)∗c=a∗(b∗c)(a * b) * c = a * (b * c).
  3. Identity: there is e∈Ge \in G with a∗e=e∗a=aa * e = e * a = a.
  4. Inverses: every aa has a−1∈Ga^{-1} \in G with a∗a−1=a−1∗a=ea * a^{-1} = a^{-1} * a = e.

If, in addition, a∗b=b∗aa * b = b * a for all elements, the group is abelian (commutative). A set with only closure and associativity is a semi-group; a semi-group with identity is a monoid.

StructureGroup?Reason
(Z,+)(\mathbb{Z}, +)Yes, abelianIdentity 00, inverse −a-a
(Z,×)(\mathbb{Z}, \times)No22 has no integer inverse
(Q∖{0},×)(\mathbb{Q} \setminus \{0\}, \times)Yes, abelianIdentity 11, inverse 1a\frac{1}{a}
(N,+)(\mathbb{N}, +)NoNo identity in N\mathbb{N} and no inverses
{1,−1,i,−i}\{1, -1, i, -i\} under ×\timesYes, abelianClosed; identity 11; i−1=−ii^{-1} = -i
{1,ω,ω2}\{1, \omega, \omega^2\} under ×\timesYes, abelianω3=1\omega^3 = 1; ω−1=ω2\omega^{-1} = \omega^2

Worked example: On R\mathbb{R} define a∗b=a+b+3a * b = a + b + 3. The identity ee satisfies a+e+3=aa + e + 3 = a, so e=−3e = -3. The inverse of aa satisfies a+a−1+3=−3a + a^{-1} + 3 = -3, so a−1=−6−aa^{-1} = -6 - a. The operation is associative and commutative, so (R,∗)(\mathbb{R}, *) is an abelian group.

In any group, the identity is unique, each element has exactly one inverse, the cancellation laws hold, and (ab)−1=b−1a−1(ab)^{-1} = b^{-1}a^{-1}.

Loading diagram...
Is (G, *) a Group? Decision Checklist
Test Your Knowledge

In a survey of 80 students, 45 like cricket, 38 like hockey and 15 like both. How many students like neither game?

A

12

B

3

C

15

D

27

Test Your Knowledge

Which statement is logically equivalent to 'If it rains, the match is cancelled'?

A

If the match is cancelled, it rained.

B

If it does not rain, the match is not cancelled.

C

It rains and the match is not cancelled.

D

If the match is not cancelled, it did not rain.

Test Your Knowledge

On the set of real numbers, the operation a∗b=a+b−5a * b = a + b - 5 is defined. What is the inverse of 2 under this operation?

A

-2

B

3

C

8

D

5

Sections you finish are checked off in the contents.