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

Library › Mathematics

A Course of Pure Mathematics

G. H. Hardy · 1908 · Cambridge University Press

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

Rigorous analysis taught to English students for the first time.

Read the full text free · 182,354 words · 25 parts

About the book

G. H. Hardy published A Course of Pure Mathematics in 1908 for first-year students at Cambridge. It went through many editions, the tenth in 1952, and became the standard introduction to rigorous analysis in English. The book covers real variables, functions of real variables, complex numbers, limits of functions of a positive integral variable, limits of functions of a continuous variable, continuity, derivatives and integrals, the convergence of infinite series and integrals, logarithmic, exponential and circular functions, and the general theory of logarithmic, exponential and circular functions. Hardy writes with precision and many examples.

Key ideas

  • Calculus must rest on exact definitions of limit and continuity, not on intuitions about infinitely small quantities. Hardy builds everything from these definitions. He makes the reader see why this matters.
  • The real numbers, including irrational numbers, can be defined with care using Dedekind's idea of a section. Their properties are then proved rather than assumed.
  • A sequence converges if its terms come and stay arbitrarily close to a limit. Applied carefully, this definition settles questions that intuition cannot. Hardy gives many worked examples of it.
  • An infinite series has a sum only if it converges. Tests for convergence must be proved from the definitions, and Hardy shows where careless reasoning goes wrong.
  • The logarithmic, exponential and trigonometric functions can be defined rigorously, and all their familiar properties proved from those definitions alone. This avoids relying on geometric pictures of angles and areas.
  • Mathematics is learned by doing many examples. Hardy includes large numbers of exercises, many taken from Cambridge examination papers of his time. The exercises range from routine to hard.

Why it is on this shelf

Hardy brought rigorous analysis into English university teaching. The book is still a clear introduction to what calculus actually rests on. A reader who wants the foundations of calculus set out in plain, careful English, with the gaps of school calculus filled in, should read it.

How to start reading it

Read Chapter One on real variables, then Chapter Four on limits of sequences. Work the examples as you go. Chapter Eight on infinite series follows naturally from these.

About this book

A Course of Pure Mathematics is a textbook of analysis: the theory of real numbers, limits, continuity, derivatives, integrals and infinite series that lies under the calculus. G. H. Hardy wrote it at Cambridge and published it with Cambridge University Press in 1908. He revised it several times over the next four decades, and the tenth edition appeared in 1952, a few years after his death. It has stayed in print ever since, and a centenary edition was issued in 2008.

Hardy wrote it for a particular audience: able students in their first year at a British university, especially those preparing for the Cambridge Mathematical Tripos, the honours examination in mathematics. These students were usually very good at calculation. They could differentiate and integrate almost anything, sum series, and solve hard problems against the clock. What they had rarely been taught was why any of it worked. They used limits without a definition of limit, treated infinite series as if they were long finite sums, and leaned on pictures for facts that pictures cannot prove.

The question the book sets out to answer is how to rebuild the familiar calculus on exact foundations without losing the student along the way. Continental mathematicians, above all in France and Germany, had done this work in the nineteenth century. Their results were known to a few specialists in Britain, but they had not entered ordinary teaching. Hardy wanted to bring them in, in a form that a strong eighteen-year-old could read, and to make that student see that the exact version was not pedantry but the only honest way to know that the results were true.

The book is therefore both a teaching text and an argument. It teaches analysis, with definitions, theorems, proofs and hundreds of exercises. And it argues, by example on every page, that mathematics must be understood and not merely performed. For a modern reader it remains one of the clearest accounts of what the calculus rests on, and also a record of the moment when English mathematics changed its habits.

The author

Godfrey Harold Hardy was born in 1877 in Cranleigh, in Surrey, where his father taught at a school and his mother had trained teachers. He showed early ability with numbers and went on a scholarship to Winchester College, then in 1896 to Trinity College, Cambridge. There he was trained, as all ambitious students were, for the Tripos. He did well, but he later wrote that the system had nearly turned him away from mathematics, because it prized speed and tricks over understanding.

What changed his mind, by his own account, was a book. His teacher A. E. H. Love advised him to read the Cours d'analyse of the French mathematician Camille Jordan. Hardy said that reading it showed him for the first time what mathematics really meant. Jordan's book set out analysis with complete rigour in the French tradition that ran back through Cauchy. Hardy's own Course is, in part, an attempt to give English students the experience Jordan had given him.

Hardy became a fellow of Trinity in 1900 and taught there for nearly twenty years. In the years around 1908 he was a young lecturer with strong views on teaching and growing fame as a researcher. His early research was on the convergence of series and integrals, the theory of functions and the growth of functions, all close to the material of the Course. He also wrote a short tract called Orders of Infinity in 1910 on how fast functions grow.

Two partnerships defined his later career. From about 1911 he worked with J. E. Littlewood, and together they produced a long series of papers in analysis and number theory that made Cambridge a world centre of those subjects. In 1913 he received a letter from Srinivasa Ramanujan, a clerk in Madras with no university degree, containing a list of extraordinary formulas. Hardy recognised the genius in it and brought Ramanujan to Cambridge, where they worked together until Ramanujan's illness and return to India. Hardy later said that his association with Ramanujan was the one romantic incident of his life. The Collected Papers of Ramanujan, which Hardy helped edit, and Kanigel's life of Ramanujan are both on this shelf.

