Skip to main content

MATH 308 — Lec 6 — Proof by Cases; Biconditionals

Math 308 · September 24, 2026

Lecture 6 — Proof by Cases and Biconditionals
MATH 308  Bridge to Advanced Mathematics  Chartrand §2.6, 3.4

Goals for today. By the end of this lecture you should be able to:

  • split a proof into exhaustive cases and know why the cases together settle the whole statement;

  • use “same/opposite parity” and the phrase without loss of generality correctly;

  • read the biconditional P⇔QP \Leftrightarrow QP⇔Q as two implications and prove each direction;

  • recognize an “if and only if” theorem as a characterization — an exact substitute for a condition.

Proof by cases (§3.4)

Sometimes a statement about every xxx in a set SSS is hard to attack all at once, but easy once we know a little more about xxx. If the possibilities for xxx can be sorted into finitely many cases that cover every element of SSS, and the statement holds in each case, then it holds for all of SSS. This is proof by cases.

The one non-negotiable requirement is that the cases be exhaustive: every x∈Sx \in Sx∈S must fall into at least one case. (Overlap between cases is harmless; a gap is fatal.) The most common split is by parity — recall from Lecture 2 that {E,O}\{E, O\}{E,O}, the even and odd integers, is a partition of Z\mathbb{Z}Z, so “nnn even” and “nnn odd” are automatically exhaustive.

Example 1 (The workhorse example). For every n∈Zn \in \mathbb{Z}n∈Z, the product n(n+1)n(n+1)n(n+1) is even.

Proof. We consider two cases according to the parity of nnn.

  • Case 1: nnn is even. Then n=2kn = 2kn=2k for some k∈Zk \in \mathbb{Z}k∈Z, so n(n+1)=2k(n+1)=2(k(n+1))n(n+1) = 2k(n+1) = 2\bigl(k(n+1)\bigr)n(n+1)=2k(n+1)=2(k(n+1)). Since k(n+1)∈Zk(n+1) \in \mathbb{Z}k(n+1)∈Z, the product is even.

  • Case 2: nnn is odd. Then n+1n+1n+1 is even, say n+1=2kn+1 = 2kn+1=2k with k∈Zk \in \mathbb{Z}k∈Z, so n(n+1)=2kn=2(kn)n(n+1) = 2kn = 2(kn)n(n+1)=2kn=2(kn). Since kn∈Zkn \in \mathbb{Z}kn∈Z, the product is even.

In both cases n(n+1)n(n+1)n(n+1) is even, and the two cases exhaust Z\mathbb{Z}Z. ■\qquad\blacksquare■

Proof by cases: the exhaustive split of Z into even and odd integers. Every path leads to the same conclusion, so the conclusion holds for all n Z.

Proof by cases: the exhaustive split of Z\mathbb{Z}Z into even and odd integers. Every path leads to the same conclusion, so the conclusion holds for all n∈Zn \in \mathbb{Z}n∈Z.

Proposition 1. For every n∈Zn \in \mathbb{Z}n∈Z, the integer n2+3n+5n^2 + 3n + 5n2+3n+5 is odd.

Proof. We proceed by cases on the parity of nnn.

Case 1: nnn is even. Write n=2an = 2an=2a with a∈Za \in \mathbb{Z}a∈Z. Then

n2+3n+5=4a2+6a+5=2(2a2+3a+2)+1.n^2 + 3n + 5 = 4a^2 + 6a + 5 = 2\bigl(2a^2 + 3a + 2\bigr) + 1.n2+3n+5=4a2+6a+5=2(2a2+3a+2)+1.

Since 2a2+3a+2∈Z2a^2 + 3a + 2 \in \mathbb{Z}2a2+3a+2∈Z, the value is odd.

Case 2: nnn is odd. Write n=2a+1n = 2a + 1n=2a+1 with a∈Za \in \mathbb{Z}a∈Z. Then

