दुर्गा बेरागी Durga Beragi, homeEnter the study →

Library › Mathematics

A Mathematician's Apology

G. H. Hardy · 1940 · Cambridge University Press

More by G. H. Hardy on this shelf · 3 books →

An old mathematician defends useless beauty. Ramanujan is in it.

About the book

G. H. Hardy wrote this short essay in 1940, when he was in his sixties and felt his creative powers had gone. It is a defence of pure mathematics and of a life spent doing it. Hardy argues that mathematics is a creative art, that its value lies in beauty and seriousness, and that real mathematics is mostly useless in practical terms. He gives two examples of beautiful theorems: Euclid's proof that there are infinitely many primes and the proof that the square root of two is irrational. Later editions include a foreword by C. P. Snow, a memoir of Hardy.

Key ideas

  • Mathematics is a young man's game. Hardy believed most major discoveries are made before forty, and he wrote the book feeling his own creative powers had declined.
  • A mathematician is a maker of patterns, like a painter or a poet. Mathematical patterns last longer than others because they are made of ideas.
  • Beauty is the first test of good mathematics. Hardy holds that there is no lasting place in the world for ugly mathematics. He means beauty in a strict, intellectual sense.
  • A serious theorem connects significant ideas and has generality and depth. Euclid's proof that the primes are infinite is Hardy's chief example. The irrationality of the square root of two is his second.
  • Real mathematics, by which Hardy means pure mathematics, is almost wholly useless. He took pride in this, believing it could do no harm in war.
  • Mathematical reality exists outside us. Theorems are discovered, not created, and the mathematician's job is to observe that reality and report on it. Hardy states this view plainly and without argument.

Why it is on this shelf

Hardy's essay is the classic statement of why someone spends a life on pure mathematics. It is honest, short and sometimes sad. His claim that number theory is useless has been overturned by cryptography, which makes the book more interesting to read now, not less.

How to start reading it

Read it in one sitting. Then read Snow's foreword for the man behind it. Work through the two example proofs closely, with pencil and paper, to see what Hardy means by beauty.

About this book

A Mathematician's Apology is a short essay by the English mathematician G. H. Hardy, published by Cambridge University Press in 1940. It runs to well under a hundred pages in most printings. It is written in numbered sections rather than chapters, and it reads like a long letter from a man who has decided to tell the truth about his work while he still can.

The word apology in the title is used in its old sense. It does not mean an expression of regret. It means a defence, a reasoned case, in the way Plato's Apology is Socrates' defence before the Athenian jury. Hardy is defending two things at once. The first is pure mathematics as a human activity worth a life. The second is his own life, which he had spent almost entirely on it.

The situation in which he wrote matters a great deal. Hardy was in his early sixties. He had recently suffered a serious heart illness, and he believed that his power to do new mathematics had left him. For a man who had measured himself all his life by what he could create, this was close to a sentence of death before death. Britain was at war with Germany, and the question of what any activity was good for had become urgent and practical. Many of Hardy's younger colleagues were being drawn into war work. A defence of a subject whose chief merit, in his view, was that it had no practical use was a pointed thing to publish in that year.

The book was written for the educated general reader, not for mathematicians. Hardy assumes no technical training. When he wants to show what he means by a beautiful theorem, he chooses two results that a schoolchild can follow, and he walks through their proofs in full. The rest of the essay is argument and reflection in ordinary prose. That choice is part of the point. Hardy wants the reader outside mathematics to understand what those inside it are doing and why they care.

The central question of the essay can be put simply. What justifies a life spent on pure mathematics? Hardy's answer is not that mathematics is useful. He goes out of his way to say that the mathematics he values is almost entirely useless. His answer is that mathematics is a creative art, that its products are beautiful and permanent, and that to have added something to that store is a real achievement, comparable to the achievements of poets and painters. Along the way he says a great deal about talent, ambition, age, beauty, truth and war.

Since 1967 most editions have carried a long foreword by C. P. Snow, the novelist and scientist, who knew Hardy in his last years. Snow's memoir gives the human picture that the essay itself holds back: the cricket, the wit, the shyness, the strange rules Hardy lived by, and the despair of his final years. The two pieces now travel together, and most readers meet Hardy through both. This study edition is mainly about the essay, but it draws on what is widely known of Hardy's life, which Snow's foreword helped to fix in the public mind.

The book has outlived its occasion. It is still the most widely read account, by a working mathematician, of why mathematics matters to the people who do it. It is quoted by teachers, argued with by philosophers, and given to students who are deciding whether to commit to the subject. It is also, read closely, a sad book, and part of its lasting force comes from the fact that its author is not consoling himself. He is assessing himself, and he does not like everything he finds.

The author

Godfrey Harold Hardy was born in 1877 in Cranleigh, Surrey, where his father taught at a school. Both his parents were teachers and both had a feeling for mathematics. He showed great facility with numbers as a small child, went to Winchester College on a scholarship, and then to Trinity College, Cambridge, which was to be the centre of his working life.

Cambridge mathematics at the end of the nineteenth century was dominated by the Tripos, a competitive examination that ranked students in order of merit. Success depended on speed and drill in solving set problems, often of an applied and old-fashioned kind. Hardy did well in it, but he came to regard the whole system as harmful to real mathematics. A turning point for him was reading Camille Jordan's Cours d'analyse, a French treatise that showed him what rigorous modern analysis looked like. He later worked hard to reform the Tripos and to bring Continental standards of rigour to English mathematics.

His own textbook, A Course of Pure Mathematics, first published in 1908, was a large part of that reform. It taught a generation of English students what a limit, a continuous function and a convergent series really are. It sits on the same shelf as this essay, and the contrast is instructive. The textbook is Hardy at work, patient and exact. The Apology is Hardy explaining why the work was worth doing.

Hardy's research was mainly in analysis and number theory. He is known for results on the distribution of prime numbers, on the zeros of the Riemann zeta function, on Fourier series, on inequalities, and on the partition of numbers. Much of this work was done in two famous collaborations.

