GK Global
← Trails & Tales

History · Science · Long read · 8 min read

Madhava of Sangamagrama and the Kerala School of Mathematics

Two centuries before Newton and Leibniz, astronomers in the villages of the Nila valley wrote down infinite series for pi, sine and cosine in Sanskrit verse. Who they were, what they found, and how the world found out.

By Gopakumar Rajan for GK Global, Adimali, Munnar · Trails & Tales by GK

Every student of calculus meets the series for the sine and cosine, and the slow, strange series for pi that begins one, minus a third, plus a fifth, minus a seventh. In European textbooks these carry the names of seventeenth-century mathematicians: Gregory, Leibniz, Newton. Yet versions of all of them were written down in Kerala, in Sanskrit verse, generations earlier, by a line of astronomers whose teacher was a man called Madhava.

The Kerala school of astronomy and mathematics flourished from the fourteenth to the sixteenth century in a handful of villages in central Kerala, most of them close to the Bharathapuzha, the river Nila. It is one of the most remarkable chapters in the history of science, and one of the least known to the people who live near the places where it happened.

At a glance

Astronomy in the Nila valley

The Kerala school did not set out to do pure mathematics. Its members were jyotishis, astronomers, working in the long Indian tradition of ganita and jyotisha, mathematics in the service of the calendar and the sky. Temple rituals, festivals and agricultural seasons depended on accurate predictions of the positions of the sun, moon and planets, and of eclipses. To calculate those positions they needed sines of angles, and they needed them precisely. That practical need drove them, step by step, from finite approximations to infinite processes.

The scholars of the school were mostly Nambudiri Brahmins and members of temple-serving communities such as the Variyars and Pisharodis, living in illams and temple villages around Tirur, Thrissur and the Nila. Knowledge passed from teacher to student by word of mouth and in palm-leaf manuscripts, often within families (see Thirunavaya and the Mamankam, a few kilometres from where several of them lived).

Madhava

Almost everything we know about Madhava comes from his students and their students. He is called Sangamagrama Madhava, after his village; Sangamagrama is usually identified with Irinjalakuda, whose Koodalmanikyam temple stands at a sangama, a meeting place. He lived from about 1340 to about 1425. Only a couple of his own works on astronomy survive, and none of them contains the famous series. Those are attributed to him, explicitly and repeatedly, by later writers of his school.

Teacher and student lineage of the Kerala school of mathematicsMadhava of Sangamagramac. 1340 to c. 1425Parameshvarac. 1360 to c. 1455, VatasseriDamodara (his son)Nilakantha SomayajiTantrasangraha, c. 1500JyeshthadevaYuktibhasha, c. 1530Achyuta PisharatiMelpathur Narayana Bhattathiri1559 to 1632
The chain of teachers and students of the Kerala school as reconstructed by historians. Dates are approximate. Diagram: GK Global.

The chain of teachers

Madhava's student Parameshvara of Vatasseri, near Tirur, spent decades observing eclipses and planetary positions and revising the parameters of astronomy to fit them. His son Damodara taught Nilakantha Somayaji, whose Tantrasangraha, completed around 1500, is the great astronomical treatise of the school. Nilakantha's student Jyeshthadeva wrote the Yuktibhasha around 1530, and later teachers included Achyuta Pisharati and the poet-grammarian Melpathur Narayana Bhattathiri, author of the devotional poem Narayaneeyam.

The Yuktibhasha is special for two reasons. It is written in Malayalam rather than Sanskrit, and it gives not just results but yukti, reasons: derivations of the series, step by step. Historians of mathematics have called it one of the first texts anywhere to set out the ideas of the calculus in this way.

The series

The results credited to Madhava include, in modern notation, the series for the sine and cosine of an angle and for the arctangent. From the arctangent series comes the series for pi: pi divided by four equals one, minus one third, plus one fifth, minus one seventh, and so on without end. In Europe this is known as the Gregory or Leibniz series, and today often as the Madhava–Leibniz series.

