Introduction
A proof is a chain of logical steps that starts from facts everyone accepts and ends at the statement you want, with no gaps. Once a result is proved, it is true forever: no new data can overturn it. This is what makes mathematics different from every other science.
At A level you need four methods: deduction, exhaustion, counterexample (to disprove) and contradiction. Every board examines all four, and proof ideas appear inside questions on algebra, trigonometry and calculus too.
Why we need proof
Patterns can lie. Join points on a circle with every possible chord and count the regions inside the circle:
It looks like . But with six points you get 31 regions, not 32. Checking examples gives you a conjecture; only a proof turns it into a theorem.
Exam questions often say "prove" or "show that". The examiner wants to see every logical step, not just a correct answer.
Intuitive explanation
Imagine explaining your result to a friend who doubts everything. Each line must follow from the line before, or from a fact they already accept. If at any point they can say "but what about...?", the proof has a gap.
The four methods are four different strategies for beating the sceptic:
- Deduction: argue directly from general facts. Use letters, not numbers, so your argument covers every case.
- Exhaustion: split into a finite number of cases and check every one.
- Counterexample: to show a claim is false, one example where it fails is enough.
- Contradiction: assume the opposite, and show that leads to something impossible.
Formal definitions
An integer is even if for some integer , and odd if for some integer . Two consecutive integers can be written and .
A number is rational if it can be written as where are integers and . A number that is not rational is irrational.
A prime is an integer greater than whose only positive factors are and itself.
A counterexample to a statement "for all , " is a single value of for which is false.
Notation and logic
| Symbol | Meaning | Example |
|---|---|---|
| implies: if the left is true, so is the right | ||
| is implied by | ||
| if and only if (both directions) | ||
| is a member of | ||
| natural numbers, integers, rationals, reals |
is true, but is false (take ). Only write when both directions really hold.
Useful facts
These facts appear in almost every proof question.
- even even even, odd odd even, even odd odd
- odd odd odd; anything even even
- is even is even
- Any integer can be written as , or (useful for divisibility by 3)
- , and more generally any square is
- The product of consecutive integers is divisible by , so is always even
Key results
There are no integers with .
For any finite list of primes, there is a prime not on the list.
Both are proved by contradiction below, and both proofs are on the specification. You should be able to reproduce them from memory.
The classic proofs
Assume, for contradiction, that is rational, so where are integers with no common factors (the fraction is in its lowest terms).
Squaring, , so . Hence is even, so is even. Write .
Then , so . Hence is even, so is even.
Now and are both even, so they share a factor of . This contradicts the assumption that was in its lowest terms. Therefore is irrational.
∎Assume, for contradiction, that there are finitely many primes . Let
Dividing by any leaves remainder , so no divides . But , so has at least one prime factor, and it is not on the list. This contradicts the assumption that the list contained every prime. Therefore there are infinitely many primes.
∎itself need not be prime. For example . The point is that has a prime factor not on the list.
Writing a good proof
- State what you are assuming and define your letters: "Let be an integer. Then consecutive integers are and ."
- Work algebraically, one step per line, each justified.
- Reach the target form explicitly: ", which is odd."
- Write a conclusion that repeats the original statement.
For contradiction, the opening is "Assume, for contradiction, that ..." and the ending is "This contradicts ..., so the original statement is true."
For exhaustion, list the cases clearly, show every case is covered, and finish with "all cases have been considered".
Why proof by contradiction is valid
A statement is either true or false (the law of excluded middle). If assuming (not ) leads to something impossible, such as and together, then cannot be true, so is.
Why the contrapositive works
is false in exactly one situation: true and false. The contrapositive is false in exactly the same situation. So the two statements always have the same truth value:
| T | T | T | T |
| T | F | F | F |
| F | T | T | T |
| F | F | T | T |
The converse is different: it is false in the row false, true. Confusing an implication with its converse is the most common logical error in proofs.
Why one counterexample is enough
"For all , " is false exactly when "there exists with not " is true. Negating a statement swaps and :
So disproving a universal claim needs only one example, while proving it needs an argument covering every case.
Worked examples
Let the odd numbers be and for integers . Then
which is an integer, so it is even.
Use different letters and . Writing and only proves it for consecutive odd numbers.
Disprove: " is prime for every positive integer ."
Take : , which is not prime. So the statement is false.
The Worked examples tab has many more, each with a full step-by-step solution.
Common mistakes
Showing a statement holds for is not a proof unless those are the only cases (exhaustion). Use algebra.
"Let two even numbers be and " proves the result only when the numbers are equal.
Examiners award a final mark for a concluding sentence. Write "so is even for all integers ."
You must say what is contradicted, for example "this contradicts being in lowest terms".
State the value, show the calculation and say clearly why it breaks the statement.
Where proof is used
- Cryptography. Online banking relies on proved facts about primes and modular arithmetic.
- Computer science. Programs that fly aircraft are proved correct, not just tested.
- Every other topic. "Show that" questions in trigonometry, calculus and sequences are all proofs by deduction.
Connections
- Algebra and functions: proofs of inequalities by completing the square.
- Trigonometric identities: proving identities is proof by deduction.
- Proof by induction (Further Maths) is a fifth method, for statements about every natural number.
- Sequences and series: deriving the sum of an arithmetic series is a proof.
Summary
- Deduction: start from general algebraic forms (, , ) and work logically to the result.
- Exhaustion: split into finitely many cases that cover everything, and check each.
- Counterexample: one failing case disproves a "for all" statement.
- Contradiction: assume the opposite, derive something impossible, say what is contradicted.
- Know the proofs that is irrational and that there are infinitely many primes.
- Always finish with a clear concluding statement.
Worked examples
Try each one yourself first, then open the solution.
Insert , or between each pair. (a) (b) (c)
Show the solution
- 1Test each direction separately
For each pair ask two questions: does the left force the right, and does the right force the left?
- 2Part (a)
If then certainly . But satisfies and not . So only .
- 3Part (b)
has the single real solution , and gives . Both directions hold: .
- 4Part (c)
gives , but also allows . So only .
(a) (b) (c)
To reject a direction, give one counterexample, exactly as in disproof.
Prove that the product of any two odd numbers is odd.
Show the solution
- 1Write general odd numbers
Let the numbers be and , where and are integers.
- 2Multiply out
- 3Reach the odd form
Since is an integer, this is of the form .
- 4Conclude
So the product of any two odd numbers is odd.
, which is odd.
Prove that the difference between the squares of any two consecutive integers is odd.
Show the solution
- 1Define the integers
Let the consecutive integers be and .
- 2Expand and simplify
- 3Conclude
is odd for every integer , so the difference is always odd.
Prove that for all real .
Show the solution
- 1Complete the square
- 2Use the fact that squares are non-negative
for all real , so .
- 3Conclude
Hence for all real .
"Show it is always positive" almost always means: complete the square.
Prove that the square of any integer is either a multiple of 3 or one more than a multiple of 3.
Show the solution
- 1Split into cases
Every integer is , or for some integer . These three cases cover everything.
- 2Case
, a multiple of 3.
- 3Case
, one more than a multiple of 3.
- 4Case
, one more than a multiple of 3.
- 5Conclude
All cases have been considered, so is always or .
leaves remainder or on division by , never .
Prove that every prime number between and is one more or one less than a multiple of .
Show the solution
- 1List the cases
The primes between 20 and 30 are and . These are the only cases.
- 2Check each
and .
- 3Conclude
Both primes are one less than a multiple of 6, so the statement is true.
, .
Prove that the statement "if then " is false.
Show the solution
- 1Look for trouble with negatives
Squaring reverses order for negative numbers, so try a negative .
- 2Give the counterexample
Take and . Then , but and , so .
- 3Conclude
One counterexample is enough: the statement is false.
, : but .
Use proof by contradiction to prove that there is no greatest even integer.
Show the solution
- 1Assume the opposite
Assume, for contradiction, that there is a greatest even integer .
- 2Build a bigger one
is also even, since gives . And .
- 3State the contradiction
This contradicts being the greatest even integer. Hence there is no greatest even integer.
is a larger even integer.
Prove by contradiction that if is rational and is irrational, then is irrational.
Show the solution
- 1Assume the opposite
Assume, for contradiction, that is rational, say . Also (with integers, ).
- 2Isolate
- 3Spot the contradiction
and are integers with , so is rational. This contradicts being irrational.
- 4Conclude
Therefore is irrational.
would be rational: contradiction.
Prove by contradiction that if is even, then is even.
Show the solution
- 1Assume the opposite
Assume, for contradiction, that is even but is odd, so .
- 2Compute
which is odd.
- 3Conclude
This contradicts being even. So if is even, is even.
An odd gives odd , contradicting the assumption.
This lemma is the key step inside the proof that is irrational. Quote it, or prove it, when you need it.
University-level ideas and the deeper mathematics behind this topic. Not needed for exams, but this is where the subject really opens up.
Quantifiers and the logic of definitions (university)
University mathematics is written in statements with nested quantifiers. Reading them correctly is a skill in itself.
means "for all" and means "there exists". The order matters:
- ("for every number there is a bigger one") is true for the integers.
- ("there is a number bigger than every number") is false.
"" is defined as
However small a tolerance you name, the terms are eventually within it. To disprove convergence, negate the quantifiers one by one:
Let . Choose an integer . For , .
∎The proof has the same shape as the definition: "let be given" answers , "choose " answers , and the final inequality handles . Every proof about limits, continuity and derivatives in an analysis course follows this template.
"Every unicorn in this room is purple" is true: there are no unicorns, so there is no counterexample. In logic, is true whenever is false. Statements about elements of the empty set are always vacuously true.
Proof by induction (university)
To prove a statement for every positive integer, you cannot check them one at a time. Induction gives a way to cover all of them with two finite steps.
Suppose is true, and for every , . Then is true for every positive integer .
Think of dominoes: the first falls, and each one knocks over the next.
Claim: .
- Base case: : . ✓
- Inductive step: Assume . Then
So , and by induction the claim holds for all .
Claim: for all . Base case: . ✓ Step: . If , both terms are multiples of .
Strong induction and well-ordering
Strong induction assumes all hold to prove . It is needed for results like "every integer is a product of primes": if is composite, with , and both factor by the strong hypothesis.
All three principles, ordinary induction, strong induction and the well-ordering principle (every non-empty set of positive integers has a least element, used in question Q46), are logically equivalent. Each can be derived from the others.
"Proof" by induction on the size of a group: one horse is trivially one colour. Given horses, remove one: the remaining share a colour. Remove a different one: those also share a colour. The groups overlap, so all match.
The flaw: the step from to fails, since the two groups of one horse do not overlap. An inductive step must work for every , including the smallest.
Axioms, incompleteness and computer proofs (university)
Every proof starts from something. What does mathematics ultimately start from, and can it prove everything that is true?
Axioms
Euclid (around 300 BC) built geometry from five axioms. Two thousand years later, mathematicians found that his fifth (parallel) axiom could be replaced by alternatives, giving consistent non-Euclidean geometries, one of which describes the curved spacetime of general relativity.
Today almost all mathematics is built from the Zermelo–Fraenkel axioms with Choice (ZFC), about ten statements about sets. Numbers, functions, spaces and probabilities are all constructed as sets. For example, the natural numbers can be built as , , , and so on, satisfying Peano's axioms, of which induction is one.
- Any consistent axiom system strong enough to do basic arithmetic contains true statements that it cannot prove.
- Such a system cannot prove its own consistency.
Gödel's proof builds, by a diagonal argument like Cantor's (question Q55), a statement that says, in effect, "this statement is not provable". If it were provable, the system would prove something false; so it is unprovable, and therefore true.
The continuum hypothesis ("there is no infinity strictly between the sizes of and ") can be neither proved nor disproved from ZFC (Gödel 1940, Cohen 1963). It is not unknown. It is undecidable from the standard axioms.
Proofs by computer
- The four colour theorem (Appel and Haken, 1976): every map can be coloured with four colours so that neighbouring regions differ. The proof reduced the problem to about configurations, each checked by computer. Many mathematicians were uneasy: no human could check it all.
- The Kepler conjecture (Hales, 1998; formally verified in 2014): the familiar greengrocer's stacking of oranges is the densest possible packing of spheres.
- Proof assistants such as Lean, Coq and Isabelle check every logical step mechanically. Large parts of undergraduate mathematics have been formalised in Lean's library, and in 2022 a research-level result of Peter Scholze was verified this way at his own request.
Erdős spoke of "The Book", in which God keeps the most elegant proof of each theorem. Euclid's proof that there are infinitely many primes and the proof that is irrational would surely be in it. Both are short, use one idea, and once seen are impossible to forget.
Why does this work?
Classical logic accepts the law of the excluded middle: every statement is either true or false. If assuming "not " lets you deduce a statement that is definitely false (such as " and have no common factor, yet both are even"), then "not " cannot be true. So must be.
Formally: if , then is false, so holds. Some mathematicians (intuitionists) reject this step for infinite collections and insist on constructing objects directly; for them, a proof that something exists must actually exhibit it.
Beyond the syllabus
Mathematical curiosities
Suppose in lowest terms, so a square of side has the same area as two squares of side . Place the two smaller squares in opposite corners of the big one. They overlap in a square, and leave two uncovered squares. Equal areas force the overlap to equal the two uncovered squares together, giving a smaller integer solution. This contradicts lowest terms. (Tom Apostol popularised this "proof without words".)
Joining points on a circle gives regions, then . The true formula is , which happens to agree with for .
Further exploration
Reading pathway: How to Prove It (Velleman) → Proofs from THE BOOK (Aigner and Ziegler) → a first course in set theory and logic.