2078 1

BIT152 · 2078 · 10 marks

Explain direct proof, indirect proof, and proof by contradiction. Use direct proof to show that 'If n is an odd integer, then n' is an odd integer'. Also use indirect proof to show that 'If n is an integer and n' then n is odd'.

Explain direct proof, indirect proof, and proof by contradiction. Use direct proof to show that 'If n is an odd integer, then n' is an odd integer'. Also use indirect proof to show that 'If n is an integer and n' then n is odd'.[10]

Discrete StructureChapter 2: Proof TechniquesDirect proof

Quick answer

A direct proof is a method in which we assume the hypothesis p is true and then use logical steps, definitions, axioms, and previously proven theorems to directly establish that the conclusion q is true.

Proof Methods: Direct Proof, Indirect Proof, and Proof by Contradiction


A. Definitions of Proof Methods

i. Direct Proof

Structure:

Assume p  →  logical reasoning  →  conclude q

We move in a straight forward path from hypothesis to conclusion.


ii. Indirect Proof (Proof by Contrapositive)

An indirect proof proves a statement p → q by instead proving its contrapositive, which is:

$$\neg q \rightarrow \neg p$$

Since p → q is logically equivalent to ¬q → ¬p, proving the contrapositive is sufficient to prove the original statement.

Structure:

Assume ¬q  →  logical reasoning  →  conclude ¬p

iii. Proof by Contradiction

In proof by contradiction (also called Reductio ad Absurdum), we assume the negation of the entire statement we want to prove, i.e., we assume p ∧ ¬q, and then show that this assumption leads to a logical contradiction.

Structure:

Assume p ∧ ¬q  →  derive a contradiction  →  conclude p → q must be true

B. Direct Proof: "If n is an odd integer, then n² is an odd integer"

Statement: If n is odd, then n² is odd.

Proof:

Step 1: Assume n is an odd integer.

Step 2: By the definition of an odd integer: $$n = 2k + 1 \quad \text{for some integer } k$$

Step 3: Compute n²: $$n^2 = (2k + 1)^2 = 4k^2 + 4k + 1$$

Step 4: Factor out 2: $$n^2 = 2(2k^2 + 2k) + 1$$

Step 5: Let m = 2k² + 2k. Since k is an integer, m is also an integer.

Step 6: Therefore: $$n^2 = 2m + 1$$

This is exactly the form of an odd integer (an integer of the form 2m + 1).

Conclusion: Therefore, if n is an odd integer, then n² is an odd integer. $\blacksquare$


C. Indirect Proof: "If n is an integer and n² is odd, then n is odd"

Statement: If n² is odd, then n is odd.

Proof (by Contrapositive):

Step 1: Write the contrapositive of the statement:

Original: If n² is odd, then n is odd.

Contrapositive: If n is not odd (i.e., n is even), then n² is not odd (i.e., n² is even).

Step 2: Assume n is even.

Step 3: By the definition of an even integer: $$n = 2k \quad \text{for some integer } k$$

Step 4: Compute n²: $$n^2 = (2k)^2 = 4k^2 = 2(2k^2)$$

Step 5: Let m = 2k². Since k is an integer, m is also an integer.

Step 6: Therefore: $$n^2 = 2m$$

This is exactly the form of an even integer.

Step 7: So n² is even, which means n² is not odd.

Conclusion: The contrapositive is proven. Since p → q ≡ ¬q → ¬p, the original statement "If n² is odd, then n is odd" is also true. $\blacksquare$


D. Summary Table

MethodWhat We AssumeWhat We ShowBasis
Direct Proofp is trueq is truep → q directly
Indirect Proof¬q is true¬p is true¬q → ¬p (contrapositive)
Proof by Contradictionp ∧ ¬q is trueA contradiction arisesNegation leads to absurdity

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.