Anantashreni: Infinite Series Two Centuries Before Europe

The foundational concept of calculus, worked out in a Kerala village

Discover how the Kerala school of Madhava developed the concept of anantashreni, the infinite series, which is the foundational idea of modern calculus, in a small Malayalam speaking village in the fourteenth century, more than two hundred years before Newton or Leibniz.

The Problem of the Endless Sum

Around 1400 CE, in a thatched-roof pāṭhaśālā in the village of Saṅgamagrāma on the Periyar river in central Kerala, a Nambudiri Brahmin in his late fifties named Mādhava sat cross-legged with a palm-leaf folio on his lap. On the leaf, with an iron stylus, he was working the oldest unsolved problem in geometry: how to write the length of a curved arc, or the value of π, or the sine of an arbitrary angle, as an exact number rather than a shrinking approximation. The tools around him were simple. A bundle of palm-leaf folios. A stylus. A small brass bowl of turmeric powder to rub into the scored letters so they darkened and stayed readable. The problem in front of him was older than any of them, and it had no finite answer. He knew it. And he had decided to give the answer as an infinite one.

Before there was calculus, there was a problem that made calculus inevitable. Ordinary algebra handles finite sums with ease. Five plus three is eight. A quadratic has two roots and you can write them down. But many of the most useful quantities in nature, the length of a curved arc, the area under a parabola, the exact value of pi, the sine of an angle that is not a round fraction of the circle, are not finite sums at all. They are the limits of processes that require you to add up infinitely many terms, each one smaller than the last, and trust that the total will settle down to a definite value. This is the idea of the anantashreni, the infinite series. It is the doorway through which all of calculus eventually walks. And the doorway was built, opened, and walked through first not in seventeenth century England or Germany but in a small village on the Nila river in fourteenth century Kerala, by a mathematician named Madhava of Sangamagrama and his students.

What Is an Infinite Series, and Why Is It Hard?

An infinite series is what you get when you add up an endless list of numbers. The first challenge is conceptual. How can you add up infinitely many things and get a finite answer? The ancient Greeks had stumbled over this in the fifth century BCE with Zeno's paradoxes. Zeno pointed out that to walk across a room you must first cover half the distance, then half of what remains, then half of that, and so on forever. Each step is real, each remaining distance is positive, and yet the walker somehow arrives. Zeno thought this was a proof that motion was impossible. Modern calculus says Zeno was right that the process involves infinitely many steps and wrong that the sum has no limit. The sum of 1/2 + 1/4 + 1/8 + 1/16 + ... converges to exactly 1. You can add infinitely many things and get a finite answer, but only if the terms shrink fast enough. The question is how fast is fast enough, and that question is the whole content of the theory of convergence. Madhava's school in Kerala worked this out, in careful detail, starting in the late fourteenth century.

Madhava of Sangamagrama

Madhava was born around 1340 CE in the village of Sangamagrama on the Nila river in central Kerala, traditionally identified with the modern town of Irinjalakuda in Thrissur district. He was a Namboodiri Brahmin by caste and an Emprantiri by subgroup, trained in the traditional Kerala system of siddhanta astronomy and paid little attention by the rest of the Indian world at the time. No manuscript of any of his own writings survives. Everything we know about his mathematics we know because his students, and his students' students, and a full generation of commentators down to the sixteenth century, carefully quoted him, attributed his work to him by name, and preserved his results within their own texts. The attribution is unambiguous. Nilakantha Somayaji, writing around 1500 CE, calls Madhava the golavid, the 'knower of the sphere', and credits him explicitly with the series for the sine, the cosine, and the arctangent. Jyesthadeva, writing around 1530 CE in the Yuktibhasha, opens his chapter on the infinite series for pi with the phrase 'iti madhavoktam', 'thus spoken by Madhava'. These are not polite gestures. They are scholarly citations to a named source, done in the style of the paramparā, and they let us reconstruct Madhava's original work with near certainty even though his own manuscripts are lost.

The First Infinite Series Ever Written Down

Young Mādhava deriving the arctangent series under a banyan

Around 1380 CE, Madhava wrote down the infinite series for the arctangent function. In modern notation: arctan(x) = x - x^3/3 + x^5/5 - x^7/7 + ... for |x| less than or equal to 1. In the special case where x equals 1, the angle whose tangent is 1 is pi/4, so the same series gives pi/4 = 1 - 1/3 + 1/5 - 1/7 + 1/9 - ... This is a recipe for computing pi to any desired precision, one term at a time, with only arithmetic and no geometry. It is usually called the Gregory Leibniz series in European mathematics. James Gregory rediscovered it in Scotland in 1671. Gottfried Leibniz rediscovered it in Germany in 1674. Both are roughly three centuries after Madhava. The correct name, as Indian mathematicians and the international history of science community now increasingly agree, is the Madhava series. Madhava also gave the infinite series for the sine and the cosine, the series that modern mathematics names after Brook Taylor who rediscovered them in 1715, almost three hundred and fifty years later. And he gave several convergence accelerated refinements of his pi series, showing that he understood not just the series itself but the much subtler problem of how quickly it converges and how to speed it up.

