IB Diploma Mathematics AA · Number and algebra
Proof
1What a proof is
A proof is a chain of logical steps showing that a statement is always true. Checking a few examples is not a proof: the statement might fail for a case you did not try.
- An equation is true only for certain values. $2x + 1 = 7$ is true only when $x = 3$.
- An identity is true for all values. It is written with the symbol $\equiv$. For example, $(x+1)^2 \equiv x^2 + 2x + 1$.
A direct proof starts from what is known and works step by step to the result.
To prove an identity, start with one side and transform it into the other. This is a "left-hand side to right-hand side" proof. Do not work on both sides at once as if it were an equation.
Proving an identity
- Prove that $(n+3)^2 - (n+1)^2 \equiv 4(n+2)$.
- LHS $= (n^2 + 6n + 9) - (n^2 + 2n + 1)$.
- $= 4n + 8$.
- $= 4(n+2) =$ RHS. The identity is proved.
Check yourself
Why is checking several examples not a proof?
Show the answer
The statement could still fail for a case that was not checked
A proof must cover every possible case.
2Proofs about whole numbers
Algebra lets one argument cover every whole number at once. Standard forms:
- an even number is $2n$;
- an odd number is $2n + 1$;
- consecutive integers are $n$, $n+1$, $n+2$;
- a multiple of 3 is $3n$.
The sum of two odd numbers is even
- Let the two odd numbers be $2m + 1$ and $2n + 1$, where $m$ and $n$ are integers. (Use different letters: the numbers need not be equal.)
- Their sum is $2m + 1 + 2n + 1 = 2m + 2n + 2$.
- $= 2(m + n + 1)$.
- This is 2 times an integer, so it is even.
The square of an odd number is odd
- Let the number be $2n + 1$.
- $(2n+1)^2 = 4n^2 + 4n + 1 = 2(2n^2 + 2n) + 1$.
- This is 2 times an integer, plus 1, so it is odd.
For top marks: finish every proof with a sentence that says what has been shown.
Check yourself
How is an odd number written in a proof?
Show the answer
2n + 1
2n is always even, so 2n + 1 is always odd.
3Disproof by counterexample
To show that a statement is false, one example where it fails is enough. This is a counterexample.
"All prime numbers are odd." The number 2 is prime and even, so the statement is false.
"$n^2 + n + 41$ is prime for every positive integer $n$." It works for $n = 1, 2, 3, \dots$ up to 39. For $n = 41$ it gives $41^2 + 41 + 41 = 41 \times 43$, which is not prime.
Check yourself
How many counterexamples are needed to disprove a statement?
Show the answer
One
A single failing case shows the statement is not always true.
4Writing a clear proof
A good proof has:
- A clear statement of what is to be shown.
- Defined notation: "let $n$ be an integer".
- Logical steps, each following from the previous.
- A conclusion that restates the result.
Prove that the sum of three consecutive integers is divisible by 3
- Let the integers be $n$, $n + 1$, $n + 2$.
- Sum: $3n + 3 = 3(n + 1)$.
- Since $n + 1$ is an integer, the sum is a multiple of 3.
Check yourself
How can three consecutive integers be written?
Show the answer
$n$, $n + 1$, $n + 2$
Increase by 1.
5Identities and LHS to RHS
To prove an identity, start from one side and transform it into the other. Do not move terms across as in an equation.
Prove $(n + 1)^2 - (n - 1)^2 = 4n$
- LHS $= (n^2 + 2n + 1) - (n^2 - 2n + 1)$.
- $= 4n$.
- $=$ RHS, as required.
The symbol $\equiv$ is used for identities, which are true for all values.
Check yourself
When proving an identity, what should you do?
Show the answer
Transform one side into the other
LHS to RHS.
6Going deeper: five model proofs and how they are marked
A proof earns marks for a correct general argument, clear algebra and a concluding statement. Testing examples proves nothing, however many you try.
Model 1 (direct proof): prove that the difference between the squares of two consecutive odd numbers is a multiple of 8.
- Let the numbers be $2k - 1$ and $2k + 1$, where $k \in \mathbb{Z}$.
- $(2k + 1)^2 - (2k - 1)^2 = (4k^2 + 4k + 1) - (4k^2 - 4k + 1) = 8k$.
- $8k$ is a multiple of 8, which completes the proof.
Model 2 (an identity): show that $\frac{1}{n} - \frac{1}{n + 1} \equiv \frac{1}{n(n + 1)}$.
- Start with the left-hand side only: $\frac{(n + 1) - n}{n(n + 1)}$.
- Simplify: $\frac{1}{n(n + 1)}$, which is the right-hand side.
- Never move terms across the identity sign: that assumes what you are proving.
Model 3 (counterexample): "$n^2 + n + 41$ is prime for every positive integer $n$."
- It is true for $n = 1$ to 39, which shows how misleading examples can be.
- For $n = 40$: $1600 + 40 + 41 = 1681 = 41^2$, which is not prime.
- One counterexample is enough to disprove a statement.
Model 4 (HL, contradiction): prove that $\sqrt{2}$ is irrational.
- Assume $\sqrt{2} = \frac{p}{q}$ with $p$, $q$ integers with no common factor.
- Then $p^2 = 2q^2$, so $p^2$ is even, so $p$ is even: $p = 2m$.
- Then $4m^2 = 2q^2$, so $q^2 = 2m^2$ and $q$ is even.
- Both are even, contradicting "no common factor". So $\sqrt{2}$ is irrational.
Model 5 (HL, induction): prove that $7^n - 1$ is divisible by 6 for all $n \in \mathbb{Z}^+$.
- Base case: $n = 1$ gives $6$, which is divisible by 6.
- Assume true for $n = k$: $7^k - 1 = 6m$ for some integer $m$.
- Step: $7^{k+1} - 1 = 7(7^k - 1) + 6 = 7(6m) + 6 = 6(7m + 1)$.
- Conclude: true for $n = 1$, and true for $k + 1$ whenever true for $k$, so true for all positive integers by induction.
How marks are lost
- No definition of the variables ("let $k$ be an integer").
- Using the same letter for two unrelated numbers: two odd numbers are $2m + 1$ and $2n + 1$, unless they are consecutive.
- In induction, not using the assumption, or leaving out the final sentence.
- Writing "$=$" where "$\equiv$" or "$\Rightarrow$" is meant.
Check yourself
Which value of n shows that "n² − n + 11 is prime for every positive integer n" is false?
Show the answer
n = 11
121 − 11 + 11 = 121 = 11², which is not prime; the other values give 101, 31 and 53.
Now test yourself
This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.
Practise in Impera