Hardy was also a reformer of Cambridge mathematics. He campaigned against the old order of merit in the Tripos, which ranked every candidate by marks and made the senior wrangler, the top scorer, a public celebrity. The ranking was abolished in 1909, the year after the Course appeared. He held the Savilian chair of geometry at Oxford from 1919 to 1931, then returned to Cambridge as Sadleirian professor. He wrote, with Littlewood and George Polya, the book Inequalities, and with E. M. Wright An Introduction to the Theory of Numbers, also on this shelf. In 1940 he published A Mathematician's Apology, a short and moving defence of pure mathematics written as his powers declined. He died in 1947.

The Course bears the marks of all this. It is written by a man who had felt the gap between calculation and understanding in his own training, who had found the remedy in continental rigour, and who believed that a strong student deserved to be told the truth about what the calculus rests on.

The shape of the argument

The book is built in three broad stages. The first stage lays the ground. It asks what a real number is, what a function is, and what a complex number is. Each answer is given with care: irrational numbers are constructed rather than assumed, functions are treated as rules of correspondence rather than formulas, and complex numbers are given a precise definition and a geometric picture. By the end of this stage the reader has the objects that the rest of the book will study.

The second stage is the theory of limits, and it is the heart of the book. Hardy first treats the limit of a sequence, a function of a whole-number variable, because this is the simplest case, and then the limit of a function of a continuous variable. From limits he builds continuity, then the derivative and the integral, and the main theorems that connect them. The order is deliberate. Everything later depends on the idea of a limit, and Hardy wants that idea to be completely secure before he uses it.

The third stage applies the theory. It deals with the convergence of infinite series and infinite integrals, and with the logarithmic, exponential and circular functions. Here Hardy defines these familiar functions from the ground up, without appeal to geometry or to earlier informal knowledge, and proves their properties. He does this first for real variables and then, in a closing chapter, extends the treatment to complex variables, where the connections between the exponential and the circular functions become visible.

Throughout, the text is surrounded by examples. Hardy gives miscellaneous examples at the end of each chapter and many smaller ones within, a large number of them drawn from Cambridge examination papers. Some are routine exercises in technique. Many are hard, and some are traps, chosen to show where careless reasoning goes wrong. The examples are not an extra. They are half the book.

Several features of method run through the whole. Hardy proves the main theorems with full rigour but says plainly when a proof is being postponed or omitted. He warns repeatedly against common errors. And he tries to give the reader a feel for what the definitions mean, often by drawing on simple cases before stating the general result. The book is rigorous, but it is never cold.

It also helps to know how the book changed over its life. Hardy revised it repeatedly, adding material, rewriting proofs and bringing the treatment up to date as his own understanding and the subject grew. Later editions are fuller and in places more modern than the first. Most readers today meet the tenth edition or the centenary reprint of it, and the remarks in this study edition refer to the book in that mature form. The core plan, from real numbers through limits to series and the elementary functions, was there from the start and never changed.

Finally, the book should be read as a course in the old sense: a path to be walked in order, with each stage preparing for the next. It is possible to dip into a later chapter for a particular result, but the full value comes from following the path, because the habits of thought built in the early chapters are what make the later ones easy. A reader who skips the groundwork will find the later proofs mysterious; a reader who has done it will find them almost obvious.

What a real number is

School mathematics treats the real numbers as given. Every point on a line has a number, every number has a decimal expansion, and arithmetic works. Hardy starts by asking what this means. The rational numbers, the fractions, are easy to define from the whole numbers. But the rationals have gaps. There is no fraction whose square is two, a fact the Greeks knew and Hardy proves early. So if the line is to have a number at every point, there must be numbers that are not fractions. What are they?

Hardy's answer follows Richard Dedekind, whose essay on continuity and irrational numbers is in this bay. Divide all the rational numbers into two classes, a lower and an upper, so that every member of the lower class is less than every member of the upper. Such a division is called a section or cut. Sometimes the cut happens at a rational number, which then sits at the top of the lower class or the bottom of the upper. Sometimes it happens at no rational number at all. For example, put in the lower class every rational whose square is less than two or which is negative, and in the upper class every positive rational whose square is more than two. Neither class has an end point. The cut itself marks a place on the line where no fraction is. Dedekind's idea, which Hardy adopts, is to say that the cut is the number. An irrational number is simply a section of the rationals with no rational at the boundary.

This can feel like a conjuring trick. It helps to think of how a surveyor might fix a point she cannot directly reach. She can say which landmarks lie on one side of it and which on the other. If she lists every landmark on each side, she has said everything that can be said about where the point is. Dedekind's cut is that complete list, for every rational number. Nothing more is needed, and nothing less will do.

With real numbers defined this way, Hardy can prove what school mathematics assumes. He shows how to add and multiply sections, and that the usual laws of arithmetic hold. Most importantly, he proves that the real numbers have no gaps: every section of the real numbers themselves is made at a real number. This completeness property is what makes analysis work. It is the reason every bounded increasing sequence has a limit, every continuous function on an interval attains a largest value, and many other results that intuition takes for granted.

The real numbers are often confused with decimals. A decimal expansion is a way of naming a real number, not a definition of what it is. Two different decimals can name the same number, as with a number ending in an endless run of nines and its rounded neighbour. And the claim that every decimal names a number is itself a theorem about completeness. Hardy's construction comes first; decimals are then a convenient notation.