The Key Conceptual Move

The leap that Madhava's school made is easy to undersell and worth dwelling on. It is not only that they computed particular series. It is that they grasped the general idea that a transcendental function could be represented exactly as an infinite sum of algebraic terms. This is the foundational move of modern mathematical analysis. Once you have it, everything else in calculus follows, because every continuous function can be approximated by infinite sums, and every limit can be pushed through the sum, and every derivative and integral becomes a matter of manipulating the terms. The Kerala school did not invent every piece of modern calculus. They did not work with the Leibniz notation, they did not give the modern epsilon delta definition of a limit, and they did not prove the general theorems of convergence in the form we now use. But they did the single most important thing. They wrote the first exact equation between a transcendental function and an infinite series, and they used it to compute real numerical results. That is the opening move, and it was played in Kerala two and a half centuries before Europe.

Why It Happened in Kerala

The question of why the breakthrough happened in Kerala, rather than in the more famous mathematical centers at Ujjain, Pataliputra, or Varanasi, has several overlapping answers. The Kerala coast was commercially wealthy from the spice trade with the Middle East and Southeast Asia, which provided the patronage that astronomical teaching required. The Malabar coast also escaped most of the political turbulence that had disrupted the northern Indian scholarly centers from the thirteenth century onward. The tradition of the illam, the Brahmin household school, created intergenerational transmission lines that could sustain a research program across a century and a half. And the Nila river valley had already produced astronomers for several generations before Madhava arrived. The breakthrough was not a single genius in isolation. It was a lineage. Madhava was the founder, but his work was extended by Parameshvara, then by Damodara, then by Nilakantha Somayaji, then by Jyesthadeva, then by Shankara Variyar, in a chain that ran from about 1380 CE to about 1610 CE, almost two hundred and thirty years. That is how long it takes to build a research program in mathematical analysis from scratch, and Kerala had the institutional stability to do it.

A Kerala pathashala classroom around 1400 CE

The Long Silence

The silence that followed is the most painful part of the story. Madhava's series were preserved in Kerala in continuous manuscript tradition. They were taught, commented on, and refined by the lineage. They did not, however, travel. No Arabic translation of the Yuktibhasha or Tantrasangraha is known. No Jesuit missionary, despite the presence of the Society of Jesus on the Malabar coast from the sixteenth century, is recorded to have translated these texts into Latin. The first European to even read the Yuktibhasha appears to have been Charles Whish, a British civil servant in Kerala, who published a short paper on it in 1835 that the Royal Asiatic Society politely ignored for almost a century. The first full English translation of the Yuktibhasha was not published until 2008, by K.V. Sarma and a team at the Indian Institute of Advanced Study. The Kerala calculus was hidden in plain sight for five hundred years, not because it was lost but because the transmission lines out of Kerala into the rest of the scholarly world were never built. This lesson honors it by naming the thing it was. It is not a precursor to calculus. It is calculus, written in Sanskrit verse, in a village on the Nila river, more than two centuries before anyone in Europe saw the same landscape.

Key figures

Mādhava of Saṅgamagrāma

c. 1340 to c. 1425 CE, Saṅgamagrāma (identified with modern Irinjalakuda, Thrissur district, Kerala)

Jyeṣṭhadeva

c. 1500 to c. 1575 CE, Kerala, probably the area around modern Thrissur

Charles Matthew Whish

1794 to 1833 CE, Kerala and Cochin, British civil servant of the East India Company

Case studies

Saṅgamagrāma, c. 1380 CE: The First Infinite Series Ever Written Down