The first was with J. E. Littlewood, which began around 1911 and lasted for decades. Together they wrote close to a hundred papers. They worked mostly by letter, even when they were in the same town, and they had a set of half-joking rules for collaboration, including the rule that neither was obliged to read what the other had written. The partnership became one of the most productive in the history of mathematics.

The second collaboration was with Srinivasa Ramanujan, and it is the one most readers remember. In 1913 Ramanujan, a clerk in Madras with almost no formal training beyond school, wrote to Hardy with a list of theorems. Some were known, some were wrong, and some were unlike anything Hardy had seen. Hardy concluded that they must be true, because no one could have the imagination to invent them otherwise. He arranged for Ramanujan to come to Cambridge, where he arrived in 1914. They worked together until 1919, when Ramanujan, seriously ill, returned to India. He died in 1920 at the age of thirty-two. Hardy said in several places that his association with Ramanujan was the most remarkable thing in his life, and he spent years afterwards editing and explaining Ramanujan's work. The Collected Papers of Srinivasa Ramanujan, which Hardy helped edit, is also in this bay.

Outside mathematics Hardy had firm and sometimes eccentric views. He was a convinced atheist who treated God as a personal opponent in a kind of private game. He hated the war of 1914 to 1918 and supported Bertrand Russell when Russell was dismissed from his Trinity lectureship for anti-war activity. This left him uncomfortable at Trinity, and in 1919 he moved to Oxford as Savilian Professor of Geometry. He was happy there. He returned to Cambridge in 1931 as Sadleirian Professor of Pure Mathematics and stayed until he retired.

He loved cricket with an intensity that friends found comic and touching. He disliked mirrors and photographs of himself. He was shy with strangers and devoted to a small number of friends. He never married, and for much of his life he lived with his sister Gertrude, who looked after him. Snow's foreword makes much of these traits, and they are worth knowing because the Apology is in part a portrait of a temperament: fastidious, competitive, honest to the point of harshness, and with little patience for comfortable illusions.

Around the time he wrote the Apology, Hardy also published a book of lectures on Ramanujan's work and gave a series of lectures that became the basis of other writing. With E. M. Wright he had written An Introduction to the Theory of Numbers, first published in 1938, which became a standard text and is also on this shelf. So the Apology does not come from a man who had stopped working entirely. It comes from a man who believed that the best part of his working life, the part where new ideas came, was over.

Hardy's health declined further in the 1940s. He made an attempt on his own life in 1947 and died later that year, on the day he was due to receive a medal from the Royal Society. Knowing this changes how one reads the final sections of the essay. The tone of a man reckoning his account is not a literary pose.

The shape of the argument

The Apology is not a treatise. It moves the way a thoughtful conversation moves, circling back to the same few questions and testing them from different sides. But it has a clear underlying shape, and seeing that shape makes the essay much easier to understand and to argue with.

An opening on age and its consequences

Hardy begins with his own position. He is a creative worker who can no longer create, and so he has taken up the inferior task of writing about his subject instead of doing it. He states, with some bitterness, that exposition and criticism are work for second-rate minds. This frames the whole essay. The reader is told at once that the author regards the book as a lesser thing than the papers he can no longer write. The first movement of the essay therefore deals with the relation between mathematics and youth, and with the question of why anyone should do mathematics at all.

A general case for a life's work

Next Hardy sets out a general theory of why people choose the work they do. He suggests that most people do what they do because they are good at it, and that this is a sound reason. A person with a real talent should cultivate it, even if the talent is for something modest. He then sets out the motives of serious research: curiosity, professional pride, and ambition for reputation and its rewards. He is frank that ambition is a strong motive and that he does not regard it as shameful.

The central claims about mathematics

The middle of the essay is the core. Here Hardy argues that a mathematician is a maker of patterns, that mathematical patterns must be beautiful, and that the value of a theorem lies in its seriousness, which he explains in terms of the significance of the ideas it connects. He gives his two worked examples from Greek mathematics to show what he means. He then compares mathematics with chess problems, which are mathematical in form but trivial, to locate exactly where seriousness lies. He adds the qualities of generality and depth, and he discusses the reality of mathematical objects.

Usefulness, real and trivial

In the next movement Hardy takes up the question of usefulness directly. He separates mathematics into the real and the trivial. Trivial mathematics, roughly the elementary parts of the subject that engineers and scientists use, is useful but dull. Real mathematics, the deep parts of the subject, is beautiful but almost entirely without practical application. He extends this to physics, arguing that the deep physical theories of his day were also, for practical purposes, harmless and useless. He reaches the conclusion, with satisfaction, that real mathematics does no harm and in particular has no use in war.

The personal reckoning

The essay closes by returning to the author. Hardy asks whether his own life has been worthwhile by the standards he has set out. He gives an honest answer, with a measured judgement of his own place, and he points to his collaborations with Littlewood and Ramanujan as the centre of his achievement. The final sections are short, plain and moving.

The structure, then, is a frame of personal reflection wrapped around a central argument about the nature and value of mathematics. The frame gives the essay its emotional weight. The argument gives it its lasting interest. The reader who attends only to the frame will find a sad book about an old man. The reader who attends only to the argument will find a set of debatable claims about beauty and use. The book is both, and it is best read with an eye on how each part bears on the other.

Idea one: mathematics as a young person's art

The essay opens with a claim that has become one of its best known: mathematics, more than any other art or science, is a field for the young. Hardy states that he knows of no major mathematical advance initiated by a man past fifty. He points to figures who did their decisive work early, some of whom died young, and contrasts them with the long careers of poets, historians and statesmen.

It helps to see what Hardy is and is not saying. He is not saying that older mathematicians are useless. Older people teach, write, edit, referee and guide. Hardy himself did much of this. He is saying that the act of original creation, the finding of a genuinely new idea, depends on a kind of mental energy and freshness that fades with age, and that in mathematics this fading is felt sooner and more sharply than elsewhere. A novelist can draw on accumulated experience of human life, which grows with age. A mathematician draws on a quality of concentration and invention that does not grow.