What a function is

In much eighteenth and early nineteenth century mathematics, a function was a formula: an expression built from a variable by algebraic operations, roots, logarithms and so on. Hardy insists on a wider idea. A function of a real variable is any rule that assigns to each number in some range a definite number. The rule may be given by a formula, by several formulas on different pieces of the range, by a description in words, or by a table. What matters is the assignment, not how it is written.

Hardy illustrates this with examples that look strange to a student used to formulas. One function takes the value one at every rational number and zero at every irrational number. No ordinary formula describes it, and no graph can be drawn of it, since its values jump between zero and one in every interval however small. Yet it is a perfectly good function. Other examples are defined differently at each whole number, or by the digits of a number's decimal expansion. Such examples are not curiosities. They test definitions. A definition of continuity, or of the integral, must give the right answer for them too.

Hardy also takes care with the classification of functions. He distinguishes polynomials, rational functions, algebraic functions, which satisfy polynomial equations, and transcendental functions, which do not. He discusses graphs and the information they convey, and shows how to sketch them, while warning that a graph is a picture of a function and not the function itself. A graph can suggest a property; only a proof can establish it.

An analogy from daily life may help. A railway timetable is a function: to each station it assigns a departure time. It has no formula. It may be irregular, with long gaps and short ones. It is still exact, because each station gets exactly one time. A formula is one way to give such an assignment, convenient when it exists, but most assignments that matter in mathematics and in life are not neat formulas.

The modern definition of a function as a set of ordered pairs, with each input appearing in exactly one pair, came into common use after Hardy wrote. His wording is older, but the idea is the same. The shift from formula to rule was one of the great changes of nineteenth-century mathematics, and the Course was one of the books that carried it into English teaching.

The limit

The central idea of the book is the limit. Every school student learns to say that a sequence of numbers tends to a limit, or that a function approaches a value as its variable approaches some point. The difficulty is to say exactly what this means. Earlier writers spoke of quantities becoming infinitely small, or of a variable reaching its limit at the end of an infinite process. Such phrases cannot be used in a proof, because no one can say what an infinitely small quantity is or what happens at the end of an endless process.

The exact definition, which goes back to Cauchy and was made fully precise by Weierstrass, avoids all talk of infinity. A sequence has the limit L if, for any tolerance you care to name, however small, there is a point in the sequence beyond which every term lies within that tolerance of L. In other words, the terms come and stay as close to L as anyone could wish. Nothing is infinitely small; every quantity in the definition is an ordinary positive number. The infinite is replaced by a challenge and a response: you name a tolerance, I find a point in the sequence that meets it.

Hardy introduces this definition gently. He uses everyday language about a function being small, or large, for large values of the variable, and only then states the definition in its precise form. He gives many examples of sequences that converge, sequences that oscillate, sequences that grow without bound, and sequences whose behaviour is hard to guess. He shows how to prove that a sequence converges, and how to prove that it does not.

A key result in this part of the book is the principle of convergence often credited to Cauchy. A sequence converges if and only if its terms eventually come and stay close to each other, whatever the limit may be. This lets one prove that a sequence converges without first knowing its limit, which is essential when the limit is a new number, such as an irrational, that has not been named in advance. The principle depends on the completeness of the real numbers, and here the work of the first chapter pays off.

An image that many teachers use is of a game between two players. One player, the sceptic, names a margin of error. The other, the prover, must find a stage after which the sequence never strays outside that margin. If the prover can always answer, however small the sceptic's margin, the sequence converges. If there is some margin the prover cannot meet, it does not. This turns the definition from a formula to be memorised into a contest that can be played and won.

The idea of a limit is often confused with the idea of reaching. A sequence need not ever equal its limit; most do not. Nor need a function have the value at a point that it approaches near the point. The limit is about what happens nearby, not what happens at the place itself. Many errors in school calculus come from confusing the two, and Hardy's examples are designed to make the distinction impossible to forget.

Continuity and its consequences

With limits secure, Hardy defines continuity. A function is continuous at a point if its value there equals the limit of its values as the variable approaches the point. Informally, small changes in the input produce small changes in the output. The definition looks innocent, but it has consequences that are far from obvious.

Hardy proves the main theorems about continuous functions on a closed interval. A continuous function that is negative at one end and positive at the other must be zero somewhere in between. This is the intermediate value property, and it is the reason equations like a polynomial of odd degree equal to zero always have a real solution. A continuous function on a closed interval is bounded, and it attains its largest and smallest values. These results are what make calculus problems about maxima and minima meaningful, since they guarantee that the maximum one is looking for exists.

Each of these results depends on the completeness of the real numbers. On the rational numbers alone they fail. The function that takes x to x squared minus two is continuous on the rationals, negative at one and positive at two, and yet never zero, because the point where it should vanish is not rational. Hardy makes this kind of dependence visible.

To prove them he uses tools that were then still new in English teaching. One is the result now called the Heine-Borel theorem, which says roughly that if a closed interval is covered by a collection of open intervals, some finite number of them already covers it. Another is the result usually credited to Bolzano and Weierstrass, that every bounded sequence has a convergent part. Both are statements about the structure of the real line that turn an infinite problem into a finite one. They are central to all later analysis.