In the late fourteenth century CE, in the village of Saṅgamagrāma on the Nila river in central Kerala, a middle aged astronomer named Mādhava is teaching in the traditional illam system. His students are young Brahmins, most of them preparing for careers in ritual computation and astronomical calendar making. Mādhava has inherited the full siddhanta tradition from his own teachers and has been working for years on the problem of how to compute pi to greater and greater precision. The standard method in his time is iterated polygon approximation, the method used by Archimedes and every subsequent astronomer, which gives pi to eleven or twelve decimal places at enormous computational cost. Mādhava wants something better. One day, in a small room beside the river, he writes down a new kind of expression. It is not a polygon approximation. It is an infinite sum. The circumference of a circle of diameter d is four d minus four d divided by three plus four d divided by five minus four d divided by seven plus four d divided by nine minus and so on, continuing without end. Every term is a simple arithmetic division. No geometry. No constructions with compass and straight edge. Just the diameter multiplied by four and the odd numbers dividing it, signs alternating. Mādhava writes this down in a short Sanskrit verse, teaches it to his students, derives it from first principles using a method that will later become standard in Kerala school texts, and then goes on to refine it with accelerated convergence corrections that make the series converge much faster than the naive form. None of this is written down in a book that survives under his own name. It is preserved by his students and his students' students, who cite him by name whenever they use his formulas, and who write out his derivations in their own texts for the next two hundred years.

This is the paramparā tradition working as it was designed to work. The teacher develops a new result. The students preserve it by naming its source. The lineage protects the knowledge through succession rather than through publication, and the protection is strong enough to survive the loss of the teacher's own writings. What Mādhava produced in that small room beside the Nila river was the first exact infinite series for a transcendental function in the history of world mathematics. He produced it not for personal glory but as part of his teaching, and the teaching transmission is what carried the result forward. The absence of his own manuscript is almost beside the point. His name survives on every citation. His verses survive in the words of his students. His results survive in the textbook his great great grandstudent Jyeṣṭhadeva would write one hundred and fifty years later. A lineage that knows how to cite is a lineage that cannot lose a discovery, even if every physical copy of the original is eventually lost.

Madhava's infinite series became the foundation of the Kerala school for the next two and a half centuries. Parameshvara, Nilakantha, Jyeṣṭhadeva, Śaṅkara Vāriyar, and Acyuta Piṣāraṭi all worked within the framework he established. The pi series, the sine series, the cosine series, and the arctangent series all originate from his lineage. In the twentieth century, after the work of C.T. Rajagopal, K.V. Sarma, David Pingree, Kim Plofker, and others, the mainstream international history of mathematics has accepted the priority of Madhava over Gregory, Leibniz, and Taylor. The result that started in a small room in Saṅgamagrāma in the late fourteenth century is now in every modern history of calculus that tells the whole story.

The most important insights are often written down quietly and immediately handed to the next generation. Madhava did not announce his infinite series as a breakthrough. He taught it, derived it, and let his students carry it forward. The paramparā was his publishing system, and it worked. When a tradition knows how to preserve by naming, it does not need the printing press to protect its best work.

Mādhava composed the first infinite series for the arctangent, the sine, the cosine, and pi around 1380 CE in Saṅgamagrāma, Kerala. No manuscript of his own writings survives, but his results are preserved through explicit citation in the Tantrasangraha (1501 CE), the Yuktibhasha (c. 1530 CE), and the Kriyakramakari (c. 1550 CE).

c. 1530 CE: Jyeṣṭhadeva Writes the World's First Calculus Textbook

Around the year 1530 CE, in a Namboodiri household somewhere in central Kerala, the mathematician Jyeṣṭhadeva sits down to compose a work that has no precedent in the whole Indian scholarly tradition. He is a direct inheritor of the Madhava lineage, trained in the same illam system, fluent in the compressed Sanskrit verses that carry Madhava's results. But he is also dissatisfied with the tradition's inability to include extended reasoning in its texts. The Sanskrit verse form, for all its beauty, does not allow a mathematician to say 'here is a theorem, and here is why it is true, and here is why it would have been wrong to assume anything less'. So Jyeṣṭhadeva makes a deliberate choice. He will write his book in Malayalam, the vernacular of Kerala, and he will write it in prose rather than verse. He will include the full proofs of the results, the motivations for each step, and the philosophical framing of the whole infinite series program. The book he produces is the Yuktibhasha, literally 'the speech of reasoning'. It is roughly fifteen chapters long. It preserves Madhava's verses, cites him by name, develops full derivations of the series for pi and the trigonometric functions, discusses the general principle of convergence of an infinite series, and treats the reader as an intelligent student rather than as a memorization machine. The result is the earliest piece of writing in the world that reads like a modern mathematics textbook, and it exists because one Kerala mathematician in 1530 CE was willing to break with the verse tradition in order to teach properly.

