Discrete StructureUnit 29 min read
Proof Techniques & Mathematical Induction: Direct, Indirect, Contradiction, and Recursion
Unit 2 of Discrete Structure covers proof techniques (direct, indirect, contradiction, contrapositive) and mathematical induction (base case, inductive step, recursive algorithms). Learn how to structure rigorous proofs, apply induction to sequences/sums, and connect proofs to real-world algorithms (e.g., loan interest
Core Concepts: Proof Techniques
1. Direct Proof
Definition: A proof where we assume the premise (P) is true and use logical deductions to show the conclusion (Q) must also be true. Structure:
- Assume P is true.
- Use definitions, axioms, or known theorems to derive Q.
- Conclude P → Q.
How it works:
flowchart TD
A["Assume P is true"] --> B["Apply definitions/theorems"]
B --> C["Derive Q step-by-step"]
C --> D["Conclude: P → Q"]Worked Example 1: Prove "If is odd, then is odd."
- Assumption: is odd ⇒ for some integer .
- Derivation: This is of the form (odd).
- Conclusion: is odd.
Visual:
2. Indirect Proof (Proof by Contrapositive)
Definition: Prove by proving its contrapositive (logically equivalent). Why? Often easier to disprove than prove .
Worked Example 2: Prove "If is even, then is even."
- Contrapositive: If is not even (i.e., odd), then is not even.
- Proof:
- Let .
- (odd).
- Conclusion: Contrapositive holds ⇒ original statement is true.
3. Proof by Contradiction
Definition: Assume is false (i.e., is true and is false) and show this leads to a contradiction. Structure:
- Assume is true and is false.
- Derive an absurdity (e.g., ).
- Conclude must be true.
Worked Example 3: Prove "√2 is irrational."
- Assumption: Suppose is rational ⇒ (lowest terms).
- Derivation: Let . Then is even. Contradiction: Both and are even, but was in lowest terms.
- Conclusion: is irrational.
Visual:
4. Proof by Cases
Definition: Break the proof into disjoint cases that cover all possibilities. Example: Prove "For any integer , is even."
- Case 1: is even ⇒ .
- Case 2: is odd ⇒ .
- Conclusion: True for all integers .
Mathematical Induction
1. Principle of Mathematical Induction
Definition: A method to prove statements for all natural numbers by:
- Base Case: Show the statement holds for (or ).
- Inductive Step: Assume it holds for (inductive hypothesis), then prove it for .
Why it works: If the base case holds and each step "builds" on the previous, the statement holds for all .
Visual:
flowchart TD
A["Base Case: P(1)"] --> B["Assume P(k) is true"]
B --> C["Prove P(k+1) using P(k)"]
C --> D["By induction, P(n) is true for all n ≥ 1"]2. Strong Induction (Course of Values)
Definition: Assume the statement holds for all to prove . Use case: When the inductive step depends on multiple previous values (e.g., Fibonacci sequence).
Worked Example 4: Prove "The Fibonacci sequence satisfies for all ."
- Base Cases:
- .
- .
- Inductive Step: Assume for all .
- Conclusion: By strong induction, for all .
3. Induction and Recursive Algorithms
How it’s used: Prove that a recursive algorithm works for all inputs. Example: Prove the sum of first positive integers is .
Worked Example 5: Prove using induction.
- Base Case ():
- Inductive Step: Assume true for : Prove for :
- Conclusion: By induction, the formula holds for all .
Real-World Tie-In:
- Ncell Billing: Ncell calculates total call charges recursively (each new call adds to the previous total). Induction proves their billing formula works for any number of calls.
- Daraz Order Processing: If Daraz processes orders in a queue, induction can prove the total time for orders is .
Comparison Table: Proof Techniques
| Technique | When to Use | Example | Advantages | Disadvantages |
|---|---|---|---|---|
| Direct Proof | is straightforward. | "If is odd, is odd." | Intuitive, easy to verify. | May require complex algebra. |
| Contrapositive | Proving is easier. | "If is even, is even." | Avoids direct assumption of . | Requires logical equivalence. |
| Contradiction | Proving existence/non-existence. | "√2 is irrational." | Powerful for "prove not" statements. | Can be abstract. |
| Induction | Statements about all natural numbers. | Sum of first integers. | Proves infinite cases with finite steps. | Base case must be carefully chosen. |
| Proof by Cases | Statement depends on cases (even/odd). | " is even." | Exhaustive coverage. | More work for many cases. |
In the Real World
Ncell’s Billing System:
- Idea Used: Mathematical Induction
- How: Ncell’s total call charge for calls is calculated recursively. Induction proves their formula works for any , ensuring no customer is overcharged.
Daraz’s Order Queue:
- Idea Used: Proof by Cases + Induction
- How: Daraz processes orders in a queue. Induction proves the total delivery time for orders is . Proof by cases handles different order types (standard, express, etc.).
Bank Loan Interest (Nepal’s NMB/Global IME):
- Idea Used: Recurrence Relations + Induction
- How: Loan interest is often calculated using compound interest formulas (e.g., ). Induction proves these formulas hold for any term , ensuring accurate repayment schedules.
WhatsApp Message Delivery:
- Idea Used: Proof by Contradiction
- How: WhatsApp’s end-to-end encryption relies on proofs that messages cannot be decrypted without the key. Contradiction proofs show that any attempt to break encryption leads to a logical inconsistency.
Exam Tip
Structure is Key:
- For direct/indirect proofs, always write:
- "Assume [P] is true."
- "We need to show [Q]."
- "By [definition/theorem], [derivation]."
- "Thus, [Q] holds."
- For induction, explicitly state:
- Base case (with calculation).
- Inductive hypothesis.
- Inductive step (show how leads to ).
- For direct/indirect proofs, always write:
Common Pitfalls:
- Forgetting the base case in induction (loses marks even if the step is correct).
- Assuming what you need to prove in contradiction (circular reasoning).
- Miscounting cases in proof by cases (e.g., missing ).
Exam Questions to Practice:
- Prove statements about divisibility (e.g., "If divides and , then divides ").
- Use induction to verify recursive formulas (e.g., factorial, Fibonacci).
- Apply contradiction to prove irrationality or non-existence (e.g., "No integer satisfies ").
Real-World Application Questions:
- Expect questions like:
- "A bank calculates loan interest recursively. Use induction to prove their formula is correct for 5 years."
- "Daraz uses a priority queue for orders. Prove the total processing time for orders is ."
- Tip: Relate proofs to algorithms (e.g., sorting networks, divide-and-conquer) or financial calculations (e.g., amortization).
- Expect questions like:
Visual Aids in Exams:
- Draw induction step diagrams (e.g., dominoes falling: base case pushes the first, inductive step ensures the next falls).
- For contradiction, sketch a table showing assumed vs. derived statements leading to absurdity.
Based on the TU BIT syllabus for Discrete Structure (BIT152), unit 2.
Discussion
Loading…