An analogy may help. Consider a sprinter and a marathon runner. Both are athletes, but the sprinter peaks early because the event demands raw speed, while the marathon runner can keep improving into later years because the event rewards endurance and judgement. Hardy is claiming that mathematical discovery is closer to sprinting. The claim is about a certain kind of peak, not about the whole of a life.

Why does this matter to the essay? Because it explains why the essay exists at all. Hardy is writing because he believes his sprinting days are over. The claim about age is not a detached observation. It is his diagnosis of his own condition, and it gives the essay its tone of elegy. It also sharpens the main question. If creative mathematics is so brief a gift, and if its products are so little use to anyone, then the case for spending a life on it must be made on other grounds.

The claim is often confused with a simpler one, that mathematicians simply become lazy or distracted as they age. Hardy's point is not about effort. Many older mathematicians work as hard as ever. His point is about the kind of result that effort produces. The confusion matters because it leads readers to treat the claim as a sneer at older colleagues, when it is in fact a judgement Hardy applies most harshly to himself.

Later evidence has complicated the picture. There are mathematicians who did major work in their fifties and beyond, and there are fields within mathematics where long accumulation of technique seems to count for more than early brilliance. Statistical studies of the age of discovery give mixed results, depending on how one defines a major result and which period one studies. It is fair to say that Hardy overstated a real tendency. The tendency itself, that the most startling new ideas often come from the young, still has many supporters among working mathematicians.

The idea leads to a question that every reader can carry into their own field. What in my work depends on freshness, and what depends on accumulated judgement? A wise working life may involve recognising which kind of contribution one is now best placed to make, rather than mourning the loss of the other. Hardy, in this essay, mourns. But the essay itself, written by a mathematician past sixty, is a contribution of the second kind, and its long life suggests that it was not as inferior a task as its author claimed.

Idea two: the mathematician as a maker of patterns

Hardy's central definition is that a mathematician, like a painter or a poet, is a maker of patterns. The painter makes patterns with shapes and colours, the poet with words, the mathematician with ideas. This simple sentence carries most of the weight of the essay, so it is worth taking slowly.

By pattern Hardy means a structure whose parts stand in definite relations to one another, so that understanding the relations is the point. A sonnet is a pattern of sounds and meanings in a fixed form. A fugue is a pattern of voices entering and answering. A theorem with its proof is a pattern of ideas: definitions, assumptions and steps arranged so that a conclusion follows with necessity. What makes the comparison apt is that in all three cases the value lies in the arrangement, not in the raw material.

Hardy then adds a claim of ranking. Mathematical patterns, he argues, are more permanent than those of the other arts, because they are made of ideas. Words change their meanings and languages die. Paint fades. But an idea such as the infinitude of the primes does not age. He gives the example that Greek mathematics is still alive in a way that Greek literature, for all its greatness, is not, because the mathematics can be read and used today exactly as it was meant. A schoolchild who learns a proof from Euclid is doing the same thing a Greek student did.

Consider the difference between reading an ancient poem in translation and following an ancient proof. With the poem, you depend on the translator, and some of the music is lost. With the proof, nothing essential is lost in translation. The symbols and the language may change, but the logical relations are exactly preserved. This is part of what Hardy means by permanence.

Why does this idea matter? Because it moves mathematics out of the category of tools and into the category of art. If mathematics is mainly a tool, its value depends on what it is used for. If it is an art, its value can lie in what it is. Hardy's whole defence depends on this move. It allows him to say that a theorem with no application can still be a great achievement, in the same way that a symphony with no practical use can be.

The idea is often confused with a weaker one, that mathematics can be beautiful as a side effect. Hardy's claim is stronger. He is saying that making beautiful patterns is what mathematicians are fundamentally doing, and that the usefulness of some mathematics is the side effect. Many people meet mathematics first as a set of procedures for getting answers, and for them this reversal is surprising. It is worth sitting with the reversal before deciding whether to accept it.

There is also a tension in the idea that Hardy does not fully resolve. If mathematics is a maker's art, then the mathematician creates. But Hardy also holds, as later sections make clear, that mathematical truths exist independently and are discovered. One can make a pattern out of materials that already exist, as an architect makes a building from stone that was there before. Perhaps that is how Hardy would reconcile the two. But the reader should notice the tension, because it runs through much later debate about the nature of mathematics.

The idea leads naturally to the next question: if mathematics is a pattern-making art, what makes some patterns better than others? Hardy's answer is beauty, and seriousness.

Idea three: beauty as the first test

Hardy holds that beauty is the first test a piece of mathematics must pass. Ugly mathematics, in his view, has no lasting place in the world. This is the most quoted claim in the book and also the one most easily misunderstood.

The beauty Hardy has in mind is not decorative. He is not talking about pretty diagrams or elegant notation, though both may please. He is talking about a quality of the ideas themselves and of the way they fit together. When he tries to describe it, he points to features such as unexpectedness, inevitability and economy. A beautiful proof often reaches its goal by a route that one did not expect, yet once seen it seems the only possible route, and it uses no more than it needs.

His chief example is Euclid's proof that there are infinitely many prime numbers. The proof supposes that there are only finitely many, multiplies them all together, adds one, and observes that the resulting number cannot be divided by any of the supposed primes. So either it is itself a new prime or it has a prime factor not on the list. Either way the list was incomplete. The argument is a few lines long, uses nothing beyond the meaning of division, and settles a question about an infinite collection with complete finality. That is the kind of thing Hardy means.

His second example is the proof that the square root of two is not a ratio of two whole numbers. One supposes it is, writes it in lowest terms, and shows by squaring that both numbers must be even, which contradicts the assumption that the fraction was in lowest terms. Again the argument is short, again it settles a question about infinitely many possible fractions at once, and again it has a quality of surprise and inevitability together.

