Mathematical-Reasoning · Unit 7 · Video 2 · Interactive Practice

Writing a Proof by Contrapositive: ab = 0 and De Morgan

IKey Formulas

FormulaNameRole in the proofs
P→Q≡¬Q→¬PP \to Q \equiv \neg Q \to \neg PContrapositiveAssume ¬Q\neg Q and deduce ¬P\neg P: a direct proof of the contrapositive
¬(P∧Q)≡¬P∨¬Q\neg(P \wedge Q) \equiv \neg P \vee \neg QDe Morgan's Law¬(a≠0∧b≠0)≡(a=0)∨(b=0)\neg(a \ne 0 \wedge b \ne 0) \equiv (a = 0) \vee (b = 0)
X→(Y∨Z)≡(X∧¬Y)→ZX \to (Y \vee Z) \equiv (X \wedge \neg Y) \to ZConditional with a disjunctive conclusionSupplies the extra assumption a≠0a \ne 0
(ab=0∧a≠0)→b=0(ab = 0 \wedge a \ne 0) \to b = 0The statement actually provedMultiply both sides of ab=0ab = 0 by 1a\tfrac{1}{a}

Key Insight: To prove a statement, prove a logically equivalent one instead, and say in the first lines which statement you are proving.

IINegating a Conjunction

The negation of a≠0∧b≠0a \ne 0 \wedge b \ne 0 holds on both axes, not only at the origin.

IIIRewriting X→(Y∨Z)X \to (Y \vee Z)

Which rewrites of X→(Y∨Z)X \to (Y \vee Z) agree with it on all eight rows of a truth table?

IVWriting the Proof Line by Line

Each line of a proof by contrapositive announces the method or states why the assertion is true.

VQuiz Questions

Problem 1 · Form the Contrapositive

Given: for all integers mm and nn, if mnmn is even, then mm is even or nn is even. Which statement is its contrapositive?

✅ Correct! The conclusion is a disjunction, so De Morgan's Law turns its negation into “mm is odd and nn is odd”, and the negation of “mnmn is even” is “mnmn is odd”.
❌ Close, but… each part was negated and the “or” was kept. De Morgan's Law gives ¬(A∨B)≡¬A∧¬B\neg(A \vee B) \equiv \neg A \wedge \neg B, so the “or” must become “and”.
❌ Not quite. This swaps hypothesis and conclusion without negating them: it is the converse, which is not logically equivalent to the original statement.
❌ Not quite. The new hypothesis is right, but the new conclusion must be the negation of the old hypothesis: “mnmn is odd”, not “mnmn is even”.
Show solution

Write the statement as P→QP \to Q with PP: “mnmn is even” and QQ: “mm is even or nn is even”. The contrapositive is ¬Q→¬P\neg Q \to \neg P.

By De Morgan's Law, ¬Q\neg Q is “mm is not even and nn is not even”; for integers, not even means odd, so ¬Q\neg Q is “mm is odd and nn is odd”. Likewise ¬P\neg P is “mnmn is odd”.

The contrapositive: for all integers mm and nn, if mm is odd and nn is odd, then mnmn is odd, the result about products of odd integers proved earlier in the course.

Problem 2 · The Tempting Wrong Negation

Given: a student writes the contrapositive of “for all a,b∈Ra, b \in \mathbb{R}, if a≠0a \ne 0 and b≠0b \ne 0, then ab≠0ab \ne 0” as “for all a,b∈Ra, b \in \mathbb{R}, if ab=0ab = 0, then a=0a = 0 and b=0b = 0”. Which pair (a,b)(a, b) is a counterexample to the student's statement?

✅ Correct! Here ab=0ab = 0 is true but “a=0a = 0 and b=0b = 0” is false, because b=5b = 5. The student kept “and” where De Morgan's Law requires “or”.
❌ Not quite. At (0,0)(0, 0) both the hypothesis ab=0ab = 0 and the conclusion “a=0a = 0 and b=0b = 0” are true, so the conditional is true there.
❌ Not quite. For this pair ab≠0ab \ne 0, so the hypothesis is false and the conditional is true. A counterexample needs a true hypothesis and a false conclusion.
Show solution

A counterexample to X→WX \to W makes XX true and WW false. Here XX is ab=0ab = 0 and WW is (a=0)∧(b=0)(a = 0) \wedge (b = 0).

  • (0,0)(0, 0): ab=0ab = 0 and WW is true, so the conditional is true.
  • (0,5)(0, 5): ab=0ab = 0 but b≠0b \ne 0, so WW is false: a counterexample.
  • (3,−3)(3, -3): ab=−9≠0ab = -9 \ne 0, so the hypothesis is false.
  • (12,2)(\tfrac{1}{2}, 2): ab=1≠0ab = 1 \ne 0, so the hypothesis is false.

The correct contrapositive uses De Morgan's Law: ¬(a≠0∧b≠0)≡(a=0)∨(b=0)\neg(a \ne 0 \wedge b \ne 0) \equiv (a = 0) \vee (b = 0), giving “if ab=0ab = 0, then a=0a = 0 or b=0b = 0”, which (0,5)(0, 5) satisfies.

Problem 3 · Rewrite, Then Prove

Given: for all real numbers xx, if x2=9x^2 = 9, then x=3x = 3 or x=−3x = -3. Use X→(Y∨Z)≡(X∧¬Y)→ZX \to (Y \vee Z) \equiv (X \wedge \neg Y) \to Z with YY: x=3x = 3.

Which statement is logically equivalent to the given one?