n2+3n+5=(2a+1)2+3(2a+1)+5=4a2+10a+9=2(2a2+5a+4)+1.n^2 + 3n + 5 = (2a+1)^2 + 3(2a+1) + 5 = 4a^2 + 10a + 9 = 2\bigl(2a^2 + 5a + 4\bigr) + 1.n2+3n+5=(2a+1)2+3(2a+1)+5=4a2+10a+9=2(2a2+5a+4)+1.

Since 2a2+5a+4∈Z2a^2 + 5a + 4 \in \mathbb{Z}2a2+5a+4∈Z, the value is odd. In both cases the value is odd.   ◻

Definition 1 (Same / opposite parity). Integers xxx and yyy are of the same parity if they are both even or both odd; they are of opposite parity if one is even and the other odd. For instance 555 and 131313 have the same parity, while 888 and 111111 have opposite parity.

Any statement phrased with “same parity” is a natural candidate for proof by cases, because the hypothesis already hands you the case split.

Remark 1 (Without loss of generality). When two cases have proofs that differ only by swapping the names of the objects, it is wasteful to write both. We say “without loss of generality (WLOG), assume xxx is even and yyy is odd,” handle that case, and note the other is identical after relabeling. Use WLOG only when the swap really does turn one proof into the other — never to skip a genuinely different case.

The biconditional: “if and only if” (§3.4–3.5)

Recall from Lecture 3 that the implication P⇒QP \Rightarrow QP⇒Q (“if PPP then QQQ”) can be true while its converse Q⇒PQ \Rightarrow PQ⇒P is false. When both hold, PPP and QQQ stand or fall together, and we write P⇔QP \Leftrightarrow QP⇔Q, read “PPP if and only if QQQ” (often abbreviated “iff”).

Definition 2 (Biconditional). The biconditional P⇔QP \Leftrightarrow QP⇔Q is the statement (P⇒Q)∧(Q⇒P)\bigl(P \Rightarrow Q\bigr) \wedge \bigl(Q \Rightarrow P\bigr)(P⇒Q)∧(Q⇒P). It is true exactly when PPP and QQQ have the same truth value.

PPP QQQ P⇒QP \Rightarrow QP⇒Q Q⇒PQ \Rightarrow PQ⇒P P⇔QP \Leftrightarrow QP⇔Q
T T T T T
T F F T F
F T T F F
F F T T T

The last column agrees with the third and fourth exactly where both are T. So to prove a biconditional you must prove two implications: the forward direction P⇒QP \Rightarrow QP⇒Q (⇒\Rightarrow⇒) and the converse Q⇒PQ \Rightarrow PQ⇒P (⇐\Leftarrow⇐). Each is proved by whatever method fits — direct, contrapositive (Lecture 5), or cases — and the two directions may well use different methods.

A biconditional P Q is two implications. Proving it means walking both arrows; neither direction alone suffices.

A biconditional P⇔QP \Leftrightarrow QP⇔Q is two implications. Proving it means walking both arrows; neither direction alone suffices.

Theorem 2 (Same parity, characterized). Let x,y∈Zx, y \in \mathbb{Z}x,y∈Z. Then xxx and yyy are of the same parity if and only if x+yx + yx+y is even.

Proof. (⇒)(\Rightarrow)(⇒) Assume xxx and yyy have the same parity. We consider two cases.

Case 1: both even. Then x=2ax = 2ax=2a and y=2by = 2by=2b for some a,b∈Za, b \in \mathbb{Z}a,b∈Z, so x+y=2(a+b)x + y = 2(a+b)x+y=2(a+b) is even.

Case 2: both odd. Then x=2a+1x = 2a+1x=2a+1 and y=2b+1y = 2b+1y=2b+1 for some a,b∈Za, b \in \mathbb{Z}a,b∈Z, so x+y=2a+2b+2=2(a+b+1)x + y = 2a + 2b + 2 = 2(a+b+1)x+y=2a+2b+2=2(a+b+1) is even.

In either case x+yx + yx+y is even.