Hardy also takes care with uniform continuity, the idea that a function's sensitivity to small changes is controlled by the same tolerance everywhere on its domain, not just point by point. On a closed interval, continuity implies uniform continuity, and this fact is what makes the definite integral of a continuous function well defined. The distinction between pointwise and uniform behaviour is one of the subtle ideas of analysis, and students often find it hard. Hardy's treatment is one of the clearer early ones.

Continuity is often confused with smoothness, and continuous functions are often imagined as curves that can be drawn without lifting the pen. Hardy's examples show that continuity is weaker. A continuous function can have corners, and there are continuous functions so jagged that they have no derivative at any point. Weierstrass had published such an example in the 1870s, and the possibility of such functions was one of the strongest reasons for insisting on exact definitions.

The derivative and the mean value theorem

Hardy defines the derivative as a limit: the limit of the ratio of the change in a function to the change in its variable, as the latter shrinks. This is the familiar slope of a tangent line, made exact. He then derives the rules of differentiation, which the reader already knows from school, and shows why they hold.

The most important theorem in this part is the mean value theorem. If a function is continuous on a closed interval and has a derivative inside it, then somewhere inside the interval the derivative equals the average rate of change over the whole interval. In terms of a journey: if you drive a hundred kilometres in two hours, at some moment your speedometer read exactly fifty kilometres an hour. The theorem is proved from Rolle's theorem, the special case where the function has equal values at the ends, and Rolle's theorem rests on the fact that a continuous function on a closed interval attains its extreme values.

From the mean value theorem follows nearly everything a student uses about derivatives. A function with zero derivative everywhere on an interval is constant. A function with positive derivative is increasing. Two functions with the same derivative differ by a constant. Taylor's theorem, which approximates a function by a polynomial and estimates the error, is a refinement of the same idea. Each of these is used constantly in school calculus without proof. Hardy shows that they all rest on one theorem, and that theorem on the completeness of the reals.

The derivative is often confused with the idea of an infinitely small ratio, and the notation of Leibniz, with its dy over dx, encourages this. Hardy treats the notation as a convenient symbol for a limit, not as a real fraction. He shows when it can safely be manipulated like a fraction, as in the chain rule, and warns where it cannot. This combination of respect for the notation and refusal to be misled by it is typical of the book.

The integral

Hardy treats integration in two ways, and the relation between them is one of the book's lessons. First he treats the integral as the inverse of differentiation: to integrate a function is to find another function whose derivative it is. He devotes many pages to the techniques for doing this for rational functions, using partial fractions, and for various algebraic and transcendental functions. This is the integral as the student already knows it, and Hardy gives a systematic account of which integrals can be found in closed form and why.

Then he treats the definite integral as a limit of sums: the area under a curve approximated by thin rectangles whose total area approaches a limit as the rectangles get thinner. He proves that for a continuous function the limit exists, using uniform continuity. And he proves the fundamental theorem of the calculus, which says that the two notions agree: the definite integral of a continuous function, regarded as a function of its upper end point, has the original function as its derivative.

This theorem is the reason calculus works as a practical tool. It turns the problem of finding an area, a limit of sums, into the problem of finding an antiderivative, which is often a matter of algebra. School students use it constantly. Few have seen why it is true, or noticed that it needs the integrand to be well behaved. Hardy's examples include functions where the two notions of integral come apart, or where an antiderivative exists but cannot be written in terms of familiar functions.

The integral Hardy treats is essentially the one now named after Riemann. Shortly before the Course appeared, Henri Lebesgue had introduced a more powerful integral that handles a wider range of functions and behaves better under limits. Hardy does not use it; it was too advanced for his readers and still new. Modern analysis courses usually go on to the Lebesgue integral, and a reader of Hardy should know that the integral in the Course is a first step, not the last word.

Infinite series

An infinite series is an endless sum, such as one plus a half plus a quarter and so on. Mathematicians of the eighteenth century manipulated such sums freely, rearranging their terms, multiplying them together and differentiating them term by term. Often this worked. Sometimes it produced nonsense, such as a series of positive terms summing to a negative number. By the early nineteenth century it was clear that infinite sums needed a theory.

Hardy gives that theory. An infinite series has a sum only if the sequence of its partial sums, the sums of the first one, two, three terms and so on, has a limit. If it does, the series converges and the limit is its sum. If not, the series diverges and has no sum in the ordinary sense. The definition reduces series to sequences, and the whole theory of limits applies.

He then develops tests for convergence. A series of positive terms converges if its terms are smaller than those of a series known to converge. The ratio and root tests compare a series with a geometric series. The integral test compares it with an integral. Other tests handle series whose terms change sign. Each test is proved from the definition, and Hardy shows by example what each test can and cannot decide. The series of reciprocals of the whole numbers, one plus a half plus a third and so on, diverges, though its terms shrink to zero; the series of reciprocals of the squares converges. Learning why is a rite of passage in analysis.

The subtlest part concerns series whose terms change sign. Some converge only because positive and negative terms cancel. Such series, called conditionally convergent, behave in disturbing ways. Their terms can be rearranged to give a different sum, or to make the series diverge altogether. Series whose terms converge even when all signs are made positive, called absolutely convergent, behave much better: they can be rearranged and multiplied freely. Hardy explains the distinction with care, because it is exactly where eighteenth-century intuition failed.

