Mathematical-Reasoning Β· Unit 9 Β· Video 1 Β· Interactive Practice

Proof by Cases: Why It Works, and Why nΒ² + n Is Even

IKey Formulas

StatementNameWhat it gives a proof
(P∨Q)β†’R≑(Pβ†’R)∧(Qβ†’R)(P \lor Q) \to R \equiv (P \to R) \land (Q \to R)The case equivalenceTwo separate proofs: assume PP and reach RR, then assume QQ and reach RR
Every integer is even or oddAn exhaustive splitβ€œnn is an integer” says the same as β€œnn is even or nn is odd”
n=2mn = 2m or n=2m+1n = 2m + 1, with m∈Zm \in \mathbb{Z}Definitions of even and oddAn equation to substitute in each case
Β¬(X∧Y)≑¬X∨¬Y\neg(X \land Y) \equiv \neg X \lor \neg YDe Morgan’s lawTurns an β€œand” conclusion into an β€œor” hypothesis in the contrapositive

Key Insight: The β€œor” in the hypothesis becomes an β€œand” between two conditionals. Both cases must be proved, the cases must cover every possibility, and neither case may use the other’s assumption.

IIThe Truth Table Behind Proof by Cases

Only the conjunction (Pβ†’R)∧(Qβ†’R)(P \to R) \land (Q \to R) matches (P∨Q)β†’R(P \lor Q) \to R in all eight rows.

IIITwo Cases for n2+nn^2 + n

Every integer falls in one of the two cases, and each case supplies its own equation and its own mm.

Case 1 (Proposition 2): nn is even n=2mn = 2m n2+n=(2m)2+2m=4m2+2m=2(2m2+m)n^2 + n = (2m)^2 + 2m = 4m^2 + 2m = 2(2m^2 + m)
Case 2 (Proposition 3): nn is odd n=2m+1n = 2m + 1 n2+n=(2m+1)2+(2m+1)=4m2+6m+2=2(2m2+3m+1)\begin{aligned} n^2 + n &= (2m+1)^2 + (2m+1) \\ &= 4m^2 + 6m + 2 \\ &= 2(2m^2 + 3m + 1) \end{aligned}

IVCases from De Morgan: When Is xyxy Even?

The contrapositive’s hypothesis β€œxx is even or yy is even” is the union of two cases; the points left over have xyxy odd.

VQuiz Questions

Problem 1 Β· The Case Equivalence

Given: statements PP, QQ and RR. Which statement is logically equivalent to (P∨Q)β†’R(P \lor Q) \to R?

βœ… Correct! Both statements are false in exactly rows 2, 4 and 6 of the truth table, the rows where P∨QP \lor Q is true and RR is false.
❌ Not quite. One conditional is not enough. When PP is false, QQ is true and RR is false, Pβ†’RP \to R is true but (P∨Q)β†’R(P \lor Q) \to R is false.
❌ Not quite. This is the converse. When PP and QQ are false and RR is true, Rβ†’(P∨Q)R \to (P \lor Q) is false but (P∨Q)β†’R(P \lor Q) \to R is true.
❌ Close, but… the connective between the conditionals must be β€œand”. When PP is true and QQ and RR are false, Qβ†’RQ \to R is true, so this β€œor” statement is true, while (P∨Q)β†’R(P \lor Q) \to R is false.
Show solution

Rows in the order TTT, TTF, TFT, TFF, FTT, FTF, FFT, FFF for PP, QQ, RR:

Row(P∨Q)β†’R(P \lor Q) \to RPβ†’RP \to RRβ†’(P∨Q)R \to (P \lor Q)(Pβ†’R)∧(Qβ†’R)(P \to R) \land (Q \to R)(Pβ†’R)∨(Qβ†’R)(P \to R) \lor (Q \to R)
1TTTTT
2FFTFF
3TTTTT
4FFTFT
5TTTTT
6FTTFT
7TTFTT
8TTTTT

Only the column for (Pβ†’R)∧(Qβ†’R)(P \to R) \land (Q \to R) matches the column for (P∨Q)β†’R(P \lor Q) \to R in every row, so the answer is c. The other three each differ in at least one row: Pβ†’RP \to R in row 6, the converse in rows 2, 4, 6 and 7, and the β€œor” statement in rows 4 and 6.

Problem 2 Β· Do the Cases Cover Everything?

Given: a proof of a statement about every integer nn splits into two cases. Which pair of cases does not give a valid proof by cases?

βœ… Correct! The integer n=2n = 2 is neither a multiple of 44 nor odd, so it falls in no case, and the two proofs say nothing about it. The same goes for 66, 1010, βˆ’2-2, and every even number that is not a multiple of 44.
❌ Not quite. Every integer is even or odd, so these two cases cover every integer. This is the split used for n2+nn^2 + n.
❌ Not quite. Every integer nn satisfies nβ‰₯0n \geq 0 or n<0n < 0, so these cases cover every integer.
❌ Not quite. These cases overlap at 33, 44 and 55, but every integer satisfies n≀5n \leq 5 or nβ‰₯3n \geq 3. Cases must cover every possibility; they do not have to be separate, and an integer in both cases is covered by either proof.
Show solution

