Square of a sum
Proof of the expansion of a binomial square using distributive property.
This collection of pages gives a basic introduction to mathematical proof. First there are some definitions followed by some basic examples.
A statement in proof is a collection of words or symbols that is either TRUE or FALSE. A statement cannot be BOTH True and False and it must be one of them.
So the statement (P1) 'I am currently wearing a pair of blue shoes' is either True or False. If I am wearing one red shoe and one blue shoe then P1 is False.
The expression 'x = 3' is not a statement, it is an expression. 'x = 3' becomes a statement once we know what the value of x is.
Another statement is 'I was born in Adelaide', is not about mathematical objects but is a statement because it is either True or False.
Statements can be about many different subjects, not just mathematics. For our purposes we are interested in mathematical statements, these are (true or false) statements about mathematical objects such as algebra, geometric shapes, matrices, vectors, numbers etc.
Ready to explore mathematical proofs?
Any proof builds on some very basic properties of the objects we are considering. These are so simple we almost think they are 'obvious' and not question them. There are two main 'basics' we need to be aware of before we start a mathematical proof.
In a proof we need to be clear what rules and laws we are accepting as true.
If you study proof and logic more deeply, you will need to consider whether your "atoms" and your rules are "complete" and "consistent". In building a house (or most houses) you won't get far without certain materials such as wood, electrical cables or water pipes. Similarly in building a proof you need a full set of rules (completeness) that will allow you to solve any problem (*) you might devise in that subject area. Also the rules must not lead to two different answers (consistency) from the starting point.
(*) Unfortunately, Gödel's Incompleteness Theorem(s) create a problem here, but I won't cover that as it is very technical and beyond the scope of what I am covering.
Most of the proofs in this app are about the properties of numbers. There can be proofs about other mathematical objects, and the basic principles of constructing a valid proof in this app still apply to those more abstract and complicated objects. However, to understand the basic idea and process of constructing a valid proof, the numbers we are familiar with provide more than enough examples to study.
The following definitions are not truly mathematically rigorous but they are detailed enough and familiar enough to be useful for our needs in studying proof.
Positive Integers (or natural numbers*1) are basic counting numbers such as 1, 2, 3, ... , 37, ... , 256, ...
Integers are positive and negative counting numbers including zero: ..., -3, -2, -1, 0, +1, +2, +3, ...
Rational numbers (or fractions) are created when you divide one integer by another (excluding division by zero) for example: 1/2, -8/13*2
Real numbers we can think of as any point on the number line. I will introduce irrational and complex numbers later.
*1 Some mathematicians include 0 in the natural numbers, others do not.
*2 Note that every integer is also a rational number (e.g., 5 = 5/1).
Proofs are based on taking simple properties and rules, applying logic and demonstrating more complicated properties. For any proofs we ultimately need to know what basic properties we can accept as true without proving them
We work hard at a young age to try to learn how to calculate with numbers: whole numbers, negative numbers, fractions, decimals. We do this for so long that eventually we don't question these rules or properties — we try not to think about them when we use them.
For proofs about numbers we need to state what rules or properties are so basic that we don't question them but accept them as correct and use them to build other properties of numbers. The basic properties of real numbers can be revealed by clicking on the link below. There are quite a few and I recommend you substitute some simple numbers to make sure you understand them.
Ultimately in a proof about real numbers you can only use the rules or properties listed below or any properties built from them.
Here are the basic algebraic properties most commonly used in mathematical proofs:
Most of the algebraic properties of real numbers and integers are the same.
The key differences between the properties of integers and real numbers are highlighted in red below.
Here are the core fundamental properties of integers (\(\mathbb{Z}\)) that are typically used in mathematics:
Note: division is not closed in integers, since \(1 \div 2 = 0.5\), which is not an integer.
Multiplicative inverses generally do not exist in integers, except for \(1\) and \(-1\).
Integers are discrete — there are no integers between consecutive numbers such as 2 and 3 - whereas for real numbers a and b, and b > a, there is always a real number (say (b - a)/2), between a and b.
It is important to know which mathematical objects the proof is about. For example, is the proof about: integers, positive integers, real numbers, rational numbers, or something else? This is important to recognise before attempting the proof since this tells us what operations are valid and can be used in the proof.
Look at the section and notice rules like "\(a + b\) is an integer if \(a\) and \(b\) are integers." The part after the word if — "\(a\) and \(b\) are integers" — is different from what comes before it. The part after if is usually what we assume to be true, and it is the starting point for a direct proof.
More formally, this context — the collection of objects and the operations permitted on them — is called the structure used in the proof.
A good place to start to understand mathematical proof is with the If … then … statement. Devlin clarifies that this is the conditional rather than implication — for reasons explained in more detail in a sub-section to this page.
Before we dive into that detail, a challenge with a lot of claims (statements, propositions, conjectures) that we are asked to prove is that the claim is not written in the If … then … format. (Very) often a useful first step in constructing a proof is to convert the claim into If … then … format.
Mathematical claims appear in many different linguistic forms. The table below shows common wordings together with their logically equivalent If … then … translation. Practise spotting these patterns — rewriting a claim in conditional form is often the very first step of a direct proof.
| Original wording | Equivalent If … then … form |
|---|---|
| Whenever \(n\) is an odd integer, \(n^2\) is odd. | If \(n\) is an odd integer, then \(n^2\) is odd. |
| Show that \(x^2 - 5x + 6 = 0\) if \(x = 2\) or \(x = 3\). | If \(x = 2\) or \(x = 3\), then \(x^2 - 5x + 6 = 0\). |
| Prove that \(a^2 + b^2 \geq 2ab\) for all real numbers \(a\) and \(b\). | If \(a\) and \(b\) are real numbers, then \(a^2 + b^2 \geq 2ab\). |
| A sufficient condition for \(n\) to be divisible by 4 is that \(n\) is divisible by 8. | If \(n\) is divisible by 8, then \(n\) is divisible by 4. |
| \(n\) being even is a necessary condition for \(n^2\) to be even. | If \(n^2\) is even, then \(n\) is even. |
| Show that \(p\) is prime given that \(p > 1\) and \(p\) has no divisors other than 1 and itself. | If \(p > 1\) and the only divisors of \(p\) are 1 and \(p\), then \(p\) is prime. |
| Every square number is non-negative. | If \(n\) is a real number, then \(n^2 \geq 0\). |
| The product of two negative integers is positive. | If \(a < 0\) and \(b < 0\) are integers, then \(ab > 0\). |
| For \(n\) to be divisible by 6, it is sufficient that \(n\) is divisible by both 2 and 3. | If \(n\) is divisible by both 2 and 3, then \(n\) is divisible by 6. |
| Provided that \(x > 0\), we have \(\sqrt{x} > 0\). | If \(x > 0\), then \(\sqrt{x} > 0\). |
| Let \(a\) and \(b\) be integers. Show that \(a - b\) is even, assuming \(a\) and \(b\) are both odd. | If \(a\) and \(b\) are both odd integers, then \(a - b\) is even. |
| Only if \(n\) is odd can \(n^2\) be odd. | If \(n^2\) is odd, then \(n\) is odd. |
Notice that some phrasings — such as “necessary condition”, “only if”, and “show that … if …” — reverse the order of hypothesis and conclusion compared to the If … then … form. Take particular care with these: identifying which part is the assumption and which is the goal is the essential first step.
This collection presents rigorous proofs of fundamental algebraic expressions and identities. Each proof is presented with clear steps and mathematical justification.
Choose a category to explore:
A good place to start proof is considering basic algebraic identities. Those studying proof will have a good background in basic algebra techniques so they will be able to follow the working while learning how to present a proof.
Proof of the expansion of a binomial square using distributive property.
Factorization of the difference between two perfect squares.
View Proof →Factorization of the sum of two perfect cubes.
Expansion of the square of a binomial difference.
Factorization of the difference between two perfect cubes.
Proofs of fundamental inequalities and their applications in mathematics.
Often if you are given or have arrived at \(\{\text{something}\} < \{\text{something else}\}\), then often it is useful, or even necessary, to rearrange this to \(\{\text{something else}\} - \{\text{something}\} > 0\) so one of the properties of inequalities (see above) can be applied.
Given that \(a\) is a positive real number, prove that \(a + \frac{1}{a} \geq 2\).
Method 1: Algebraic Manipulation.
This is always true.
Equality holds when \((a - 1)^2 = 0\), which occurs when \(a = 1\).Method 2: AM-GM Inequality
Let \(a, x, y \in \mathbb{R}\). Prove if \(x > y\) then \(a + x > a + y\).
For non-negative real numbers \(a\) and \(b\), prove that their arithmetic mean is greater than or equal to their geometric mean.
For x ≥ -1 and n a positive integer.
More inequality proofs will be added to this collection over time.
This section develops the dot product and cross product from first principles, establishing key properties including the geometric interpretation of the dot product and the perpendicularity of the cross product to the plane it spans.
Prerequisite vector knowledge: Basic vectors app
Let \(\mathbf{a}=(a_x,a_y)\) and \(\mathbf{b}=(b_x,b_y)\). The dot product is defined by \[\mathbf{a}\cdot\mathbf{b} = a_xb_x+a_yb_y.\] The magnitudes are \(|\mathbf{a}|=\sqrt{a_x^2+a_y^2}\) and \(|\mathbf{b}|=\sqrt{b_x^2+b_y^2}\).
If \(\theta\) is the angle between the vectors, then the component definition above is equivalent to \[\mathbf{a}\cdot\mathbf{b} = |\mathbf{a}|\,|\mathbf{b}|\cos\theta.\]
| \(=\) | \((a_x-b_x)^2+(a_y-b_y)^2\) |
| \(=\) | \(a_x^2+a_y^2+b_x^2+b_y^2 - 2(a_xb_x+a_yb_y).\) |
Let \(\mathbf{c}=(c_x,c_y,c_z)^T\) and \(\mathbf{d}=(d_x,d_y,d_z)^T\) be two non-parallel vectors in \(\mathbb{R}^3\).
Let \(\mathbf{e}_x,\mathbf{e}_y,\mathbf{e}_z\) be the standard basis vectors. Define \(\mathbf{r}=\mathbf{c}\times\mathbf{d}\) using the determinant \[\mathbf{r} = \begin{vmatrix}\mathbf{e}_x & \mathbf{e}_y & \mathbf{e}_z\\ c_x & c_y & c_z\\ d_x & d_y & d_z\end{vmatrix}.\] Expanding along the first row, \[\mathbf{r} = \begin{pmatrix}c_yd_z-c_zd_y\\ c_zd_x-c_xd_z\\ c_xd_y-c_yd_x\end{pmatrix}.\]
Suppose \(\mathbf{a}\perp\mathbf{b}\), so \(\theta=\tfrac{\pi}{2}\). Using the dot product formula, \[\mathbf{a}\cdot\mathbf{b} = |\mathbf{a}||\mathbf{b}|\cos\tfrac{\pi}{2} = 0.\]
Every vector in the plane generated by \(\mathbf{c}\) and \(\mathbf{d}\) has the form \[\mathbf{p} = \lambda\mathbf{c}+\mu\mathbf{d}, \qquad \lambda,\mu\in\mathbb{R}.\]
\(\mathbf{r}=\mathbf{c}\times\mathbf{d}\) is a normal vector to the plane spanned by \(\mathbf{c}\) and \(\mathbf{d}\).
| \((\mathbf{c}\times\mathbf{d})\cdot\mathbf{c}\) | \(=\) | \((c_yd_z-c_zd_y)c_x\) |
| \({}+(c_zd_x-c_xd_z)c_y\) | ||
| \({}+(c_xd_y-c_yd_x)c_z.\) |
| \(c_xc_yd_z - c_xc_zd_y\) |
| \({}+c_yc_zd_x - c_xc_yd_z\) |
| \({}+c_xc_zd_y - c_yc_zd_x.\) |
Proofs of basic moduli properties of real numbers.
Often if you are given or have arrived at \(\{\text{something}\} < \{\text{something else}\}\), then often it is useful, or even necessary, to rearrange this to \(\{\text{something else}\} - \{\text{something}\} > 0\) so one of the properties of inequalities (see above) can be applied.
For all real numbers \(a\) and \(b\), prove that the absolute value of their sum is at most the sum of their absolute values.
Strategy: Moduli are positive so sum of moduli is positive, so square of sum of moduli is positive. Then take the difference of the two terms in the original expression, making the inequality \(\geq 0\). Rearrange and take square roots to recover the modulus inequality.
For all real numbers \( x \) and \( y \),
\[|xy| = |x||y|\]Consider the cases where numbers are:
\( x = 0 \) or \( y = 0 \)
Then: \[ xy = 0 \quad \Rightarrow \quad |xy| = 0 \] Also: \[ |x||y| = 0 \] So: \[ |xy| = |x||y| \]\( x > 0 \), \( y > 0 \)
Then: \[ |x| = x,\quad |y| = y \] So: \[ |x||y| = xy \] And since \( xy > 0 \), \[ |xy| = xy \] Hence: \[ |xy| = |x||y| \]\( x < 0 \), \( y < 0 \)
Then: \[ |x| = -x,\quad |y| = -y \] So: \[ |x||y| = (-x)(-y) = xy \] Also, \( xy > 0 \), so: \[ |xy| = xy \] Thus: \[ |xy| = |x||y| \]One positive, one negative
Without loss of generality, let: \[ x > 0,\quad y < 0 \] Then: \[ |x| = x,\quad |y| = -y \] So: \[ |x||y| = x(-y) = -xy \] Now \( xy < 0 \), so: \[ |xy| = -(xy) \] Hence: \[|xy| = -xy = |x||y|\] (The case \( x < 0, y > 0 \) is identical.)Typically 'Number Theory' refers to the properties of integers such as properties of divisibility and prime numbers. The definitions of the main types of numbers is given below. However, the proofs for real numbers are separated into a separate section as the approaches to proofs for integers against reals are fairly different.
Often a proof about properties of integers can be splitting the working into two cases: considering what happens when we start 'n is a general even number (\(n = 2k\), \(k\) an integer)' and follow with the case 'n is a general odd number (\(n = 2k+1\), \(k\) an integer)'.
For definitions of the main types of numbers used in these proofs, see:
We can use simpler definitions to build more complex definitions. We have to assume we understand what we mean by basic arithmetic operations such as add, subtract, multiply and divide.
Definition: An even number is 2 multiplied by an integer.
In mathematical notation: A number \(n\) is even if \(n = 2k\) for some integer \(k\).
In the example above, an even number is defined in terms of more basic objects and operations such as integer and multiplication—implicitly in "2k".
Prove that \(n^2 - n\) is an even number for all integers.
Prove that all cube numbers are either a multiple of 9 or one more or one less than a multiple of 9.
The real numbers include both (and only) rational and irrational numbers. Proofs involving real numbers often require careful consideration of properties such as ordering, absolute values, and the completeness of the real number system.
Common proof techniques for real numbers include using techniques such as:
More real number proofs will be added to this collection over time.
See also:
A counter-example is a single specific instance that disproves a general statement. To prove that a proposition of the form "for all \(x\), property \(P(x)\) holds" is false, it is enough to exhibit just one value of \(x\) for which \(P(x)\) fails. No matter how convincing a pattern looks, one counter-example is sufficient to demolish it entirely.
Counter-examples are important in mathematics because they:
The expression \(n^2 + n + 41\) produces primes for \(n = 0, 1, 2, \ldots, 39\) — forty consecutive cases. This striking pattern, discovered by Euler, makes the proposition feel compelling. Yet the general statement is false.
Squaring a number and then taking the square root seems like it should simply return the original number. For positive reals the formula works perfectly, and it is easy to assume it holds for all real numbers. Yet the general statement is false.
More counter-examples will be added to this collection over time.
Geometry is the branch of mathematics concerned with questions of shape, size, relative position of figures, and the properties of space. Geometric proofs use logical reasoning to establish the truth of geometric statements.
These proofs are for Euclidean geometry which models the properties of shapes on a flat surface or plane.
In this section, we explore fundamental geometric theorems and their proofs, building from basic axioms and definitions to more complex results. As a result is proved, it is accepted as true and can then be used to prove other results. This is the process of building mathematical results from the simplest statements.
There is a basic property of angles that is needed and used in most proofs, that is so 'obvious' it seems silly to even need to state it. However, if we are trying to build proofs from the simplest components or parts, we need this property. We can describe it as 'The whole is equal to the sum of its parts' or 'Every object is made by adding together parts it is made from'. In Euclidean geometry this can be applied as: If we split any angle by drawing a line through the vertex of the angle creating two new angles then the size (*) of the original angle is equal to the sum of the size of the smaller angles.
A line from the vertex splits the angle into two parts
(*) We have to ignore what is meant by 'the size of an angle'. If you are interested in this look up 'measure theory'.
Adjacent angles formed by a straight line standing on a base always sum to two right angles.
There are some basic definitions or properties of objects that we accept as true to be our starting point for the proof. One task is to make these definitions or properties as simple as possible. To be used in the proof:
Let us accept we "know" what an "angle" is.
View Proof →1.1 Definition of right angle
1.2 Size of straight line angle
2. Adjacent angles on a straight line
When two straight lines intersect, the opposite angles formed are equal.
This proof uses only one previously established result:
Two straight lines crossing at O
Adjacent angle pairs at O
When a transversal crosses two parallel lines, the alternate interior angles formed are equal.
Parallel lines (definition): two lines in the same plane that never meet however far they are extended.
This proof uses two previously established results and one axiom:
Alternate interior angles α = α
Corresponding and opposite angles
The interior angles of any triangle sum to two right angles.
Parallel lines (definition): two lines in the same plane that never meet however far they are extended.
This proof builds on the following results and definitions, each accepted as either proved or axiomatic:
Triangle ABC
Line DE through A, parallel to BC
More geometric proofs will be added to this collection over time.
Proof by contradiction (p.b.c.) is often useful when the statement to be proved, often called a theorem or proposition, is one of two forms. If "P" and "Q" are both expressions then p.b.c. might be used if the proposition is:
Examples include:
The approaches are in general: for 'not P' assume 'P' is true then try to deduce a contradiction, for 'If P then not Q', assume 'P AND Q' are true at the same time, then work from either P or Q to a contradiction (this takes a bit of getting used to but the vital first step is converting 'If P then not Q', and 'P AND Q'). So 'Prove there is no largest integer' becomes 'Assume there is a largest integer'. 'Prove if we add a rational number to an irrational number then the result is irrational' becomes 'Assume adding rational number to an irrational number the result is a rational (not irrational) number'. All of these examples are worked through in detail below.
There does not exist a largest positive integer.
View Proof →There does not exist a smallest positive rational number.
View Proof →If n³ is even then n is even.
If p + q is odd then at least one of p or q is odd.
The following property is a key part of the proof of the irrationality of \(\sqrt{2}\), but it is usually glossed over. It is covered here, with two different proof approaches, as a prelude to that famous proof. Although this is a proof about integers, it is an important proof about \(\sqrt{2}\), a real number.
Theorem. Let \(k \in \mathbb{Z}\). If \(k^2\) is even then \(k\) is even.
Proof 1 — Contraposition
Proof 2 — Contradiction
This is the classic proof that has a long heritage. However, in my opinion it is introduced far too early in the study of proof, before more straightforward contradiction proofs have been understood, and an important detail, the parity lemma, is often glossed over. Remember on the number theory page there are different types of 'basic' numbers. We can think of numbers as used for counting or measuring things — different activities, but all relate to numbers. An idea from Ancient mathematics (maybe Arabic, Greek, Indian or other) is that every number corresponds to a point or length on a straight line. There is a type of number, the 'real' number (tricky to define rigorously), which we can think of as a set or collection of numbers that in a sense 'contains' the rational numbers but 'other' numbers too. These 'other' numbers, the 'irrational' numbers, were famously (allegedly?) rejected by the Ancient Greek mathematicians and philosophers — just search for the stories about this. Back to the maths. The purpose of this proof is to show that the number 2 has a square root that can be shown to 'exist' (the length of the hypotenuse of a right-angled triangle with two sides equal to 1), but \(\sqrt{2}\) can be shown to not be rational. Therefore, because \(\sqrt{2}\) 'exists', it must be a different kind of number — an 'irrational number'.
Every integer greater than 1 can be written as a product of prime numbers, and this factorization is unique up to the order of the factors.
Euclid's proof that the set of prime numbers is infinite.
More proof by contradiction examples will be added to this collection over time.
This page provides a curated collection of resources to help you develop your mathematical proof skills. Whether you're just starting out or looking to deepen your understanding, these materials offer various approaches to learning proof techniques.
Below are some excellent resources for learning mathematical proof. These materials cover fundamental concepts and provide practical guidance for developing your proof-writing skills.
Long Form Math - Free Online Proofs Book
A comprehensive free resource covering proof techniques and mathematical reasoning.
https://longformmath.com/proofs-book/Long Form Math YouTube Channel
Video tutorials and explanations of mathematical proofs and concepts.
https://www.youtube.com/@LongFormMathHow to Read and Do Proofs by Daniel Solow
An excellent introduction to mathematical proof techniques. Consider finding a second-hand copy to save money.
Amazon UK LinkDaniel Solow - Video Presentation
Watch the author present key concepts from his book on proof techniques.
YouTube VideoMore resource recommendations will be added to this page over time.