01 / 21

Proof by
Cases

Learn to divide and conquer logical arguments by splitting a proposition into exhaustive cases and proving each one separately.

Discrete Math

What Is Proof by Cases?

Proof by cases (also called proof by exhaustion) is a technique where you break the domain of a statement into a finite number of non-overlapping, exhaustive cases, then prove the statement holds in every single case.

This strategy is especially powerful when a single uniform argument is hard to find, but the statement becomes much easier to prove once you consider each case on its own.

The Logical Foundation

Proof by cases rests on a tautology from propositional logic. If we can split our hypothesis into cases \( C_1, C_2, \ldots, C_n \) that cover everything, then:

The second bracket (exhaustiveness) guarantees at least one case always applies. The first bracket guarantees every case leads to \( Q \).

How It Works Visually

Proposition P Case 1 e.g., n is even Case 2 e.g., n is odd Case 3 (if needed) Prove Q ✓ Prove Q ✓ Prove Q ✓ Therefore Q is true

Two Key Requirements

1. Exhaustiveness
The cases must cover every possibility: \( C_1 \lor C_2 \lor \cdots \lor C_n \) must be a tautology (or follow from the hypothesis). No element of the domain may be left out.
2. Each Case Implies Q
Within each case, you must give a valid proof that the conclusion \( Q \) holds. The argument can differ from case to case: that is the whole power of the technique.

Proof by Cases vs. Other Techniques

Proof by Cases Direct Proof Contradiction
Strategy Split into exhaustive cases, prove each Assume \( P \), derive \( Q \) directly Assume \( \lnot Q \), derive a contradiction
When to use No single argument covers all inputs Implication is straightforward Direct path is blocked; negation helps
Risk Forgetting a case Dead-end algebra Contradiction hard to find
Example cue "For every integer \( n \)..." "If \( n \) is even, then..." "There is no rational \( x \)..."

How to Apply Proof by Cases

1
State what you want to prove. Write the proposition clearly: "For all \( x \in S \), \( P(x) \) implies \( Q(x) \)."
2
Identify a natural partition. Choose cases \( C_1, C_2, \ldots, C_n \) that cover the entire domain. Common splits: even/odd, positive/negative/zero, by remainder \( \bmod k \).
3
Verify exhaustiveness. Confirm \( C_1 \lor C_2 \lor \cdots \lor C_n \) is always true (or follows from the hypothesis).
4
Prove \( Q \) in each case. Inside Case \( i \), assume \( C_i \) and derive \( Q \) using any valid proof method.
5
Conclude. Since all cases lead to \( Q \), state: "By proof by cases, \( Q \) holds for all \( x \in S \)."

Example 1: Parity of \( n^2 \)

Partition: Every integer is either even or odd. This is exhaustive.

Case 1: \( n \) is even
Write \( n = 2k \). Then \( n^2 = (2k)^2 = 4k^2 = 2(2k^2) \), which is even. ✓
Case 2: \( n \) is odd
Write \( n = 2k + 1 \). Then \( n^2 = (2k+1)^2 = 4k^2 + 4k + 1 = 2(2k^2 + 2k) + 1 \), which is odd. ✓

Example 2: \( |x| \ge 0 \)

Partition: Every real number satisfies exactly one of: \( x \ge 0 \) or \( x < 0 \).

Case 1: \( x \ge 0 \)
By definition, \( |x| = x \). Since \( x \ge 0 \), the claim holds. ✓
Case 2: \( x < 0 \)
By definition, \( |x| = -x \). Since \( x < 0 \), we have \( -x > 0 \), which implies \( -x \ge 0 \). ✓

Example 3: Divisibility by 3

Partition: Every integer \( n \) leaves remainder 0, 1, or 2 when divided by 3. Three exhaustive cases.

Case 1: \( n \equiv 0 \pmod{3} \)
Then \( 3 \mid n \), so \( 3 \mid n(n+1)(n+2) \). ✓
Case 2: \( n \equiv 1 \pmod{3} \)
Then \( n + 2 \equiv 1 + 2 \equiv 0 \pmod{3} \), so \( 3 \mid (n+2) \), hence \( 3 \mid n(n+1)(n+2) \). ✓
Case 3: \( n \equiv 2 \pmod{3} \)
Then \( n + 1 \equiv 2 + 1 \equiv 0 \pmod{3} \), so \( 3 \mid (n+1) \), hence \( 3 \mid n(n+1)(n+2) \). ✓

Choosing the Right Partition

How do you decide which cases to use? Let the structure of the problem guide you:

1
Parity: Even / odd: 2 cases. Use when squaring, multiplying, or checking divisibility by 2.
2
Modular arithmetic: Remainder \( \bmod k \) gives \( k \) cases. Use when divisibility by \( k \) appears in the claim.
3
Sign: Positive / negative / zero: 2 or 3 cases. Use with absolute values, inequalities, or products.
4
Definition-driven: If a function or concept is defined piecewise (like \( |x| \)), the pieces are your cases.

WLOG: Reducing Redundant Cases

Sometimes two cases are symmetric: the same argument works with variable names swapped. Instead of writing both, mathematicians say "Without loss of generality (WLOG)" and prove only one.

Example 4: Properties of \(\max(a,b)\)

Case 1: \( a \ge b \)
\( \max(a,b) = a \).
\( |a - b| = a - b \).
RHS \( = \frac{a + b + (a - b)}{2} = \frac{2a}{2} = a \). ✓
Case 2: \( a < b \)
\( \max(a,b) = b \).
\( |a - b| = -(a-b) = b - a \).
RHS \( = \frac{a + b + (b - a)}{2} = \frac{2b}{2} = b \). ✓

When Not to Use It

Proof by cases is not always the best tool. Consider alternatives when:

Too many cases
If the partition creates dozens of cases, the proof becomes tedious and error-prone. Look for a direct or algebraic approach instead.
Infinite domain, no partition
You need a finite number of cases. You cannot say "Case 1: \( n = 1 \), Case 2: \( n = 2 \), ..." for all natural numbers. Use induction instead.
A direct proof exists
If a clean algebraic manipulation proves the result in one shot, splitting into cases adds unnecessary complexity.

Common Mistakes

✕ Missing a Case
Splitting integers into "positive" and "negative" forgets zero. Always double-check your partition is truly exhaustive.
✕ Assuming What You Prove
Inside Case \( i \), you may only assume \( C_i \) and the hypothesis: do not assume the conclusion \( Q \).
✕ Misapplying WLOG
Claiming "WLOG" when no true symmetry exists. If \( a \) and \( b \) play different roles, you need both cases.

Summary Checklist

Step What to Do Watch Out For
1. Partition Choose cases \( C_1, \ldots, C_n \) Must cover the entire domain
2. Verify Confirm exhaustiveness Don't forget boundary values (e.g., 0)
3. Prove each Derive \( Q \) inside each \( C_i \) Don't assume \( Q \) in the proof
4. WLOG Merge symmetric cases if valid Only when genuine symmetry exists
5. Conclude State: "By cases, \( Q \) holds" Reference every case explicitly

Question 1 of 5

What is the most important requirement for the cases in a proof by cases?

Question 2 of 5

You want to prove a statement about all integers \( n \) by considering \( n \bmod 3 \). How many cases do you need?

Question 3 of 5

A student splits real numbers into "positive" and "negative" to prove \( x^2 \ge 0 \). What is the flaw in this partition?

Question 4 of 5

Which logical tautology underlies proof by cases with two cases \( C_1 \) and \( C_2 \)?

Question 5 of 5

When is it valid to say "Without loss of generality (WLOG)" and prove only one of two cases?