Skip to main content

MATH 308 — Lec 5 — Direct Proof & Contrapositive

Math 308 · September 18, 2026

Lecture 5 — Direct Proof and Proof by Contrapositive
MATH 308  Bridge to Advanced Mathematics  Chartrand §3.1–3.3

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

  • state precisely what it means for an integer to be even or odd, and use those definitions inside a proof;

  • write a direct proof of an implication “if PPP then QQQ” — assume PPP, reason forward, arrive at QQQ;

  • recognize when a direct attack stalls and switch to the contrapositive (∼Q⇒∼P)(\sim Q \Rightarrow \sim P)(∼Q⇒∼P), and say why that is legitimate;

  • prove statements about parity, including the flagship result: if n2n^2n2 is even then nnn is even.

The setting: even and odd integers (§3.1)

Before we can prove anything, we need statements built from precise definitions. Almost every example this week lives in the integers, sorted by parity.

Definition 1. An integer nnn is even if n=2kn = 2kn=2k for some k∈Zk \in \mathbb{Z}k∈Z, and odd if n=2k+1n = 2k+1n=2k+1 for some k∈Zk \in \mathbb{Z}k∈Z. Two integers have the same parity if both are even or both are odd; otherwise they have opposite parity.

That every integer is either even or odd (and never both) is exactly the partition Z=E∪O\mathbb{Z}= E \cup OZ=E∪O we met in Lecture 2. We will use that fact freely today and prove it cleanly once we have the Division Algorithm in Lecture 7.

Parity partitions Z: even integers (filled) and odd integers (open) strictly alternate. “n=2k” picks out the filled dots; “n=2k+1” the open ones.

Parity partitions Z\mathbb{Z}Z: even integers (filled) and odd integers (open) strictly alternate. “n=2kn=2kn=2k” picks out the filled dots; “n=2k+1n=2k+1n=2k+1” the open ones.

The anatomy of a direct proof

Most theorems have the form of an implication, P⇒QP \Rightarrow QP⇒Q (Lecture 3): a hypothesis PPP we are allowed to assume, and a conclusion QQQ we must reach. A direct proof does the obvious thing.

Direct proof of P⇒QP \Rightarrow QP⇒Q: Assume PPP is true. Using PPP, definitions, and facts already known, reason forward until you deduce QQQ.

We never have to worry about the case where PPP is false: an implication with a false hypothesis is automatically true (recall the vacuous truth of ∅⊆A\varnothing \subseteq A∅⊆A from Lecture 1). So the only work is the case PPP true, and the whole game is to unwind the definition of PPP, do some algebra, and repackage the result as QQQ.

The shape of a direct proof: enter on the left with P, flow rightward, exit with Q. Every step is forced by what came before.

The shape of a direct proof: enter on the left with PPP, flow rightward, exit with QQQ. Every step is forced by what came before.

Proposition 1. If mmm and nnn are even integers, then m+nm+nm+n is even.

Proof. Assume mmm and nnn are even. By definition there are integers j,kj,kj,k with m=2jm = 2jm=2j and n=2kn = 2kn=2k. Then

m+n=2j+2k=2(j+k).m + n = 2j + 2k = 2(j+k).m+n=2j+2k=2(j+k).

Since j+k∈Zj+k \in \mathbb{Z}j+k∈Z, the number m+nm+nm+n has the form 2(integer)2(\text{integer})2(integer), so m+nm+nm+n is even.   ◻

Notice the rhythm: name the integers the hypothesis promises (j,kj,kj,k), compute, then recognize the target form 2( ⋅ )2(\,\cdot\,)2(⋅). Watch the same three beats in a mixed-parity statement.

Proposition 2. If nnn is an odd integer, then 3n+73n + 73n+7 is even.

Proof. Assume nnn is odd, so n=2k+1n = 2k+1n=2k+1 for some k∈Zk \in \mathbb{Z}k∈Z. Then

3n+7=3(2k+1)+7=6k+3+7=6k+10=2(3k+5).3n + 7 = 3(2k+1) + 7 = 6k + 3 + 7 = 6k + 10 = 2(3k+5).3n+7=3(2k+1)+7=6k+3+7=6k+10=2(3k+5).

As 3k+5∈Z3k+5 \in \mathbb{Z}3k+5∈Z, we conclude 3n+73n+73n+7 is even.   ◻

The single most useful direct proof of the week is the one that later powers the contrapositive method. Keep it close.

Proposition 3. If nnn is an odd integer, then n2n^2n2 is odd.

Proof. Assume nnn is odd, so n=2k+1n = 2k+1n=2k+1 for some k∈Zk \in \mathbb{Z}k∈Z. Then

n2=(2k+1)2=4k2+4k+1=2(2k2+2k)+1.n^2 = (2k+1)^2 = 4k^2 + 4k + 1 = 2\bigl(2k^2 + 2k\bigr) + 1.n2=(2k+1)2=4k2+4k+1=2(2k2+2k)+1.

Since 2k2+2k∈Z2k^2 + 2k \in \mathbb{Z}2k2+2k∈Z, the integer n2n^2n2 has the form 2(integer)+12(\text{integer})+12(integer)+1, hence is odd.   ◻

