# Madhava series

In mathematics, a Madhava series is one of the three Taylor series expansions for the sine, cosine, and arctangent functions discovered in 14th or 15th century in Kerala, India by the mathematician and astronomer Madhava of Sangamagrama (c. 1350 – c. 1425) or his followers in the Kerala school of astronomy and mathematics. Using modern notation, these series are:
    ${\begin{alignedat}{3}\sin \theta &=\theta -{\frac {\theta ^{3}}{3!}}+{\frac {\theta ^{5}}{5!}}-{\frac {\theta ^{7}}{7!}}+\cdots &&=\sum _{k=0}^{\infty }{\frac {(-1)^{k}}{(2k+1)!}}\theta ^{2k+1},\\[10mu]\cos \theta &=1-{\frac {\theta ^{2}}{2!}}+{\frac {\theta ^{4}}{4!}}-{\frac {\theta ^{6}}{6!}}+\cdots &&=\sum _{k=0}^{\infty }{\frac {(-1)^{k}}{(2k)!}}\theta ^{2k},\\[10mu]\arctan x&=x-{\frac {x^{3}}{3}}+{\frac {x^{5}}{5}}-{\frac {x^{7}}{7}}+\cdots &&=\sum _{k=0}^{\infty }{\frac {(-1)^{k}}{2k+1}}x^{2k+1}\quad {\text{where }}|x|\leq 1.\end{alignedat}}$
All three series were later independently discovered in 17th century Europe. The series for sine and cosine were rediscovered by Isaac Newton in 1669, and the series for arctangent was rediscovered by James Gregory in 1671 and Gottfried Leibniz in 1673, and is conventionally called Gregory's series. The specific value arctan⁡1=π/4 {\textstyle \arctan 1={\tfrac {\pi }{4}}} can be used to calculate the circle constant π, and the arctangent series for 1 is conventionally called Leibniz's series.
In recognition of Madhava's priority, in recent literature these series are sometimes called the Madhava–Newton series, Madhava–Gregory series, or Madhava–Leibniz series (among other combinations).
No surviving works of Madhava contain explicit statements regarding the expressions which are now referred to as Madhava series. However, in the writing of later Kerala school mathematicians Nilakantha Somayaji (1444 – 1544) and Jyeshthadeva (c. 1500 – c. 1575) one can find unambiguous attributions of these series to Madhava. These later works also include proofs and commentary which suggest how Madhava may have arrived at the series.

## Madhava series in "Madhava's own words"

None of Madhava's works, containing any of the series expressions attributed to him, have survived. These series expressions are found in the writings of the followers of Madhava in the Kerala school. At many places these authors have clearly stated that these are "as told by Madhava". Thus the enunciations of the various series found in Tantrasamgraha and its commentaries can be safely assumed to be in "Madhava's own words". The translations of the relevant verses as given in the Yuktidipika commentary of Tantrasamgraha (also known as Tantrasamgraha-vyakhya) by Sankara Variar (circa. 1500 - 1560 CE) are reproduced below. These are then rendered in current mathematical notations.

## Madhava's sine series
### In Madhava's own words

Madhava's sine series is stated in verses 2.440 and 2.441 in Yukti-dipika commentary (Tantrasamgraha-vyakhya) by Sankara Variar. A translation of the verses follows.
Multiply the arc by the square of the arc, and take the result of repeating that (any number of times). Divide by the squares of the successive even numbers (such that current is multiplied by previous) increased by that number and multiplied by the square of the radius. Place the arc and the successive results so obtained one below the other, and subtract each from the one above. These together give the jiva [sine], as collected together in the verse beginning with "vidvan" etc.

### Rendering in modern notations

Let r denote the radius of the circle and s the arc-length.
* The following numerators are formed first:
    $s\cdot s^{2},\qquad s\cdot s^{2}\cdot s^{2},\qquad s\cdot s^{2}\cdot s^{2}\cdot s^{2},\qquad \cdots$
* These are then divided by quantities specified in the verse.
    $s\cdot {\frac {s^{2}}{(2^{2}+2)r^{2}}},\qquad s\cdot {\frac {s^{2}}{(2^{2}+2)r^{2}}}\cdot {\frac {s^{2}}{(4^{2}+4)r^{2}}},\qquad s\cdot {\frac {s^{2}}{(2^{2}+2)r^{2}}}\cdot {\frac {s^{2}}{(4^{2}+4)r^{2}}}\cdot {\frac {s^{2}}{(6^{2}+6)r^{2}}},\qquad \cdots$