An image may help. Imagine a bank account with infinitely many deposits and withdrawals. If the total of deposits and the total of withdrawals are each finite, the order of transactions does not matter. If both totals are infinite and only their balance is finite, then by choosing the order of transactions one can make the running balance end anywhere one likes. Conditionally convergent series are accounts of the second kind.

Hardy also treats power series, infinite series in powers of a variable, which give a way to define functions by infinite polynomials. He shows that a power series converges inside a certain interval and diverges outside it, and that inside that interval it can be differentiated and integrated term by term. This is the foundation for defining the exponential and circular functions by series.

Logarithm, exponential and circle, defined from scratch

Every student meets the logarithm, the exponential function and the sine and cosine long before university. Usually they are introduced informally. The logarithm is the power to which ten must be raised. The exponential is a number raised to a variable power, though no one says what it means to raise a number to an irrational power. The sine is a ratio of sides in a right triangle, or a coordinate on a circle, though the definition of angle that this needs is itself unclear. Students learn the rules for these functions and use them confidently without ever being told what the functions are.

Hardy defines them from the ground up. His approach to the logarithm is the one now common in rigorous courses. The logarithm of a positive number x is defined as the area under the curve one over t, from one to x: in other words, as an integral. Everything follows from this. The logarithm of one is zero. Its derivative is one over x. Most importantly, the logarithm of a product is the sum of the logarithms, which can be proved by a simple change of variable in the integral. The familiar law that makes logarithms useful turns out to be a fact about areas under a hyperbola.

The exponential function is then defined as the inverse of the logarithm. Its properties follow from those of the logarithm: the exponential of a sum is the product of the exponentials, and its derivative is itself. The number e appears naturally as the number whose logarithm is one. Raising a positive number to any real power, rational or not, is then defined through the logarithm and the exponential, and so the question of what an irrational power means finally receives an answer.

Hardy then shows that the exponential function can also be written as a power series, and that the logarithm of one plus x can be written as a series for small x. These series give practical ways to calculate values, and they agree with the integral definitions. The reader sees one function from two directions, and understands why the two descriptions agree.

For the circular functions, Hardy explains how they too can be defined without geometry, through integrals or series, and how their familiar properties, the addition formulas, periodicity, the derivative of the sine being the cosine, can be proved from such definitions. He treats the geometric definition by angles and arcs critically, pointing out that it depends on a notion of arc length that itself requires the integral. The purely analytic treatment avoids this circle.

Why go to such lengths for functions everyone already uses? Because the informal definitions hide real gaps, and because the exact definitions reveal unexpected connections. The logarithm becomes an area; the exponential becomes the unique function equal to its own rate of change; and, in the complex setting of the final chapter, the exponential and the circular functions become one family. These connections are invisible from the schoolroom definitions and obvious from Hardy's.

Complex numbers and the unity of the functions

Hardy introduces complex numbers early, in the groundwork, and returns to them at the end. A complex number is a pair of real numbers, written with the square root of minus one, and added and multiplied by fixed rules. Hardy is careful to show that nothing mysterious is involved. The square root of minus one is not an imaginary object in any troubling sense; it is a symbol for a rule of combining pairs. He also gives the geometric picture, in which complex numbers are points of a plane and multiplication by a complex number is a rotation combined with a stretch. This picture, usually called the Argand diagram, makes many algebraic facts visible.

In the closing chapter Hardy extends the logarithm, exponential and circular functions to complex values. Here the payoff of the whole book comes into view. The exponential of an imaginary number turns out to be made of cosine and sine. The circular functions, which seemed to belong to geometry, and the exponential, which seemed to belong to growth and decay, are revealed as two aspects of one function. The logarithm of a complex number turns out to have infinitely many values, differing by whole multiples of a fixed imaginary quantity, because going once round the origin in the complex plane returns the exponential to where it started.

These facts are often presented in school as surprising formulas to be memorised. In Hardy's treatment they are the natural consequence of definitions already in place. A reader who reaches the end of the book sees why Euler's formulas connecting exponentials and circular functions must be true, and also where the many-valued nature of the logarithm comes from. This is a good example of how rigour, far from making mathematics dry, can reveal its structure.

An analogy: two rivers in different valleys seem quite separate. A map of the whole region shows that they rise from the same lake. The real exponential and the real sine are the two rivers. The complex exponential is the lake. Hardy's final chapter draws the map.

Learning by examples

Anyone who opens the Course will notice the exercises. Each chapter ends with a long set of miscellaneous examples, and many shorter examples appear within the text. A large share come from Cambridge examination papers of Hardy's time, marked with their source. Some are drills in technique. Others are deep, and a few are open-ended problems that lead into research topics.

Hardy's view, shared by most good teachers of mathematics, was that the subject is learned by doing it. Reading a proof is not the same as being able to produce one. A student who has followed the proof of the mean value theorem has learned something; a student who has used it to prove ten other results has learned much more. The exercises force the reader to turn passive understanding into active skill.

There is an irony here. Hardy disliked the Tripos culture of speed and tricks, yet he filled his book with Tripos problems. The irony is only apparent. He did not object to hard problems; he objected to problems solved without understanding. In the Course, the same problems are set inside a framework of definitions and theorems, so that solving them deepens understanding rather than replacing it. A problem about the convergence of a series is no longer a puzzle to be cracked by a trick, but an application of tests whose proofs the student has seen.