An analogy from outside mathematics may help. Think of a well-made joke. The best jokes surprise you, yet once you hear the punchline you see that it was set up all along. Nothing is wasted. A joke explained at length loses its force, and a joke padded with irrelevant detail falls flat. Mathematical beauty, in Hardy's sense, has a similar economy of surprise and fit, though it aims at truth rather than laughter.

Why does beauty come first? Hardy's reason is partly historical. He believes that the mathematics that survives, that is remembered and built upon, is the mathematics that has this quality. Ugly results may be true and even useful, but they tend to be absorbed into better formulations or forgotten. Part of his reason is also personal. Beauty is what drew him to mathematics and kept him there. It is what made the work feel worth doing.

A common confusion is to take Hardy to mean that beauty can replace correctness. He means nothing of the kind. A false argument, however graceful, is not mathematics. Beauty is a test applied among true results, to tell the important from the routine. Another confusion is to think that mathematical beauty is purely subjective. Hardy admits that it is hard to define, but he insists that mathematicians largely agree about it, much as experienced readers largely agree about which poems are great. The agreement is not perfect, but it is real.

The idea has had a long life outside mathematics. Physicists have often said that beautiful equations are more likely to be right. Engineers and programmers speak of elegant designs and ugly hacks, and they mean something close to what Hardy meant: economy, clarity, and a sense that the structure fits the problem. Whether beauty is a reliable guide to truth in the physical world is a separate and disputed question. Hardy does not claim that it is. He claims only that, in mathematics, it is the mark of work that lasts.

Idea four: seriousness, generality and depth

Beauty alone is not enough for Hardy. He wants a way to distinguish a beautiful but trivial pattern from a beautiful and important one. His tool for this is the idea of seriousness. A serious theorem, he says, is one that connects significant mathematical ideas, so that it has consequences for the rest of mathematics and possibly for other fields of thought.

To make this clear he compares mathematics with chess problems. A chess problem, of the kind where white is to mate in three moves, is genuinely mathematical in form. It has a precise set of rules, a definite question and a solution that can be checked. Good chess problems can be ingenious and even beautiful. Yet Hardy calls them trivial, because nothing follows from them. Solving one does not change our understanding of anything else. A theorem like Euclid's on the primes, by contrast, opens onto the whole of number theory. It is one link in a vast connected structure.

Hardy then tries to say what makes an idea significant. He names two qualities, generality and depth. Generality means that the idea applies to many cases and can be adapted to many contexts. Euclid's argument about primes is not just a fact about primes. Its method of building a new object to escape any finite list reappears throughout mathematics. Depth is harder to define, and Hardy admits as much. He describes it with the image of layers of ideas, where deep results connect the lower, more basic layers of mathematics, and where reaching them requires going down through the higher layers.

An analogy from building may help with depth. Rearranging the furniture in a room changes very little. Moving a wall changes the shape of a floor. Changing the foundations changes the whole building. Deep mathematics is closer to work on the foundations. Its effects spread upward through everything built on it.

The distinction matters because it answers an obvious objection to Hardy's aesthetic view. If beauty were the only test, mathematics would be a kind of elaborate puzzle-making, no more important than crossword composition. By adding seriousness, Hardy claims that the best mathematics is both beautiful and significant, and that its significance comes from its connections. This puts mathematics on a level with the great arts and sciences rather than with games.

Seriousness is often confused with usefulness. Hardy is clear that they are different. A serious theorem may have no practical application at all. Its seriousness lies in its connections within mathematics, and perhaps in what it shows about thought in general, not in what it lets us build. This distinction is one of the most valuable things in the book, because it gives a vocabulary for saying why some work is important without reducing importance to profit or utility.

The idea also leads to a criticism. Generality and depth are judged by mathematicians, and they change over time. A result that looks narrow in one century may turn out to be the seed of a whole field in the next. A judgement of seriousness made in 1940 may therefore be revised. Hardy would probably accept this. The point is not that seriousness can be measured once and for all, but that it is the right thing to try to measure.

For a reader outside mathematics, the useful lesson is the question Hardy implicitly teaches. When assessing any piece of work, ask not only whether it is clever or well made, but what it connects to, and what would change if it were true. Ingenuity that leads nowhere is the chess problem. Ingenuity that opens a field is the theorem.

Idea five: real mathematics and trivial mathematics

The most provocative section of the Apology divides mathematics into two kinds. Hardy calls them real mathematics and trivial mathematics. The names are deliberately loaded.

Trivial mathematics, in Hardy's sense, is roughly the mathematics that is taught in schools and used by engineers, chemists, economists and most physicists. It includes elementary algebra, much of calculus, basic mechanics and the routine methods of computation. Hardy does not say this mathematics is worthless. He says it is useful, and that it is dull. It has value as a tool, but it has little of the beauty and seriousness he has been describing.

Real mathematics is the mathematics of the great mathematicians: number theory, the deeper parts of analysis, the abstract structures that working mathematicians study for their own sake. Hardy adds, interestingly, that some of the most advanced physics of his day also counts as real in his sense, naming the theories of relativity and quantum mechanics. These theories were, he thought, as remote from everyday use as number theory, and as beautiful.

Hardy then makes his famous claim. Real mathematics, on the whole, is useless. It does not help anyone build a bridge, cure a disease or make money. What is useful in mathematics is the trivial part. And he expresses something like pride in this. A subject with no application, he reasons, cannot be turned to evil. Its only effect on the world is the pleasure and understanding it gives to those who study it.

The distinction can be read in two ways, and it is worth keeping both in mind. On a charitable reading, Hardy is making a point about motives. The great mathematicians did not study primes in order to make anything. They studied them because the questions were beautiful and deep. Any later use is an accident from the point of view of the work itself. On this reading, the distinction is about why mathematics is done, not about what it will eventually be used for.

On a stricter reading, Hardy is making a prediction: that real mathematics will remain useless. This reading has fared badly. Within a few decades of the essay, number theory had become the basis of public-key cryptography, which protects banking, commerce and private communication across the world. The study of large primes and modular arithmetic, which Hardy regarded as the purest example of harmless mathematics, became a matter of national security. Relativity, which he counted as harmless, is needed to make satellite navigation accurate. Quantum mechanics underlies semiconductors and so the whole of modern electronics. And the physics of the atomic nucleus, which grew from the same roots, produced the weapons that ended the war Hardy was living through.

