Leibniz formula for π

From testwiki
Jump to navigation Jump to search

Template:Short description

Template:Pi box Template:For

In mathematics, the Leibniz formula for [[Pi|Template:Pi]], named after Gottfried Wilhelm Leibniz, states that π4=113+1517+19=k=0(1)k2k+1,

an alternating series.

It is sometimes called the Madhava–Leibniz series as it was first discovered by the Indian mathematician Madhava of Sangamagrama or his followers in the 14th–15th century (see Madhava series),[1] and was later independently rediscovered by James Gregory in 1671 and Leibniz in 1673.[2] The Taylor series for the inverse tangent function, often called Gregory's series, is arctanx=xx33+x55x77+=k=0(1)kx2k+12k+1.

The Leibniz formula is the special case arctan1=14π.[3]

It also is the Dirichlet Template:Mvar-series of the non-principal Dirichlet character of modulus 4 evaluated at s=1, and therefore the value Template:Math of the Dirichlet beta function.

Proofs

Proof 1

π4=arctan(1)=0111+x2dx=01(k=0n(1)kx2k+(1)n+1x2n+21+x2)dx=(k=0n(1)k2k+1)+(1)n+1(01x2n+21+x2dx)

Considering only the integral in the last term, we have: 001x2n+21+x2dx01x2n+2dx=12n+30 as n.

Therefore, by the squeeze theorem, as Template:Math, we are left with the Leibniz series: π4=k=0(1)k2k+1

Proof 2

Let f(z)=n=0(1)n2n+1z2n+1, when |z|<1, the series k=0(1)kz2k converges uniformly, then arctan(z)=0z11+t2dt=n=0(1)n2n+1z2n+1=f(z) (|z|<1).

Therefore, if f(z) approaches f(1) so that it is continuous and converges uniformly, the proof is complete, where, the series n=0(1)n2n+1 to be converges by the Leibniz's test, and also, f(z) approaches f(1) from within the Stolz angle, so from Abel's theorem this is correct.

Convergence

Template:Comparison pi infinite series.svg Leibniz's formula converges extremely slowly: it exhibits sublinear convergence. Calculating Template:Pi to 10 correct decimal places using direct summation of the series requires precisely five billion terms because Template:Math for Template:Math (one needs to apply Calabrese error bound). To get 4 correct decimal places (error of 0.00005) one needs 5000 terms.[4] Even better than Calabrese or Johnsonbaugh error bounds are available.[5]

However, the Leibniz formula can be used to calculate Template:Pi 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 π4=n=0(14n+114n+3)=n=02(4n+1)(4n+3)

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.

Unusual behaviour

If the series is truncated at the right time, the decimal expansion of the approximation will agree with that of Template:Pi for many more digits, except for isolated digits or digit groups. For example, taking five million terms yields 3.1415924_53589793238464_6433832795027_841971693993873_058...

where the underlined digits are wrong. The errors can in fact be predicted; they are generated by the Euler numbers Template:Math according to the asymptotic formula π22k=1N/2(1)k12k1m=0E2mN2m+1

where Template:Math is an integer divisible by 4. If Template:Math 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 Euler–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 Template:Pi to 5,263 decimal places with the Leibniz formula.[6]

Euler product

The Leibniz formula can be interpreted as a Dirichlet series using the unique non-principal Dirichlet character modulo 4. As with other Dirichlet series, this allows the infinite sum to be converted to an infinite product with one term for each prime number. Such a product is called an Euler product. It is: π4=(p1 (mod 4)pp1)(p3 (mod 4)pp+1)=345478111213121716192023242928 In this product, each term is a superparticular ratio, each numerator is an odd prime number, and each denominator is the nearest multiple of 4 to the numerator.[7] The product is conditionally convergent; its terms must be taken in order of increasing Template:Mvar.

See also

  • [[List of formulae involving π|List of formulae involving Template:Pi]]

References

Template:Reflist