James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
IB Diploma › Maths AA HL › Topic 1: Number & algebra › Proof: deduction, contradiction & counterexample

Proof: deduction, contradiction & counterexample

How to prove that an algebraic identity is true, or that a statement about integers always holds, and how to lay out the proof so it earns every mark.

SL 1.6AHL 1.15SL + HL extensionPaper 1≈ 40 min to work through
Before you start: expanding, factorising and fractions. Shaky on these? See Before you start SL › sections A and D.

1What you need to know

Tick these off as you go. By the end of the page you should be able to do all of them without notes.

  • Know the difference between an equation and an identity, and use the symbol ≡SL 1.6
  • Prove an identity by working from one side to the otherSL 1.6
  • Write even, odd, consecutive and multiple-of-k integers algebraicallySL 1.6
  • Prove simple statements about integersSL 1.6
  • Finish a proof with a clear concluding statementSL 1.6

2Notes & worked examples

Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.

The big idea

A proof is an argument that shows a statement is true in every case, not just the cases you have tried. In SL you prove algebraic identities and simple facts about integers, using clear algebra and a concluding statement.

2.1 Identities and the symbol ≡

An equation is true for some values: 2x+1=7 only when x=3. An identity is true for all values: (x+1)2≡x2+2x+1. The symbol ≡ means "is identically equal to".

Proving an identity means showing that the two sides are really the same expression written in different ways. You do this by rearranging one side, using valid algebra, until it looks exactly like the other side.

2.2 How to lay out a proof

A proof is written for a reader. Each line should follow clearly from the line before, so that someone checking it never has to guess what you did. This is why the layout matters as much as the algebra.

  1. Start with one side, usually the more complicated one.
  2. Work on it, one step per line, until you reach the other side.
  3. Finish with a statement, such as "= RHS, as required".

Never start from the statement you are trying to prove, and never work on both sides at once.

Why not work on both sides?

If you start from what you want to prove, you are assuming it is true already. Even false statements can lead to true ones: start from 1=−1 and square both sides to get 1=1. Reaching something true does not show that the starting statement was true.

Worked example 1Paper 1
Prove that (n+3)2−(n−3)2≡12n.
LHS =(n2+6n+9)−(n2−6n+9)
=n2+6n+9−n2+6n−9
Careful with the bracket: every sign inside it changes.
=12n= RHS, as required.
Worked example 2Paper 1
Show that 1x−1−1x+1≡2x2−1.
LHS =(x+1)−(x−1)(x−1)(x+1)
=2x2−1= RHS, as required.

2.3 Proofs about integers

To prove something about all integers of a certain type, you need a way to write any such integer using algebra. Every even number is 2 times some integer, so it can be written as 2n. Every odd number is one more than an even number, so it can be written as 2n+1.

StatementAlgebra (for any integer n)
an even number2n
an odd number2n+1
consecutive integersn, n+1, n+2
a multiple of kk× an integer
two different odd numbers2m+1 and 2n+1

Checking a few examples is not a proof: it only shows the statement works for those numbers.

On the other hand, one example is enough to show a statement is false. This is called a counterexample. For example, "n2+n+41 is always prime" works for n=0,1,2,…,39, but fails at n=40, since 402+40+41=412.

Worked example 3Paper 1
Prove that the sum of any three consecutive integers is a multiple of 3.
Let the integers be n, n+1 and n+2.
Sum =3n+3=3(n+1).
n+1 is an integer, so the sum is a multiple of 3.
The concluding statement is part of the proof.
Worked example 4Paper 1
Prove that the product of any two odd numbers is odd.
Let the numbers be 2m+1 and 2n+1, where m and n are integers.
Use different letters: the two odd numbers need not be equal.
(2m+1)(2n+1)=4mn+2m+2n+1=2(2mn+m+n)+1
2mn+m+n is an integer, so the product has the form 2k+1: it is odd.
Worked example 5 (faded)Paper 1
Prove that the difference between the squares of two consecutive integers is always odd.
Let the integers be n and n+1.
(n+1)2−n2=n2+2n+1−n2= 2n + 1  ← you work this out
Conclusion: 2n + 1 is odd for every integer n  ← you work this out

3Spot the flaw

Each "proof" below has one line that would lose marks. Click the line you think is wrong.

★HL extension

Extra depth for HL: harder worked examples and HL-standard exam questions.

HL adds two more types of proof: proof by contradiction and disproof by counterexample. Proof by induction has its own page: Proof by induction.

Proof by contradiction

To prove a statement by contradiction, assume it is false and show that this assumption leads to something impossible, such as a number that is both odd and even. Since the assumption leads to nonsense, it must be wrong, so the statement is true.

Structure of a proof by contradiction
  1. Assume the opposite of what you want to prove.
  2. Use correct algebra and logic to reach a contradiction.
  3. Conclude: the assumption is false, so the original statement is true.
Worked example H1Paper 1
Prove that 2 is irrational.
Assume 2 is rational: 2=pq with p,q∈ℤ, q≠0, and the fraction in its lowest terms.
Lowest terms means p and q have no common factor. This is what will be contradicted.
Then p2=2q2, so p2 is even, which means p is even. Write p=2k.
4k2=2q2⇒q2=2k2, so q2 is even and q is even.
Both p and q are even, so they share the factor 2. This contradicts lowest terms. So 2 is irrational.
The step "p2 even ⇒p even" is itself provable: see the next example.
Worked example H2Paper 1
Prove that if n2 is even, then n is even.
Assume n2 is even but n is odd: n=2k+1.
n2=4k2+4k+1=2(2k2+2k)+1, which is odd.
This contradicts n2 being even, so n must be even.
Worked example H3Paper 1
Prove that there are infinitely many prime numbers.
Assume there are finitely many primes: p1,p2,…,pn.
Let N=p1p2⋯pn+1. Dividing N by any pi leaves remainder 1, so no pi divides N.
This is the key idea: build a number that none of the primes can divide.
But every integer greater than 1 has a prime factor. That prime is not in the list, contradicting the assumption. So there are infinitely many primes.