An analogy may clarify why the prediction was risky. Imagine a person in the early nineteenth century who studied the strange behaviour of electricity and magnetism purely because it was interesting. That person could truthfully say the work had no use. A century later the same knowledge powered cities. The usefulness of knowledge is very hard to foresee, and its absence at one time is weak evidence of its absence forever.

Why does this idea still matter, given that its prediction failed? Because the underlying distinction, between work valued for itself and work valued for its results, remains real and important. Funding bodies, universities and students still have to decide how much weight to give to each. Hardy's essay is one of the strongest statements of the case for valuing understanding for its own sake. The fact that such understanding later proved useful strengthens, rather than weakens, the practical case for supporting it, though Hardy himself would have preferred to rest the case on beauty alone.

The idea is often confused with contempt for applied work. Hardy's tone sometimes invites this reading, and he is not always generous. But his main point is narrower. He is not saying that engineers are inferior people. He is saying that the parts of mathematics they use are not the parts that make mathematics a great art. One can disagree with that judgement and still see that it is a judgement about the material, not the people.

The lesson for a modern reader is double. First, do not measure the worth of an idea only by its present use. Second, do not assume that a useless idea will stay useless. Hardy got the first lesson right and the second wrong, and both halves are worth remembering.

Idea six: mathematics, war and harm

Closely tied to the claim of uselessness is a moral claim. Hardy believed that real mathematics was innocent. Because it had no application, it could not be used to kill or to oppress. He wrote this in 1940, in the early part of a war that would draw science more fully into destruction than any before it, and the claim needs to be read against that background.

Hardy had opposed the war of 1914 to 1918. He had watched chemistry produce poison gas and engineering produce new machines of killing. He was disgusted by the readiness of scientists to serve the war effort. His pride in the uselessness of number theory was in part a pride in having chosen a subject that could not be conscripted. A real mathematician, he suggests, can keep his conscience clear in a way that a chemist or an engineer cannot.

He also argues that the war applications of mathematics, such as ballistics and the design of aircraft, belong to the trivial part of the subject. They need competent calculation, not deep ideas. So even when mathematics serves war, it is not the beautiful part that does so. This argument allows him to separate the art he loves from the uses he despises.

History has been hard on this position. During the same war, mathematicians in Britain, including many Hardy knew and some he had taught, broke enemy codes using methods from number theory, probability and logic. Work in mathematical logic, some of it from Cambridge, fed directly into the design of computers. After the war, the deepest parts of number theory became the basis of cryptographic systems used by governments and armies. It is no longer possible to say that any branch of mathematics is safe from use, for good or ill.

An analogy may help to see what remains of Hardy's point. A knife can be used to cook or to kill, and so can most tools. But a piece of music, as such, cannot directly be used as a weapon, though it can be used in propaganda. Hardy thought real mathematics was like music. The modern view is that it is closer to a set of very general tools, whose uses cannot be foreseen. Yet it remains true that the motive for creating it, in most cases, is not the motive of the weapon maker. The ethics of the mathematician lies more in what he chooses to do with the work, and whom he chooses to serve, than in the subject itself.

Why does this matter? Because the question Hardy raises, whether a scientist can do pure research with a clear conscience, has become more pressing, not less. Researchers in many fields, from biology to artificial intelligence, face the fact that knowledge gained for its own sake can be turned to harm. Hardy's answer, choose a useless field, is no longer available. His question remains, and the essay is a good starting point for thinking about it.

The position is often caricatured as naive. It is better described as a sincere hope that later events disappointed. Hardy was not ignorant of how science was used. He was searching for a corner of it that would remain clean. That he did not find one is a fact about the world, and about the unpredictable reach of ideas, more than about his intelligence.

Idea seven: mathematical reality

Late in the essay Hardy states his view of what mathematics is about. He believes that mathematical reality lies outside us, that the mathematician's task is to discover or observe it, and that the theorems we prove are descriptions of what we have found, not inventions. This view is usually called mathematical Platonism, after Plato's doctrine that the true objects of knowledge are eternal forms rather than changing things.

Hardy illustrates the view with the simplest examples. A number such as 317 is prime, he says, not because we think so or because our minds are built in a certain way, but because it is so. Its primeness was a fact before anyone checked it and would remain a fact if everyone forgot it. The same is true of every theorem. When Euclid proved that the primes go on forever, he did not create that fact. He found it.

Hardy admits he cannot prove this view and does not try very hard. He states it as his conviction and notes that many mathematicians share it. He also says that physical reality, by comparison, is less certain and less real, because our knowledge of it depends on the senses and on theories that change. He finds the world of mathematical objects more solid than the world of tables and chairs.

An analogy that many find helpful is that of an explorer mapping an unknown land. The explorer does not create the mountains and rivers. They were there already. But the explorer chooses where to go, what to measure and how to draw the map, and a good map is an achievement. On the Platonist view, the mathematician is an explorer of this kind. The proofs are the maps. This helps reconcile the idea of mathematics as discovery with the idea of mathematics as creative art: the territory is given, but the map is made.

Why does this matter for the essay? Because it underwrites Hardy's claim about permanence. If mathematical truths are features of an eternal reality, then a theorem, once proved, is a permanent achievement in a way that no physical object can be. It also underwrites his sense of what he has achieved. To have discovered something true about this reality is to have added to human knowledge something that will never be lost.

The view is often confused with a religious belief, and Hardy, who disliked religion, would have been irritated by the confusion. He does not suggest that mathematical reality is divine or that it has purposes. He suggests only that it exists independently of human minds. Many atheist and religious mathematicians alike have held some version of this view.

