The greatest mathematician in England wrote a small book at 62 confessing that mathematics had always been art, never science, and the most painful part of the book is the man writing it knew he would never make another piece of it again.
His name was G.H. Hardy. The book is called "A Mathematician's Apology"
He was a professor at Cambridge and Oxford. He spent his career working on number theory and mathematical analysis, almost entirely with one collaborator named John Edensor Littlewood.
In his prime, between 1910 and 1930, he was considered the finest pure mathematician working in the English-speaking world. He published over 350 papers. He produced foundational results that mathematicians still use today.
In 1939, at the age of 62, he had a heart attack.
He survived it. But something inside him had been broken that did not heal. He could feel his mathematical powers leaving him. The same brain that had spent 40 years effortlessly producing original work now felt slow. Heavy. He kept trying to do new mathematics and kept producing nothing he was proud of.
He understood, with a clarity that almost no creative person ever wants to face, that the part of him that had made him who he was had quietly finished its work without telling him.
So he sat down to write a different kind of book.
It is called A Mathematician's Apology. It was published in 1940 by Cambridge University Press. It is about 90 pages long. You can finish it in two hours.
The word "apology" in the title does not mean an apology in the modern sense. It is used in the old Greek sense, the way Plato used it for the Apology of Socrates. An apology is a formal defense. Hardy is defending his life.
The book is sad in a way that almost no other book about mathematics has ever been.
Hardy writes that exposition, criticism, and appreciation are work for second-rate minds. He says this on the second page. He is telling the reader that the act of writing the book they are now reading is itself proof that his real work is over.
The first-rate mind produces new mathematics. The second-rate mind explains old mathematics to other people. Hardy is consciously demoting himself in print, on page two, as part of the price of writing the book at all.
Then he makes the argument that has been quoted for 85 years.
He writes that a mathematician, like a painter or a poet, is a maker of patterns. If a mathematician's patterns are more permanent than the painter's or the poet's, it is because they are made with ideas. Ideas, Hardy argues, do not fade the way colors fade or the way words go out of fashion. A theorem proved in ancient Greece is still true today. A poem written in ancient Greece is now stiff and remote.
A painting from ancient Greece is now a shadow of itself. Only mathematics survives the centuries intact, because mathematics is made out of the only material that does not decay.
This is the part of the book where Hardy stops sounding like a scientist and starts sounding like an artist who has been arguing his whole career that what he does is real work.
He pushes the argument further. He says the best mathematics is the most useless. He means this as a compliment of the highest possible order.
Useful mathematics, the math you would use to build a bridge or balance a budget, is dull. It is craft, not art. It is downstream of the real thing. The real thing, what he calls pure mathematics, exists for no reason except its own beauty. It does not solve any problem anyone has. It does not produce any product anyone needs. It exists because some human being, somewhere, looked at a pattern in the structure of numbers and decided the pattern was beautiful enough to spend a life chasing.
The other artists of his time agreed with him. Graham Greene reviewed the book and said it was, alongside the notebooks of Henry James, the best account ever written of what it feels like to be a creative artist.
Then Hardy gets to the most personal part of the book.
He writes about Ramanujan.
Srinivasa Ramanujan was a self-taught mathematician from a small town in southern India. He had no formal university training. He had read a single elementary mathematics textbook in his childhood and worked everything else out himself. In 1913 he wrote Hardy a letter at Cambridge containing dozens of strange formulas.
Two other mathematicians had already dismissed the letter as the work of a crank. Hardy read it, recognized what was actually inside, and arranged for Ramanujan to be brought to England.
For five years they worked together. Then Ramanujan got sick in the cold English winter, his health collapsed, and he was sent home to India where he died in 1920 at the age of 32.
Hardy never recovered from it.
In the Apology he writes that his greatest contribution to mathematics was not any theorem he ever proved. It was discovering Ramanujan. He gives a list of mathematicians he has known personally, ranked on a scale of one to one hundred.
He rates himself a 25. He rates his lifelong collaborator Littlewood a 30. He rates David Hilbert, the most respected German mathematician of the era, an 80. The only person he gives a 100 is Ramanujan. He had known one true genius in his life, and that genius had died in his early 30s, and the loss is sitting under every paragraph of the book even when Hardy is not writing about him directly.
The deepest irony in the Apology is the one Hardy could not have predicted.
He spent the whole book arguing that the best mathematics was the most useless. He used number theory, his own field, as the cleanest example. He wrote that nobody had ever found a useful application for the theory of prime numbers and that this was a feature, not a flaw. The work was pure. The work was art. The work was untouched by industry.
Five years after Hardy's death, the world's first computers were being designed using mathematical ideas from his field. Twenty years after his death, code-breakers at Bletchley Park were using number theory to crack the Enigma machine.
Forty years after his death, modern cryptography was being built on the prime number theorems Hardy had said could never be made useful. Every secure transaction you make on the internet today, every encrypted message you send, every banking app you open, runs on the math Hardy spent his life calling beautifully useless.
He was right that the math was beautiful. He was wrong that it was useless. The two things turned out to be the same thing seen from different angles in time.
The other part of the book that still hits readers hard is the ending.
Hardy quietly writes that he has had a good life. He has had Cambridge. He has had cricket. He has had Littlewood. He has had Ramanujan, briefly, and that brief possession of a true genius was worth more to him than all the rest. He has had a small place in the long history of pure mathematics. He says, in plain English, that this is enough.
Then he writes the closing line. He writes that the case for his life cannot be made any more. The verdict, he says, will rest where it falls.
Six years later he tried to kill himself by overdosing on sleeping pills. The attempt failed. He died in his bed of natural causes a few months later, in December 1947, at the age of 70.
The book has stayed in print for 85 years. Mathematicians still read it as a kind of secret confession. Artists read it because Hardy understood something most artists struggle to articulate. The act of making something beautiful is its own justification. You do not need a useful purpose for your work. You do not need the world to applaud it. You do not need it to fit in any system.
You only need the pattern itself to be true, and the pattern to be yours, and the work to have meant something to you while you were doing it.
The hardest part of the book is the part Hardy never says directly.
The act of writing it was itself the proof he was done.
He could no longer make the patterns. He could only tell other people what it had felt like to make them. The Apology is not a book about mathematics. It is a man saying goodbye to the part of himself that had been worth knowing.
Most of you reading this are still in the part of your life where you can make the patterns.
Don't waste it explaining them.
Make them.