(⇐)(\Leftarrow)(⇐) We prove the contrapositive: if xxx and yyy have opposite parity, then x+yx + yx+y is odd. Without loss of generality assume xxx is even and yyy is odd, say x=2ax = 2ax=2a and y=2b+1y = 2b + 1y=2b+1 with a,b∈Za, b \in \mathbb{Z}a,b∈Z. Then

x+y=2a+2b+1=2(a+b)+1,x + y = 2a + 2b + 1 = 2(a + b) + 1,x+y=2a+2b+1=2(a+b)+1,

which is odd. Hence if x+yx + yx+y is even, xxx and yyy cannot have opposite parity, so they have the same parity. ◻

Notice how the two directions used different tools: the forward direction was a direct proof by cases, the converse a proof by contrapositive that itself used WLOG. This is typical.

Theorem 3. Let a,b∈Za, b \in \mathbb{Z}a,b∈Z. Then ababab is even if and only if aaa is even or bbb is even.

Proof. (⇐)(\Leftarrow)(⇐) Assume aaa is even or bbb is even. Without loss of generality let aaa be even, say a=2xa = 2xa=2x with x∈Zx \in \mathbb{Z}x∈Z. Then ab=2(xb)ab = 2(xb)ab=2(xb), and since xb∈Zxb \in \mathbb{Z}xb∈Z, ababab is even.

(⇒)(\Rightarrow)(⇒) We prove the contrapositive: if it is not the case that aaa is even or bbb is even, then ababab is odd. By one of De Morgan’s laws (Lecture 3), the negation of “aaa is even or bbb is even” is “aaa is odd and bbb is odd.” So write a=2x+1a = 2x + 1a=2x+1 and b=2y+1b = 2y + 1b=2y+1 with x,y∈Zx, y \in \mathbb{Z}x,y∈Z. Then

ab=(2x+1)(2y+1)=4xy+2x+2y+1=2(2xy+x+y)+1,ab = (2x+1)(2y+1) = 4xy + 2x + 2y + 1 = 2(2xy + x + y) + 1,ab=(2x+1)(2y+1)=4xy+2x+2y+1=2(2xy+x+y)+1,

which is odd. Contrapositively, if ababab is even then aaa is even or bbb is even. ◻

Remark 2 (On §3.5, evaluating proofs). Chartrand §3.5 asks you to read a written argument and judge it: Are the cases exhaustive? Is each implication of a biconditional actually proved, or only one direction? Is a “WLOG” honest? Reading proofs critically is the same skill as writing them — and both directions of an “iff” must be present before a proof is complete.

In-class problems

  1. Prove by cases that for every n∈Zn \in \mathbb{Z}n∈Z, the integer n2−3n+9n^2 - 3n + 9n2−3n+9 is odd.

  2. Prove that for every n∈Zn \in \mathbb{Z}n∈Z, the integer n3−nn^3 - nn3−n is even. (Hint: n3−n=(n−1)n(n+1)n^3 - n = (n-1)n(n+1)n3−n=(n−1)n(n+1); use the workhorse example, or three cases mod 333.)

  3. Let x,y∈Zx, y \in \mathbb{Z}x,y∈Z. Prove that x−yx - yx−y is even if and only if xxx and yyy have the same parity. Which theorem above does this resemble, and why?

  4. Let a,b∈Za, b \in \mathbb{Z}a,b∈Z. Prove that ababab is odd if and only if aaa and bbb are both odd. (Relate it to Theorem 2.2 by negation.)

  5. State the converse of “if nnn is a multiple of 444, then nnn is even.” Is the biconditional true? Give a proof or a counterexample.

  6. A student proves “x+yx + yx+y is even ⇒\Rightarrow⇒ x,yx, yx,y same parity” and stops. Have they proved the biconditional in Theorem 2.1? Explain what is missing.

Suggested textbook exercises (Chartrand §3.4–3.5): 3.26, 3.27, 3.28, 3.30, 3.32, 3.37, 3.41, 3.44.

← Back to Math 308