The view is also widely disputed. Formalists hold that mathematics is a game played with symbols according to rules, with no subject matter beyond the rules. Intuitionists hold that mathematical objects are mental constructions and exist only when constructed. Others argue that mathematics is a human practice shaped by history and culture. Later books on this shelf, such as The Mathematical Experience by Davis and Hersh and Proofs and Refutations by Lakatos, explore these alternatives. Gödel's Proof by Nagel and Newman explains results in logic that bear on the question, since Gödel showed that any consistent formal system of a certain strength leaves some true statements unprovable, which many have taken as a point in favour of a reality beyond the rules.

Readers who come from Indian philosophy will find the debate familiar in form. The question whether the objects of knowledge exist independently of the knower, or are in some sense constructed by consciousness, runs through the arguments between the schools of realism and idealism. Hardy's position is a plain realism about one domain. One need not share it to see that it is coherent and that it explains much of how mathematicians actually talk about their work.

Idea eight: talent, ambition and the case for a life

Beneath the arguments about beauty and use, the Apology is an attempt by one man to decide whether his life has been well spent. Hardy sets up the standard by which he will judge, and then he applies it to himself. This is the part of the book that most readers remember long after the arguments have blurred.

The standard begins with talent. Hardy argues that a person who has a marked talent for something should do that thing. Most people have no outstanding talent at all, he says, and for them any honest work is as good as any other. But a person who can do one thing very well, whether it is mathematics or cricket or carpentry, has a reason to give his life to it. Doing the thing one is best at is a sound justification for a life, even if the thing itself is of modest importance.

Next comes ambition. Hardy defends ambition as a respectable motive for serious work. He lists curiosity, professional pride and the desire for reputation as the main forces that drive research. He thinks that people who claim to work only for the good of humanity are usually deceiving themselves, and that the desire to be remembered, to have one's name attached to something lasting, is both common and honourable. This frankness can seem cold. It is also refreshing, and it fits the rest of the essay's refusal to pretend.

Then comes the reckoning. Hardy asks what he has done. He has, he says, added something to knowledge, and helped others add more. His own contributions, he judges, are real but not of the very first rank. He places himself honestly below the great names in the history of the subject. He names his collaboration with Littlewood and his work with Ramanujan as the central achievements of his life. He suggests that the value of his life lies in having created something worth creating, and that this value, however modest, is of the same kind as that of the great artists and mathematicians.

Ramanujan's place here is significant. Hardy believed that his greatest single contribution to mathematics was the discovery of Ramanujan. He measured talent on a scale of his own devising, and on that scale he placed Ramanujan far above himself. His willingness to say this plainly, and to count the recognition of another person's genius as his own best act, says a great deal about the honesty of the book. The story of Ramanujan is told more fully in The Man Who Knew Infinity by Robert Kanigel, which is also in this bay, and Ramanujan's own work is collected in the volume of papers Hardy helped edit.

An analogy may help with the shape of Hardy's case. Think of a craftsman who has built a few fine pieces of furniture, none of them famous, but all of them sound and well made, and who once trained an apprentice who became the greatest maker of his age. Looking back, such a craftsman might say that his work was good, that it will outlast him, and that his best deed was recognising the apprentice. That is roughly Hardy's verdict on himself, transposed to mathematics.

Why does this part of the book matter? Because it shows the argument being lived rather than merely stated. Many books defend the value of an activity in general terms. Few authors then turn the same standards on their own record, in public, near the end of their lives. The result is not comfortable. Hardy's sense of failure in old age is clear, and some readers find the closing sections bleak. But the bleakness is honest, and it gives the essay a moral seriousness that a cheerful defence would lack.

The idea is sometimes confused with vanity. Hardy's attention to reputation and rank can sound self-regarding. But the ranking he applies is applied to himself without flattery. He is not boasting. He is trying, as accurately as he can, to assess what he has done against the standard he believes in. The difference between vanity and self-assessment lies in whether one is willing to find oneself wanting. Hardy is.

For a reader in any field, the lesson is a set of questions. What am I best at? Is it worth doing well? What would I count as a real contribution, and have I made one? These are hard questions, and Hardy shows that one can ask them without self-pity and without self-deception, even when the answers are partly disappointing.

The tradition around it

The Apology belongs to a long tradition of writing by practitioners about the value of their art. Its title points back to Plato's Apology of Socrates. Its theme, the defence of a contemplative or creative life against the charge of uselessness, is as old as philosophy. Aristotle held that contemplation is the highest human activity precisely because it is done for its own sake. Hardy does not cite this tradition at length, but he writes within it.

More immediately, the essay answers the practical and utilitarian temper of its time. In the 1930s many scientists in Britain argued that science should be organised for social benefit and judged by its contribution to welfare. Some of Hardy's contemporaries held strongly that research should serve human needs. Hardy's essay can be read as a reply: there is a kind of knowledge whose value does not depend on its service to anything. It defends the freedom of the scholar to pursue questions because they are beautiful and deep.

Within mathematics, the book connects to the Greek tradition that Hardy so admired. His two examples come from Euclid's world, and the shelf's copy of Heath's translation of The Thirteen Books of Euclid's Elements is the place to see those proofs in their original setting. Euclid's treatment of the primes, in the books on number, is the very argument Hardy holds up as a model of beauty.

The essay also sits beside Hardy's other books on this shelf. A Course of Pure Mathematics shows the standards of rigour he fought for. An Introduction to the Theory of Numbers, written with E. M. Wright, shows the subject he loved most in full technical form. Reading even a few pages of either after the Apology makes clear that the essay's talk of beauty and seriousness is grounded in long, hard work.

Gauss's Disquisitiones Arithmeticae, also in this bay, is the founding text of modern number theory, and Gauss called arithmetic the queen of mathematics. Hardy's attitude to number theory, as the purest and noblest part of the subject, descends from this tradition. Dedekind's Essays on the Theory of Numbers and Cantor's work on transfinite numbers show the kind of deep, foundational mathematics Hardy would have counted as real, and both were done largely without thought of use.