The Yuktibhasha is an act of pedagogical love. Jyeṣṭhadeva knew that the Sanskrit verses of Madhava and Nīlakaṇṭha were compressed to the point of being barely decipherable without a teacher's guidance. He chose the vernacular and the prose form because he wanted the reasoning to be accessible, and he was willing to accept the reduced prestige that came with not writing in Sanskrit in order to get the pedagogical advantage. This is the paramparā taking a risk for the sake of the student. The decision looks obvious in retrospect. It would not have looked obvious to anyone in 1530 CE. Every other serious mathematical work in India for a thousand years before and after Jyeṣṭhadeva was composed in Sanskrit verse, because that was what serious mathematics looked like. Jyeṣṭhadeva broke the convention because the content required it. The infinite series program could not be taught in compressed verse alone. It needed prose, proofs, and the philosophical framing that only a textbook could provide. The book still survives. It still reads like a modern textbook. It is still the earliest of its kind in the world.

The Yuktibhasha was preserved in Kerala in the same illam tradition that produced it. Manuscripts continued to be copied and taught for the next two centuries. In 1835 Charles Whish read it and presented it to the Royal Asiatic Society, where it was largely ignored. In the twentieth century K.V. Sarma and his colleagues produced a critical edition, and in 2008 they published the first full English translation with commentary. The book is now recognized internationally as the earliest surviving mathematics textbook in the modern sense of that word, and the chapter on the infinite series is treated as one of the great landmarks in the history of mathematical analysis. The fact that it was written in Malayalam prose rather than Sanskrit verse is now seen as one of its greatest strengths, not as a reduction in status.

Sometimes the right way to honor a tradition is to break its conventions for the sake of what the tradition was trying to achieve. Jyeṣṭhadeva broke with the Sanskrit verse form because the content he needed to transmit could not fit inside it. The result is a book that was five hundred years ahead of its time and is still teaching students today. The lesson is that pedagogy is an act of choice, and that the best teachers are sometimes the ones willing to sacrifice prestige for clarity.

The Yuktibhasha of Jyeṣṭhadeva, composed around 1530 CE in Malayalam prose, is the earliest surviving piece of writing in any language that has the form of a modern mathematics textbook, with motivation, theorem, proof, and generalization. Its treatment of the infinite series predates any European textbook of comparable style by more than a century.

Cambridge and Paris, 1669 to 1674: Newton and Leibniz Rediscover What Madhava Already Knew

Between the years 1669 and 1674 CE, two of the greatest mathematicians in European history independently develop the infinite series that the Kerala school had been teaching for nearly three centuries. In 1669, Isaac Newton writes his De Analysi per Aequationes Numero Terminorum Infinitas, which contains the infinite series for the sine, cosine, and arctangent, plus the general binomial series. Newton does not publish the work immediately. He circulates it privately among members of the Royal Society and it takes nearly forty years to appear in print. In 1671, James Gregory in Scotland writes the arctangent series in a letter to his colleague. In 1674, Gottfried Wilhelm Leibniz in Paris independently writes the same arctangent series and uses it to derive the celebrated expression pi equals four times one minus one third plus one fifth minus one seventh plus one ninth minus and so on. All three men believe they are discovering the series for the first time. None of them has any knowledge of the Kerala tradition. None of them has read the Yuktibhasha or the Tantrasangraha. None of them has heard the name of Mādhava. In their defense, there is no reason they should have. The Kerala texts were not translated into any European language in their lifetimes. The Jesuit missionaries who were active in the Malabar coast from the sixteenth century onward had not, so far as the record shows, identified these texts as important or passed them back to Europe. The rediscovery is honest. The priority, however, is still Mādhava's by almost three centuries.

This is not an accusation of plagiarism. It is almost certain that Newton, Gregory, and Leibniz developed their series independently, from their own work on the geometry of curves and the methods of infinite expansion. Their achievement is real and undiminished by the Kerala priority. What the Kerala priority does is relocate the first such achievement in the world chronology by about two hundred and fifty years and move it from Europe to India. The honest way to tell the story now is to name both sets of discoverers and let the chronology speak. Mādhava wrote the series first, around 1380 CE in Saṅgamagrāma. Newton, Gregory, and Leibniz rediscovered it independently between 1669 and 1674 in Cambridge, Aberdeen, and Paris. The European rediscoverers went on to build the full machinery of differential and integral calculus that Mādhava's school did not complete. The Kerala school wrote the first infinite series. The European school built the first symbolic notation. Both contributions are indispensable. The story that only tells the second half is a story with three hundred years of its own history missing.

For almost three centuries after Newton and Leibniz, the history of calculus was written in Europe as a purely European invention. C.T. Rajagopal and his collaborators in the 1940s produced the first modern English language studies confirming the Kerala priority. K.V. Sarma's work from the 1960s onward placed the full body of Kerala mathematical literature back into the international scholarly conversation. By the early twenty first century, the standard international history of mathematics, as written by scholars like Kim Plofker and George Gheverghese Joseph, treats the Kerala school's infinite series as the earliest documented instance of this branch of mathematics anywhere in the world. The renaming has been slow but it has been real. Textbooks still catch up one printing at a time.

