Leibniz formula for π
| Part of a series of articles on |
| the mathematical constant π |
|---|
| Uses |
| Properties |
| Value |
| People |
| History |
| In culture |
| Related topics |
- See Leibniz (disambiguation) for other formulas known under the same name.
In mathematics, the Leibniz formula for π, named after Gottfried Leibniz, states that
Using summation notation:
Contents |
[edit] Names
The infinite series above is called the Leibniz series. It is also called the Gregory–Leibniz series, recognizing the work of James Gregory. The formula was discovered by Madhava of Sangamagrama[1] and so is also called the Madhava–Leibniz series.[2]
It also is the Dirichlet L-series of the non-principal Dirichlet character of modulus 4 evaluated at s=1, and therefore the value β(1) of the Dirichlet beta function.
[edit] Proof
Considering only the integral in the last line, we have:
Therefore, as n → ∞ we are left with the Leibniz series:
[edit] Inefficiency
Leibniz's formula converges slowly. Calculating π to 10 correct decimal places using direct summation of the series requires about 5,000,000,000 terms because
for
.
However, the Leibniz formula can be used to calculate π to high precision (hundreds of digits or more) using various convergence acceleration techniques. For example, the Shanks transformation, Euler transform or Van Wijngaarden transformation, which are general methods for alternating series, can be applied effectively to the partial sums of the Leibniz series. Further, combining terms pairwise gives the non-alternating series
which can be evaluated to high precision from a small number of terms using Richardson extrapolation or the Euler–Maclaurin formula. This series can also be transformed into an integral by means of the Abel–Plana formula and evaluated using techniques for numerical integration.
[edit] Unusual behavior
If the series is truncated at the right time, the decimal expansion of the approximation will agree with that of π for many more digits, except for isolated digits or digit groups. For example, taking 5,000,000 terms yields
- 3.1415924535897932384646433832795027841971693993873058...
where the underlined digits are wrong. The errors can in fact be predicted; they are generated by the Euler numbers En according to the asymptotic formula
where N is an integer divisible by 4. If N is chosen to be a power of ten, each term in the right sum becomes a finite decimal fraction. The formula is a special case of the Boole summation formula for alternating series, providing yet another example of a convergence acceleration technique that can be applied to the Leibniz series. In 1992, Jonathan Borwein and Mark Limber used the first thousand Euler numbers to calculate π to 5,263 decimal places with Leibniz' formula.
[edit] References
- Jonathan Borwein, David Bailey & Roland Girgensohn, Experimentation in Mathematics - Computational Paths to Discovery, A K Peters 2003, ISBN 1-56881-136-5, pages 28–30.
- ^ George E. Andrews, Richard Askey, Ranjan Roy (1999), Special Functions, Cambridge University Press, p. 58, ISBN 0521789885
- ^ Gupta, R. C. (1992), "On the remainder term in the Madhava–Leibniz's series", Ganita Bharati 14 (1-4): 68–71


![\begin{align}
\frac{\pi}{4} & = \arctan(1)\;=\;\int_0^1 \frac 1{1+x^2} \, dx \\[8pt]
& = \int_0^1\left(\sum_{k=0}^n (-1)^k x^{2k}+\frac{(-1)^{n+1}\,x^{2n+2} }{1+x^2}\right) \, dx \\[8pt]
& = \sum_{k=0}^n \frac{(-1)^k}{2k+1}
+(-1)^{n+1}\int_0^1\frac{x^{2n+2}}{1+x^2} \, dx.
\end{align}](http://upload.wikimedia.org/wikipedia/en/math/a/4/a/a4aa687275e932cc92fac5daae71e857.png)