Several books on the shelf answer or extend Hardy's views. Jacques Hadamard's The Psychology of Invention in the Mathematical Field, published a few years later, examines how mathematical ideas actually arise and gives weight to the aesthetic sense Hardy emphasises, treating it as a guide that works partly below awareness. G. Polya's How to Solve It approaches mathematics from the side of method and teaching, a side Hardy rather neglects. Courant and Robbins, in What Is Mathematics?, try to convey the same beauty Hardy describes, but with many more worked examples and with more sympathy for applications.

Later writers have pushed against Hardy's Platonism and his scorn for applications. The Mathematical Experience by Davis and Hersh discusses Hardy directly and offers a more human and historical picture of mathematical knowledge. Lakatos, in Proofs and Refutations, shows mathematical concepts evolving through argument and counterexample, which fits awkwardly with the idea of a fixed reality simply observed. Kline's Mathematics: The Loss of Certainty tells the story of how confidence in the foundations of mathematics was shaken, a story that bears on Hardy's calm assurance that mathematical truth is absolute. Nagel and Newman's Gödel's Proof gives the logical background to that story.

Among popular books, Simon Singh's Fermat's Last Theorem shows number theory of the kind Hardy loved being carried to one of its great modern triumphs, and it shows too how connections between distant fields, the generality and depth Hardy praised, made that triumph possible. Kanigel's life of Ramanujan, already mentioned, fills in the human story that the Apology touches only briefly.

The Indian books on the shelf add another dimension. Bhaskara's Lilavati, in its translation, shows a tradition of mathematics in which beauty of expression, in verse and in elegant problems, was valued alongside practical calculation. It is a useful counterweight to Hardy's sharp split between the useful and the beautiful. In the Indian tradition the two often lived together in the same text, and Ramanujan himself came out of a culture where mathematical intuition and devotion could be intertwined.

Questions and criticisms

The Apology is short, personal and opinionated, and it invites argument. Several criticisms have become standard, and a fair reader should know them.

The prediction of uselessness

The best known criticism is that Hardy was simply wrong about usefulness. Number theory became the foundation of modern cryptography. Relativity is used in navigation systems. Quantum theory underlies electronics. The examples Hardy chose to illustrate harmless, useless knowledge became some of the most practically important knowledge of the following century. This does not refute his main claim, that mathematics is valuable for its beauty, but it does refute his secondary claim that real mathematics would stay useless, and it weakens his moral argument about innocence.

The sharp line between real and trivial

A second criticism is that the line between real and trivial mathematics is drawn too sharply and too much in favour of Hardy's own interests. Applied mathematics has produced deep and beautiful ideas, from the theory of waves to the mathematics of probability and information. Many problems that began in physics or engineering have led to pure mathematics of the highest quality. The split Hardy describes reflects the taste of a particular school at a particular time more than a permanent feature of the subject.

The claim about age

A third criticism concerns age. The claim that mathematics is a young man's game has been questioned on empirical grounds. Some mathematicians have done important work late in life. Others have argued that Hardy's own low mood colours the claim, and that he generalised from his own experience of decline. The claim also reflects a time when mathematics was almost entirely a male profession, and the phrasing, natural in 1940, now reads as a reminder of who was excluded.

The unargued Platonism

A fourth criticism is philosophical. Hardy asserts his Platonist view of mathematical reality rather than defending it. Philosophers have pointed out that the view raises difficult questions. If mathematical objects exist outside space and time, how do we come to know about them? Hardy offers no answer. A reader interested in the philosophy of mathematics will need other books to see the debate properly.

The tone

Some readers find the tone of the essay snobbish or cold. Hardy is dismissive of exposition, of most applied work and of people without outstanding talent. He ranks people freely. These features can be off-putting, and they are not all defensible. Snow's foreword helps by showing the warmth and loyalty Hardy showed to friends, but it does not remove the edge. It is fair to admire the honesty of the book while disliking some of its judgements.

What has held up

Much has held up. The description of mathematics as an art of patterns remains one of the clearest accounts of what working mathematicians value. The examples of Euclid's proofs are still used to show students what mathematical beauty is. The distinction between seriousness and usefulness is still useful in arguments about the value of research. The account of motive, with its frank recognition of ambition, still rings true to many who do creative work. And the essay remains one of the few documents in which a great mathematician assesses his own life with complete candour.

Perhaps the deepest irony is that the failure of Hardy's prediction is itself evidence for one of his deeper views. He believed that mathematical truths are real and permanent. If that is so, it is not surprising that they keep turning out to describe the world in ways no one expected. The uselessness he prized was temporary. The reality he believed in may be what made the usefulness possible.

Why it is on this shelf

This shelf gathers books on Vedanta, Jyotish, science, economics and technology. A short essay by an English mathematician might seem an odd neighbour for the Upanishads or a treatise on planetary periods. It belongs here for reasons that connect it to almost every bay.

First, the book asks what knowledge is for. Vedanta draws a distinction between lower knowledge, which concerns the useful arts and the things of the world, and higher knowledge, which concerns what is permanent. Hardy's division of mathematics into the useful and the real is a different distinction, made in a different spirit, but it has the same shape. Reading the two side by side sharpens both. One sees what Hardy's real mathematics shares with contemplative knowledge, its permanence and its indifference to use, and what it lacks, since it claims nothing about liberation or the self.

Second, the book takes beauty seriously as a guide. Readers of Jyotish work with systems of great formal elegance, in which cycles nest within cycles and numbers recur in pleasing patterns. Hardy's essay is a good discipline here, because it insists that beauty is a test applied among true results, not a substitute for truth. That is a healthy standard for anyone who works with elegant systems of any kind.

Third, the book is a lesson for readers of science, economics and technology about the unpredictability of use. Hardy's useless number theory now secures the world's payments and messages. Anyone who decides what work to fund, what to study or what to build should keep that fact in mind. Value cannot always be read off present application.

Fourth, the book is about a life. It shows a person measuring his work against a standard he believes in, and accepting the verdict. That kind of self-examination is valued in every serious tradition, and the Apology is a rare example of it from inside a modern scientific career.