Independent discovery is real, and it does not erase the priority of the earlier discoverer. The honest way to tell the story of the infinite series is to name both the Kerala school and the European rediscoverers, to give the Kerala school the priority in time that it has earned, and to give the European school the credit for the further development that it contributed. A history that gives each contributor their true share is richer than a history that assigns all the credit to the most famous name in the chain.

Mādhava wrote the arctangent infinite series around 1380 CE. James Gregory rediscovered it in 1671, Gottfried Leibniz in 1674. The priority lag is approximately 290 years. Newton's parallel series work in De Analysi is dated 1669. None of the European rediscoverers had any known contact with the Kerala tradition.

Historical context

The late medieval period of Indian mathematics, fourteenth to sixteenth centuries CE, centered on the Kerala illam system in the Nila river valley under the patronage of the small kingdoms of the Malabar coast

Fourteenth century Kerala was a politically fragmented region of small coastal kingdoms that had largely escaped the turbulence of the Delhi Sultanate's campaigns in the north. The Namboodiri Brahmin community of central Kerala operated a network of illams, traditional household schools where students lived with their teachers and studied Vedic, astronomical, and mathematical subjects in an intergenerational apprenticeship model. The Nila river valley in particular had been a center of astronomical learning for several generations before Mādhava, and the illams there had developed a research tradition in which teachers were expected to contribute new results, not merely to transmit the inherited curriculum. The spice trade with the Arab world and the Chinese Ming dynasty provided economic stability and patronage for the Brahmin community, and the political fragmentation of the Malabar coast meant that no single ruler could threaten the continuity of the illam tradition. All of these factors combined to create the conditions in which a serious research program in mathematical analysis could be sustained for two and a half centuries, through six generations of teachers and students, without interruption. That kind of institutional continuity is what it takes to build calculus from scratch, and Kerala had it when almost no other region of the world did.

This lesson relocates the birthplace of the infinite series, the foundational concept of modern calculus, from seventeenth century England and Germany to fourteenth century Kerala. The relocation is not a matter of national pride. It is a matter of recording accurately where the first infinite series for a transcendental function was written down, who wrote it, and in what tradition. The answer is that it was written down in Saṅgamagrāma around 1380 CE by Mādhava, in the Kerala school tradition, and was preserved by his lineage for two and a half centuries before the first European mathematician independently derived the same result. Knowing this changes the shape of the story of how humanity built calculus. It gives the story a longer timeline, a different geographical center for its earliest chapter, and a cast of named Indian mathematicians whose contribution has been systematically undercounted for nearly four centuries. Restoring their place in the record is a small act of historical honesty with large consequences for how the next generation of mathematics students understands where their subject came from.

Living traditions

Madhava's infinite series live inside every modern scientific and engineering calculation that uses pi, sine, cosine, or arctangent to any significant precision. The Taylor expansion of trigonometric functions that every computer algebra system uses to evaluate sin(x) for an arbitrary input is, at its core, the Madhava series in modern notation. Every numerical integrator that approximates a definite integral as an infinite series is using a descendant of the Kerala school's methods. Every Fourier transform in signal processing is built on the general principle of expanding a function in an infinite sum of simpler functions, which is the Madhava insight generalized to periodic bases. The specific series for pi is no longer the preferred way to compute pi to high precision because there are faster converging alternatives, but it remains a standard example in every introductory calculus course in the world. Internationally, scholars including Kim Plofker, George Gheverghese Joseph, David Pingree, C.T. Rajagopal, C.K. Raju, K.V. Sarma, and many others have placed the Kerala school firmly in the standard history of world mathematics. In India, the Indian National Science Academy publishes editions of the classical texts, the K.V. Sarma Research Foundation continues active scholarly work, and several universities run dedicated programs. The 2008 English translation of the Yuktibhasha by K.V. Sarma and his team made the full text available to the international scholarly community for the first time in history. The work of restoring Madhava's name to the standard textbook account of how calculus began is ongoing, but it is now irreversible. The twenty first century will increasingly know, as the fourteenth century already knew in Kerala, that the first infinite series for a transcendental function was written by a Namboodiri Brahmin teacher in a village on the Nila river, more than two hundred years before anyone in Europe saw the same horizon.

Reflection

More in Madhava-Parampara: India's Calculus Revolution

All lessons in Madhava-Parampara: India's Calculus Revolution · Indian Mathematics: Ancient Genius, Modern Foundations course