* Place the arc and the successive results so obtained one below the other, and subtract each from the one above to get jiva:
    ${\text{jiva}}=s-\left[s\cdot {\frac {s^{2}}{(2^{2}+2)r^{2}}}-\left[s\cdot {\frac {s^{2}}{(2^{2}+2)r^{2}}}\cdot {\frac {s^{2}}{(4^{2}+4)r^{2}}}-\left[s\cdot {\frac {s^{2}}{(2^{2}+2)r^{2}}}\cdot {\frac {s^{2}}{(4^{2}+4)r^{2}}}\cdot {\frac {s^{2}}{(6^{2}+6)r^{2}}}-\cdots \right]\right]\right]$

### Transformation to current notation

Let θ be the angle subtended by the arc s at the centre of the circle. Then s = r θ and jiva = r sin θ. Substituting these in the last expression and simplifying we get
    $\sin \theta =\theta -{\frac {\theta ^{3}}{3!}}+{\frac {\theta ^{5}}{5!}}-{\frac {\theta ^{7}}{7!}}+\quad \cdots$
which is the infinite power series expansion of the sine function.

### Madhava's reformulation for numerical computation

The last line in the verse ′as collected together in the verse beginning with "vidvan" etc.′ is a reference to a reformulation of the series introduced by Madhava himself to make it convenient for easy computations for specified values of the arc and the radius. For such a reformulation, Madhava considers a circle one quarter of which measures 5400 minutes (say C minutes) and develops a scheme for the easy computations of the jiva′s of the various arcs of such a circle. Let R be the radius of a circle one quarter of which measures C. Madhava had already computed the value of π using his series formula for π. Using this value of π, namely 3.1415926535922, the radius R is computed as follows: Then
    R = 2 × 5400 / π = 3437.74677078493925 = 3437 arcminutes 44 arcseconds 48 sixtieths of an arcsecond = 3437′ 44′′ 48′′′.
Madhava's expression for jiva corresponding to any arc s of a circle of radius R is equivalent to the following:
    ${\begin{aligned}{\text{jiva }}&=s-{\frac {s^{3}}{R^{2}(2^{2}+2)}}+{\frac {s^{5}}{R^{4}(2^{2}+2)(4^{2}+4)}}-\cdots \\[6pt]&=s-\left({\frac {s}{C}}\right)^{3}\left[{\frac {R\left({\frac {\pi }{2}}\right)^{3}}{3!}}-\left({\frac {s}{C}}\right)^{2}\left[{\frac {R\left({\frac {\pi }{2}}\right)^{5}}{5!}}-\left({\frac {s}{C}}\right)^{2}\left[{\frac {R\left({\frac {\pi }{2}}\right)^{7}}{7!}}-\cdots \right]\right]\right].\end{aligned}}$
Madhava now computes the following values:
| No. | Expression | Value | Value in Katapayadi system |
| 1 | ${\frac {R({\frac {\pi }{2}})^{3}}{3!}}$ | 2220′ 39′′ 40′′′ | ni-rvi-ddhā-nga-na-rē-ndra-rung |
| 2 | ${\frac {R({\frac {\pi }{2}})^{5}}{5!}}$ | 273′ 57′′ 47′′′ | sa-rvā-rtha-śī-la-sthi-ro |
| 3 | ${\frac {R({\frac {\pi }{2}})^{7}}{7!}}$ | 16′ 05′′ 41′′′ | ka-vī-śa-ni-ca-ya |
| 4 | ${\frac {R({\frac {\pi }{2}})^{9}}{9!}}$ | 33′′ 06′′′ | tu-nna-ba-la |
| 5 | ${\frac {R({\frac {\pi }{2}})^{11}}{11!}}$ | 44′′′ | vi-dvān |
The jiva can now be computed using the following scheme:
${\text{jiva }}=s-\left({\frac {s}{C}}\right)^{3}\left[\left({\frac {R({\frac {\pi }{2}})^{3}}{3!}}\right)-\left({\frac {s}{C}}\right)^{2}\left[\left({\frac {R({\frac {\pi }{2}})^{5}}{5!}}\right)-\left({\frac {s}{C}}\right)^{2}\left[\left({\frac {R({\frac {\pi }{2}})^{7}}{7!}}\right)-\left({\frac {s}{C}}\right)^{2}\left[\left({\frac {R({\frac {\pi }{2}})^{9}}{9!}}\right)-\left({\frac {s}{C}}\right)^{2}\left({\frac {R({\frac {\pi }{2}})^{11}}{11!}}\right)\right]\right]\right]\right].$
This gives an approximation of jiva by its Taylor polynomial of the 11'th order. It involves one division, six multiplications and five subtractions only. Madhava prescribes this numerically efficient computational scheme in the following words (translation of verse 2.437 in Yukti-dipika):
vi-dvān, tu-nna-ba-la, ka-vī-śa-ni-ca-ya, sa-rvā-rtha-śī-la-sthi-ro, ni-rvi-ddhā-nga-na-rē-ndra-rung . Successively multiply these five numbers in order by the square of the arc divided by the quarter of the circumference (5400′), and subtract from the next number. (Continue this process with the result so obtained and the next number.) Multiply the final result by the cube of the arc divided by quarter of the circumference and subtract from the arc.

