7 - Contrapositive Proof

What is a contrapositive?

The contrapositive of PQ 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 cZ. Screen Shot 2023-09-19 at 2.54.10 PM.png

In class practice

xZ, if 3x7 is even, then x is odd.

xZ, if x is even, then 3x7 is odd.

Proposition. Given xZ, if 3x7 is even, then x is odd.

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

3x7=3(2k)7=6k7=2(3k4)+1

is odd.
Since 3k4 is an integer, 3x7 is odd.

Direct Proof
Let xZ. We work directly. Assume that 3x7 is even. Then 3x7=2j for some jZ. Then x=2j+72x=2(jx+3)+1. Since jx+3

Proposition. Let xZ. If x26x+7 is odd, then x is even.

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

x26x+7=(2k+1)26(2k+1)+7=4k2+4k+112k6+7=4k28k+2=2(2k24k+1)

Since 2k24k+1 is an integer, x26x+7 is even.

Proposition. Let a,bZ. If ab, then a2b.

Proof. Let a,bZ. We work directly. Assume that ab.
Thus there exists cZ such that b=ac.
Thus 2b=2ac=a(2c). Since 2c is an integer, a2b.

Proposition. Given xZ, if 2x, then x is odd.

Proof. Let xZ. We work contrapositively. Assume that x is even. Thus x=2k for some kZ. Thus 2x.



HW 7

Ben Finch

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

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

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

is even.

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

Proof. Let x,yZ. We work contrapositively. Assume x is even and y is odd. Thus x=2k for some kZ and y=2n+1 for some nZ.
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 sZ. s is odd if and only if s3 is odd.

Proof. Let sZ. We first prove that s3 is odd if s is odd. We work directly. Assume s is odd, thus s=2k+1 for some kZ. 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 kZ. 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 2x.

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

E 7.5

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

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

Now, cd=(ax)(by)=ab(xy). Since xyZ, we have ab|cd.

E 7.6
If abcd, then ac or bd.

E 7.7
Proposition. Let aZ. If 4a2, then a is odd.

Proof. Let aZ. We work contrapositively. The logically equivalent contrapositive is if a is even, then 4a2.
Assume a is even. Thus a=2k for some kZ. 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 4a2.

E 7.8
Proposition. Given xZ, then 5x1 is even only if x is odd.

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

5x1=5(2k)1=2(5k)1

is odd.

Contrapositive Proof.
Let xZ.
We work contrapositively.
Assume 5x1 is odd. Thus 5x1=2k+1 for some kZ. We find

5x1=2k+15x=2k+2x=2k+25

is even.