7 - Contrapositive Proof

What is a contrapositive?

The contrapositive of P⟹Q is ¬Q⟹¬P. The two statements are logically equivalent.

This is useful when the original direct proof is difficult to prove than the contrapositive proof.

Division

Screen Shot 2023-09-19 at 1.34.08 PM.png

We can turn a|b into the statement b=ac for some c∈Z. Screen Shot 2023-09-19 at 2.54.10 PM.png

In class practice

∀x∈Z, if 3x−7 is even, then x is odd.

∀x∈Z, if x is even, then 3x−7 is odd.

Proposition. Given x∈Z, if 3x−7 is even, then x is odd.

Proof. Let x∈Z. We work contrapositively. Assume that x is even.
Thus x=2k for some k∈Z. We find

3x−7=3(2k)−7=6k−7=2(3k−4)+1

is odd.
Since 3k−4 is an integer, 3x−7 is odd. ◻

Direct Proof
Let x∈Z. We work directly. Assume that 3x−7 is even. Then 3x−7=2j for some j∈Z. Then x=2j+7−2x=2(j−x+3)+1. Since j−x+3

Proposition. Let x∈Z. If x2−6x+7 is odd, then x is even.

Proof. Let x∈Z. We work contrapositively. Assume that x is odd. Thus x=2k+1 for some k∈Z. Hence,

x2−6x+7=(2k+1)2−6(2k+1)+7=4k2+4k+1−12k−6+7=4k2−8k+2=2(2k2−4k+1)

Since 2k2−4k+1 is an integer, x2−6x+7 is even. ◻

Proposition. Let a,b∈Z. If a∣b, then a∣2b.

Proof. Let a,b∈Z. We work directly. Assume that a∣b.
Thus there exists c∈Z such that b=ac.
Thus 2b=2ac=a(2c). Since 2c is an integer, a∣2b. ◻

Proposition. Given x∈Z, if 2∤x, then x is odd.

Proof. Let x∈Z. We work contrapositively. Assume that x is even. Thus x=2k for some k∈Z. Thus 2∣x.



HW 7

Ben Finch

E 7.1
Proposition. Let a∈Z. If a2+3 is odd, then a is even.

Proof.
Let a∈Z. We work contraposititvely. Assume a is odd. Thus a=2k+1 for some k∈Z. We find

a2+3=(2k+1)2+3=4k2+4k+1+3=2(2k2+2k+2)

is even. ◻

E 7.2
Proposition. Let x,y∈Z. If xy+y2 is even, then x is odd or y is even.

Proof. Let x,y∈Z. We work contrapositively. Assume x is even and y is odd. Thus x=2k for some k∈Z and y=2n+1 for some n∈Z.
We find

xy+y2=2k(2k+1)+(2n+1)2=4k2+2k+4n2+4n+1=2(2k2+k+2n2+2n)+1

is an odd integer. ◻

E 7.3
Proposition. Let s∈Z. s is odd if and only if s3 is odd.

Proof. Let s∈Z. We first prove that s3 is odd if s is odd. We work directly. Assume s is odd, thus s=2k+1 for some k∈Z. We find that

s3=(2k+1)2=4k2+4k+1=2(2k2+2k)+1

is an odd integer.

We now prove that s is odd if s3 is odd. We work contrapositively. Assume s is even, thus s=2k for some k∈Z. We find that

s3=(2k)3=8k2=2(4k2)

is an even integer. ◻

E 7.4
In the student's proof, they use the converse instead of the contrapositive. The correct contrapositive would be:
If x is odd, then 2∤x.

Proof. Assume, contrapositively, that x is odd. Thus, x=2k+1 for some k∈Z, which means 2 does not divide x. ◻

E 7.5

Proposition: Let a,b,c,d∈Z. If a|c and b|d, then ab|cd.

Proof: Let a,b,c,d∈Z. We work directly. Assume a|c and b|d. Thus c=ax and d=by for some x,y∈Z.

Now, cd=(ax)(by)=ab(xy). Since xy∈Z, we have ab|cd. ◻

E 7.6
If ab∤cd, then a∤c or b∤d.

E 7.7
Proposition. Let a∈Z. If 4∤a2, then a is odd.

Proof. Let a∈Z. We work contrapositively. The logically equivalent contrapositive is if a is even, then 4∣a2.
Assume a is even. Thus a=2k for some k∈Z. We find

a2=(2k)2=4k2

Which is a multiple of four. In other words, 4 is a divisor of 4 times some integer k2. Thus 4∣a2. ◻

E 7.8
Proposition. Given x∈Z, then 5x−1 is even only if x is odd.

Direct Proof.
Let x∈Z.
We work directly.
Assume x is even. Thus x=2k for some k∈Z We find

5x−1=5(2k)−1=2(5k)−1

is odd. ◻

Contrapositive Proof.
Let x∈Z.
We work contrapositively.
Assume 5x−1 is odd. Thus 5x−1=2k+1 for some k∈Z. We find

5x−1=2k+15x=2k+2x=2k+25

is even. ◻