## Madhava's cosine series
### In Madhava's own words

Madhava's cosine series is stated in verses 2.442 and 2.443 in Yukti-dipika commentary (Tantrasamgraha-vyakhya) by Sankara Variar. A translation of the verses follows.
Multiply the square of the arc by the unit (i.e. the radius) and take the result of repeating that (any number of times). Divide (each of the above numerators) by the square of the successive even numbers decreased by that number and multiplied by the square of the radius. But the first term is (now)(the one which is) divided by twice the radius. Place the successive results so obtained one below the other and subtract each from the one above. These together give the śara as collected together in the verse beginning with stena, stri, etc.

### Rendering in modern notations

Let r denote the radius of the circle and s the arc-length.
* The following numerators are formed first:
       $r\cdot s^{2},\qquad r\cdot s^{2}\cdot s^{2},\qquad r\cdot s^{2}\cdot s^{2}\cdot s^{2},\qquad \cdots$
* These are then divided by quantities specified in the verse.
       $r\cdot {\frac {s^{2}}{(2^{2}-2)r^{2}}},\qquad r\cdot {\frac {s^{2}}{(2^{2}-2)r^{2}}}\cdot {\frac {s^{2}}{(4^{2}-4)r^{2}}},\qquad r\cdot {\frac {s^{2}}{(2^{2}-2)r^{2}}}\cdot {\frac {s^{2}}{(4^{2}-4)r^{2}}}\cdot {\frac {s^{2}}{(6^{2}-6)r^{2}}},\qquad \cdots$
* Place the arc and the successive results so obtained one below the other, and subtract each from the one above to get śara:
       ${\text{sara}}=r\cdot {\frac {s^{2}}{(2^{2}-2)r^{2}}}-\left[r\cdot {\frac {s^{2}}{(2^{2}-2)r^{2}}}\cdot {\frac {s^{2}}{(4^{2}-4)r^{2}}}-\left[r\cdot {\frac {s^{2}}{(2^{2}-2)r^{2}}}\cdot {\frac {s^{2}}{(4^{2}-4)r^{2}}}\cdot {\frac {s^{2}}{(6^{2}-6)r^{2}}}-\cdots \right]\right]$

### Transformation to current notation

Let θ be the angle subtended by the arc s at the centre of the circle. Then s = rθ and śara = r(1 − cos θ). Substituting these in the last expression and simplifying we get
    $1-\cos \theta ={\frac {\theta ^{2}}{2!}}-{\frac {\theta ^{4}}{4!}}+{\frac {\theta ^{6}}{6!}}+\quad \cdots$
which gives the infinite power series expansion of the cosine function.

### Madhava's reformulation for numerical computation

The last line in the verse ′as collected together in the verse beginning with stena, stri, etc.′ is a reference to a reformulation introduced by Madhava himself to make the series convenient for easy computations for specified values of the arc and the radius. As in the case of the sine series, Madhava considers a circle one quarter of which measures 5400 minutes (say C minutes) and develops a scheme for the easy computations of the śara′s of the various arcs of such a circle. Let R be the radius of a circle one quarter of which measures C. Then, as in the case of the sine series, Madhava gets R = 3437′ 44′′ 48′′′.
Madhava's expression for śara corresponding to any arc s of a circle of radius R is equivalent to the following:
    ${\begin{aligned}{\text{jiva }}&=R\cdot {\frac {s^{2}}{R^{2}(2^{2}-2)}}-R\cdot {\frac {s^{4}}{R^{4}(2^{2}-2)(4^{2}-4)}}-\cdots \\[6pt]&=\left({\frac {s}{C}}\right)^{2}\left[{\frac {R\left({\frac {\pi }{2}}\right)^{2}}{2!}}-\left({\frac {s}{C}}\right)^{2}\left[{\frac {R\left({\frac {\pi }{2}}\right)^{4}}{4!}}-\left({\frac {s}{C}}\right)^{2}\left[{\frac {R\left({\frac {\pi }{2}}\right)^{6}}{6!}}-\cdots \right]\right]\right]\end{aligned}}$