A proof by cases proves (P∨Q)β†’R(P \lor Q) \to R, so the disjunction P∨QP \lor Q must hold for every integer the statement is about. Check each pair:

  • (a) Every integer is even or odd: covered.
  • (b) For n=2n = 2, β€œ22 is a multiple of 44” is false and β€œ22 is odd” is false: not covered.
  • (c) Every integer is nonnegative or negative: covered.
  • (d) If n≀5n \leq 5 is false, then n>5n > 5, so nβ‰₯3n \geq 3: covered.

So the invalid split is b.

Problem 3 Β· Case 2 with a Negative Odd Integer

Given: n=βˆ’5n = -5, handled by Case 2 of the proof that n2+nn^2 + n is even: write n=2m+1n = 2m + 1, then n2+n=2(2m2+3m+1)n^2 + n = 2(2m^2 + 3m + 1). Find mm and the integer 2m2+3m+12m^2 + 3m + 1.

What is m?

What is 2mΒ² + 3m + 1?

βœ… Correct! With m=βˆ’3m = -3, 2m+1=βˆ’52m + 1 = -5 and 2m2+3m+1=102m^2 + 3m + 1 = 10, so n2+n=2β‹…10=20n^2 + n = 2 \cdot 10 = 20, which is even.
❌ Check the sign. m=βˆ’2m = -2 gives 2m+1=βˆ’32m + 1 = -3, not βˆ’5-5. Solve βˆ’5=2m+1-5 = 2m + 1: m=βˆ’5βˆ’12m = \frac{-5 - 1}{2}.
❌ Wrong case. m=n/2m = n/2 is the Case 1 formula, and here it is not an integer. For odd nn the Case 2 equation gives m=nβˆ’12m = \frac{n - 1}{2}.
❌ Not quite. m=nβˆ’1m = n - 1 forgets to halve. Check: 2(βˆ’6)+1=βˆ’112(-6) + 1 = -11, not βˆ’5-5.
❌ Not quite. 33 is what m=βˆ’2m = -2 gives. With m=βˆ’3m = -3: 2(9)+3(βˆ’3)+1=18βˆ’9+12(9) + 3(-3) + 1 = 18 - 9 + 1.
❌ Not quite. 2020 is n2+nn^2 + n itself. The integer inside the parentheses is half of it.
❌ Check the sign. 3m=3(βˆ’3)=βˆ’93m = 3(-3) = -9, not +9+9, so the middle term subtracts.
Show solution

Since βˆ’5-5 is odd, write βˆ’5=2m+1-5 = 2m + 1. Then 2m=βˆ’62m = -6, so m=βˆ’3m = -3, an integer.

2m2+3m+1=2(βˆ’3)2+3(βˆ’3)+1=18βˆ’9+1=102m^2 + 3m + 1 = 2(-3)^2 + 3(-3) + 1 = 18 - 9 + 1 = 10

Check directly: n2+n=25+(βˆ’5)=20=2β‹…10n^2 + n = 25 + (-5) = 20 = 2 \cdot 10. So m=βˆ’3m = -3 and 2m2+3m+1=102m^2 + 3m + 1 = 10.

Problem 4 Β· Plan a Proof by Cases

Given: the proposition β€œFor all integers aa and bb, if 3∀ab3 \nmid ab, then 3∀a3 \nmid a and 3∀b3 \nmid b.” Which plan is a complete proof?

βœ… Correct! By De Morgan’s law the contrapositive is β€œif 3∣a3 \mid a or 3∣b3 \mid b, then 3∣ab3 \mid ab”, which has the form (P∨Q)β†’R(P \lor Q) \to R. The two cases prove Pβ†’RP \to R and Qβ†’RQ \to R.
❌ Not quite. These cases try to prove a false statement: with a=1a = 1 and b=3b = 3, 3∀a3 \nmid a but 3∣ab3 \mid ab. The negations must go through the contrapositive, where they swap sides.
❌ Not quite. Assuming both 3∣a3 \mid a and 3∣b3 \mid b proves (P∧Q)β†’R(P \land Q) \to R, which says nothing about a=3a = 3, b=1b = 1. The contrapositive needs an β€œor” in its hypothesis, so it needs two cases.
❌ Close, but… one conditional is not enough. This proves Pβ†’RP \to R only, and leaves pairs such as a=1a = 1, b=3b = 3 unproved; a second case, 3∣b3 \mid b, is required.
Show solution

Contrapositive. Negating β€œ3∀a3 \nmid a and 3∀b3 \nmid b” gives, by De Morgan’s law, β€œ3∣a3 \mid a or 3∣b3 \mid b”. So the contrapositive is: if 3∣a3 \mid a or 3∣b3 \mid b, then 3∣ab3 \mid ab. With PP: 3∣a3 \mid a, QQ: 3∣b3 \mid b, RR: 3∣ab3 \mid ab, it has the form (P∨Q)β†’R(P \lor Q) \to R.

Case 1: 3∣a3 \mid a. Then a=3ka = 3k for some integer kk, so ab=3(kb)ab = 3(kb), and kbkb is an integer. Hence 3∣ab3 \mid ab.

Case 2: 3∣b3 \mid b. Then b=3jb = 3j for some integer jj, so ab=3(aj)ab = 3(aj), and ajaj is an integer. Hence 3∣ab3 \mid ab.

The two cases prove (Pβ†’R)∧(Qβ†’R)≑(P∨Q)β†’R(P \to R) \land (Q \to R) \equiv (P \lor Q) \to R, which is the contrapositive, and a conditional is equivalent to its contrapositive. So the plan is d.

Solved: 0 / 4