Some of the examples are traps. A plausible argument is given, and the reader is asked to find the flaw. A function is defined that looks continuous but is not, or a series that seems to converge but does not. These examples teach caution. They show that intuition is a good servant and a bad master, and that the exact definitions are needed precisely because intuition sometimes fails.

For a modern reader, the examples are both a resource and an obstacle. Some use notation or problem styles that have fallen out of use, and many assume a level of skill in algebraic manipulation that modern students may lack. But a reader who works a good selection of them will gain a command of analysis that no amount of reading can give.

Rigour as honesty

Underneath the technical content, the Course makes a moral argument about mathematics. Hardy believed that a mathematician should not claim to know what has not been proved, and that a proof must be complete, with every step justified by a definition or a previous result. He thought that the English tradition of his youth had too often been content with results that seemed right and could be used, without asking whether they were true.

This is sometimes misunderstood as a love of difficulty or pedantry for its own sake. It was not. Hardy wrote clearly and tried hard to make proofs easy to follow. He did not insist on rigour where it added nothing, and he was willing to postpone or omit difficult proofs, saying plainly that he was doing so. His point was that a student should always know which steps are proved and which are not. Being honest about the difference is what rigour means.

The argument has a practical side. Results obtained by intuition are often right, but not always. When they are wrong, there is no way to tell without proof. The eighteenth-century errors with series, the nineteenth-century surprises about continuous functions without derivatives, and many smaller pitfalls all show that intuition alone cannot be trusted. In engineering and science the same lesson holds: a calculation that has not been checked against its assumptions can fail when it matters most.

There is also an aesthetic side, which Hardy later developed in A Mathematician's Apology. A rigorous proof is not only reliable; it is also, at its best, beautiful. It shows why a result is true, not merely that it is. The Course does not dwell on beauty, but a reader who works through it will find many proofs that are both exact and elegant, and will begin to understand why Hardy cared about both.

Intuition, proof and the case of Ramanujan

Five years after the Course appeared, its author met the strongest test of its outlook. Ramanujan's letters to Hardy contained formulas for series, integrals and continued fractions of astonishing depth, many of them correct, some of them new, and a few of them wrong. Ramanujan had learned his mathematics largely from a compendium of results with brief or no proofs, and he had developed his own methods in isolation. He had no training in the kind of analysis the Course teaches. He did not use exact definitions of limit or convergence, and he manipulated divergent series in ways that Hardy's book warns against.

Hardy's response is instructive. He did not dismiss the formulas because they came without proofs. He saw that they could only have been written by a mathematician of the highest class, and he checked them. Some he could prove, some he could not, and some he found to be false, notably claims about the distribution of prime numbers that rested on an intuition that failed in a subtle way. When Ramanujan came to Cambridge, Hardy tried to teach him rigorous analysis without damaging the intuition that made him great. Hardy said later that he was not sure he had found the right balance.

The story shows that the Course's insistence on proof is not a rejection of intuition. Ramanujan's intuition was far stronger than that of any student the Course was written for, and it produced results that occupied mathematicians for decades. But intuition alone could not tell which of his results were true. Only proof could do that. The Course teaches the tools for proving, and Ramanujan's case shows both how much they are needed and how much they depend on something they cannot supply: the insight to see what is worth proving.

There is a second lesson. Many of Ramanujan's formulas involved series that diverge in the ordinary sense, yet he assigned them values that turned out to be meaningful. Hardy spent much of his later career on the theory of divergent series, which gives exact ways to assign sums to series that do not converge, and his book on the subject appeared after his death. The Course says firmly that a divergent series has no sum in the ordinary sense. Later work showed that there are useful extraordinary senses. Rigour, properly understood, does not close questions; it makes it possible to ask them precisely.

A reader of this shelf will find the two sides of this story in Ramanujan's Collected Papers and in Kanigel's biography, both in this bay. Reading the Course alongside them makes clear that the book is not a set of rules for timid minds. It is a set of tools for bold ones, which tells them when they have actually arrived where they think they are.

The tradition around it

What it answers

The Course answers the gap between British and continental mathematics that had opened during the eighteenth century. After Newton, British mathematicians kept his notation and his geometric style, while those on the continent developed the more flexible notation of Leibniz and pushed analysis far ahead. Reformers in Cambridge in the early nineteenth century had brought in continental notation, but not the later continental rigour. By 1900 the rigorous analysis of Cauchy, Weierstrass and Dedekind was standard in France and Germany and largely unknown in British teaching. Hardy's book closed that gap for a generation of students.

What came before

The book stands in a tradition that runs from Augustin-Louis Cauchy's Cours d'analyse of 1821, which first set out limits and continuity in something like their modern form, through the lectures of Karl Weierstrass in Berlin, which made the definitions exact, to Camille Jordan's Cours d'analyse, which Hardy credited with opening his eyes. Dedekind's Essays on the Theory of Numbers, in this bay, supplies the construction of the real numbers that Hardy adopts. Cantor's Contributions, also here, supplies the language of sets and of countable and uncountable collections that analysis uses.

