McIntyre MathsMathematics Extension 2
Extension 2 › Proof › Lesson 1

Lesson 1 · Logic and the language of proof

Mathematics Extension 2 · Proof · Outcome ME2-12-01 · Term 4 · Week 1
Learning intentionTo learn the language and notation of logic, so we can read, write and negate mathematical statements precisely.
Success criteria · I can…
  • explain what a statement (proposition) is and use propositional symbols PP, QQ, RR
  • prove a statement by exhaustion, or disprove it with a counterexample
  • use ¬\neg, ∧\wedge, ∨\vee and ⇒\Rightarrow, and explain when P⇒QP \Rightarrow Q is false
  • negate “and”, “or” and “if…then” statements

Lesson flow

Warm-up · True or false?

Slide 3

Decide whether each claim is true or false. How sure are you, and why?

(a) All prime numbers are odd.
Show answerHide answer
Answer
False.
Why
2 is prime and even, so 2 is a counterexample. One counterexample is enough to disprove a “for all” claim.
(b) n2+n+41n^2 + n + 41 is prime for every n∈Nn \in \mathbb{N}.
Show answerHide answer
Answer
False, although it works for n=0n = 0 to 3939.
Why
For n=40n = 40: 1600+40+41=1681=4121600 + 40 + 41 = 1681 = 41^2. Many examples never prove a statement about infinitely many cases, but one counterexample disproves it.
(c) The sum of two odd numbers is even.
Show answerHide answer
Answer
True.
Why
Checking examples such as 3+5=83 + 5 = 8 is not a proof. We prove this in Lesson 3.
(d) If x2=9x^2 = 9, then x=3x = 3.
Show answerHide answer
Answer
False.
Why
x=−3x = -3 satisfies x2=9x^2 = 9 but not x=3x = 3, so it is a counterexample.

What is a proof? The road map for this unit

Slide 2
Definition
Proof

A logical argument showing that a statement is always true. A single counterexample shows that it is not.

In this unit you will learn the language of logic, then several ways to build a proof.

LessonsTopicIdeas
1–2Language and notationstatements, ¬\neg, ∧\wedge, ∨\vee, ⇒\Rightarrow, converse, contrapositive, ∀\forall, ∃\exists
3Direct proof and casesodd, even, divisibility
4Contrapositive and contradictionirrational numbers, infinitely many primes
5–6Inequalitiessquares are non-negative, AM–GM, triangle inequality
7–9Further inductionseries, inequalities, recursion, binomial theorem
10Calculus inequalitiesincreasing functions and the squeeze theorem

A proof is written for other readers, so clear setting out and signposts are part of the mark.

Key terms and notation

Slide 4
TermNotationRead as
Statement (proposition)PP, QQ, RRa sentence that is true or false, not both
Negation¬P\neg P or ∼P\sim Pnot PP
And / OrP∧QP \wedge Q, P∨QP \vee QPP and QQ, PP or QQ
ImplicationP⇒QP \Rightarrow Q or P→QP \rightarrow Qif PP then QQ; PP implies QQ
ConverseQ⇒PQ \Rightarrow Pif QQ then PP
EquivalenceP⇔QP \Leftrightarrow Q or P↔QP \leftrightarrow QPP if and only if QQ (PP iff QQ)
Contrapositive¬Q⇒¬P\neg Q \Rightarrow \neg Pif not QQ then not PP
Logically equivalent≃\simeqsame truth value in every case
Quantifiers∀\forall, ∃\existsfor all, there exists
Counterexample, contradictionone case that disproves a statement; an impossible result

The syllabus writes = between logically equivalent statements; here we write ≃ to avoid confusion with equality. Both appear in exam papers. The converse, equivalence, contrapositive and quantifiers are developed in Lesson 2.

Statements

Slide 5
Definition
Statement (proposition)

A statement is a sentence that is either true or false, but not both. Its logical value is true or false.

We name statements with capital letters, starting at PP. For example, PP: nn is a multiple of 3.

Example 1 · Which are statements? If so, true or false?

(a) There are kangaroos in Australia.
Show answerHide answer
Answer
A statement, and it is true.
Why
It is a sentence that is either true or false.
(b) Close the door.
Show answerHide answer
Answer
Not a statement.
Why
It is a command, so it is neither true nor false.
(c) x+1=5x + 1 = 5
Show answerHide answer
Answer
Not a statement until xx is known.
Why
Its logical value depends on xx. It becomes a statement with a quantifier, for example ∃x∈R\exists x \in \mathbb{R} such that x+1=5x + 1 = 5, which is true (Lesson 2).
(d) 16 is an odd number.
Show answerHide answer
Answer
A statement, and it is always false.
Why
A statement can be false. What matters is that it has a definite logical value.
(e) History is more interesting than Science.
Show answerHide answer
Answer
Not a statement.
Why
It is an opinion, which has no logical value.

Examples and counterexamples

Slides 6, 7
Definition
Proving and disproving with examples

Proof by exhaustion: check every possible case. It is valid, but only practical when there are few cases.

