Mathematical Proof and the Pythagorean Theorem
Proof, Calculation, and the Limits of Mathematics
Proof as a central part of mathematics
Mathematics is often associated with calculation, but proof is equally fundamental. Calculation produces results by applying rules to symbols; proof explains why a result must be true. The two are not opposites: calculation can serve as a proof, and logical proof can itself be treated as a kind of calculation.
A mathematical proof typically starts from accepted statements and uses logical steps to derive a conclusion. This makes it possible to establish results that may be surprising or impossible to verify by observation alone.
Visual proof and axiomatic proof
A visual proof of the Pythagorean theorem
The Pythagorean theorem states that in a right-angled triangle, the square on the hypotenuse has the same area as the combined squares on the two shorter sides. If the legs have lengths a and b, and the hypotenuse has length c, then:
A rearrangement proof illustrates the theorem using four identical right triangles:
Arrange the four triangles inside a large square so that their hypotenuses enclose a central square.
The area left uncovered is the area of the square on the hypotenuse.
Rearrange the same four triangles inside another square so that the uncovered regions are the two squares on the legs.
The large squares and the four triangles have the same areas in both arrangements. Therefore, the uncovered areas must also be equal.
The visual argument makes the equality easy to see. However, a picture may not establish every required fact by itself. For example, the proof must justify that the central region is a square, including that its angles are right angles. A diagram can suggest a result while leaving some assumptions unverified.
The axiomatic method
Euclid’s proof of the Pythagorean theorem uses a different approach. Rather than relying on a rearrangement picture alone, it builds a chain of deductions from simpler geometric statements. The structure is:
Begin with axioms: accepted starting statements about points, lines, and other geometric objects.
Apply rules of logic to derive propositions from those axioms.
Use earlier propositions to prove more complex results.
A proof may therefore lead backward through simpler results until it reaches its foundational assumptions. A theorem is established when it follows logically from those assumptions.
An axiomatic proof aims to show that a conclusion follows necessarily from stated starting points and valid rules of inference.
This method addresses the possibility that an intuitive picture might be misleading. The Greeks’ emphasis on proof helped establish a model of mathematics in which claims are justified by explicit reasoning, rather than accepted simply because they appear obvious.
The discovery of irrational numbers and the development of proof
The Pythagorean theorem was known in more than one ancient culture. A particularly important discovery associated with the Pythagoreans was that 2 cannot be expressed as a ratio of natural numbers.
A number that cannot be expressed as a ratio of integers is called irrational. The diagonal of a unit square has length 2, so this number arises naturally in geometry. Yet it cannot be represented as a ratio of whole numbers.
This challenged the idea that every quantity could be explained using whole numbers and their ratios. It exposed a gap between:
Discrete quantities, such as the natural numbers, which can be listed one by one.
Geometric and continuous quantities, such as lengths on a line, which do not fit neatly into such a list.
The difficulty encouraged mathematicians to develop geometry from axioms and logical deduction rather than depending on numerical ratios alone. In this approach, geometric truths can be established from assumptions about points, lines, and figures, even when they do not correspond to ratios of whole numbers.
Algebra as geometric reasoning
Algebra developed in several mathematical traditions outside ancient Greek geometry. Early algebra often explained equations using geometric shapes, particularly squares and rectangles. The phrase completing the square reflects this history: it originally described a literal geometric construction.
Solving a quadratic equation by completing a square
Consider:
Geometrically, x2 represents a square with side length x. The term 10x can be divided into two rectangles, each with dimensions x by 5. Placing these rectangles along two sides of the original square forms an L-shaped region.
To complete the larger square, a small square of side 5 must be added to the missing corner. Its area is 25. Adding this area to both sides of the equation gives:
The left-hand side is now the area of a square with side length x+5:
For a geometric side length, x+5=8, so x=3. This is the positive solution relevant to the diagram. If the equation is treated algebraically over all real numbers, it also has the solution x=−13, because x+5 could equal −8.
Early algebraists could represent the reasoning through figures without using the modern symbols x2 and 10x. Later, mathematicians increasingly used symbols to represent squares, rectangles, and their areas. This allowed the geometric reasoning to be expressed through arithmetic operations.
The symbolic form was more compact and efficient, though it could be less visually immediate. Instead of recognizing that a diagram forms a square, a student could recognize algebraically that:
In this way, algebra took over many tasks previously performed geometrically. The underlying reasoning remained connected to geometry, even when the diagrams were no longer drawn.
Analytic geometry: expressing shapes with equations
Analytic geometry represents geometric objects through algebraic equations.
A circle of radius 1 centered at the origin can be represented by:
x2+y2=1A straight line can be represented by a linear equation, such as y=mx+b.
Once shapes are represented by equations, geometric questions can be answered through calculation. For instance, finding where a line meets a circle becomes the problem of solving the line’s equation and the circle’s equation at the same time.
This illustrates a broader connection: geometric theorems can be translated into algebraic statements, and algebraic calculations can establish geometric results. Algebra thus becomes a general-purpose method for deriving results about shapes.
Calculus and infinite processes
Calculus extends the power of calculation to quantities involving change, areas, volumes, slopes, and lengths of curves. Before calculus, mathematicians had already used ingenious geometric arguments involving infinitely many pieces. Calculus made many such problems easier to handle systematically.
Areas and volumes by slicing
A circle can be divided into many thin sectors and rearranged side by side. As the sectors become narrower, the arrangement approaches a rectangle:
The rectangle’s height approaches the radius r.
Its width approaches half the circle’s circumference.
Therefore, the circle’s area is:
The argument relies on considering what happens as the pieces become arbitrarily thin.
A similar slicing idea can be used to find the volume of a sphere. Consider a sphere of radius r inside a cylinder of the same radius and height 2r. A double cone is also placed inside the cylinder, with its point at the sphere’s center and its widest parts at the top and bottom of the cylinder.
At each height, the area of the sphere’s circular slice equals the area of the cylinder’s slice outside the double cone. Adding the areas of all such slices shows that the sphere’s volume equals the volume of the cylinder minus the volume of the double cone. This gives:
The key idea is that equal cross-sectional areas at every height imply equal total volumes.
The length of a spiral
Another geometric argument concerns the equiangular spiral, a spiral that meets every line drawn from its center at the same angle. Such spirals appear in forms such as some shells.
A construction attributed to Thomas Harriot divides a triangle into smaller, similarly shaped pieces and rearranges them to form a spiral. The picture shows that the spiral’s length equals the sum of two sides of the original triangle. This is surprising because it finds the length of a curved line by relating it to straight segments.
The examples of the circle, sphere, and spiral show that infinite processes can produce exact results. Before calculus, however, finding and justifying the right construction required considerable ingenuity.
Infinitesimals, calculus, and limits
Early calculus made calculations involving areas, slopes, and curves much more powerful. Its methods often used infinitesimals: quantities treated as extremely small, sometimes as nonzero for one step and as zero for another.
For example, early reasoning about a curve could treat it as made of infinitesimal straight segments. A tangent to the curve could then be viewed as the continuation of one of those segments. This was a useful picture, although it seemed contradictory to treat a curved object as being made from straight pieces.
A similar difficulty arose in algebraic calculations. A tiny change might be represented by dx. A calculation could divide by dx, which assumes it is nonzero, and later discard it, which treats it as zero. Taken literally, those steps appear inconsistent.
The modern concept of a limit clarifies the reasoning. Rather than asserting that a small quantity is both zero and nonzero, a limit describes what happens as that quantity approaches zero. For example:
Limits provide a rigorous foundation for many calculations that early calculus performed informally. The episode illustrates a recurring pattern in mathematics: a method can produce correct and powerful results before its foundations are fully understood, and later concepts can explain why the method works.
Calculation as a form of proof
Algebra and calculus demonstrate that calculations can prove results. When a sequence of valid operations transforms an equation or expression, each step can justify the next. Calculation is therefore not merely a practical shortcut; it can be a rigorous form of mathematical reasoning.
The power of calculation also changes what can count as a theorem. A geometric result may be obtained by manipulating equations rather than by constructing a purely geometric proof. Calculus similarly turns many complex problems into a shared set of procedures for computing areas, volumes, slopes, and lengths.
Logic as calculation
The reverse connection is also important: logical reasoning can be formalized as a calculation.
Boolean algebra and propositional logic
George Boole developed an algebraic system for propositional logic, which studies statements that are either true or false.
A proposition may be represented by a letter, such as A or B. Propositions can be combined using logical operations:
AND: A and B are both true.
OR: at least one of A and B is true.
NOT: the truth value of a statement is reversed.
Implication: one statement entails another under the relevant truth conditions.
The operations can be computed from the truth values of the propositions. For example, if A is true and B is false, then A OR B is true, while A AND B is false.
Boole’s system resembles ordinary algebra in that symbols are combined according to formal rules. However, propositional logic alone is not rich enough to express all of mathematics. Mathematical statements also involve objects, properties, relations, and claims about entire collections of objects.
Predicate logic
Predicate logic extends propositional logic. It allows statements such as:
“x has property P.”
“x is less than y.”
“There exists an x with property P.”
“For every x, a certain condition holds.”
Predicate logic includes:
Variables, such as x, y, and z, which may stand for numbers, points, sets, or other objects.
Predicates, which express properties or relations.
Quantifiers, especially “for all” and “there exists.”
Logical operations such as AND, OR, and NOT.
A statement’s interpretation depends on what its variables and predicates represent. For example, the same symbolic statement may be interpreted using numbers and the relation “is less than,” or using sets and the relation “is contained in.”
Predicate logic provides a language capable of expressing the structure of mathematical claims. This raises a further question: how can all logically valid statements be identified?
Formal proofs and the enumeration of logical truths
Gottlob Frege developed an axiomatic treatment of predicate logic. Such a system consists of:
Axioms, which are accepted starting formulas.
Rules of inference, which specify how new formulas can be derived from existing ones.
A proof is a finite sequence of applications of the rules, beginning with axioms and ending with the desired conclusion. A formal system is complete for logical validity if every logically valid formula can be proved within it.
Frege’s system was later shown to have this completeness property. This suggests an algorithm for listing all proofs:
List all axioms, which are proofs with no inference steps.
List all formulas obtainable with one application of an inference rule.
Continue with proofs of increasing length.
Record the conclusion of every proof encountered.
Every formula that has a proof will eventually appear in this process.
However, this procedure does not decide whether an arbitrary formula is valid. If the formula is valid, it will eventually be found. If it is invalid, the procedure may continue forever without finding it. The method can enumerate all valid formulas, but it does not necessarily provide a way to recognize all invalid ones.
This distinction separates enumerating positive cases from deciding a problem. A decision procedure must always finish and give the correct answer for every input.
Discrete and continuous infinity
The study of real numbers and calculus led mathematicians to examine infinity more closely. A central distinction is between discrete collections, whose elements can be separated and counted, and the continuous collection of points on a line.
Countable collections
The positive integers form an infinite but countable collection:
The integer-coordinate points in a plane are also countable. Although they form a two-dimensional array, they can be listed by moving outward in expanding groups—for example, by listing points in order of increasing distance from the origin. Thus, each such point can be assigned a natural-number position in a list.
A collection is countable if its members can be placed in a list indexed by the natural numbers.
The continuum of real numbers
The points on a line correspond to the real numbers. Unlike the positive integers or integer-coordinate points, the real numbers cannot be put into a complete list indexed by the natural numbers.
An intuitive argument considers the attempt to list all points on a line and place a small interval around each listed point. If the intervals are chosen so their total length is less than the length of the line segment, they cannot cover the whole segment. Some points must remain unlisted.
This picture suggests that no countable list can contain every point on the line. A more precise argument is the diagonal argument.
Cantor’s diagonal argument
Suppose a list is claimed to contain every real number in an interval. Each real number can be represented by an infinite decimal expansion. Write the list as:
Construct a new decimal by changing the first digit of x1, the second digit of x2, the third digit of x3, and so on. For instance, one rule is to use the digit 2 when the relevant listed digit is 1, and to use 1 otherwise.
The new number differs from:
x1 in its first decimal place,
x2 in its second decimal place,
x3 in its third decimal place,
and, in general, xn in its nth decimal place.
Therefore, the constructed number is absent from the list. No proposed list can contain all real numbers.
This proves that the real numbers are uncountable: they cannot be matched one-to-one with the natural numbers. The argument is powerful because it does not merely claim that a list is difficult to create; it gives a systematic way to construct an item that the list misses.
Diagonalization and the limits of computation
The diagonal argument also reveals limits of algorithms. A real number is computable if an algorithm can produce approximations to it to any desired precision.
Suppose an effective procedure could list every computable real number, with each listed number available in a form that could itself be computed. A diagonal construction could then produce a new computable real that differs from the nth listed real at the nth digit. The new number would be computable but absent from the list, contradicting the claim that the list contained every computable real.
Thus, there is no effective enumeration that successfully lists all computable real numbers in this uniform way. Although all programs can be listed, it is not always possible to determine which programs actually define computable real numbers.
The broader lesson is that some mathematical questions cannot be resolved by a single algorithmic procedure. Some problems are undecidable: no algorithm can always return the correct answer in a finite amount of time for every possible input.
Limits of axioms and mathematical proof
A formal axiomatic system can be viewed as a machine for generating theorems. If its axioms and inference rules are specified effectively, its proofs can be searched systematically. But this does not mean that every mathematical truth can be produced by one such system.
Gödel’s incompleteness results show, in simplified terms, that any consistent, effectively specified formal system strong enough to express basic arithmetic has statements that it cannot prove or disprove within that system. Consequently, no single such system can capture every truth of arithmetic.
This limitation must be stated carefully: the result concerns formal systems with effective rules and sufficient expressive power. It does not rule out adding new axioms or developing stronger systems. Rather, it shows that no fixed effective system of the required kind can settle every mathematical statement.
The diagonal argument also connects to the theory of algorithms. Alonzo Church, Alan Turing, and Kurt Gödel helped establish fundamental limits on what formal reasoning and computation can achieve. Turing gave a precise mathematical model of computation, now called a Turing machine, and used diagonal reasoning in studying computable numbers and algorithmic problems.
Undecidable questions about equations
The limitations of logic can be expressed in elementary-looking arithmetic. A polynomial is formed from variables and constants using addition and multiplication. A Diophantine equation asks whether a polynomial equation has a solution in integers.
For example, a problem may ask whether an equation of the form
has any integer solution.
There is no general algorithm that decides, for every such equation, whether an integer solution exists. In particular, there is no universal procedure that always identifies all equations with no integer solutions.
This is a striking result because polynomial equations use only familiar operations such as addition and multiplication. Yet the complexity of the questions they encode exceeds the power of any single decision algorithm.
Why proof and computation matter
Proof and computation are closely related:
A calculation can provide a proof by applying valid operations step by step.
A formal proof can be treated as a computation carried out according to logical rules.
Algorithms can search for proofs and enumerate the conclusions they establish.
Diagonal arguments show that some truths and problems cannot be captured by a complete algorithmic procedure.
These limitations do not make mathematics weaker. They show that mathematics cannot be reduced to one fixed mechanical method. New questions may require new concepts, stronger axioms, or different forms of reasoning. Mathematical progress therefore depends not only on calculation, but also on the invention of new ideas.

Ask anything
We've read this whole study set, so questions about it get the best answers.