Finally, the book is on this shelf because of Ramanujan. The shelf's note says plainly that he is in it. The meeting of an Indian genius, formed outside every institution, with a Cambridge mathematician who recognised him, is one of the great stories of modern intellectual history. Hardy's essay is one of the places where that story is told by one of its two actors.

How to read it

The Apology is short enough to read in one sitting, and a first reading should be done that way. Give it an evening. Read straight through without stopping to look things up, and let the voice and the argument settle. Note in the margin where you agree strongly and where you object.

On a second reading, slow down for the two proofs. Take a pencil and paper. For Euclid's proof about the primes, try the construction with a small list, such as two, three and five. Multiply them, add one, and check what you get. Then try two, three, five, seven, eleven and thirteen, and notice that the result is not prime but still has a new prime factor. This teaches what the proof actually claims. For the proof about the square root of two, write out each step yourself, and make sure you see why both numbers must be even. Do not move on until you can reproduce each proof from memory. Only then will Hardy's talk of beauty have something concrete to refer to.

On the same reading, mark the passages on real and trivial mathematics and on war. Write beside them the later facts: cryptography, satellite navigation, electronics, the wartime codebreakers. Ask how Hardy might have replied. This is the best way to engage the essay rather than simply admire or dismiss it.

Read Snow's foreword after the essay, not before. If you read it first, the biographical colour may overwhelm the argument. Read afterwards, it shows the man behind the voice and explains the sadness of the closing sections.

On a first pass you can skim the sections that rank particular mathematicians and discuss the details of chess problems, if they do not interest you. Their point can be grasped quickly. Do not skip the sections on seriousness, generality and depth, which are the most philosophically interesting in the book.

For further reading from this shelf, three paths suggest themselves. For the human story, read Kanigel's The Man Who Knew Infinity, then dip into the Collected Papers of Ramanujan to see the kind of results that astonished Hardy. For the mathematics Hardy loved, read Hardy and Wright's An Introduction to the Theory of Numbers alongside the relevant books of Euclid in Heath's translation. For a debate with Hardy's views, read Davis and Hersh's The Mathematical Experience, then Lakatos's Proofs and Refutations, then Hadamard's The Psychology of Invention in the Mathematical Field, which looks at where the beautiful ideas Hardy prized actually come from.

Questions to carry

  • What exactly makes a proof beautiful, and can you name a proof that you find beautiful and say why?
  • Is the division between real and trivial mathematics a fact about the subject or a fact about Hardy's taste?
  • If useless knowledge so often becomes useful, does that strengthen or weaken Hardy's case for valuing it for its own sake?
  • Can any field of knowledge be kept innocent of harm, and if not, where does the responsibility of the researcher lie?
  • Do mathematical objects exist independently of minds, and how would we come to know them if they do?
  • Is creative power in your own field tied to youth, or to accumulated judgement, or to both in different ways?
  • How does Hardy's idea of seriousness differ from usefulness, and how would you apply it to work outside mathematics?
  • Was Hardy right to treat ambition as a respectable motive for serious work?
  • Why did Hardy count the recognition of Ramanujan as his greatest contribution, and what does that say about how achievement should be measured?
  • How does Hardy's split between the useful and the real compare with the distinction between lower and higher knowledge in Indian thought?
  • Is beauty a reliable guide to truth in the physical sciences, or only in mathematics?
  • What would a fair defence of applied mathematics, written in Hardy's spirit, say?
  • Is it possible to assess one's own life as honestly as Hardy tries to, without either self-pity or self-flattery?

Words to know

  • Apology: a reasoned defence of a position or a life, from the Greek apologia; not an expression of regret.
  • Pure mathematics: mathematics pursued for its own sake, without aiming at application.
  • Applied mathematics: mathematics developed or used to solve problems in science, engineering and other fields.
  • Real mathematics: Hardy's term for the deep and beautiful parts of mathematics, which he believed were mostly useless.
  • Trivial mathematics: Hardy's term for elementary and routine mathematics, useful in practice but, in his view, dull.
  • Pattern: a structure whose parts stand in definite relations; Hardy's word for what mathematicians make.
  • Seriousness: the quality of a theorem that connects significant ideas and has consequences beyond itself.
  • Generality: the range of cases an idea applies to and the variety of contexts into which it can be carried.
  • Depth: the degree to which an idea reaches the basic layers of mathematics and affects what is built on them.
  • Prime number: a whole number greater than one whose only divisors are one and itself.
  • Irrational number: a number that cannot be written as a ratio of two whole numbers, such as the square root of two.
  • Proof by contradiction: a method of proof that assumes the opposite of what is to be shown and derives an impossibility.
  • Platonism: the view that mathematical objects exist independently of human minds and are discovered rather than invented.
  • Formalism: the view that mathematics is the manipulation of symbols according to rules, without independent subject matter.
  • Intuitionism: the view that mathematical objects are mental constructions and exist only when constructed.
  • Number theory: the branch of mathematics that studies the properties of whole numbers, especially primes.
  • Analysis: the branch of mathematics that studies limits, continuity, series and the calculus with full rigour.
  • Tripos: the Cambridge honours examination, which in Hardy's youth ranked students in order of merit.
  • Public-key cryptography: a method of secure communication based on number theory, developed decades after the essay.
  • Riemann zeta function: a function central to the study of how prime numbers are distributed, and one of Hardy's research subjects.

A note on this edition

This is a study edition written for this shelf in our own words. It is a companion to G. H. Hardy's A Mathematician's Apology, not a substitute for it. It describes the essay's situation, its argument and its lasting questions, and it offers a way to read it well. It does not reproduce Hardy's text.

The book itself is still in copyright. It is short, inexpensive and widely available, usually with C. P. Snow's foreword. It is worth getting from a library or a bookshop and reading in Hardy's own voice, which no summary can replace.

Terms from this book with their own page: Public-key cryptography, Irrational number

More from “Mathematics”

The whole section →