In England, E. T. Whittaker's A Course of Modern Analysis, first published in 1902 and later revised with G. N. Watson, had brought some continental methods into British teaching, but it was aimed at more advanced students and focused on special functions. T. J. I'A. Bromwich published a substantial book on infinite series in the same year as Hardy's Course. Hardy's book was distinctive in aiming at first-year students and in building analysis from the ground up.

What came after

For several decades the Course was the standard introduction to analysis in British universities and widely used elsewhere. Later textbooks took up the same task with modern notation and set theory. Walter Rudin's Principles of Mathematical Analysis, in this bay, is the best-known of these: shorter, more abstract, and built on metric spaces and sets. Michael Spivak's Calculus, also here, covers much of Hardy's ground with similar care for first-year students, and its exercises are in Hardy's spirit. Courant and Robbins's What Is Mathematics? explains limits and continuity for a general reader. Whitehead's An Introduction to Mathematics, written a few years after the Course, gives a short and humane account of the same ideas.

Hardy's own later books build on the Course. An Introduction to the Theory of Numbers, with Wright, uses analytic methods that the Course prepares. A Mathematician's Apology explains the outlook that drives the Course. The story of Ramanujan, in Kanigel's The Man Who Knew Infinity and in Ramanujan's Collected Papers, shows the other side of the coin: a mathematician of supreme intuition who had never learned the kind of rigour the Course teaches, and the long collaboration in which Hardy tried, with partial success, to give it to him.

Questions and criticisms

Old notation and old style

The Course shows its age. Its notation is in places older than modern readers expect, and it uses phrases, such as functions of a positive integral variable for sequences, that have dropped out of use. It does not use the language of sets in the way modern texts do, and it has no metric spaces or general topology. A modern student who goes from Hardy to Rudin will find the same ideas in a very different dress. This is not a flaw in the mathematics, but it means that Hardy is now more often read as a classic than as a first course.

Breadth and length

The book is long and covers a great deal of material that later courses treat separately or omit, such as detailed techniques for integrating algebraic functions. Some readers find these parts tedious and closer to the old calculation-based teaching than to rigorous analysis. Hardy included them because his students needed them for examinations, and because he wanted to show that rigour and technique belong together. A modern reader can skip much of this on a first pass.

What is left out

The Course does not treat the Lebesgue integral, uniform convergence of sequences of functions is handled only in part, and functions of several variables receive little attention. Nor does it treat complex analysis beyond the elementary functions; the great theorems of Cauchy on complex integration are absent. These omissions are reasonable for a first course, but they mean the book is a beginning, not a full account of analysis.

The exercises

The examination problems that fill the book were set for students trained in a particular culture of fast manipulation. Some are now very hard for students without that training, not because the ideas are deep but because the algebra is heavy. Others refer to topics, such as certain special curves and expansions, that are no longer taught. A modern reader should choose among the exercises rather than try to do them all.

What has held up

What has held up is the core: the construction of the reals, the theory of limits, the main theorems on continuous and differentiable functions, the theory of series, the analytic definitions of the elementary functions. These are still taught in essentially Hardy's way. So is his tone, which combines exactness with patience and a clear sense of what matters. Many mathematicians have said that the Course taught them what analysis is. It has kept that power for well over a century.

Why it is on this shelf

We keep this book because it is the clearest bridge on the shelf between calculation and understanding. Many readers can use calculus; fewer know what it rests on. Hardy shows exactly where the foundations are, and he does it in plain English, with patience, for readers who are willing to work.

For the reader of science and technology, the book explains the mathematics under every model of change: velocity, growth, decay, oscillation, flow. Every differential equation in physics or engineering depends on the limits, derivatives and integrals that Hardy makes exact. For the reader of economics, it supplies the analysis behind marginal reasoning, optimisation and growth models, and the habit of asking whether a maximum one is looking for actually exists.

For the reader of Jyotish and of the old Indian mathematical astronomy, the book has a particular interest. The Kerala school of astronomy and mathematics, from Madhava in the fourteenth century to his successors in the sixteenth, found infinite series for the sine, cosine and arctangent long before they were found in Europe. Those results were obtained and used with great skill, but without the theory of limits that would later make them rigorous. Hardy's chapters on series and on the circular functions show what that theory adds. Reading them with the Kerala results in mind is a way of seeing two traditions meet.

For the reader of Vedanta, the book offers a careful treatment of the infinite in a form that never treats it as a thing. Every infinite process in the Course is handled by finite statements about tolerances and stages. This contrasts with Cantor's treatment of completed infinities, also on this shelf, and with the Upanishadic idea of purna, fullness, the complete whole from which nothing is lost. The three together give a reader a range of ways to think about the infinite, each exact in its own terms.

How to read it

Before you start

You need school algebra, trigonometry and some calculus. You should be comfortable with inequalities, since analysis is largely the art of estimating. If inequalities feel shaky, spend a week with them first. You do not need any set theory, though a little helps. Have a notebook and expect to fill it.

A first pass

Begin with the chapter on real variables, reading the construction of irrational numbers carefully. Do not hurry the material on sections. Then read the chapter on functions quickly, noting the strange examples. Go next to the chapter on limits of sequences and read it slowly, with a pencil, working at least a third of the examples. This is the most important chapter in the book. Then read the chapter on limits of functions and continuity, again working examples. Allow a month or more for these chapters at an hour a day.

