📘 CodingMarble Learn

Logic and Proof: How Mathematicians Show Something Is Always True

A proof is a chain of correct reasons that shows a statement is true in every case. Statements are true or false; 'if P then Q' (P ⇒ Q) means Q must hold whenever P does, and its converse Q ⇒ P may not. P ⇔ Q means both directions hold. Main methods: direct proof (from known facts step by step, often with algebra like 2n + 1 for odd numbers); proof by exhaustion (check every possible case); disproof by counterexample (one failing case kills a claim); proof by contradiction (assume the opposite and reach something impossible). Geometric proofs use given facts, definitions and theorems (parallel lines, congruent and similar triangles), with a reason for every line. Analytic proofs use coordinates; synthetic proofs use pure geometry.

🎬 Step-by-step story

  1. A statement is true or false. 'If P, then Q' means Q always follows from P. Turning it round may not work.
  2. Direct proof: write odd numbers as 2a + 1 and use algebra. Two odds always add up to an even number.
  3. Proof by exhaustion: list every possible case and check each one.
  4. One counterexample is enough to show a claim is false.
  5. Proof by contradiction: assume the opposite, reason carefully, and reach something impossible.
  6. Your turn: move the triangle's corner. A parallel line proves the angles always add to 180°.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

If P ⇒ Q is true, is Q ⇒ P true too?

Not always. 'n > 2 ⇒ n > 1' is true, but n = 1.5 shows the converse fails. Only when both hold do we write P ⇔ Q.

Why use letters like 2a + 1 instead of numbers?

A letter stands for every possible whole number at once, so one algebra line proves the result for all of them. In the 3D, every blue pair stays paired and the two orange extras pair up.

How do I know my cases cover everything?

Use a split that cannot miss a number: even/odd, or remainders 0, 1, 2 on division by 3. Each green tick is one case.

Why is one counterexample enough but many examples are not?

'All' means no exceptions. One exception breaks 'all'. Examples can never check infinitely many numbers.

Isn't it strange to assume something you think is false?

It is a test: if the assumption leads, by correct steps, to something impossible, the assumption cannot be true. The red final box is that impossible result.

Does the 180° rule work for very thin or very wide triangles?

Yes. Move the corner as far as you like: the parallel line argument does not depend on the shape.

Statements, implication and converse

A statement (proposition) is a sentence that is either true or false, such as '7 is prime'.

A proof uses definitions, axioms (facts we accept) and already proved theorems, joined by correct reasoning.

Direct proof (deduction)

Start from the facts you are given and reach the result step by step. Algebra helps us talk about every number at once:

Example: prove the sum of two odd numbers is even. Let them be 2a + 1 and 2b + 1. Sum = 2a + 2b + 2 = 2(a + b + 1), which is 2 × a whole number, so it is even. ∎

Finish a proof with a clear sentence or the symbol ∎ (QED).

Proof by exhaustion and disproof by counterexample

Exhaustion: split the problem into a finite set of cases that covers every possibility, then prove each case. Example: every whole number is 3k, 3k + 1 or 3k + 2. Squaring gives 9k², 9k² + 6k + 1 and 9k² + 12k + 4 = 3(3k² + 4k + 1) + 1. So a square number leaves remainder 0 or 1 on division by 3, never 2.

Counterexample: to show a claim is false, find just one case where it fails. 'n² + n + 41 is always prime' works for n = 0 to 39 but fails at n = 40 (40² + 40 + 41 = 41²). Many examples never prove a general claim; one counterexample always disproves it.

Proof by contradiction

Assume the statement is false. Reason correctly until you reach something impossible (a contradiction). So the assumption was wrong, and the statement is true.

√2 is irrational. Suppose √2 = p/q with whole numbers p, q having no common factor. Then p² = 2q², so p² is even, so p is even: p = 2k. Then 4k² = 2q², so q² = 2k², so q is even too. Both even means they share a factor 2: contradiction. ∎

There are infinitely many primes. Suppose the primes are only p₁, p₂, …, pₙ. Let N = p₁p₂…pₙ + 1. N leaves remainder 1 when divided by each listed prime, so N is prime or has a prime factor not on the list. Either way the list was not complete: contradiction. ∎

Proving geometric theorems

Write a geometric proof as numbered statements, each with a reason (given, definition, or a known theorem). Common reasons: vertically opposite angles are equal; with parallel lines, alternate angles are equal and corresponding angles are equal; angles on a straight line add to 180°; congruence tests SSS, SAS, ASA, RHS; similarity tests AA, SAS, SSS.

Angle sum of a triangle. Draw a line through the top vertex parallel to the base. The two angles beside the top angle equal the two base angles (alternate angles). The three angles now sit on a straight line, so they add to 180°. ∎

Synthetic proofs use pure geometry like this. Analytic proofs place the figure on coordinates and use algebra: for example, to show the diagonals of a parallelogram bisect each other, put the vertices at (0, 0), (a, 0), (b, c), (a + b, c) and show both diagonals have the same midpoint ((a + b)/2, c/2).

Key formulas and definitions

Worked examples

1. Prove that the product of two odd numbers is odd.

(2a + 1)(2b + 1) = 4ab + 2a + 2b + 1 = 2(2ab + a + b) + 1, which is of the form 2n + 1, so it is odd. ∎

2. Prove that the sum of three consecutive whole numbers is a multiple of 3.

n + (n + 1) + (n + 2) = 3n + 3 = 3(n + 1), a multiple of 3. ∎

3. Disprove: 'If n is prime, then 2n + 1 is prime.'

Try n = 7: 2(7) + 1 = 15 = 3 × 5, not prime. One counterexample is enough. ∎

4. Prove by exhaustion that n³ − n is even for n = 1, 2, 3, 4, 5.

0, 6, 24, 60, 120: all even. (In general n³ − n = (n − 1)n(n + 1) contains an even number, so it is always even.)

5. Prove by contradiction that there is no largest even number.

Assume E is the largest even number. Then E + 2 is also even and E + 2 > E. This contradicts E being the largest. So there is no largest even number. ∎

6. Two lines AB and CD cross at O. Prove that ∠AOC = ∠BOD.

∠AOC + ∠COB = 180° (angles on line AB). ∠COB + ∠BOD = 180° (angles on line CD). So ∠AOC = 180° − ∠COB = ∠BOD. ∎ (Vertically opposite angles are equal.)

Common mistakes

Practice quiz

1. To show a claim is false, you need:
2. The converse of 'If it is a square, it has four sides' is:
3. A general odd number can be written as:
4. Proof by contradiction starts by:
5. In the triangle angle-sum proof, which fact is used?

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is a mathematical proof?

A chain of correct reasons, starting from definitions, axioms and known theorems, that shows a statement is true in every possible case.

What is proof by contradiction?

You assume the statement is false and show this leads to something impossible, so the statement must be true. The classic example proves √2 is irrational.

What is the difference between proof by exhaustion and counterexample?

Exhaustion proves a claim by checking every possible case. A counterexample disproves a claim by finding one case where it fails.

Where this is taught

NetherlandsVWO 3 (onderbouw)Mathematical thinking
NetherlandsVWO 4 (bovenbouw, 2e fase)Geometry with coordinates (part 1)
NetherlandsVWO 5Geometry
England (GCSE, A level)Year 12A Proof
England (GCSE, A level)Year 13A Proof
USA (Common Core, NGSS, AP)Grade 10Congruence, proof and constructions
USA (Common Core, NGSS, AP)Grade 10Similarity, right-triangle trigonometry and proof
China八年级(初二)Ch.13 Triangles

Learn first

Learn next

Related lessons

All Maths lessons