HOME

TheInfoList



OR:

In
mathematics Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes. These topics are represented in modern mathematics ...
, the Leibniz formula for , named after
Gottfried Leibniz Gottfried Wilhelm (von) Leibniz . ( – 14 November 1716) was a German polymath active as a mathematician, philosopher, scientist and diplomat. He is one of the most prominent figures in both the history of philosophy and the history of mathem ...
, states that 1-\frac+\frac-\frac+\frac-\cdots=\frac, an
alternating series In mathematics, an alternating series is an infinite series of the form \sum_^\infty (-1)^n a_n or \sum_^\infty (-1)^ a_n with for all . The signs of the general terms alternate between positive and negative. Like any series, an alternatin ...
. It is also called the Madhava–Leibniz series as it is a
special case In logic, especially as applied in mathematics, concept is a special case or specialization of concept precisely if every instance of is also an instance of but not vice versa, or equivalently, if is a generalization of . A limiting case ...
of a more general series expansion for the
inverse tangent In mathematics, the inverse trigonometric functions (occasionally also called arcus functions, antitrigonometric functions or cyclometric functions) are the inverse functions of the trigonometric functions (with suitably restricted domains). Spe ...
function, first discovered by the Indian mathematician
Madhava of Sangamagrama Iriññāttappiḷḷi Mādhavan known as Mādhava of Sangamagrāma () was an Indian mathematician and astronomer from the town believed to be present-day Kallettumkara, Aloor Panchayath, Irinjalakuda in Thrissur District, Kerala, India. He ...
in the 14th century, the specific case first published by Leibniz around 1676. The series for the
inverse tangent In mathematics, the inverse trigonometric functions (occasionally also called arcus functions, antitrigonometric functions or cyclometric functions) are the inverse functions of the trigonometric functions (with suitably restricted domains). Spe ...
function, which is also known as
Gregory's series Gregory's series, is an infinite Taylor series expansion of the inverse tangent function. It was discovered in 1668 by James Gregory. It was re-rediscovered a few years later by Gottfried Leibniz, who re obtained the Leibniz formula for π as the ...
, can be given by: : \arctan x = x - \frac + \frac - \frac + \cdots The Leibniz formula for \frac can be obtained by putting x=1 into this series. It also is the Dirichlet -series of the non-principal
Dirichlet character In analytic number theory and related branches of mathematics, a complex-valued arithmetic function \chi:\mathbb\rightarrow\mathbb is a Dirichlet character of modulus m (where m is a positive integer) if for all integers a and b: :1)   \ch ...
of modulus 4 evaluated at s=1, and, therefore, the value of the
Dirichlet beta function In mathematics, the Dirichlet beta function (also known as the Catalan beta function) is a special function, closely related to the Riemann zeta function. It is a particular Dirichlet L-function, the L-function for the alternating character of per ...
.


Proofs


Proof 1

\begin \frac &= \arctan(1) \\ &= \int_0^1 \frac 1 \, dx \\ pt& = \int_0^1\left(\sum_^n (-1)^k x^+\frac\right) \, dx \\ pt& = \left(\sum_^n \frac\right) +(-1)^ \left(\int_0^1\frac \, dx\right). \end Considering only the integral in the last term, we have: 0 \le \int_0^1 \frac\,dx \le \int_0^1 x^\,dx = \frac \;\rightarrow 0 \text n \rightarrow \infty. Therefore, by the
squeeze theorem In calculus, the squeeze theorem (also known as the sandwich theorem, among other names) is a theorem regarding the limit of a function that is trapped between two other functions. The squeeze theorem is used in calculus and mathematical anal ...
, as , we are left with the Leibniz series: \frac4 = \sum_^\infty\frac


Proof 2

\begin \frac &= \arctan(1) \\ &= \int_0^1 \frac 1 \, dz \\ pt\end When , z, <1, \sum_^\infty (-1)^k z^ converges uniformly, therefore f(z) = \arctan(z) = \int_^ \frac dz =\sum_^\fracz^\ (, z, <1) If f(z) approaches f(1) so that it is continuous and converges uniformly, the proof is complete. From Leibniz's test, \sum_^\frac converges, also f(z) approaches f(1) from within the Stolz angle, so from
Abel's theorem In mathematics, Abel's theorem for power series relates a limit of a power series to the sum of its coefficients. It is named after Norwegian mathematician Niels Henrik Abel. Theorem Let the Taylor series G (x) = \sum_^\infty a_k x^k be a pow ...
this is correct.


Convergence

