Unit 2: Algebra of logic and mathematical induction
Mathematics-I notes · PTU syllabus (BSIT103/BSBC103)
On this page
Unit summary
Logic underlies programming conditions, digital circuits and proofs. This unit covers propositions and logical operations, truth tables, arguments and validity, propositions generated by a set, laws of equivalence and implication, mathematical systems, quantifiers and the principle of mathematical induction.
After this unit you can
- Use propositions, logical operations and truth tables
- Test arguments for validity
- Apply laws of logic and quantifiers
- Prove results by mathematical induction
PTU syllabus topics
- Propositions and logic operations
- truth tables
- arguments and validity
- propositions generated by a set
- equivalence and implication laws of logic
- mathematical systems
- quantifiers
- principle of mathematical induction
p ∧ q (AND)
F
F
p ∨ q (OR)
T
F
p → q (implies)
F
T
p ↔ q (iff)
F
T
Topic 1
Propositions
A statement (proposition) is a declarative sentence that is either true or false, but not both. Its truth or falsity is called its truth value (T or F).
- "Delhi is the capital of India." — a statement (true).
- "5 + 3 = 9." — a statement (false).
- "Close the door." / "What is your name?" / "x + 2 = 5" — not statements: commands, questions and open sentences have no fixed truth value.
Statements are written with small letters p, q, r. A simple statement has one idea; a compound statement joins two or more simple statements using connectives.
Exam tip
Questions, exclamations, commands and sentences containing a variable are not statements. Mention this in any definition answer.
Topic 2
Logical operations
Negation
¬p (or ~p)
not p
Conjunction
p ∧ q
p and q
Disjunction
p ∨ q
p or q
Conditional
p → q
if p then q
Biconditional
p ↔ q
p if and only if q
- Negation (¬p): reverses the truth value. If p is true, ¬p is false.
- Conjunction (p ∧ q): true only when both p and q are true.
- Disjunction (p ∨ q): true when at least one of p or q is true; false only when both are false.
- Conditional (p → q): false only when p is true and q is false.
- Biconditional (p ↔ q): true when p and q have the same truth value.
Topic 3
Truth tables
A truth table lists the truth value of a compound statement for every combination of truth values of its parts. With n simple statements there are 2ⁿ rows.
| p | q | ¬p | p ∧ q | p ∨ q | p → q | p ↔ q |
|---|---|---|---|---|---|---|
| T | T | F | T | T | T | T |
| T | F | F | F | T | F | F |
| F | T | T | F | T | T | F |
| F | F | T | F | F | T | T |
Example
Let p: "It is raining" and q: "I carry an umbrella". p → q ("If it rains, I carry an umbrella") is broken only when it rains and I don't carry one — row 2.
Topic 4
Tautologies and contradictions
- A tautology is a compound statement that is always true, whatever the truth values of its parts. Example: p ∨ ¬p.
- A contradiction is a statement that is always false. Example: p ∧ ¬p.
- A statement that is sometimes true and sometimes false is a contingency.
| p | ¬p | p ∨ ¬p | p ∧ ¬p |
|---|---|---|---|
| T | F | T | F |
| F | T | T | F |
The column p ∨ ¬p is all T (tautology); p ∧ ¬p is all F (contradiction). Note that the negation of a tautology is a contradiction.
Topic 5
Arguments and validity
- Argument: premises P1, P2, …, Pn and a conclusion Q; it is valid if the conclusion is true whenever all premises are true — i.e., (P1 ∧ P2 ∧ … ∧ Pn) → Q is a tautology.
Modus ponens
p, p → q; therefore q
Modus tollens
¬q, p → q; therefore ¬p
Hypothetical syllogism
p → q, q → r; therefore p → r
Disjunctive syllogism
p ∨ q, ¬p; therefore q
Example
"If it rains, the match is cancelled. It rains. Therefore the match is cancelled." — valid by modus ponens.
Topic 6
Propositions generated by a set
- Given a set of propositions S = {p, q}, the propositions generated by S are all compound propositions formed from them using ∧, ∨, ¬, →, ↔ — for n variables there are 2^(2^n) distinct truth functions (16 for two variables).
Topic 7
Laws of equivalence and implication
Two statements are logically equivalent (written ≡) if they have identical truth values in every row of their truth tables. Important equivalences:
- Double negation: ¬(¬p) ≡ p
- De Morgan's laws: ¬(p ∧ q) ≡ ¬p ∨ ¬q and ¬(p ∨ q) ≡ ¬p ∧ ¬q
- Conditional: p → q ≡ ¬p ∨ q
- Contrapositive: p → q ≡ ¬q → ¬p
- Biconditional: p ↔ q ≡ (p → q) ∧ (q → p)
Example
To prove ¬(p ∨ q) ≡ ¬p ∧ ¬q, build one truth table with columns p, q, p ∨ q, ¬(p ∨ q), ¬p, ¬q, ¬p ∧ ¬q. The columns for ¬(p ∨ q) and ¬p ∧ ¬q come out identical: F, F, F, T.
Exam tip
When proving equivalence, always write the conclusion: "Since the last two columns are identical, the statements are logically equivalent."
De Morgan's
¬(p ∧ q) ≡ ¬p ∨ ¬q; ¬(p ∨ q) ≡ ¬p ∧ ¬q
Implication
p → q ≡ ¬p ∨ q
Contrapositive
p → q ≡ ¬q → ¬p
Distributive
p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r)
Absorption
p ∨ (p ∧ q) ≡ p
Topic 8
Mathematical systems
- A mathematical system consists of a set of undefined terms, definitions, axioms (assumed true) and theorems (proved from axioms) — e.g., Euclidean geometry, Boolean algebra, group theory.
- Proof methods: direct proof, contrapositive, contradiction, cases, induction.
Topic 9
Quantifiers
- Universal quantifier ∀ ("for all") and existential quantifier ∃ ("there exists").
- Negation: ¬∀x P(x) ≡ ∃x ¬P(x); ¬∃x P(x) ≡ ∀x ¬P(x).
Example
"All students passed" (∀x P(x)) is negated as "Some student did not pass" (∃x ¬P(x)).
Topic 10
Principle of mathematical induction
- 1Basis step
Show P(1) is true
- 2Inductive hypothesis
Assume P(k) is true
- 3Inductive step
Prove P(k + 1) using P(k)
- 4Conclusion
P(n) is true for all n ≥ 1
Example
Prove 1 + 2 + … + n = n(n + 1)/2. Basis: n = 1 gives 1 = 1. Step: assume true for k; then 1 + … + k + (k + 1) = k(k + 1)/2 + (k + 1) = (k + 1)(k + 2)/2 — true for k + 1.
Key terms
- Proposition
- Statement that is either true or false
- Tautology
- Proposition always true
- Valid argument
- Conclusion true whenever premises are true
- Quantifier
- Symbol expressing "for all" or "there exists"
- Mathematical induction
- Proof method using basis and inductive steps
Quick revision
- Propositions; ¬, ∧, ∨, →, ↔; truth tables.
- Tautology, contradiction, contingency.
- Validity; modus ponens, modus tollens, syllogisms.
- Equivalence laws; contrapositive; mathematical systems; quantifiers and negation.
- Induction: basis, hypothesis, step.
Important exam questions
Practice questions written to the PTU exam pattern for this unit's syllabus: short answers (Section A style) and long answers (Sections B and C style).
Short-answer questions
- Q1.Define a proposition.
- Q2.Construct the truth table of p → q.
- Q3.What is modus tollens?
- Q4.Write the contrapositive of p → q.
- Q5.Negate "∀x, x² ≥ 0".
- Q6.State the principle of mathematical induction.
Long-answer questions
- Q1.Explain logical operations with truth tables.
- Q2.Test the validity of an argument using truth tables or rules of inference.
- Q3.Explain the laws of logic and quantifiers.
- Q4.Prove a result using mathematical induction.
Stuck on this unit?
Message SBS on WhatsApp for help with Mathematics-I, or to ask about studying B.Sc IT at Synetic.
