About this book
Fermat's Last Theorem is Simon Singh's account of the most famous problem in the history of mathematics and of its solution. It was published in Britain in 1997 by Fourth Estate and in the United States the same year under the title Fermat's Enigma. It grew out of a documentary film for the BBC's science series Horizon, which Singh made with John Lynch and which was broadcast in 1996. The book retells and greatly extends the story the film told.
The problem is easy to state. Take the equation in which a whole number raised to some power, added to another whole number raised to the same power, equals a third whole number raised to that power. When the power is two, there are infinitely many solutions in positive whole numbers: three squared plus four squared equals five squared is the simplest. When the power is three or more, the French lawyer and mathematician Pierre de Fermat claimed around 1637 that there are no solutions at all. He wrote this claim in the margin of his copy of an ancient Greek arithmetic book, adding that he had found a truly marvellous proof which the margin was too narrow to contain. No proof was found among his papers. For more than three and a half centuries, the best mathematicians in the world tried and failed to supply one.
In 1993 the English mathematician Andrew Wiles, working at Princeton, announced a proof. It turned out to contain a gap. After more than a year of strain, with the help of his former student Richard Taylor, he repaired it in 1994. The repaired proof was published in 1995. Singh's book tells the story of the problem from its ancient roots to that conclusion.
The question the book sets out to answer is not only how the theorem was proved. It is also why a problem with no practical use mattered so much, what attempts to solve it taught mathematicians along the way, and what kind of life and mind it takes to spend seven years in secret on a single question. Singh wrote for general readers with no mathematics beyond school. He uses almost no equations in the main text, keeps the technical ideas at the level of images and analogies, and puts a few simple proofs in appendices for those who want them.
The book's success was immediate and lasting. It became a bestseller, was translated into many languages, and is often credited with encouraging a wave of popular writing about mathematics in the following decades. It is also, for many readers, their first real contact with the idea that mathematics has a history full of people, quarrels, failures and surprises.
A reader should know at the outset what kind of book this is. It is a work of narrative history and explanation, not a mathematical text. It will not teach the reader to prove anything difficult. What it does is give a clear map of a long intellectual journey, show the main landmarks along the way, and introduce the people who passed them. Its achievement is to make a highly technical story intelligible and moving without falsifying it. Readers who come to it with no mathematics usually finish with a new respect for the subject, and readers with some mathematics usually finish wanting to learn more of the ideas the story only sketches.
The author
Simon Singh was born in 1964 in Somerset, England, to parents who had emigrated from the Punjab. He studied physics at Imperial College London and then took a doctorate in particle physics at Cambridge, doing research that involved work at CERN, the European laboratory for particle physics near Geneva. He then joined the BBC, where he worked as a producer and director on science programmes, including Tomorrow's World and Horizon.
The Horizon film on Fermat's Last Theorem was his breakthrough. It was unusual in letting mathematicians speak at length about their work and feelings, and it included a now famous interview in which Wiles, recalling the moment he found the repair, was overcome with emotion. The film won a BAFTA award. The book allowed Singh to go much further into the history and the ideas than a fifty-minute film could.
After this book Singh wrote The Code Book, a history of cryptography from ancient ciphers to modern public-key systems, published in 1999. He then wrote Big Bang, a history of cosmology, and, with the medical researcher Edzard Ernst, Trick or Treatment, an examination of the evidence for alternative medicine. Later he wrote The Simpsons and Their Mathematical Secrets, on the mathematical jokes hidden in the animated television series. He became known as a public advocate for science and for evidence-based reasoning, and in the late 2000s he successfully defended himself against a libel action brought over an article in which he criticised claims made for chiropractic, a case that helped prompt reform of English libel law.
Singh is not a professional mathematician, and like Robert Kanigel in his life of Ramanujan he depends on specialists for the technical substance. But he is trained in science, comfortable with mathematics, and skilled in explanation. His method throughout his career has been the same: find a long historical story with a strong human thread, explain the ideas at each stage with care, and keep the reader moving through narrative suspense. This book is the first and perhaps the purest example.
The shape of the argument
The book is a narrative that runs, broadly, from antiquity to 1995, with a frame at the start and end set in Wiles's own life. Its design is that of a detective story in which the culprit is a proof. It opens with the scene of Wiles's announcement in 1993, then goes back to the beginning and works forward, returning to Wiles once the history has prepared the reader to understand what he did.
The first movement establishes the background. It explains what proof means in mathematics and why it differs from evidence in science, using the Pythagoreans and their theorem about right-angled triangles as the starting point. The equation in Fermat's theorem is a generalisation of the Pythagorean equation, so the reader learns the familiar case first.
The second movement introduces Fermat himself and the ancient book in whose margin he wrote, the Arithmetica of Diophantus of Alexandria. It tells how the margin note came to light after Fermat's death, through an edition published by his son, and how it became a challenge to later generations.
The third movement follows the long series of attempts. Singh describes how particular cases were settled, one exponent at a time, and how broad methods were invented that settled many cases at once but never all. He tells of individual mathematicians whose stories he finds moving or instructive, and of prizes offered for a solution. He also turns aside, briefly, to the crisis in the foundations of mathematics in the early twentieth century, raising the possibility that the theorem might be true but unprovable.
The fourth movement is the turn. It describes the work of two young Japanese mathematicians after the Second World War who proposed a bold link between two quite different areas of mathematics, and how that link was later shown to imply Fermat's theorem. This is the hinge of the book: the moment at which an old puzzle became connected to the main current of modern mathematics.
The fifth movement is Wiles's work: his childhood encounter with the problem, his training, his decision to attack it in secret, his seven years of solitary effort, the announcement, the discovery of the flaw, and the repair. The book ends with the reception of the proof and its meaning for mathematics.
Several themes run through this structure. One is the nature of proof and the difference between being convinced and being certain. Another is the unity of mathematics: the way the final solution required joining fields that had grown apart. A third is the human cost and reward of a long obsession. A fourth is the collective nature of the achievement: although the story centres on Wiles, his proof stood on the work of dozens of earlier mathematicians, many of whom never knew their work would matter for Fermat.
What proof means, and why it is not evidence
Singh begins with a distinction that is basic to everything that follows. In the natural sciences, a theory is accepted when it fits the evidence and makes successful predictions. It can always be overturned by new evidence. In mathematics, a statement is accepted as a theorem only when it has been proved: derived by strict logical steps from accepted starting points. A theorem, once proved, does not become false when new cases are examined.
This distinction explains why Fermat's problem stayed open so long despite enormous evidence. By the twentieth century, computers had checked that the equation had no solutions for every exponent up to very large values. For a physicist, this would be overwhelming confirmation. For a mathematician, it was not enough, because there are infinitely many exponents, and a counterexample could in principle lie beyond any range checked. Singh gives examples from number theory of patterns that hold for a very long way and then fail, showing why mathematicians distrust even vast numerical evidence.
An everyday comparison helps. Suppose a bridge has carried traffic safely for a hundred years. Engineers will be confident it is sound, but they will not say it is certain to stand forever; a new load or a hidden flaw might bring it down. A mathematical proof is not like that. It is more like a demonstration that a certain arrangement of beams cannot fail under any load whatever, because of the way the forces are arranged. The demonstration covers every case at once, including cases never tried.
This idea is sometimes confused with the claim that mathematics is infallible in practice. Singh's own story shows otherwise. Wiles's first proof was believed correct by its author and by the experts who heard it, and it was wrong. The standard of proof is absolute; the human process of reaching and checking proofs is not. The distinction between the ideal and the practice is one of the book's quiet lessons.
The idea also explains the special excitement around Fermat's theorem. It was a statement about infinitely many cases, easy to state, apparently true, and impossible to prove with any known method. That combination, simple statement and deep resistance, is what makes a problem great in mathematics.
From Pythagoras to the theory of numbers
Singh starts far before Fermat, with the Pythagoreans of ancient Greece, and this choice is worth understanding. The Pythagorean theorem about right-angled triangles is known to every schoolchild, and its equation, a square plus a square equals a square, is the parent of Fermat's. By starting there Singh gives the reader something familiar to hold, and then asks what happens when the squares become cubes or higher powers. The shift from a theorem everyone knows to one no one could prove is the book's first dramatic move.
He also uses the Pythagoreans to introduce two ideas that run through the whole story. One is that whole numbers have a hidden structure worth studying for its own sake. The Pythagoreans treated numbers almost as sacred objects, with properties of perfection, friendship and harmony. The other is the idea of proof itself, which Greek mathematics made central. A proof that the square root of two cannot be a fraction, for instance, shows by pure reasoning that a certain quantity can never be measured exactly by whole-number ratios. Singh gives this as an example of how a single argument can settle an infinite number of cases at once.
Between the Greeks and Fermat, the book shows a long chain of transmission. Greek mathematics was preserved, translated and extended by scholars in the Islamic world, then brought back into Latin Europe in the medieval and Renaissance periods. The Arithmetica reached Fermat through this chain. Singh does not dwell on it at length, but the outline is enough to show that the theory of numbers is an old, international inheritance rather than the property of one culture.
For readers of this shelf it is worth adding what Singh only touches on: Indian mathematicians also worked deeply on whole-number equations. Brahmagupta in the seventh century and Bhaskara in the twelfth developed methods for solving certain equations in whole numbers, including what is now called Pell's equation, centuries before European mathematicians took them up. Bhaskara's Lilavati, on this shelf, comes from that tradition. Fermat himself later posed Pell's equation as a challenge to English mathematicians, unaware of the earlier Indian solutions. The theory of numbers has many roots.
This opening section also sets the tone for the whole book. Number theory is presented as the purest part of mathematics, pursued for its beauty and difficulty rather than for its uses. That framing makes the later turn, in which deep methods from across mathematics are needed to settle a simple claim about whole numbers, all the more striking.
A margin note and an ancient book
Fermat was a magistrate in Toulouse who did mathematics for pleasure. He corresponded with other scholars across Europe, often sending them challenges and stating results without proofs. He made major contributions to the beginnings of calculus, to probability through his correspondence with Blaise Pascal, and above all to the theory of numbers. Singh describes him as secretive and playful, a man who enjoyed teasing his contemporaries with problems he had solved.
The book in which Fermat wrote was a Latin translation, published in 1621 by Claude Gaspard Bachet, of the Arithmetica of Diophantus, a Greek mathematician of Alexandria who probably lived in the third century of the common era. The Arithmetica is a collection of problems asking for whole-number or fractional solutions of equations. Equations of this kind, where only whole-number solutions are wanted, are still called Diophantine equations. Fermat read the book closely and wrote many notes in its margins. After his death in 1665, his son published an edition of the Arithmetica that included the notes. Among them was the claim about powers greater than two.
Singh uses this story to make several points. First, the problem came from a long tradition running from the Greeks through medieval Arabic scholars to Renaissance Europe; it was not an isolated puzzle. Second, Fermat's habit of stating results without proofs left a legacy of challenges. Most of his other claims were eventually proved, or in one case disproved, and this one became known as his last theorem because it was the last to be settled, not because it was the last he wrote.
The question of whether Fermat really had a proof runs through the book. Singh, following the view of most mathematicians, suggests that he almost certainly did not. The methods available in the seventeenth century were nowhere near strong enough. Fermat may have believed he had a proof that contained a subtle error, perhaps one that later mathematicians also fell into. He did prove one special case, for fourth powers, using a method of his own invention, and he may have assumed too quickly that it would extend to all powers.
This part of the book is often remembered as a charming anecdote, but it carries a serious point. A claim without a proof, even from a great mathematician, is only a claim. The note in the margin was a conjecture, and it took more than three centuries to turn it into knowledge.
One exponent at a time: the long campaign
For two centuries after Fermat, progress came case by case. Fermat's own method, called infinite descent, showed that there are no solutions for fourth powers. The idea of infinite descent is elegant: suppose a solution exists, use it to build a smaller solution, and then a smaller one, without end. Since positive whole numbers cannot decrease forever, the original solution cannot exist. Singh explains this method with care, because it is a model of mathematical cunning.
In the eighteenth century Leonhard Euler, the most productive mathematician of his age, settled the case of cubes, using a method that involved a new kind of number. His proof had a gap that was later filled, but the result stood. In the early nineteenth century the cases of fifth and seventh powers were settled by others, including Peter Gustav Lejeune Dirichlet and Adrien-Marie Legendre for fifth powers and Gabriel Lamé for seventh. Each case required new ingenuity, and there was no sign that the methods would ever cover all exponents.
Singh gives a chapter of special attention to Sophie Germain, a French mathematician who, being a woman, was excluded from formal study and at first corresponded with leading mathematicians under a male name. She developed an approach that handled a whole class of exponents at once, under certain conditions, rather than one at a time. Singh uses her story to show both the strength of her ideas and the barriers she faced. Her method marked a change from attacking single cases to attacking families of cases.
In the 1840s, Lamé and Augustin-Louis Cauchy each believed they were close to a complete proof. Both relied on a property of certain extended number systems: that numbers in them factor into primes in only one way, as ordinary whole numbers do. Ernst Kummer, a German mathematician, showed that this property fails in many of the relevant number systems. The proofs collapsed. But Kummer then invented what he called ideal numbers, which restored a form of unique factorisation, and used them to prove the theorem for a large class of exponents, which he called regular primes. This work became one of the foundations of modern algebraic number theory.
An analogy may help explain the failure of unique factorisation. In ordinary arithmetic, every number breaks into prime factors in only one way, much as every molecule breaks into a fixed set of atoms. Lamé and Cauchy assumed that the same was true in their larger number systems. Kummer showed that in those systems a number could break into atoms in two genuinely different ways, which destroyed their arguments. His ideal numbers were a new kind of atom that restored order.
The lesson Singh draws is that the failures were productive. Attempts on Fermat's theorem forced mathematicians to invent methods and concepts, infinite descent, ideal numbers, and the beginnings of algebraic number theory, that proved far more important than the theorem itself. A great problem is valuable not only for its answer but for the mathematics created in pursuit of it.
In 1908 the German industrialist Paul Wolfskehl left a large sum to the Göttingen Academy of Sciences as a prize for a proof. Singh tells the romantic story attached to this bequest, as it is usually told, and describes the flood of mistaken proofs from amateurs that the prize attracted for decades. The prize was finally awarded to Wiles in 1997, though inflation had greatly reduced its value.
The shadow of undecidability
In the middle of the book Singh steps away from Fermat to describe a crisis that threatened the whole enterprise of proof. Around the start of the twentieth century, mathematicians tried to place their subject on completely secure foundations. David Hilbert hoped to show that every true mathematical statement could in principle be proved from a fixed set of axioms, and that those axioms would never lead to a contradiction. In 1931 Kurt Gödel showed that this hope could not be fulfilled. In any consistent system of axioms strong enough to describe ordinary arithmetic, there are true statements that cannot be proved within the system, and the system cannot prove its own consistency.
Singh explains why this mattered for Fermat. If some true statements about whole numbers cannot be proved, then Fermat's theorem might be one of them. Generations of failure might be a sign not of weak methods but of an impossible task. A mathematician who spent a lifetime on the problem might be searching for something that does not exist. Singh also touches on Alan Turing's related work on what machines can and cannot decide, which deepened the sense that there are limits to proof.
This part of the book does important work for a general reader. It shows that mathematics, for all its certainty, has discovered limits within itself. It also shows why proving Fermat's theorem was more than a technical feat. Each new failure raised the question of whether success was possible at all, and that uncertainty added to the risk of devoting years to the problem.
A careful reader should not overstate the connection. Gödel's results show that unprovable truths exist, but they do not say which statements are unprovable, and most natural statements that mathematicians care about have turned out to be provable or disprovable with standard tools. Fermat's theorem, in the end, was proved by methods within ordinary mathematics. Singh presents undecidability as a shadow over the problem, not as a likely fate, and that is the right weight to give it.
The episode also illustrates a habit of Singh's storytelling. He uses digressions to give the reader context that makes the main story more dramatic. Here, the digression raises the stakes of Wiles's later gamble.
The bridge: elliptic curves and modular forms
The heart of the book, and the part that most rewards careful reading, concerns a conjecture that has nothing obviously to do with Fermat. In the 1950s two young Japanese mathematicians, Yutaka Taniyama and Goro Shimura, began to suspect that two quite different families of mathematical objects were secretly the same. Their ideas, sharpened over the following years, became known as the Taniyama-Shimura conjecture. It was later also associated with the French mathematician André Weil, and today the proved form is usually called the modularity theorem.
The first family consists of elliptic curves. Despite the name, these are not ellipses. They are equations of a particular shape, in which one variable squared equals a cubic expression in another. Mathematicians are interested in their solutions, especially solutions in whole numbers or fractions, and these solutions have a rich structure. For each elliptic curve one can count how many solutions it has in certain finite number systems, one for each prime number, and so produce an infinite list of numbers that captures much of the curve's character.
The second family consists of modular forms. These are functions defined on part of the complex plane with an extraordinary degree of symmetry: they keep their form under an infinite collection of transformations. Singh describes them as among the most symmetrical objects in mathematics. Each modular form also comes with an infinite list of numbers, the coefficients in its expansion.
The conjecture said, roughly, that every elliptic curve of the relevant kind corresponds to a modular form, in such a way that the two infinite lists of numbers match exactly. Singh uses a helpful image: each object has a kind of genetic code, and the conjecture asserts that every elliptic curve's code also belongs to some modular form. If true, the conjecture meant that two worlds that mathematicians had studied separately, with different tools and different intuitions, were really one.
Another analogy may help. Imagine two libraries in different countries, one written in a language of shapes and the other in a language of sounds. A scholar notices that every book in the first library seems to have a twin in the second, with the same story told in the other language. If this is always true, then a problem hard to solve in one library might be easy in the other, because one could simply translate it. That is the power of a bridge between areas of mathematics.
Singh tells the human story here as well. Taniyama and Shimura were part of a generation of Japanese mathematicians rebuilding their careers after the war, working with few resources and much energy. Taniyama took his own life in 1958, at the age of thirty-one, and his fiancée took hers shortly after. Shimura went on to a long career, much of it at Princeton, and continued to develop the ideas. Singh treats Taniyama's death with restraint and uses it to show what was lost and how the conjecture survived its originator.
For decades the conjecture was supported by growing evidence and by the larger vision of Robert Langlands, who proposed a vast web of connections between number theory and the theory of symmetries. Many mathematicians came to believe it. Many results were proved on the assumption that it was true. But no one knew how to prove it. This is the state of affairs into which the link with Fermat suddenly arrived.
Frey, Ribet and the turn of the key
In the mid-1980s the German mathematician Gerhard Frey made a striking suggestion. Suppose, he said, that Fermat's theorem were false, and that there were whole numbers solving Fermat's equation for some power greater than two. Then one could use those numbers to write down a particular elliptic curve. That curve would be so strange in its properties that it could not possibly correspond to a modular form. In other words, a counterexample to Fermat would produce an elliptic curve that violated the Taniyama-Shimura conjecture.
Turn this around and the logic becomes powerful. If the Taniyama-Shimura conjecture is true, every suitable elliptic curve is modular. Frey's curve, if it existed, would not be modular. So Frey's curve cannot exist. So there can be no counterexample to Fermat. So Fermat's theorem is true. A proof of the conjecture, or of enough of it, would prove Fermat.
Frey's argument was not complete. It needed a precise statement that his curve really could not be modular. Jean-Pierre Serre, one of the leading mathematicians of the age, refined the idea into a sharper conjecture. In 1986 Kenneth Ribet, at the University of California, Berkeley, proved what was needed. Singh describes Ribet working out the final step in conversation with Barry Mazur, a leading number theorist from Harvard, an example of how ideas move in mathematics through talk as much as through papers.
The effect, Singh shows, was to transform the status of Fermat's problem. Until then many professional mathematicians regarded it as a curiosity: famous, romantic, but outside the main lines of research, and a dangerous waste of a career. After Ribet, it was tied directly to one of the central conjectures of modern number theory. Proving Fermat was no longer a matter of finding a clever trick. It required proving a deep part of the Taniyama-Shimura conjecture, which most experts thought was decades beyond reach.
The idea that a problem can change its nature because of a connection is one of the most important in the book. Fermat's equation had not changed. What changed was its place in the map of mathematics. A reader can apply this idea widely: questions that seem isolated or merely clever may become central once someone sees how they connect to a larger structure.
Seven years in the attic
Andrew Wiles was born in Cambridge in 1953. Singh tells the story, which Wiles himself has told, of how at the age of ten he found a book about Fermat's problem in his local public library and decided that he would solve it. He went on to study mathematics at Oxford and then took his doctorate at Cambridge under John Coates, working on elliptic curves. His thesis work, done with Coates, was on topics close to the Birch and Swinnerton-Dyer conjecture, another great problem about elliptic curves. This training, Singh notes, was a stroke of luck, because elliptic curves turned out to be exactly the right preparation for the eventual attack on Fermat. Wiles had set the childhood dream aside as a professional mathematician, since it seemed a hopeless problem.
When Wiles heard of Ribet's result in 1986, he was a professor at Princeton. He saw at once that the problem had become a respectable research question in his own field, and he decided to devote himself to it. He also decided to work in secret. Singh discusses his reasons: to avoid distraction, to avoid competition, and to avoid the pressure of public attention on a famous problem. To hide what he was doing, Wiles released a stream of smaller papers from earlier work, so that colleagues would think he was still active on other things. He worked in the attic study of his home and told almost no one, eventually including his wife, whom he told only some years in.
Singh describes the work as a long expedition through mathematical country. Wiles needed to show that a large class of elliptic curves, the semistable ones, which included any curve that Frey's argument would produce, were all modular. His strategy was to show that if the first element of each curve's code matched the first element of some modular form's code, then the matching could be extended step by step to the whole infinite list. This required a kind of induction, like proving that every domino in an infinite row falls by showing that the first falls and that each falling domino knocks over the next. Singh uses this image directly, and it is the clearest way into the structure of Wiles's proof.
The first step drew on a theorem of Langlands and Jerrold Tunnell. The inductive step was the hard part. Wiles tried one method after another, including an approach based on Iwasawa theory, which he knew from his doctoral work, but it did not work. Late in the campaign he adapted a method recently developed by Victor Kolyvagin and Matthias Flach, and it seemed to give what he needed. In early 1993, for the first time, he confided in a colleague, Nick Katz of Princeton, to have the argument checked. To do this discreetly, he taught a graduate course whose lectures were in fact a step-by-step presentation of his argument, with Katz in the audience. The students, unaware of the purpose and finding the material hard, gradually stopped coming.
This part of the book is often read as a tale of heroic solitude. That is fair as far as it goes. But Singh also shows how much Wiles's solitary work depended on a shared body of mathematics: the methods of Kolyvagin and Flach, the work of Langlands and Tunnell, the deformation theory developed by Mazur, and many results by others. Wiles worked alone, but not in isolation. The distinction matters for anyone thinking about how great work is done.
The announcement, the flaw and the repair
In June 1993 Wiles gave a series of three lectures at the Isaac Newton Institute in Cambridge, in the city where he was born. The lectures had an innocent title, and he did not reveal in advance where they were leading. By the third lecture, rumours had spread, the room was crowded, and when he wrote Fermat's theorem on the board as a corollary of his results, the audience understood that the problem had been solved. Singh describes the scene, the applause and the world's press coverage that followed.
Then came refereeing. The manuscript, more than a hundred pages long, was sent to several experts, each assigned a part. In the summer of 1993 Katz, checking one part, found what at first looked like a small point needing clarification. It turned out to be a genuine gap in the use of the Kolyvagin-Flach method. Wiles tried for months to close it, at first quietly and then under growing public pressure as rumours spread. In December 1993 he issued a brief statement acknowledging that a problem remained.
Singh tells this part of the story with sympathy. Wiles had gone from triumph to the prospect of public failure. Some mathematicians urged him to release his manuscript so that others could help. He resisted, wanting to finish the work himself. In early 1994 he invited Richard Taylor, a former student then at Cambridge, to join him in Princeton. They worked together for months without success. By the late summer of 1994 Wiles was close to giving up and publishing what he had, with the gap acknowledged.
In September 1994, as Singh tells it, Wiles went back one last time to look at why the Kolyvagin-Flach method was failing, and saw suddenly that the Iwasawa theory approach he had abandoned years before could be combined with it. Each method alone fell short; together they did what was needed. Wiles has described this as the most important moment of his working life. The repair was written up in a joint paper with Taylor, and both papers were published in the Annals of Mathematics in 1995 after careful checking.
The lesson here is about the nature of proof again. A proof is not complete when its author is convinced, or even when an audience applauds. It is complete when it has survived detailed scrutiny. The gap was real, and it took the best part of a year and a new idea to close it. The episode also shows that a failed approach can later turn out to be half of the solution, a pattern familiar from the history of the problem.
Singh adds that the full Taniyama-Shimura conjecture, for all elliptic curves of the relevant kind, was completed a few years later by Christophe Breuil, Brian Conrad, Fred Diamond and Richard Taylor, building on Wiles's methods. Wiles had proved enough for Fermat; others finished the larger theorem.
The unity of mathematics
If the book has one central lesson, it is that mathematics advances when distant areas are joined. Fermat's theorem is a statement about whole numbers. It was finally proved by passing through elliptic curves, which belong to geometry and algebra, and modular forms, which belong to complex analysis and the theory of symmetry. None of the people who first studied these subjects had Fermat in mind. The solution came from a web of connections that no single person designed.
Singh presents this as both a historical fact and a picture of how mathematics works. A field grows by specialising, and specialisation tends to split it into separate territories with their own languages. Then, from time to time, someone sees that two territories are linked, and a problem hard in one becomes tractable in the other. The Taniyama-Shimura conjecture was such a link, and the Langlands programme is a much larger vision of links of the same kind across number theory, geometry and representation theory.
A useful comparison comes from the history of physics. Electricity and magnetism were once separate subjects. When James Clerk Maxwell joined them, light turned out to be an electromagnetic wave, and a host of problems became solvable. The unification did not simply add two bodies of knowledge together; it changed what each meant. The modularity theorem has a similar effect in mathematics. It allows facts about elliptic curves to be read as facts about modular forms, and the reverse.
This idea is sometimes confused with the claim that all of mathematics is one simple thing. Singh does not say that. The unity he describes is a network of deep correspondences between rich and different structures, each of which still requires its own expertise. It is also a unity discovered rather than imposed, which is part of what makes it surprising.
The idea leads beyond the book. Since 1995 the Langlands programme has become one of the largest research efforts in mathematics, and the methods Wiles introduced, especially the technique of proving that two kinds of object match by comparing certain algebraic structures, have been used to prove other long-standing conjectures. For a reader, the lesson is general: the most powerful advances often come from translation between fields rather than from deeper digging within one.
Obsession, secrecy and the life of a problem
Singh's book is as much about people as about mathematics, and it raises questions about the culture in which great problems are pursued. Wiles's decision to work in secret for seven years is the most striking example. Singh presents it sympathetically but also lets the reader see its costs. Secrecy cut Wiles off from the help that might have caught the gap earlier. It also put enormous pressure on him when the gap appeared in public. Some mathematicians at the time felt that his reluctance to share the flawed manuscript was against the open spirit of the subject.
The book also shows the dangers of a famous problem for a career. Before Ribet's result, a young mathematician who announced that he was working on Fermat might be thought naive. Many had wasted years on it. The Wolfskehl prize drew thousands of false proofs from amateurs, and the burden of reading them fell on the staff at Göttingen. Fame, in mathematics, can attract the wrong kind of attention to a problem.
There is a human thread running through the history as well. Singh gives space to people who worked on the problem and paid for it: Sophie Germain, excluded from the institutions of her time; Taniyama, who died young; the many professionals and amateurs who devoted years to failure. The book suggests that a great problem has a life of its own, drawing people in across generations, and that its solution is shared, in some sense, with all of them.
An image may help. A great unclimbed mountain draws climbers for generations. Some reach new heights and fall back; some die on its slopes; their routes and failures teach those who come later. When it is finally climbed, the summit belongs in a way to everyone who tried. Singh's book honours the earlier climbers as well as the one who reached the top.
This theme is often reduced to a tale of the lone genius. Singh's narrative does give Wiles that role, and readers enjoy it. But the evidence in the book points to a more balanced view: an individual of great persistence and talent, at the right moment, working on a problem prepared by a long community effort, and needing help at the end to finish. That balance is worth keeping in mind.
How Singh tells a mathematical story
It is worth looking at how the book is built, because its method has been widely copied and because knowing it helps a reader judge what the book can and cannot give. Singh's first tool is the frame. He opens in 1993 with Wiles at the blackboard, then goes back two and a half thousand years. The reader knows the goal from the start, and every historical chapter gains suspense from the question of how it leads there.
His second tool is the human portrait. Each stage of the mathematics is attached to a person: Pythagoras and his brotherhood, Fermat the secretive magistrate, Euler the tireless calculator, Germain working under a borrowed name, Kummer the critic who rescued a failed approach, Taniyama and Shimura in post-war Tokyo, Wiles in his attic. Ideas become easier to remember when they belong to someone with a face and a fate.
His third tool is the analogy. Where a specialist would write an equation, Singh writes an image: dominoes for induction, genetic codes for the matching of curves and forms, a bridge between two worlds. These images are chosen with care and are, on the whole, faithful to the mathematics they stand for. Their limit is that they show the shape of an argument, not its substance.
His fourth tool is the interview. Much of the story of Wiles, Ribet, Shimura and others comes from conversations Singh and Lynch recorded for the film. This gives the book its immediacy, the sense of mathematicians speaking about what the work felt like. It also means that parts of the narrative rest on participants' own memories, which, like all memories, shape events into stories.
Knowing these tools helps a reader enjoy the book fully and read it wisely. The narrative is reliable at the level of who did what, and when, and why it mattered. It is a starting point, not an end point, for understanding the mathematics.
From useless to indispensable
A minor theme in the book, but an important one for a modern reader, is the changing usefulness of number theory. For centuries the theory of whole numbers was the model of a pure subject with no application. G. H. Hardy, writing in 1940, took pride in this. He believed that number theory would never be used for war or commerce. Within decades he was proved wrong. In the 1970s public-key cryptography, the method that lets strangers exchange secret messages without first sharing a key, was built on the difficulty of factoring large numbers into primes, a pure question in number theory.
Elliptic curves, the objects at the centre of Wiles's proof, followed the same path. In the 1980s mathematicians proposed using the arithmetic of elliptic curves over finite number systems for cryptography. Elliptic curve cryptography offers the same security as older methods with much shorter keys, and it is now used widely in secure web connections, messaging and digital signatures. The same mathematical structures that Taniyama and Shimura studied for their beauty now protect ordinary transactions.
Singh touches on this theme lightly in this book and develops it at length in his next, The Code Book. For a reader here, the point is twofold. First, the usefulness of a branch of mathematics cannot be predicted from its origins. Second, the line between pure and applied mathematics is not fixed by the subject but by history. A culture that funds only research with obvious uses will miss the uses that cannot yet be foreseen.
None of this is why mathematicians cared about Fermat's theorem. The proof itself has no practical application. But the tools built in its pursuit, and the theories it connected, belong to a body of mathematics that has turned out to matter in ways no one expected. That is a fair answer to anyone who asks what such a proof is for.
The tradition around it
Fermat's Last Theorem belongs to the tradition of popular books that tell the story of a scientific achievement as a drama with real people. Its immediate models were the science documentaries Singh had worked on and books in which scientists and historians explained discoveries to general readers. Its success helped create a market for popular mathematics books in the years that followed.
On this shelf it connects with many older works. Euclid's Elements, in Heath's translation, contains the classical theory of whole numbers and the proof methods, such as proof by contradiction, that run all through Singh's story. Euler's Elements of Algebra represents the work of the mathematician who first settled the case of cubes. Gauss's Disquisitiones Arithmeticae founded modern number theory and introduced congruences, the arithmetic of remainders on which much of the later work depends. Dedekind's Essays on the Theory of Numbers belong to the same nineteenth-century movement that took up Kummer's ideal numbers and turned them into the theory of ideals.
Hardy and Wright's An Introduction to the Theory of Numbers gives the mathematics of several of Singh's chapters in full, including Fermat's method for fourth powers and an introduction to the arithmetic of quadratic fields. Readers who want to see the ideas rather than the story should turn there. Hardy's A Mathematician's Apology presents the case for pure mathematics as an art pursued for its beauty, and Fermat's theorem is almost a textbook example of the kind of problem Hardy admired.
Nagel and Newman's Gödel's Proof explains the incompleteness theorems that Singh discusses briefly, and is the natural next step for a reader who wants to understand the shadow of undecidability. Kanigel's The Man Who Knew Infinity tells the life of Ramanujan, whose work on modular forms helped build the very field through which Fermat's theorem was eventually proved. Davis and Hersh's The Mathematical Experience reflects on the nature of proof and on the social process of checking it, themes that Wiles's gap illustrates vividly. Polya's How to Solve It describes heuristics such as working backwards and solving a related problem, both of which appear at large scale in the story of Fermat.
After this book, Singh's own The Code Book continued the method in the history of cryptography. Other writers produced popular books on the Riemann hypothesis, the Poincaré conjecture and other great problems, often modelled on Singh's approach of combining history, biography and simplified ideas.
Questions and criticisms
The book has been widely admired, and most mathematicians who reviewed it found it accurate at the level of detail it attempts. But a careful reader should know its limits.
The first concerns depth. The mathematics at the heart of Wiles's proof, Galois representations, deformation rings, Hecke algebras and the rest, is far beyond the book's scope. Singh's analogies, such as the genetic code of curves and forms and the falling dominoes, give a real sense of the structure, but they cannot convey what the proof actually does. A reader should not mistake understanding the story for understanding the proof. Singh is clear about this, but the smoothness of the narrative can create an illusion of comprehension.
The second concerns emphasis. Like many popular accounts, the book centres on a single hero. Some mathematicians have felt that this underplays the contributions of others: Frey, Serre, Ribet, Mazur, Langlands, Tunnell, Kolyvagin, Flach, Taylor and many more. Singh names and credits them, but the narrative shape gives Wiles a larger role than a historian of mathematics might. The famous scenes, the library book, the attic, the moment of insight, are compelling partly because they fit a familiar story pattern.
The third concerns some historical anecdotes. Stories such as the romantic background to the Wolfskehl prize, or details of the lives of early figures, rest on traditions that are not always well documented. Singh tells them as they are usually told. A reader should treat these as colour rather than established fact.
The fourth concerns attribution of the conjecture itself. The naming of the Taniyama-Shimura conjecture has been disputed, with arguments over how much credit belongs to Weil and how the ideas developed. Singh's account follows one reasonable version. Specialists may tell it differently.
What has held up is the overall picture: the history of attempts, the way failures generated new mathematics, the importance of the bridge between elliptic curves and modular forms, and the human drama of the proof and its repair. Later developments, including the completion of the modularity theorem and Wiles's receipt of the Abel Prize in 2016, have only confirmed the book's sense of the importance of what happened in 1993 and 1994.
Why it is on this shelf
This shelf gathers books on Vedanta, Jyotish, science, economics and technology. Fermat's Last Theorem sits here because it shows, more vividly than almost any other book, how knowledge of a strict kind is made and checked over centuries.
A reader of Vedanta will find in it a lesson about the difference between conviction and certainty. Fermat was convinced. Wiles in June 1993 was convinced. Neither conviction was knowledge until the argument survived scrutiny. That distinction between inner certainty and established truth is familiar to anyone who has studied how a philosophical tradition tests claims through debate and commentary.
A reader of Jyotish, a tradition built on calculation, will appreciate the story of how numerical evidence, however vast, falls short of proof, and why that matters. A reader of science will find a clear account of how mathematics differs from empirical science, and how both depend on community checking. A reader of economics will notice the role of prizes, careers and incentives in shaping which problems people attempt. A reader of technology will know that number theory, once thought useless, now secures digital communication, and that the elliptic curves at the centre of this story are used in modern cryptography.
We keep it near Gauss, Hardy and Wright, and Kanigel's life of Ramanujan, so that the story of one great problem sits beside the classical sources of the subject and the life of another mathematician of modular forms. It is also simply the best first book to hand someone who believes mathematics is dull.
How to read it
Read it straight through. It is written as a story and is meant to be read that way. Most readers will finish it in a week or two. Do not stop at the first technical passage; Singh always returns quickly to the narrative, and the ideas become clearer as the story goes on.
Slow down at three places. The first is the early discussion of proof, which sets the standard against which every later attempt is judged. The second is the account of the Taniyama-Shimura conjecture and of Frey and Ribet's link; read it twice if necessary, because everything after depends on it. The third is the story of the gap and its repair, which shows proof as a human process.
Use a pencil for the appendices. They contain short proofs and explanations, such as an argument by contradiction and a demonstration of the method of infinite descent. Work through them slowly, writing out each step. They are within reach of anyone with school mathematics, and doing them gives a direct feel for the kind of reasoning the whole story is about. Also check a few cases by hand: find several right-angled triangles with whole-number sides, and then see how hard it is to find whole numbers whose cubes add up to a cube.
On a first pass you can skim the chapter on undecidability if it slows you down, and return to it later with Nagel and Newman's Gödel's Proof from this shelf beside you.
From this shelf, read next Hardy and Wright's An Introduction to the Theory of Numbers for the mathematics itself, at least the early chapters; Gauss's Disquisitiones Arithmeticae, in translation, to see where modern number theory began; Kanigel's The Man Who Knew Infinity for the life of a mathematician whose work fed into modular forms; and Davis and Hersh's The Mathematical Experience for reflection on what proof is and how it is checked. Readers drawn to the human side should also read Hardy's A Mathematician's Apology.
Questions to carry
- Why is a billion confirming cases not a proof?
- Did Fermat have a proof, and what would it mean if he did?
- What makes a problem with no practical use important?
- How can a failed attempt be more valuable than a success?
- Why did unique factorisation matter so much to the proofs of Lamé and Cauchy?
- What does it mean for two different kinds of mathematical object to be secretly the same?
- How did Ribet's result change the status of Fermat's problem without changing the problem itself?
- Was Wiles right to work in secret?
- When is a proof finished: when its author is sure, when experts applaud, or when referees approve?
- How much of the achievement belongs to Wiles, and how much to those he built on?
- What might have happened if the gap had not been repaired?
- Could Fermat's theorem have been true but unprovable, and how would anyone know?
- Which other unsolved problems might be solved by building a bridge to a distant field?
Words to know
- Pythagorean triple: three whole numbers such that the square of one equals the sum of the squares of the other two, such as 3, 4 and 5.
- Diophantine equation: an equation for which only whole-number (or sometimes fractional) solutions are sought, named after Diophantus of Alexandria.
- Arithmetica: Diophantus's ancient book of number problems, in whose margin Fermat wrote his claim.
- Conjecture: a statement believed to be true but not yet proved.
- Theorem: a statement that has been proved.
- Proof by contradiction: showing a statement true by assuming it false and deriving an impossibility.
- Infinite descent: Fermat's method of showing that a solution cannot exist because it would produce an endless chain of smaller ones.
- Prime number: a whole number greater than one whose only divisors are one and itself.
- Unique factorisation: the property that every whole number breaks into primes in only one way; it fails in some extended number systems.
- Ideal numbers: Kummer's invention restoring a form of unique factorisation; the origin of the theory of ideals.
- Regular prime: a kind of prime for which Kummer's methods proved Fermat's theorem.
- Elliptic curve: an equation in which one variable squared equals a cubic expression in another, studied for its rational solutions.
- Modular form: a function on part of the complex plane with a very large group of symmetries.
- Taniyama-Shimura conjecture: the claim that every elliptic curve over the rational numbers corresponds to a modular form; now the modularity theorem.
- Semistable elliptic curve: a class of elliptic curves with mild behaviour at each prime; Wiles proved these are modular.
- Frey curve: the elliptic curve that a counterexample to Fermat would produce, shown by Ribet not to be modular.
- Langlands programme: a large network of conjectures linking number theory with the theory of symmetry and representations.
- Iwasawa theory: a body of methods in number theory studying infinite towers of number fields; part of Wiles's final repair.
- Kolyvagin-Flach method: a technique Wiles adapted for the inductive step; the source of the gap in the first proof.
- Incompleteness: Gödel's discovery that any consistent system rich enough for arithmetic contains true but unprovable statements.
- Wolfskehl Prize: a prize established in 1908 for a proof of Fermat's theorem, awarded to Wiles in 1997.
A note on this edition
This is a study edition written for this shelf in our own words. It describes and discusses Simon Singh's Fermat's Last Theorem but does not reproduce it. The book is still in copyright and is easy to find in libraries and bookshops, in Britain under that title and in the United States as Fermat's Enigma. It is well worth reading in full, ideally with a pencil and some scrap paper for the appendices and the small calculations suggested in the reading plan above. Any errors of fact or emphasis in these pages are ours, not the author's.