Leibniz formula for pi
From Wikipedia, the free encyclopedia
- See Leibniz formula for other formulas known under the same name.
In mathematics, Leibniz' formula for π, due to Gottfried Leibniz, states that
Contents |
[edit] Proof
Consider the infinite geometric series
It is the limit of the truncated geometric series
Splitting the integrand as
and integrating both sides from 0 to 1, we have
Integrating the first integral (over the truncated geometric series ) termwise one obtains in the limit the required sum. The contribution from the second integral vanishes in the limit as
The full integral
on the left-hand side evaluates to arctan(1) − arctan(0) = π/4, which then yields
Remark: An alternative proof of the Leibniz formula can be given with the aid of Abel's theorem applied to the power series (convergent for | x | < 1)
which is obtained integrating the geometric series ( absolutely convergent for | x | < 1)
termwise.
[edit] Efficiency in π calculation
Practically speaking, Leibniz' formula is very inefficient for either mechanical or computer-assisted π calculation, as it requires an enormous number of steps to be performed to achieve noticeable precision. Calculating π to 10 correct decimal places using Leibniz' formula requires over 10,000,000,000 mathematical operations, and will take longer for most computers to calculate than calculating π to millions of digits using more efficient formulas.
However, 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. 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.