Madhava now computes the following values:
| No. | Expression | Value | Value in Katapayadi system |
| 1 | ${\frac {R({\frac {\pi }{2}})^{2}}{2!}}$ | 4241′ 09′′ 00′′′ | u-na-dha-na-krt-bhu-re-va |
| 2 | ${\frac {R({\frac {\pi }{2}})^{4}}{4!}}$ | 872′ 03′′ 05 ′′′ | mī-nā-ngo-na-ra-sim-ha |
| 3 | ${\frac {R({\frac {\pi }{2}})^{6}}{6!}}$ | 071′ 43′′ 24′′′ | bha-drā-nga-bha-vyā-sa-na |
| 4 | ${\frac {R({\frac {\pi }{2}})^{8}}{8!}}$ | 03′ 09′′ 37′′′ | su-ga-ndhi-na-ga-nud |
| 5 | ${\frac {R({\frac {\pi }{2}})^{10}}{10!}}$ | 05′′ 12′′′ | strī-pi-śu-na |
| 6 | ${\frac {R({\frac {\pi }{2}})^{12}}{12!}}$ | 06′′′ | ste-na |
The śara can now be computed using the following scheme:
    sara =(s/C)$^2$[(R(π/2)$^2$/2!)−(s/C)$^2$[(R(π/2)$^4$/4!)−(s/C)$^2$[(R(π/2)$^6$/6!)−(s/C)$^2$[(R(π/2)$^8$/8!)−(s/C)$^2$[(R(π/2)$^{10}$/10!)−(s/C)$^2$(R(π/2)$^{12}$/12!)]]]]]{\textstyle {\text{sara }}=\left({\frac {s}{C}}\right)^{2}\left[\left({\frac {R({\frac {\pi }{2}})^{2}}{2!}}\right)-\left({\frac {s}{C}}\right)^{2}\left[\left({\frac {R({\frac {\pi }{2}})^{4}}{4!}}\right)-\left({\frac {s}{C}}\right)^{2}\left[\left({\frac {R({\frac {\pi }{2}})^{6}}{6!}}\right)-\left({\frac {s}{C}}\right)^{2}\left[\left({\frac {R({\frac {\pi }{2}})^{8}}{8!}}\right)-\left({\frac {s}{C}}\right)^{2}\left[\left({\frac {R({\frac {\pi }{2}})^{10}}{10!}}\right)-\left({\frac {s}{C}}\right)^{2}\left({\frac {R({\frac {\pi }{2}})^{12}}{12!}}\right)\right]\right]\right]\right]\right]}
This gives an approximation of śara by its Taylor polynomial of the 12'th order. This also involves one division, six multiplications and five subtractions only. Madhava prescribes this numerically efficient computational scheme in the following words (translation of verse 2.438 in Yukti-dipika):
The six stena, strīpiśuna, sugandhinaganud, bhadrāngabhavyāsana, mīnāngonarasimha, unadhanakrtbhureva. Multiply by the square of the arc divided by the quarter of the circumference and subtract from the next number. (Continue with the result and the next number.) Final result will be utkrama-jya (R versed sign).

## Madhava's arctangent series
### In Madhava's own words

Madhava's arctangent series is stated in verses 2.206 – 2.209 in Yukti-dipika commentary (Tantrasamgraha-vyakhya) by Sankara Variar. A translation of the verses is given below. Jyesthadeva has also given a description of this series in Yuktibhasa.
Now, by just the same argument, the determination of the arc of a desired sine can be (made). That is as follows: The first result is the product of the desired sine and the radius divided by the cosine of the arc. When one has made the square of the sine the multiplier and the square of the cosine the divisor, now a group of results is to be determined from the (previous) results beginning from the first. When these are divided in order by the odd numbers 1, 3, and so forth, and when one has subtracted the sum of the even(-numbered) results from the sum of the odd (ones), that should be the arc. Here the smaller of the sine and cosine is required to be considered as the desired (sine). Otherwise, there would be no termination of results even if repeatedly (computed).
By means of the same argument, the circumference can be computed in another way too. That is as (follows): The first result should by the square root of the square of the diameter multiplied by twelve. From then on, the result should be divided by three (in) each successive (case). When these are divided in order by the odd numbers, beginning with 1, and when one has subtracted the (even) results from the sum of the odd, (that) should be the circumference.