After that, read the chapters on derivatives and integrals, concentrating on the mean value theorem, Taylor's theorem and the definition of the definite integral. On a first pass you may skim the long sections on techniques of integration, reading enough to see the method and leaving the details. Then read the chapter on series, and finally the chapter on the logarithm, exponential and circular functions of a real variable.

Leave the complex chapter and the appendices for a second pass, unless you are already comfortable with complex numbers.

Working with a pencil

For every definition, write down an example and a non-example. For every theorem, try to prove it before reading Hardy's proof, even if you fail; you will understand his proof better. For every proof, find the step where the completeness of the real numbers is used, if it is. Draw graphs of every strange function. Keep a list of the errors Hardy warns against, and check your own work against it.

Choose exercises with care. Do the short examples in the text. From the miscellaneous examples at the end of each chapter, choose a handful that look interesting and a handful that look hard. Do not try to do them all. If an exercise has been unsolved for a week, set it aside and come back later.

What to read next

From this shelf, read Spivak's Calculus for a modern treatment of similar material with excellent exercises, and then Rudin's Principles of Mathematical Analysis for the subject in its abstract modern form. Read Dedekind's Essays for the source of the theory of real numbers, and Cantor's Contributions for the theory of infinite sets. Read Hardy's A Mathematician's Apology for his view of what mathematics is for. Read Hardy and Wright's An Introduction to the Theory of Numbers to see analysis put to work in number theory, and Kanigel's life of Ramanujan for the human story of Hardy's greatest collaboration.

Questions to carry

  • Why is it not enough to say that the square root of two is the number whose square is two?
  • What exactly does a Dedekind section capture about a number, and why is nothing else needed?
  • Why is a function a rule rather than a formula, and which of Hardy's examples make that distinction necessary?
  • How does the definition of a limit replace talk of infinitely small quantities with statements about ordinary numbers?
  • Why can one prove that a sequence converges without knowing its limit, and what property of the real numbers makes this possible?
  • Which theorems about continuous functions fail if one works only with rational numbers?
  • What is the difference between continuity at each point and uniform continuity, and where does the difference matter?
  • How does the mean value theorem support nearly everything a student uses about derivatives?
  • Why does the fundamental theorem of the calculus need the function to be well behaved, and what can go wrong otherwise?
  • Why do the terms of a series tending to zero not guarantee that the series converges?
  • How can rearranging the terms of a conditionally convergent series change its sum?
  • What is gained by defining the logarithm as an area rather than as an inverse power?
  • Why must the logarithm of a complex number have many values?
  • What did the Kerala mathematicians have, and what did they lack, compared with the theory of series in this book?
  • When is rigour honesty, and when, if ever, is it pedantry?

Words to know

  • Analysis: The branch of mathematics that studies limits, continuity, derivatives, integrals and infinite series with full rigour.
  • Rational number: A number that can be written as a fraction of two whole numbers.
  • Irrational number: A real number that is not rational, such as the square root of two.
  • Dedekind section (cut): A division of the rational numbers into a lower and an upper class. Hardy uses sections to define the real numbers.
  • Completeness: The property of the real numbers that they have no gaps, so that every bounded increasing sequence has a limit.
  • Function: A rule that assigns to each number in some range a single definite number.
  • Sequence: A function of a positive whole-number variable, an endless list of numbers. Hardy calls it a function of a positive integral variable.
  • Limit: The value that the terms of a sequence, or the values of a function, come and stay arbitrarily close to.
  • Cauchy's principle of convergence: A sequence converges if and only if its terms eventually come and stay arbitrarily close to each other.
  • Continuity: The property of a function whose value at a point equals the limit of its values near that point.
  • Uniform continuity: Continuity in which the same tolerance works at every point of a domain.
  • Intermediate value property: A continuous function on an interval takes every value between its values at the end points.
  • Heine-Borel theorem: Any covering of a closed interval by open intervals has a finite part that still covers it.
  • Bolzano-Weierstrass theorem: Every bounded sequence of real numbers has a convergent subsequence.
  • Derivative: The limit of the ratio of the change in a function to the change in its variable.
  • Mean value theorem: For a suitable function on an interval, the derivative somewhere inside equals the average rate of change over the interval.
  • Taylor's theorem: The approximation of a function by a polynomial, with an estimate of the error.
  • Definite integral: The limit of sums of areas of thin rectangles under a curve.
  • Fundamental theorem of the calculus: The result that integration and differentiation are inverse operations for well-behaved functions.
  • Infinite series: An endless sum, which has a value only if its partial sums converge.
  • Absolute convergence: Convergence of a series that persists when all its terms are made positive.
  • Conditional convergence: Convergence that depends on cancellation between positive and negative terms.
  • Power series: An infinite series in increasing powers of a variable.
  • Tripos: The Cambridge honours examination in mathematics for which Hardy's students prepared.
  • Purna: A Sanskrit word for fullness or wholeness, used in the Upanishads for the complete reality from which nothing is diminished.

A note on this edition

This is a study edition written for this shelf in our own words. It describes Hardy's Course, its ideas and its place in the history of mathematics, and suggests a way to read it. It does not reproduce Hardy's text, his proofs or his exercises, and it cannot replace them, since the value of the Course lies in working through it. The book itself remains in print and is worth getting from a library or a bookshop. Read it with a pencil, and use this edition only as a map.

Terms from this book with their own page: Completeness, Irrational number

More from “Mathematics”

The whole section →