After writing x2−9=(x−3)(x+3)=0x^2 - 9 = (x - 3)(x + 3) = 0, which step yields x=−3x = -3?

✅ Correct! The rewrite adds the assumption x≠3x \ne 3, which makes the factor x−3x - 3 nonzero, and the proposition (ab=0∧a≠0)→b=0(ab = 0 \wedge a \ne 0) \to b = 0 finishes the proof.
❌ Not quite. The rule adds ¬Y\neg Y, the negation of x=3x = 3, to the hypothesis, not YY itself.
❌ Close, but… the hypothesis is right, but the conclusion of (X∧¬Y)→Z(X \wedge \neg Y) \to Z is ZZ itself: x=−3x = -3, not its negation.
❌ Not quite. This changes “or” into “and” in the conclusion; no real number is both 33 and −3-3, so this statement fails at x=3x = 3.
❌ Check the rewrite. In (X∧¬Y)→Z(X \wedge \neg Y) \to Z, the hypothesis gains x≠3x \ne 3 and the conclusion is x=−3x = -3.
❌ Not quite. A product equal to zero forces at least one factor to be zero, not both: “a=0a = 0 or b=0b = 0”.
❌ Not quite. The known nonzero factor is x−3x - 3, from the assumption x≠3x \ne 3. Nothing so far says x+3≠0x + 3 \ne 0.
❌ Not quite. This step drops x=−3x = -3, and the assumption x≠3x \ne 3 already rules out x=3x = 3.
❌ Check the last step. Use the assumption x≠3x \ne 3 to name the nonzero factor.
Show solution

Rewrite. With XX: x2=9x^2 = 9, YY: x=3x = 3, ZZ: x=−3x = -3, the statement X→(Y∨Z)X \to (Y \vee Z) is logically equivalent to (X∧¬Y)→Z(X \wedge \neg Y) \to Z: for all real xx, if x2=9x^2 = 9 and x≠3x \ne 3, then x=−3x = -3.

Proof. We prove this logically equivalent statement. Let x∈Rx \in \mathbb{R} with x2=9x^2 = 9 and x≠3x \ne 3. Then

x2−9=0,(x−3)(x+3)=0.x^2 - 9 = 0, \qquad (x - 3)(x + 3) = 0.

Since x≠3x \ne 3, the factor x−3x - 3 is nonzero. By the proposition proved in the video (if ab=0ab = 0 and a≠0a \ne 0, then b=0b = 0), with a=x−3a = x - 3 and b=x+3b = x + 3, we get x+3=0x + 3 = 0, so x=−3x = -3. ■\blacksquare

Problem 4 · Assume the Other Factor Is Nonzero

Given: to prove “for all a,b∈Ra, b \in \mathbb{R}, if ab=0ab = 0, then a=0a = 0 or b=0b = 0”, a classmate assumes b≠0b \ne 0 instead of a≠0a \ne 0.

Which statement does the classmate prove?

Which step finishes the classmate's proof?

✅ Correct! Since Y∨Z≡Z∨YY \vee Z \equiv Z \vee Y, the rule also gives (X∧¬Z)→Y(X \wedge \neg Z) \to Y; then b≠0b \ne 0 makes 1b\tfrac{1}{b} exist, and (ab)⋅1b=a (b⋅1b)=a=0(ab)\cdot\tfrac{1}{b} = a\,(b \cdot \tfrac{1}{b}) = a = 0.
❌ Not quite. The assumption is b≠0b \ne 0, the negation of b=0b = 0; the hypothesis must gain ¬Z\neg Z.
❌ Close, but… the conclusion stays the remaining disjunct, a=0a = 0, not its negation.
❌ Not quite. This negates both the hypothesis ab=0ab = 0 and the conclusion a=0a = 0. The hypothesis ab=0ab = 0 is kept as it is, only b≠0b \ne 0 is added to it, and the conclusion stays a=0a = 0.
❌ Check the statement. Swap the roles of YY and ZZ in (X∧¬Y)→Z(X \wedge \neg Y) \to Z.
❌ Not quite. Nothing says a≠0a \ne 0; in fact the goal is a=0a = 0, so 1a\tfrac{1}{a} need not exist.
❌ Not quite. Here ab=0ab = 0, and division by 00 is undefined.
❌ Not quite. This gives ab+b=bab + b = b, which does not isolate aa.
❌ Check the step. Only the factor assumed nonzero has a reciprocal you can use.
Show solution

With XX: ab=0ab = 0, YY: a=0a = 0, ZZ: b=0b = 0, the disjunction Y∨ZY \vee Z is logically equivalent to Z∨YZ \vee Y, so

X→(Z∨Y)≡(X∧¬Z)→Y.X \to (Z \vee Y) \equiv (X \wedge \neg Z) \to Y.

The classmate proves: if ab=0ab = 0 and b≠0b \ne 0, then a=0a = 0.

Let a,b∈Ra, b \in \mathbb{R} with ab=0ab = 0 and b≠0b \ne 0. Since b≠0b \ne 0, the number 1b\tfrac{1}{b} exists. Multiplying both sides by it:

(ab)⋅1b=0⋅1b,a(b⋅1b)=0,a⋅1=0,a=0.(ab)\cdot\tfrac{1}{b} = 0 \cdot \tfrac{1}{b}, \qquad a\left(b \cdot \tfrac{1}{b}\right) = 0, \qquad a \cdot 1 = 0, \qquad a = 0.

The second equation uses the associative property and 0⋅1b=00 \cdot \tfrac{1}{b} = 0. Either choice of nonzero factor gives a valid proof. ■\blacksquare

Solved: 0 / 4