### Rendering in modern notations

Let s be the arc of the desired sine (jya or jiva) y. Let r be the radius and x be the cosine (kotijya).
* The first result is ${\tfrac {y\cdot r}{x}}$.
* Form the multiplier and divisor ${\tfrac {y^{2}}{x^{2}}}$.
* Form the group of results:
       ${\frac {y\cdot r}{x}}\cdot {\frac {y^{2}}{x^{2}}},\qquad {\frac {y\cdot r}{x}}\cdot {\frac {y^{2}}{x^{2}}}\cdot {\frac {y^{2}}{x^{2}}},\qquad \cdots$
* These are divided in order by the numbers 1, 3, and so forth:
       ${\frac {1}{1}}{\frac {y\cdot r}{x}},\qquad {\frac {1}{3}}{\frac {y\cdot r}{x}}\cdot {\frac {y^{2}}{x^{2}}},\qquad {\frac {1}{5}}{\frac {y\cdot r}{x}}\cdot {\frac {y^{2}}{x^{2}}}\cdot {\frac {y^{2}}{x^{2}}},\qquad \cdots$
* Sum of odd-numbered results:
       ${\frac {1}{1}}{\frac {y\cdot r}{x}}+{\frac {1}{5}}{\frac {y\cdot r}{x}}\cdot {\frac {y^{2}}{x^{2}}}\cdot {\frac {y^{2}}{x^{2}}}+\cdots$
* Sum of even-numbered results:
       ${\frac {1}{3}}{\frac {y\cdot r}{x}}\cdot {\frac {y^{2}}{x^{2}}}+{\frac {1}{7}}{\frac {y\cdot r}{x}}\cdot {\frac {y^{2}}{x^{2}}}\cdot {\frac {y^{2}}{x^{2}}}\cdot {\frac {y^{2}}{x^{2}}}+\cdots$
* The arc is now given by
       $s=\left({\frac {1}{1}}{\frac {y\cdot r}{x}}+{\frac {1}{5}}{\frac {y\cdot r}{x}}\cdot {\frac {y^{2}}{x^{2}}}\cdot {\frac {y^{2}}{x^{2}}}+\cdots \right)-\left({\frac {1}{3}}{\frac {y\cdot r}{x}}\cdot {\frac {y^{2}}{x^{2}}}+{\frac {1}{7}}{\frac {y\cdot r}{x}}\cdot {\frac {y^{2}}{x^{2}}}\cdot {\frac {y^{2}}{x^{2}}}\cdot {\frac {y^{2}}{x^{2}}}+\cdots \right)$

### Transformation to current notation

Let θ be the angle subtended by the arc s at the centre of the circle. Then s = rθ, x = kotijya = r cos θ and y = jya = r sin θ. Then y / x = tan θ. Substituting these in the last expression and simplifying we get
* $\theta =\tan \theta -{\frac {\tan ^{3}\theta }{3}}+{\frac {\tan ^{5}\theta }{5}}-{\frac {\tan ^{7}\theta }{7}}+\quad \cdots$.
Letting tan θ = q we finally have
* $\tan ^{-1}q=q-{\frac {q^{3}}{3}}+{\frac {q^{5}}{5}}-{\frac {q^{7}}{7}}+\quad \cdots$

### Another formula for the circumference of a circle

The second part of the quoted text specifies another formula for the computation of the circumference c of a circle having diameter d. This is as follows.
    $c={\sqrt {12d^{2}}}-{\frac {\sqrt {12d^{2}}}{3\cdot 3}}+{\frac {\sqrt {12d^{2}}}{3^{2}\cdot 5}}-{\frac {\sqrt {12d^{2}}}{3^{3}\cdot 7}}+\quad \cdots$
Since c = π d this can be reformulated as a formula to compute π as follows.
    $\pi ={\sqrt {12}}\left(1-{\frac {1}{3\cdot 3}}+{\frac {1}{3^{2}\cdot 5}}-{\frac {1}{3^{3}\cdot 7}}+\quad \cdots \right)$
This is obtained by substituting q = $1/{\sqrt {3}}$ (therefore θ = π / 6) in the power series expansion for tan$^{−1}$ q above.