That series converges painfully slowly. Madhava's most elegant idea was to add a correction term after stopping. If you stop after a certain number of terms, he showed, you can add a small fraction that estimates the rest of the infinite tail, and the result is dramatically better. One of the corrections recorded by his school is, in modern terms, the number of terms divided by one more than four times the square of that number. The table below, which we calculated ourselves, shows what a difference it makes.

Terms usedSeries aloneErrorWith Madhava's correctionError
53.339680.1983.14166270.00007
103.041840.09983.14159020.0000024
203.091620.05003.141592580.00000008
503.121590.02003.14159265280.0000000008

Pi is 3.14159265358979... With 50 terms alone the series is still wrong in the second decimal place; with the correction it is right to nine decimal places. Calculation: GK Global.

Madhava's school also gave values of pi accurate to about eleven decimal places, and a table of sines, attributed to Madhava, accurate to around seven or eight places, far more precise than anything then in use in Europe.

How the world found out

Outside Kerala, the work of the school stayed unknown for centuries. In 1825 John Warren, a French-born astronomer who had directed the Madras observatory, mentioned briefly in his book on south Indian time-reckoning, the Kala Sankalita, that Kerala astronomers used infinite series. The first real account came from Charles Whish, an East India Company official in Malabar, whose paper on the subject was published by the Royal Asiatic Society in 1834. It attracted little attention. Only in the twentieth century did Indian scholars, notably K. V. Sarma, edit the manuscripts and make the school's achievements widely known.

Did the Kerala results reach Europe? Jesuit missionaries were active in Kerala and Kochi in the sixteenth century, studied local languages and were interested in Indian astronomy, and some historians have argued that knowledge could have travelled with them. No document has yet been found that shows such a transfer, and most historians treat it as an open question. What is not in doubt is that the Kerala results came first.

Visiting the places

There is no museum of the Kerala school, but its landscape can still be visited. The Koodalmanikyam temple at Irinjalakuda, Madhava's probable home, is about 20 km south of Thrissur. Around Tirur and the Nila, Alathiyur and the Vatasseri area are associated with Parameshvara, and Thirunavaya, site of the Mamankam, lies close by. Melpathur's Narayaneeyam is still recited daily at Guruvayur. Manuscripts of the school's works are kept in collections such as the Oriental Research Institute and Manuscripts Library of the University of Kerala in Thiruvananthapuram (see the ancient scripts of Tamil and Malayalam).

Timeline

Questions people ask

Did Indians discover calculus before Newton?

The Kerala school found infinite series for pi, sine, cosine and arctangent, which are central results of calculus, about two centuries before Newton and Leibniz. It did not develop the general calculus that Newton and Leibniz built.

Who was Madhava of Sangamagrama?

A Kerala astronomer and mathematician (c. 1340 to c. 1425), usually placed at Irinjalakuda, who founded the Kerala school.

What is the Yuktibhasha?

A Malayalam text of about 1530 by Jyeshthadeva that explains and derives the results of the Kerala school.

Did the Kerala results influence European mathematics?

Some historians think they may have travelled with Jesuit missionaries, but no evidence of such a transfer has been found.

(Read also Thirunavaya and the Mamankam, the Trivandrum Observatory and the ancient scripts of Tamil and Malayalam.)

See it for yourself, with a local driver who knows these roads.

Book a Munnar Jeep Safari

Sources & further reading

  1. Wikipedia: Kerala school of astronomy and mathematics
  2. Wikipedia: Madhava of Sangamagrama
  3. Wikipedia: Madhava series
  4. Wikipedia: Yuktibhasha
  5. K. V. Sarma, A History of the Kerala School of Hindu Astronomy (Vishveshvaranand Institute, 1972), search the Internet Archive
  6. K. V. Sarma, K. Ramasubramanian, M. D. Srinivas and M. S. Sriram (trans.), Ganita-Yukti-Bhasa of Jyesthadeva (Springer, 2008), search Springer

Figures are from the sources listed and were checked in November 2026. Park timings and road conditions change, so please confirm before you travel.