Counterexample: one example showing that a statement is not always true. One counterexample disproves a statement.

No number of examples can prove a statement about infinitely many cases.

Example 2 · Exhaustion and counterexample

(a) Prove by exhaustion: all odd integers between 16 and 20 are prime.
Show answerHide answer
Answer
The odd integers between 16 and 20 are 17 and 19. Both are prime, so the statement is proved.
Why
There are only two cases, so we can check them all. That is what makes the proof valid.
(b) Disprove: all primes are odd.
Show answerHide answer
Answer
2 is prime and even, so the statement is false.
Why
A single counterexample is enough to disprove a “for all” statement.

HSC practice · A counterexample

Slide 8
Adapted from 2020 HSC Q7Consider the claim: “If nn is prime, then 2n−12^n - 1 is prime.” Which value of nn is a counterexample?
A n=2n = 2B n=3n = 3C n=7n = 7D n=11n = 11
Show answerHide answer
Answer
D
Why
211−1=2047=23×892^{11} - 1 = 2047 = 23 \times 89, and 11 is prime. For A, B and C: 22−1=32^2 - 1 = 3, 23−1=72^3 - 1 = 7 and 27−1=1272^7 - 1 = 127 are all prime, so they agree with the claim and are not counterexamples. A counterexample must make the “if” part true and the “then” part false.

Negation

Slide 9
Definition
Negation ¬P\neg P

“not PP”. It has the opposite logical value to PP. Also written ∼P\sim P.

Watch the word “all”

PP: All cats are fluffy.

Correct ¬P\neg P: Not all cats are fluffy, so there exists a cat that is not fluffy.

Incorrect: “All cats are not fluffy.” This says no cat is fluffy, which is too strong.

Test: exactly one of PP and ¬P\neg P is true. If you can imagine both being false, your negation is wrong.

Example 3 · Negation

Slide 10

Write the negation of each statement.

1. PP: It is raining.
Show answerHide answer
Answer
It is not raining.
Why
The simplest case: ¬P\neg P is “not PP”.
2. QQ: All dogs are brown.
Show answerHide answer
Answer
Not all dogs are brown: there is a dog that is not brown.
Why
Do not write “all dogs are not brown”. That says no dog is brown, which is too strong.
3. RR: The bottle of water is full.
Show answerHide answer
Answer
The bottle of water is not full.
Why
Not “empty”. A half-full bottle is neither full nor empty.
4. SS: Some students ride to school.
Show answerHide answer
Answer
No students ride to school.
Why
The opposite of “some” is “none”.
5. TT: x>4x > 4
Show answerHide answer
Answer
x≤4x \le 4
Why
Not x<4x < 4. The negation must include the boundary case x=4x = 4.
6. UU: −3≤x≤8-3 \le x \le 8
Show answerHide answer
Answer
x<−3x < -3 or x>8x > 8
Why
The “and” hidden in −3≤x≤8-3 \le x \le 8 (that is, x≥−3x \ge -3 and x≤8x \le 8) becomes “or”. This previews the negation rules later in the lesson.

“And” and “or”

Slide 11
Definition
And (∧\wedge) and Or (∨\vee)

P∧QP \wedge Q is true only when both PP and QQ are true.

P∨QP \vee Q is true when at least one of PP, QQ is true (inclusive or).

Truth tables use 1 for true and 0 for false. Order of precedence: ¬\neg, then ∧\wedge, then ∨\vee.

PPQQP∧QP \wedge QP∨QP \vee Q
1111
1001
0101
0000

Capital letters are reserved for statements, so truth values are written 1 and 0 rather than T and F.

Example 4 · PP: 6 is even, QQ: 6 is prime

(a) Is P∧QP \wedge Q true?
Show answerHide answer
Answer
No, P∧QP \wedge Q is false.
Why
PP is true and QQ is false. Both must be true for “and”.
(b) Is P∨QP \vee Q true?
Show answerHide answer
Answer
Yes, P∨QP \vee Q is true.
Why
At least one must be true, and 6 is even.

Implication

Slide 12
Definition
Implication P⇒QP \Rightarrow Q

P⇒QP \Rightarrow Q (or P→QP \rightarrow Q) is read “if PP then QQ” or “PP implies QQ”.

Bob to Jane: “If you give me $100, then I will go shopping.”   PP: Jane gives Bob $100.   QQ: Bob goes shopping.

When has Bob lied? Complete the truth table for P⇒QP \Rightarrow Q, ¬P\neg P and ¬P∨Q\neg P \vee Q. Then complete: P⇒QP \Rightarrow Q is false only when …
Show answerHide answer
Answer
P⇒QP \Rightarrow Q is false only when PP is true and QQ is false.
Why
Bob only lies when Jane pays and he does not go shopping (row 2). If Jane never pays, Bob cannot have broken his promise, so P⇒QP \Rightarrow Q is true. This is called being vacuously true. The columns for P⇒QP \Rightarrow Q and ¬P∨Q\neg P \vee Q are identical, so P⇒Q≃¬P∨QP \Rightarrow Q \simeq \neg P \vee Q.
PPQQP⇒QP \Rightarrow Q¬P\neg P¬P∨Q\neg P \vee Q
11101
10000
01111
00111
No causal link needed

