Covers IGNOU MCS-212 §2.3 (Indirect Proofs: proof by contradiction, Examples 5–7)
Some statements, such as ”3 \sqrt{3} 3 is irrational” or “there are infinitely many primes”, have no “if” part to start from. For these we use a powerful trick: pretend the statement is false and show that this leads to nonsense.
Definition 2.14 · Proof by contradiction
A proof by contradiction (reductio ad absurdum) proves q q q by assuming ¬ q \neg q ¬ q and deriving a contradiction — a statement of the form r ∧ ¬ r r \land \neg r r ∧ ¬ r , which is always false. Since ¬ q → F \neg q \to \mathbf{F} ¬ q → F is true only when ¬ q \neg q ¬ q is false, q q q must be true.
Intuition
A detective says: “Suppose the gardener did it. Then he was in the garden at 9 pm. But at 9 pm he was on CCTV in the market. He cannot be in two places at once — impossible! So the gardener did not do it.” The detective proves something by showing that its opposite leads to an impossible situation.
To prove an implication p → q p \to q p → q by contradiction, use ¬ ( p → q ) ≡ p ∧ ¬ q \neg(p \to q) \equiv p \land \neg q ¬ ( p → q ) ≡ p ∧ ¬ q : assume p p p and ¬ q \neg q ¬ q , and derive a contradiction.
Example 2.15 The square root of 3 is irrational
Goal. Prove that 3 \sqrt{3} 3 is irrational.
Step. Assume the opposite: 3 \sqrt{3} 3 is rational. Then 3 = a b \sqrt{3} = \frac{a}{b} 3 = b a with positive integers a , b a, b a , b that have no common factor greater than 1 (any fraction can be reduced to lowest terms).
Step. Square: 3 = a 2 b 2 3 = \frac{a^2}{b^2} 3 = b 2 a 2 , so a 2 = 3 b 2 a^2 = 3b^2 a 2 = 3 b 2 . Hence 3 ∣ a 2 3 \mid a^2 3 ∣ a 2 .
Step. Since 3 is prime, 3 ∣ a 2 3 \mid a^2 3 ∣ a 2 implies 3 ∣ a 3 \mid a 3 ∣ a (a prime that divides a product divides one of the factors). So a = 3 c a = 3c a = 3 c for some integer c c c .
Step. Substitute: 9 c 2 = 3 b 2 9c^2 = 3b^2 9 c 2 = 3 b 2 , so b 2 = 3 c 2 b^2 = 3c^2 b 2 = 3 c 2 . As before, 3 ∣ b 3 \mid b 3 ∣ b .
Step. Now 3 divides both a a a and b b b , contradicting “no common factor”.
Result. The assumption is false, so 3 \sqrt{3} 3 is irrational. (The study material proves 5 \sqrt{5} 5 irrational in the same way.)
Comparison of the three methods
Method To prove p → q p \to q p → q , assume Then show Based on Direct p p p q q q modus ponens Contrapositive ¬ q \neg q ¬ q ¬ p \neg p ¬ p p → q ≡ ¬ q → ¬ p p \to q \equiv \neg q \to \neg p p → q ≡ ¬ q → ¬ p Contradiction p p p and ¬ q \neg q ¬ q a contradiction r ∧ ¬ r r \land \neg r r ∧ ¬ r ¬ ( p → q ) ≡ p ∧ ¬ q \neg(p \to q) \equiv p \land \neg q ¬ ( p → q ) ≡ p ∧ ¬ q
Note
Proof by contradiction is the idea behind the halting problem proof in Block 2: assume a program that decides halting exists, then build a program that makes it contradict itself.
Using contradiction in logic puzzles
On an island, every person is either a truth-teller (always tells the truth) or a liar (always lies). We solve such puzzles by trying a case and rejecting it if it leads to a contradiction.
Example 2.16 A truth-teller and liar puzzle
Goal. Person A says: “We are both liars.” What are A and B?
Step. Suppose A is a truth-teller. Then A’s statement is true, so A is a liar. A is both a truth-teller and a liar: contradiction.
Step. So A is a liar, and A’s statement “We are both liars” is false.
Step. “Both are liars” is false, but A is a liar, so B must not be a liar: B is a truth-teller.
Step. Check: A (liar) says something false — correct, since B is a truth-teller.
Result. A is a liar and B is a truth-teller.
Common mistake
Assuming the wrong thing. In a proof by contradiction of p → q p \to q p → q , assume p p p and ¬ q \neg q ¬ q . Assuming only ¬ p \neg p ¬ p proves nothing.
Common mistake
Not naming the contradiction. End by stating exactly which two statements contradict each other (e.g. “3 divides both a a a and b b b , but a , b a, b a , b have no common factor”).
Key idea
To prove q q q by contradiction, assume ¬ q \neg q ¬ q and derive something impossible (r ∧ ¬ r r \land \neg r r ∧ ¬ r ); then ¬ q \neg q ¬ q must be false, so q q q is true.
TEE Exam note
Proving that 2 \sqrt{2} 2 , 3 \sqrt{3} 3 or 5 \sqrt{5} 5 is irrational is a favourite long question: state the assumption, reduce to lowest terms, show the prime divides both a a a and b b b , name the contradiction. Correct answers: E9(ii) — assume x ∈ R x \in \mathbb{R} x ∈ R , x 3 + 4 x = 0 x^3 + 4x = 0 x 3 + 4 x = 0 and x ≠ 0 x \neq 0 x = 0 ; then x ( x 2 + 4 ) = 0 x(x^2 + 4) = 0 x ( x 2 + 4 ) = 0 with x ≠ 0 x \neq 0 x = 0 , so x 2 = − 4 x^2 = -4 x 2 = − 4 , impossible for real x x x . E10 — direct: x ( x 2 + 4 ) = 0 x(x^2 + 4) = 0 x ( x 2 + 4 ) = 0 and x 2 + 4 ≥ 4 > 0 x^2 + 4 \geq 4 > 0 x 2 + 4 ≥ 4 > 0 , so x = 0 x = 0 x = 0 ; contrapositive: if x ≠ 0 x \neq 0 x = 0 , then x x x and x 2 + 4 x^2 + 4 x 2 + 4 are both non-zero, so x 3 + 4 x = x ( x 2 + 4 ) ≠ 0 x^3 + 4x = x(x^2 + 4) \neq 0 x 3 + 4 x = x ( x 2 + 4 ) = 0 . E11 — C says “Both of us always tell the truth”, D says “C always lies”: if C were truthful, D would be truthful, so “C always lies” would be true — contradiction; so C is a liar, D’s statement is true, and D is a truth-teller.
Key takeaways
Proof by contradiction: assume the statement is false and derive r ∧ ¬ r r \land \neg r r ∧ ¬ r .
For p → q p \to q p → q : assume p p p and ¬ q \neg q ¬ q .
Classic uses: irrationality of 2 , 3 , 5 \sqrt{2}, \sqrt{3}, \sqrt{5} 2 , 3 , 5 ; logic puzzles; impossibility results.
Always state clearly which statements contradict each other.
Practice questions Answer on paper first, then check. The explanation matters more than the letter you chose.
Question 1 · multiple choice To prove ”2 \sqrt{2} 2 is irrational” by contradiction, what do you assume first?
Check answer
Show answer Answer: A. 2 = a b \sqrt{2} = \frac{a}{b} 2 = b a for integers a , b a, b a , b with no common factor
You assume the negation, ”2 \sqrt{2} 2 is rational”, written in lowest terms. Option 4 is tempting, but “both even” is what you derive , and it is the contradiction.
Question 2 · multiple choice To prove p → q p \to q p → q by contradiction, which assumption is correct?
Check answer
Show answer Answer: C. p ∧ ¬ q p \land \neg q p ∧ ¬ q
¬ ( p → q ) ≡ p ∧ ¬ q \neg(p \to q) \equiv p \land \neg q ¬ ( p → q ) ≡ p ∧ ¬ q , so you assume the hypothesis is true and the conclusion is false. Option 1 alone gives no contradiction, because p → q p \to q p → q is true whenever p p p is false.
Question 3 · multiple choice In the proof that 3 \sqrt{3} 3 is irrational, which fact gives "3 ∣ a 3 \mid a 3 ∣ a " from "3 ∣ a 2 3 \mid a^2 3 ∣ a 2 "?
Check answer
Show answer Answer: D. 3 is prime, and a prime dividing a product divides a factor
Since a 2 = a ⋅ a a^2 = a \cdot a a 2 = a ⋅ a and 3 is prime, 3 divides a a a . Option 2 is wrong: a 2 = 3 b 2 a^2 = 3b^2 a 2 = 3 b 2 does not mean a = 3 b a = 3b a = 3 b (that would give a 2 = 9 b 2 a^2 = 9b^2 a 2 = 9 b 2 ).
Question 4 · multiple choice A says: “B is a liar”, and B says: “A and I are both truth-tellers”. What are they?
A Both are truth-tellers B A is a truth-teller and B is a liar C A is a liar and B is a truth-teller D Both are liars
Check answer
Show answer Answer: B. A is a truth-teller and B is a liar
If B were a truth-teller, both would be truth-tellers, so A’s claim “B is a liar” would be true — but then B is a liar: contradiction. So B is a liar; then A’s claim is true, so A is a truth-teller. Check: B’s claim “both truth-tellers” is false — consistent. Option 4 fails because A’s statement “B is a liar” would then be true.
Question 5 · multiple choice Which method assumes ¬ q \neg q ¬ q and then shows ¬ p \neg p ¬ p , without needing any contradiction?
A Direct proof B Proof by contradiction C Proof by contrapositive D Proof by counterexample
Check answer
Show answer Answer: C. Proof by contrapositive
Contrapositive proves ¬ q → ¬ p \neg q \to \neg p ¬ q → ¬ p directly. Proof by contradiction also starts with ¬ q \neg q ¬ q , but it additionally assumes p p p and ends with a contradiction, so it is the tempting wrong option.
Question 6 · short answer
Prove by contradiction that there is no largest even integer.
Show worked answer Assume, for contradiction, that there is a largest even integer N N N . Then N = 2 k N = 2k N = 2 k for some integer k k k . Consider N + 2 = 2 ( k + 1 ) N + 2 = 2(k + 1) N + 2 = 2 ( k + 1 ) ; it is even, because k + 1 k + 1 k + 1 is an integer. Also N + 2 > N N + 2 > N N + 2 > N . So N + 2 N + 2 N + 2 is an even integer larger than the largest even integer N N N — a contradiction. Hence there is no largest even integer.