Madhava's Infinite Horizons: Calculus Before Newton in Medieval Kerala
Two to three centuries before Newton and Leibniz, an astronomer on the Kerala coast worked out the mathematics of the infinite.
Deep in 14th-century Kerala, Madhava of Sangamagrama worked out the infinite series for pi, sine, and cosine, developing analytical tools that anticipated core ideas of calculus. His results reached Europe only through independent rediscovery — how did this mathematical tradition take shape, and why did it take three centuries for the wider world to notice?
Aakash Bhagat
Founder & Editor
•Updated September 9, 2026•10 min read
Ancient palm-leaf manuscripts containing mathematical verses and geometric commentaries.Archaeological Archives
To the classical master-builders of ancient and medieval India, a temple was never mere stone and mortar. Guided by the Vastu-Purusha-Mandala and codified across Sanskrit Shilpa Shastras, every sanctuary functioned as a cosmic diagram and an anatomical embodiment of Purusha—harmonizing sacred mathematics, mountain symbolism, and womb-like sanctums.
A wide, now-dry riverbed runs beneath the sands of Haryana and Rajasthan, flanked by over a thousand Harappan settlements. Yet whether the Vedic Saraswati was a snow-fed giant or a monsoon-fed seasonal stream remains an active, unresolved scientific debate.
In the 11th century, the Chola Empire developed an extraordinary capacity for maritime warfare and commerce. Rajendra Chola I's 1025 expedition against Srivijaya sent Chola forces across the Bay of Bengal, striking a chain of Southeast Asian centres and demonstrating the reach of South India's most powerful imperial state.
Centuries before Isaac Newton and Gottfried Wilhelm Leibniz fought a bitter, decades-long dispute over who had invented calculus, a quieter and far earlier mathematical revolution had already run its course in South India. Sometime around 1340 to 1425 CE — the dates are approximate, reconstructed by historians from scattered references in later manuscripts rather than from any surviving biography — an astronomer-mathematician named Madhava, working in a small Kerala settlement called Sangamagrama, worked out the foundational machinery of infinite series and mathematical analysis.
It's worth being honest about a curious fact at the heart of this story: almost none of Madhava's own mathematical writing survives. What we know of his discoveries comes almost entirely secondhand, through the citations, quotations, and derivations recorded by his intellectual descendants — most importantly Nilakantha Somayaji, writing about a century later, and Jyesthadeva, whose 16th-century textbook preserved and proved what Madhava appears to have only stated. This doesn't diminish the achievement; if anything, it's a reminder of how much of the history of ideas survives by accident, filtered through students citing a teacher whose original words are simply gone.
The Leap Into the Infinite
For most of mathematical history up to this point, geometry dealt in fixed, bounded shapes, and a value like π — the ratio of a circle's circumference to its diameter — was something you approximated with polygons of ever-increasing sides, as Archimedes and later Chinese and Indian mathematicians had done for centuries. Madhava's conceptual leap was different in kind: he showed that certain irrational, seemingly unreachable values could be expressed exactly as the sum of an infinite, never-ending sequence of terms — and that this sequence, even though it never technically finishes, converges toward a precise answer.
This is the essential intuition behind what mathematicians today call a limit, and it's the load-bearing idea underneath calculus as a whole.
The Madhava–Leibniz series for π. Madhava discovered that π could be expressed through an alternating series of unit fractions over odd numbers: π/4 = 1 − 1/3 + 1/5 − 1/7 + 1/9 − ⋯. This result reached Europe independently through Leibniz around 1673 — roughly two and a half to three centuries after Madhava's work, depending on precisely when in his life he arrived at it. It's a genuinely elegant formula, though in practice a famously slow one to converge; using it directly, you'd need hundreds of terms to get a handful of accurate decimal digits. This is precisely why the Kerala school's most striking achievement isn't just the series itself, but what came next.
The correction terms. Because the raw alternating series converges so sluggishly, later Kerala mathematicians — building on techniques attributed to Madhava and preserved in Nilakantha's Tantrasangraha — developed what are now called Madhava's correction terms: refinements that could be added to a partial sum of the series to dramatically accelerate its accuracy. Using these methods, Madhava is credited (via MacTutor's history of mathematics archive) with computing π to eleven correct decimal places, achieved through a faster-converging series based on the arctangent of 1/√3 rather than the famous alternating series alone. It's a subtle but important distinction: the "Leibniz" formula is the elegant one that gets quoted, but it wasn't the one that actually delivered Kerala's most precise numerical results.
Foundational Power Series & Constants of the Kerala School
x − x³/3 + x⁵/5 − x⁷/7 + ⋯ (Madhava c. 1380; Gregory 1671)
Sine Power Series sin(x)
x − x³/3! + x⁵/5! − x⁷/7! + ⋯ (Madhava c. 1400; Newton 1669)
Cosine Power Series cos(x)
1 − x²/2! + x⁴/4! − x⁶/6! + ⋯ (Madhava c. 1400; Newton 1669)
Madhava’s Calculated Value of π
3.14159265359 (Accurate to 11 decimal places)
The Madhava–Gregory series for arctangent. Madhava generalized the π result into a series for the inverse tangent function itself: tan⁻¹(x) = x − x³/3 + x⁵/5 − x⁷/7 + ⋯. (Setting x = 1 recovers the π/4 series above, since tan⁻¹(1) = π/4.) James Gregory arrived at this independently in Europe around 1671.
The Madhava–Newton series for sine and cosine. Perhaps the most consequential of Madhava's results, given his actual motivation — precise astronomical calculation — were his power series for sine and cosine: sin(x) = x − x³/3! + x⁵/5! − x⁷/7! + ⋯ and cos(x) = 1 − x²/2! + x⁴/4! − x⁶/6! + ⋯. These are mathematically identical to what Newton and, independently, Brook Taylor would formalize in Europe roughly two and a half centuries later — the same expansions underlying what's now called the Taylor series for trigonometric functions.
The Tools Behind the Formulas
What makes Madhava's contribution more than a curious historical footnote is that these results weren't lucky guesses or numerically fitted approximations — they came bundled with genuine analytical reasoning, preserved and made fully explicit in Jyesthadeva's later work:
An operational concept of limits. Kerala mathematicians understood that summing an infinite series wasn't a literal, endless act of addition, but a process that homed in on a single fixed value as more terms were included — the essential idea a modern student meets as "the limit of a sequence."
Error and correction terms. Because any real calculation has to stop somewhere, Madhava and his successors developed formal methods for estimating and minimizing the error introduced by truncating an infinite series early — a practical concern that pushed them toward reasoning startlingly close to the modern idea of a remainder term in a Taylor expansion.
Infinitesimal geometric reasoning. The derivations preserved in the Yuktibhasa build sine and cosine tables by reasoning about vanishingly small arcs and triangles on a circle — a geometric approach to what Newton and Leibniz would later formalize algebraically as differentiation and integration.
The Legacy: Yuktibhasa and the Kerala School
Madhava's insights were carried forward by a genuine lineage of successors: Parameshvara (his direct pupil, and the one figure historians can place with real confidence, since his own astronomical treatise is independently dated to 1430), followed by Nilakantha Somayaji, whose 1501 Tantrasangraha systematized much of the school's astronomy and mathematics, and finally Jyesthadeva, writing around 1530.
“The Yuktibhasa contains complete proofs of the Taylor series expansions for sine, cosine, and inverse tangent, establishing it as the world's first textbook of calculus.”
Prof. P. P. Divakaran — The First Textbook of Calculus: Yuktibhasa (2007)
It's Jyesthadeva's contribution — the Yuktibhasa ("Rationale"), written not in the customary Sanskrit of Indian scholarly texts but in Malayalam, the spoken language of Kerala — that historians consider the movement's crowning achievement. Unlike most classical Indian mathematical works, which state results as terse verse formulas without showing the reasoning behind them, the Yuktibhasa is unusual for laying out full derivations and proofs. Mathematics historian P. P. Divakaran titled his 2007 academic study of the text "The First Textbook of Calculus: Yuktibhasa" — a claim that has real scholarly weight behind it, even if "first calculus textbook" is inevitably a label some historians would want qualified rather than treated as beyond debate.
The Yuktibhasa went essentially unnoticed by the wider world for three centuries. An Englishman, Charles Whish, brought a set of Kerala manuscripts including the Yuktibhasa to the attention of the Royal Asiatic Society in London in 1832 — and even then, the discovery made little impression on historians of mathematics until serious scholarly attention picked up in the 1940s.
Independent Convergence: Kerala School Discoveries vs. European Formulation
Mathematical Result / Theorem
Kerala School Formulation
European Formulation
Historical Precedence
Alternating Series for π/4
Madhava of Sangamagrama (c. 1380 CE)
Gottfried Wilhelm Leibniz (1673 CE)
~290 years earlier
Inverse Tangent Series (arctan)
Madhava of Sangamagrama (c. 1380 CE)
James Gregory (1671 CE)
~290 years earlier
Sine Power Series Expansion
Madhava of Sangamagrama (c. 1400 CE)
Isaac Newton (1669) / Brook Taylor (1715)
~270–315 years earlier
Cosine Power Series Expansion
Madhava of Sangamagrama (c. 1400 CE)
Isaac Newton (1669) / Brook Taylor (1715)
~270–315 years earlier
Accelerated Remainder Correction
Madhava & Nilakantha (c. 1400–1501 CE)
Taylor Remainder / Euler Transform
~300+ years earlier
Geometric Calculus Proofs
Jyesthadeva (Yuktibhasa, c. 1530 CE)
Colin Maclaurin (Treatise of Fluxions, 1742)
~210 years earlier
Two Different Roads to the Same Destination
European calculus, when it arrived two to three centuries later, grew out of the physics of motion — Newton's work on velocity, acceleration, and planetary orbits under gravity. The Kerala school's calculus grew from a different, equally demanding practical need: the astronomer's obligation to predict planetary positions, eclipse timings, and calendrical events with precision, using nothing but geometry, trigonometric tables, and increasingly refined infinite series.
That two independent mathematical traditions, separated by continents and centuries, converged on structurally the same analytical tools — power series, limiting processes, and error correction — is itself a striking fact about the nature of mathematics: some truths, once a civilization's tools and questions are sophisticated enough, seem to be waiting to be found rather than invented from nothing. Whatever the uncertainties around Madhava's exact birthplace, his surviving writings, or even his precise dates, the mathematics his school left behind is unambiguous, well documented in the texts of his successors, and centuries ahead of its European counterpart.
Chronological Milestones of the Kerala School of Astronomy & Mathematics
c. 1340–1425 CE
Madhava Works in Sangamagrama
Discovers infinite power series expansions for pi, arctangent, sine, and cosine, computing pi to 11 correct decimal places.
c. 1430 CE
Parameshvara Develops the Drk System
Direct disciple of Madhava; authors Siddhantadipika and formulates early mean-value theorem for cyclic quadrilaterals.
1501 CE
Nilakantha Somayaji Composes Tantrasangraha
Codifies Kerala planetary astronomy, preserves Madhava’s series proofs, and formulates a quasi-heliocentric planetary model.
c. 1530 CE
Jyesthadeva Authors the Yuktibhasa
Writes the world’s first structured textbook of calculus and mathematical analysis with complete proofs in Malayalam prose.
1669–1673 CE
European Independent Rediscovery
Newton, Gregory, and Leibniz independently formulate power series, fluxions, and differential calculus.
1832 CE
Charles Whish Informs the Royal Asiatic Society
Publishes the first European scholarly report disclosing Kerala’s centuries-earlier discovery of infinite series.
Sponsorship Slot: article_in_content
Editorial Ad Placeholder
Scholarly Frequently Asked Questions
Why is calculus traditionally credited to Newton and Leibniz rather than Madhava?▼
Newton and Leibniz developed a universal algebraic calculus tied to kinematics, differential equations, and the Fundamental Theorem of Calculus, which immediately spread across European scientific institutions. Madhava’s work, centered on astronomical calculation and recorded in regional palm-leaf manuscripts, was not widely known outside South India until modern research.
Did European mathematicians borrow calculus from Kerala?▼
A prominent hypothesis explores whether Jesuit missionaries in 16th-century Cochin translated Kerala astronomical manuscripts to Rome. However, while Jesuits were present and active in astronomy, no physical manuscript trail or direct translation has yet proven that Newton, Gregory, or Leibniz had access to Kerala texts.
What makes Jyesthadeva’s Yuktibhasa historically unique?▼
Most ancient and medieval Indian mathematical treatises were written in cryptic Sanskrit verse without showing intermediate algebraic steps or proofs. Jyesthadeva deliberately wrote the Yuktibhasa in vernacular Malayalam prose to explain step-by-step geometric proofs, earning it recognition as the first calculus textbook.
How did Madhava calculate Pi to eleven decimal places?▼
Instead of relying solely on the slow-converging Leibniz alternating series, Madhava used an accelerated series expansion based on the arctangent of 1/√3 combined with sophisticated remainder correction terms.