“If ABCD is a rectangle, then today is Sunday.” An implication needs no causal link between PP and QQ. Its truth depends only on the truth values of PP and QQ.

Example 5 · Testing an implication

Slide 13
PP: xx is a multiple of 6.   QQ: xx is divisible by 9. Complete a truth table for P⇒QP \Rightarrow Q, giving a value of xx for each row. Is the implication always true?
Show answerHide answer
Answer
No. x=24x = 24 is a counterexample, so P⇒QP \Rightarrow Q is not always true.
Why
One value of xx for each row:
PPQQExample of xxP⇒QP \Rightarrow Q
11181
10240
01271
00251
Rows 3 and 4 are true because PP is false (vacuously true). Row 2 is the only row where the implication fails: 24 is a multiple of 6 but not divisible by 9.

Negating “and”, “or”, “if…then”

Slide 14
Negate…RuleIn words
a negation¬(¬P)≃P\neg(\neg P) \simeq Pnot not PP is PP
“and”¬(P∧Q)≃¬P∨¬Q\neg(P \wedge Q) \simeq \neg P \vee \neg Qat least one fails
“or”¬(P∨Q)≃¬P∧¬Q\neg(P \vee Q) \simeq \neg P \wedge \neg Qboth fail
“if…then”¬(P⇒Q)≃P∧¬Q\neg(P \Rightarrow Q) \simeq P \wedge \neg QPP happens but QQ does not
Useful equivalence
P⇒Q  ≃  ¬P∨Q  ≃  ¬(P∧¬Q)P \Rightarrow Q \;\simeq\; \neg P \vee Q \;\simeq\; \neg(P \wedge \neg Q)

“If PP then QQ” only fails when PP is true and QQ is false. So ¬(P⇒Q)\neg(P \Rightarrow Q) says exactly that: P∧¬QP \wedge \neg Q.

De Morgan’s laws for sets: A∩B‾=A‾∪B‾\overline{A \cap B} = \overline{A} \cup \overline{B} and A∪B‾=A‾∩B‾\overline{A \cup B} = \overline{A} \cap \overline{B}. Same pattern: ∧\wedge matches ∩\cap and ∨\vee matches ∪\cup.

Common error

Writing ¬(P⇒Q)\neg(P \Rightarrow Q) as P⇒¬QP \Rightarrow \neg Q. The negation of an implication is an “and” statement, not another implication.

Example 6 · Negating compound statements

Slide 15

Write the negation of each statement.

(a) x>2x > 2 and xx is even.
Show answerHide answer
Answer
x≤2x \le 2 or xx is odd.
Why
Negating “and” gives “or”, and each part is negated: ¬(P∧Q)≃¬P∨¬Q\neg(P \wedge Q) \simeq \neg P \vee \neg Q. (For an integer xx, “not even” means odd.)
(b) nn is odd or nn is a multiple of 3.
Show answerHide answer
Answer
nn is even and nn is not a multiple of 3.
Why
Negating “or” gives “and”: ¬(P∨Q)≃¬P∧¬Q\neg(P \vee Q) \simeq \neg P \wedge \neg Q. Both parts have to fail.
(c) If nn is even, then n2n^2 is even.
Show answerHide answer
Answer
nn is even and n2n^2 is odd.
Why
¬(P⇒Q)≃P∧¬Q\neg(P \Rightarrow Q) \simeq P \wedge \neg Q. Keep the hypothesis and deny the conclusion. Do not write “if nn is even then n2n^2 is odd”, which is another implication.
(d) If I live in Tasmania, then I live in Australia.
Show answerHide answer
Answer
I live in Tasmania and I do not live in Australia.
Why
Again P∧¬QP \wedge \neg Q. (The original is true, so this negation is false for everyone.)

Exit ticket

Slide 16
1. Which is the negation of “If nn is prime, then nn is odd”?
A nn is not prime and nn is even.B nn is prime and nn is even.C If nn is odd, then nn is prime.D nn is not prime or nn is odd.
Show answerHide answer
Answer
B
Why
¬(P⇒Q)≃P∧¬Q\neg(P \Rightarrow Q) \simeq P \wedge \neg Q: “nn is prime and nn is not odd”, and not odd means even. A negates both parts. C is the converse. D is equivalent to the original statement (¬P∨Q\neg P \vee Q).
2. Which is logically equivalent to P⇒QP \Rightarrow Q?
A Q⇒PQ \Rightarrow PB P∧¬QP \wedge \neg QC ¬P∨Q\neg P \vee QD ¬P∧Q\neg P \wedge Q
Show answerHide answer
Answer
C
Why
P⇒Q≃¬P∨QP \Rightarrow Q \simeq \neg P \vee Q, as the truth table shows. B is the negation of P⇒QP \Rightarrow Q. A is the converse. D is false when PP and QQ are both true, but P⇒QP \Rightarrow Q is true then.