Disproof by counterexample

To show a statement is false, one example where it fails is enough. Choose the example, show the calculation, and state clearly that it disproves the claim.

Worked example H4Paper 1
Show that the statement "2n+1 is prime for every positive integer n" is false.
n=3: 23+1=9=3×3, which is not prime.
So the statement is false.
When to use which?

A statement about all numbers needs a general argument to prove it, but only one failure to disprove it. Proof by contradiction is useful when the statement is about something not existing ("no largest prime", "no rational square root"): it is often easier to assume something does exist and show this is impossible.

HL exam-style questions

Question 1Paper 1[6 marks]

Use proof by contradiction to prove that 3 is irrational. You may assume that if n2 is a multiple of 3, then n is a multiple of 3.

assume 3=pq, p,q∈ℤ, in lowest termsM1
p2=3q2, so p is a multiple of 3A1
p=3k⇒9k2=3q2⇒q2=3k2A1
so q is a multiple of 3A1
contradiction: p,q share the factor 3R1
so 3 is irrationalR1
Question 2Paper 1[5 marks]

  • (a)Prove that there are no integers m and n such that 6m+9n=1.[3]
  • (b)Use a counterexample to show that the statement "n2+n+1 is prime for all n∈ℤ+" is false.[2]
(a)
assume integers existM1
6m+9n=3(2m+3n), a multiple of 3A1
but 1 is not a multiple of 3: contradictionR1
(b)
e.g. n=4: 21=3×7A1
so the statement is falseR1

4Common mistakes & exam tips

Common mistakes

  • Starting with the statement to be proved and simplifying both sides.
  • Testing n=1,2,3 and calling it a proof.
  • Writing both odd numbers as 2n+1: that only proves it for two equal odd numbers.
  • Forgetting to say why the result is even, odd or a multiple (e.g. "n+1 is an integer").
  • Sign errors when subtracting a bracket.

Exam tips

  • "Show that" and "prove" both mean every step must be visible.
  • The last line is often marked AG ("answer given"). The marks come from the working before it, so that working must be complete and correct.
  • Factorise at the end to show a multiple: 3n+3=3(n+1).

5Practice

Fluency questions build the basics. Problem-solving questions make you think about which method to use.

FluencyP1
Prove that (x+2)(x−2)+4≡x2.
LHS =x2−4+4=x2= RHS
FluencyP2
Prove that (2n+1)2−1≡4n(n+1).
LHS =4n2+4n+1−1=4n2+4n=4n(n+1)= RHS
FluencyP3
Show that x(x+4)−(x+2)2≡−4.
LHS =x2+4x−(x2+4x+4)=−4= RHS
Problem solvingP4
Prove that the sum of two consecutive odd numbers is a multiple of 4.
(2n+1)+(2n+3)=4n+4=4(n+1). n+1 is an integer, so the sum is a multiple of 4.
Problem solvingP5
Prove that (2n+1)2−1 is a multiple of 8 for every integer n.
(2n+1)2−1=4n(n+1). One of n and n+1 is even, so n(n+1)=2k for some integer k, and the expression equals 8k.
Problem solvingP6
Show that 3x+2+1x−1≡4x−1(x+2)(x−1).
LHS =3(x−1)+(x+2)(x+2)(x−1)=4x−1(x+2)(x−1)= RHS

6Exam-style questions

Original questions in the style of the IB exam, with full markschemes. Give yourself about 1 minute per mark.

Question 1Paper 1[4 marks]

Prove that (a+b)2−(a−b)2≡4ab.

Attempt to expand both brackets, starting from the LHSM1
a2+2ab+b2A1
−(a2−2ab+b2)A1
a2+2ab+b2−a2+2ab−b2=4abA1 AG
Question 2Paper 1[5 marks]

  • (a)Show that n2+(n+1)2≡2n2+2n+1.[2]
  • (b)Hence prove that the sum of the squares of any two consecutive integers is odd.[3]
(a)
n2+n2+2n+1M1
=2n2+2n+1A1 AG
(b)
=2(n2+n)+1M1
n2+n is an integerR1
so the sum has the form 2k+1, which is oddA1
Question 3Paper 1[5 marks]

  • (a)Show that 1n−1n+1≡1n(n+1).[2]
  • (b)Hence find the exact value of 11×2+12×3+13×4+⋯+19×10.[3]
(a)
(n+1)−nn(n+1)M1
=1n(n+1)A1 AG
(b)
(1−12)+(12−13)+⋯+(19−110)M1
The middle terms cancel: 1−110A1
910A1

7Check yourself

Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.

8Past-paper practice

Once you're scoring well above, try real IB questions. Your school or teacher will have these papers.

PaperQuestionFocusDifficulty
Nov 2024 · Paper 1Q3Prove a difference of squares expression is a multiple of 12★☆☆
May 2024 · TZ1 · Paper 1Q5Geometric sum and prove a formula for a sum of sums★★☆
May 2022 · TZ1 · Paper 1Q8Prove by contradiction that two integers cannot both be odd★★☆
May 2025 · TZ2 · Paper 1Q9Prove by contradiction a lower bound for 1 over x(1-x)★★★
Spotted a mistake on this page?Tell me and I'll fix it. The button opens an email with this page already named, or write to jamesashtonmaths@gmail.com.
Report a mistake