Leibniz's formula converges extremely slowly: it exhibits sublinear convergence. Calculating to 10 correct decimal places using direct summation of the series requires precisely five billion terms because for (one needs to apply Calabrese error bound). To get 4 correct decimal places (error of 0.00005) one needs 5000 terms. Even better than Calabrese or Johnsonbaugh error bounds are available. However, the Leibniz formula can be used to calculate to high precision (hundreds of digits or more) using various
convergence acceleration In mathematics, series acceleration is one of a collection of sequence transformations for improving the rate of convergence of a series. Techniques for series acceleration are often applied in numerical analysis, where they are used to improve the ...
techniques. For example, the Shanks transformation,
Euler transform In combinatorics, the binomial transform is a sequence transformation (i.e., a transform of a sequence) that computes its forward differences. It is closely related to the Euler transform, which is the result of applying the binomial transform to th ...
or
Van Wijngaarden transformation In mathematics and numerical analysis, the van Wijngaarden transformation is a variant on the Euler transform used to accelerate the convergence of an alternating series. One algorithm to compute Euler's transform runs as follows: Compute a row ...
, 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 \frac = \sum_^ \left(\frac-\frac\right) = \sum_^ \frac which can be evaluated to high precision from a small number of terms using
Richardson extrapolation In numerical analysis, Richardson extrapolation is a sequence acceleration method used to improve the rate of convergence of a sequence of estimates of some value A^\ast = \lim_ A(h). In essence, given the value of A(h) for several values of h, ...
or the Euler–Maclaurin formula. This series can also be transformed into an integral by means of the
Abel–Plana formula In mathematics, the Abel–Plana formula is a summation formula discovered independently by and . It states that :\sum_^\infty f(n)=\frac 1 2 f(0)+ \int_0^\infty f(x) \, dx+ i \int_0^\infty \frac \, dt. It holds for functions ''f'' that are hol ...
and evaluated using techniques for
numerical integration In analysis, numerical integration comprises a broad family of algorithms for calculating the numerical value of a definite integral, and by extension, the term is also sometimes used to describe the numerical solution of differential equatio ...
.


Unusual behaviour

If the series is truncated at the right time, the
decimal expansion A decimal representation of a non-negative real number is its expression as a sequence of symbols consisting of decimal digits traditionally written with a single separator: r = b_k b_\ldots b_0.a_1a_2\ldots Here is the decimal separator, ...
of the approximation will agree with that of for many more digits, except for isolated digits or digit groups. For example, taking five million terms yields 3.141592\underline5358979323846\underline643383279502\underline841971693993\underline058... where the underlined digits are wrong. The errors can in fact be predicted; they are generated by the
Euler number In mathematics, the Euler numbers are a sequence ''En'' of integers defined by the Taylor series expansion :\frac = \frac = \sum_^\infty \frac \cdot t^n, where \cosh (t) is the hyperbolic cosine function. The Euler numbers are related to a ...
s according to the
asymptotic In analytic geometry, an asymptote () of a curve is a line such that the distance between the curve and the line approaches zero as one or both of the ''x'' or ''y'' coordinates tends to infinity. In projective geometry and related context ...
formula \frac - 2 \sum_^\frac \frac \sim \sum_^\infty \frac where is an integer divisible by 4. If 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 Jonathan Michael Borwein (20 May 1951 – 2 August 2016) was a Scottish mathematician who held an appointment as Laureate Professor of mathematics at the University of Newcastle, Australia. He was a close associate of David H. Bailey, and the ...
and Mark Limber used the first thousand Euler numbers to calculate to 5,263 decimal places with the Leibniz formula.


Euler product

The Leibniz formula can be interpreted as a
Dirichlet series In mathematics, a Dirichlet series is any series of the form \sum_^\infty \frac, where ''s'' is complex, and a_n is a complex sequence. It is a special case of general Dirichlet series. Dirichlet series play a variety of important roles in analy ...
using the unique non-principal
Dirichlet character In analytic number theory and related branches of mathematics, a complex-valued arithmetic function \chi:\mathbb\rightarrow\mathbb is a Dirichlet character of modulus m (where m is a positive integer) if for all integers a and b: :1)   \ch ...
modulo 4. As with other Dirichlet series, this allows the infinite sum to be converted to an
infinite product In mathematics, for a sequence of complex numbers ''a''1, ''a''2, ''a''3, ... the infinite product : \prod_^ a_n = a_1 a_2 a_3 \cdots is defined to be the limit of the partial products ''a''1''a''2...''a'n'' as ''n'' increases without bound. ...
with one term for each
prime number A prime number (or a prime) is a natural number greater than 1 that is not a Product (mathematics), product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime ...
. Such a product is called an
Euler product In number theory, an Euler product is an expansion of a Dirichlet series into an infinite product indexed by prime numbers. The original such product was given for the sum of all positive integers raised to a certain power as proven by Leonhard Eu ...
. It is: \begin\frac\pi4&=\left(\prod_\frac\right) \left( \prod_\frac\right)\\ &=\frac \cdot \frac \cdot \frac \cdot \frac \cdot \frac\cdot\frac\cdot\frac\cdot\frac\cdot\frac \cdots\end In this product, each term is a
superparticular ratio In mathematics, a superparticular ratio, also called a superparticular number or epimoric ratio, is the ratio of two consecutive integer numbers. More particularly, the ratio takes the form: :\frac = 1 + \frac where is a positive integer. Thu ...
, each numerator is an odd prime number, and each denominator is the nearest multiple of 4 to the numerator..


See also

* List of formulae involving


References


External links


Leibniz Formula in C, x86 FPU Assembly, x86-64 SSE3 Assembly, and DEC Alpha Assembly
{{DEFAULTSORT:Leibniz formula for Pi Pi algorithms Articles containing proofs Gottfried Wilhelm Leibniz Mathematical series