Remark 1. Two degenerate but honest proof shapes round out §3.1. A trivial proof of P⇒QP \Rightarrow QP⇒Q establishes QQQ outright, ignoring PPP (e.g. “if n>0n>0n>0 then n2+1>0n^2 + 1 > 0n2+1>0” — the conclusion holds for every integer). A vacuous proof observes that PPP is never true, so P⇒QP \Rightarrow QP⇒Q holds with nothing to check (e.g. “if n2<0n^2 < 0n2<0 then n=17n = 17n=17”). Both are reminders that the truth of P⇒QP \Rightarrow QP⇒Q tracks the truth table of Lecture 3, not any real “cause and effect.”

Proof by contrapositive (§3.2)

Sometimes a direct proof stalls. Consider: if n2n^2n2 is even then nnn is even. Assuming the hypothesis gives n2=2kn^2 = 2kn2=2k, i.e. n=2kn = \sqrt{2k}n=2k​ — a dead end, because a square root drags us out of the integers and tells us nothing about the parity of nnn. The hypothesis is about n2n^2n2, but the leverage we want is about nnn.

The fix rests on a single logical equivalence you verified by truth table in Lecture 3:

(P⇒Q)  ≡  (∼Q⇒∼P).\bigl(P \Rightarrow Q\bigr) \;\equiv\; \bigl(\sim Q \Rightarrow \sim P\bigr).(P⇒Q)≡(∼Q⇒∼P).

The right-hand statement is the contrapositive. Because the two are logically equivalent — true in exactly the same rows — proving either one proves the other. (Do not confuse this with the converse Q⇒PQ \Rightarrow PQ⇒P, which is a genuinely different claim.)

P

Left: a statement and its contrapositive are two names for the same arrow. Right: identical truth-table columns — why proving one proves the other.

Proof by contrapositive of P⇒QP \Rightarrow QP⇒Q: Assume ∼Q\sim Q∼Q. Reason forward (a direct proof again!) until you deduce ∼P\sim P∼P.

When to reach for it. Switch to the contrapositive when the negations are friendlier than the originals — typically when QQQ is the simple, factorable statement (“nnn is even”) and PPP is the awkward one (“n2n^2n2 is even”). Negating swaps their roles and hands you the tractable hypothesis.

Theorem 4. Let n∈Zn \in \mathbb{Z}n∈Z. If n2n^2n2 is even, then nnn is even.

Proof. We prove the contrapositive: if nnn is odd, then n2n^2n2 is odd. But that is exactly Proposition 3: writing n=2k+1n = 2k+1n=2k+1 gives n2=2(2k2+2k)+1n^2 = 2(2k^2+2k)+1n2=2(2k2+2k)+1, which is odd. Hence the original implication holds.   ◻

The awkward hypothesis “n2n^2n2 is even” never had to be unwound: negating the conclusion handed us the clean, factorable “nnn is odd” to start from instead. That is the whole payoff.

Proposition 5. Let n∈Zn \in \mathbb{Z}n∈Z. If 5n+85n + 85n+8 is odd, then nnn is odd.

Proof. Contrapositive: assume nnn is even, say n=2kn = 2kn=2k with k∈Zk \in \mathbb{Z}k∈Z. Then

5n+8=5(2k)+8=10k+8=2(5k+4),5n + 8 = 5(2k) + 8 = 10k + 8 = 2(5k+4),5n+8=5(2k)+8=10k+8=2(5k+4),

which is even. So “nnn even” forces “5n+85n+85n+8 even,” i.e. ∼Q⇒∼P\sim Q \Rightarrow \sim P∼Q⇒∼P; equivalently, if 5n+85n+85n+8 is odd then nnn is odd.   ◻

Remark 2. Theorem 4 is not a curiosity — it is the crucial lemma in the classic proof that 2\sqrt{2}2​ is irrational, which we will give (by contradiction) in Lecture 9. There, “n2n^2n2 even ⇒\Rightarrow⇒ nnn even” is applied twice to force a shared factor of 222 and detonate the argument.

Homework Problems

  1. Prove directly: if mmm is even and nnn is odd, then m+nm + nm+n is odd.

  2. Prove directly: if nnn is an odd integer, then n2+3n+5n^2 + 3n + 5n2+3n+5 is odd. (Watch the parity of each term.)

  3. State the contrapositive and the converse of “if n2n^2n2 is odd, then nnn is odd.” Prove the true one; give a value of nnn making the converse’s status clear.

  4. Prove by contrapositive: for n∈Zn \in \mathbb{Z}n∈Z, if 7n−57n - 57n−5 is even, then nnn is odd.

  5. Prove by contrapositive: for a,b∈Za,b \in \mathbb{Z}a,b∈Z, if ababab is odd, then both aaa and bbb are odd. (Negation of “both odd” is “at least one is even” — Lecture 4.)

  6. Which shape — direct or contrapositive — fits “if n3n^3n3 is even, then nnn is even”? Carry it out.

Suggested textbook exercises (Chartrand §3.1–3.3): 3.2, 3.6, 3.10, 3.14, 3.18, 3.22, 3.28.

← Back to Math 308