Case Analysis — Definition & Example
Case analysis is a proof method where you split a problem into a few situations that together cover every possibility, then prove the statement separately in each situation. It is also called proof by cases.
To prove a statement , choose statements whose disjunction is known to be true. Then prove each conditional . The inference is valid because follows from whichever actually holds.
Key Formula
Where:
- = The cases. At least one of them must be true, so together they cover every possibility.
- = The statement you want to prove, the same in every case.
- = Logical 'or' (disjunction).
- = Logical 'and' (conjunction).
- = Logical 'implies' (conditional).
Worked Example
Problem: Prove that for every integer , the number leaves a remainder of 0 or 1 when divided by 3.
Step 1: Every integer has a remainder of 0, 1, or 2 when divided by 3. So , , or for some integer . These three cases are exhaustive. Case 1: .
Step 2: Case 2: . Expand and group a multiple of 3.
Step 3: Case 3: . Here the constant term is 4, so you move a 3 into the multiple of 3. The remainder that is left is 1.
Answer: In every possible case, leaves a remainder of 0 or 1 when divided by 3. Since the cases cover all integers, the statement holds for every integer . As a consequence, no perfect square has the form .
Why It Matters
Case analysis is the standard way to prove facts about absolute value, parity, and remainders in a discrete math or intro-to-proofs course. For example, you prove by splitting on the signs of and . In computer science, the same idea shows up when you verify that an algorithm handles every branch of an if-else statement.
Common Mistakes
Mistake: Choosing cases that do not cover everything, such as splitting a real number into and and forgetting .
Correction: Before you prove anything, state why your cases are exhaustive. Use a fact such as 'every real number is positive, negative, or zero,' or the division algorithm for remainders. The cases may overlap, but they cannot leave a gap. If one value is missed, the proof is incomplete.
