Leibniz formula for pi

Leibniz formula for pi

:"See Leibniz formula for other formulas known under the same name."

In mathematics, the Leibniz formula for π, named after Gottfried Leibniz, states that

:1 ,-, frac{1}{3} ,+, frac{1}{5} ,-, frac{1}{7} ,+, frac{1}{9} ,-, cdots ;=; frac{pi}{4}.!

The expression on the left is an infinite series called the Leibniz series, which converges to π ⁄ 4. It is also called the Gregory-Leibniz series, recognizing the work of Leibniz' contemporary James Gregory. Using summation notation:

:sum_{n=0}^infty , frac{(-1)^n}{2n+1} ;=; frac{pi}{4}.!

The formula was first discovered in the 15th century by Madhava of Sangamagrama, an Indian mathematician and founder of the Kerala school of astronomy and mathematics, some 300 years before Leibniz. In recognition of Madhava's work, the formula is sometimes known as the Madhava-Leibniz series. [citation|title=Special Functions|last=George E. Andrews, Richard Askey|first=Ranjan Roy|publisher=Cambridge University Press|year=1999|isbn=0521789885|page=58] [citation|first=R. C.|last=Gupta|title=On the remainder term in the Madhava-Leibniz's series|journal=Ganita Bharati|volume=14|issue=1-4|year=1992|pages=68-71]

Proof

Consider the infinite geometric series

:1 ,-, x^2 ,+, x^4 ,-, x^6 ,+, x^8 ,-, cdots ;=; frac{1}{1+x^2}, qquad |x| < 1.!

Integrating both sides gives a power series for the inverse tangent:

:x ,-, frac{x^3}{3} ,+, frac{x^5}{5} ,-, frac{x^7}{7} ,+, frac{x^9}{9} ,-, cdots ;=; an^{-1} x , qquad |x| < 1.!

Plugging in "x" = 1 yields the Leibniz formula (the inverse tangent of 1 being π ⁄ 4). The problem with this line of reasoning is that 1 is not within the radius of convergence of the power series. Therefore, some additional argument is required to show that the series converges to tan−1(1) at "x" = 1. One approach is to show that the Leibniz series converges using the alternating series test, and then apply Abel's theorem to show that it must converge to tan−1(1). However, an entirely elementary argument is also possible.

Elementary argument

Consider the following decomposition:

:frac{1}{1+x^2} ;=;1 ,-, x^2 ,+, x^4 ,-, cdots ,+, (-1)^n x^{2n} ;+; frac{(-1)^{n+1},x^{2n+2} }{1+x^2}.!

For |"x"| &lt; 1, the fraction on the right is the sum of the remaining terms of the geometric series. However, the equation above does not involve infinite series, and indeed holds for every real value of "x". Integrating both sides from 0 to 1 gives the following:

:frac{pi}{4} ;=; 1 ,-, frac{1}{3} ,+, frac{1}{5} ,-, cdots ,+ frac{(-1)^n}{2n+1} ;+; (-1)^{n+1}!! int_0^1 frac{x^{2n+2{1+x^2},dx.!

As n ightarrow infty!,, the terms other than the integral converge to the Leibniz series. Meanwhile, the integral converges to zero:

:int_0^1 frac{x^{2n+2{1+x^2},dx ;<; int_0^1 x^{2n+2},dx ;=; frac{1}{2n+3} ; ightarrow; 0 qquad ext{as }n ightarrow infty.!

This proves the Leibniz formula.

Efficiency in &pi; calculation

Practically speaking, Leibniz's 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.Fact|date=October 2008

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

:frac{pi}{2} - 2 sum_{k=1}^{N/2} frac{(-1)^{k-1{2k-1} sim sum_{m=0}^{infty} frac{E_{2m{N^{2m+1!

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.

Additionally, by computing the Leibniz series in a somewhat more clever way by taking the midpoints of partial sums, it can be made to converge much faster than a brute force calculation. Let

pi_{0,1} = frac{4}{1}, pi_{0,2} =frac{4}{1}-frac{4}{3}, pi_{0,3} =frac{4}{1}-frac{4}{3}+frac{4}{5}, pi_{0,4} =frac{4}{1}-frac{4}{3}+frac{4}{5}-frac{4}{7}, cdots!

and then define

pi_{i,j} = frac{pi_{i-1,j}+pi_{i-1,j+1{2} for all i,jge 1

then computing pi_{10,10} will take similar computation time to computing 150 terms of the original series in a brute force manner, and pi_{10,10}=3.141592653cdots, correct to 9 decimal places. This computation is an example of the Van Wijngaarden transformation [A. van Wijngaarden, in: Cursus: Wetenschappelijk Rekenen B, Process Analyse, Stichting Mathematisch Centrum, (Amsterdam, 1965) pp 51-60] .

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.

External links

* [http://timjoh.com/calculating-pi-in-ti-basic-using-the-leibniz-formula/ Implementation of the Leibniz formula for TI Basic]
* [http://sethborders.googlepages.com/Calculatepi.html use the Leibniz formula to approximate pi]
* [http://mattst88.com/programming/?page=leibniz Leibniz Formula in C, x86 FPU Assembly, x86-64 SSE3 Assembly, and DEC Alpha Assembly]


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • Leibniz formula for determinants — In algebra, the Leibniz formula expresses the determinant of a square matrix A = (a {ij}) {i,j = 1, dots, n} in terms of permutations of the matrix elements. Named in honor of Gottfried Leibniz, the formula is:det(A) = sum {sigma in S n}… …   Wikipedia

  • Leibniz (disambiguation) — Gottfried Leibniz (1646 – 1716) was a German philosopher and mathematician.In mathematics, several results and concepts are attributed to Leibniz:* Leibniz algebra, an algebraic structure * Leibniz formula for pi, a method for calculating pi; *… …   Wikipedia

  • Leibniz integral rule — In mathematics, Leibniz s rule for differentiation under the integral sign, named after Gottfried Leibniz, tells us that if we have an integral of the form: int {y 0}^{y 1} f(x, y) ,dy then for x in (x 0, x 1) the derivative of this integral is… …   Wikipedia

  • Bailey–Borwein–Plouffe formula — The Bailey–Borwein–Plouffe formula (BBP formula) provides a spigot algorithm for the computation of the n th binary digit of π. This summation formula was discovered in 1995 by Simon Plouffe. The formula is named after the authors of the paper in …   Wikipedia

  • Cauchy-Binet formula — In linear algebra, the Cauchy Binet formula generalizes the multiplicativity of the determinant (the fact that the determinant of a product of two square matrices is equal to the product of the two determinants) to non square matrices. Suppose A… …   Wikipedia

  • Leibniz operator — One of the cornerstone concepts in the theory of abstract algebraic logic is that of the Leibniz operator.MotivationThe Leibniz operator was introduced by Willem Blok and Don Pigozzi, two of the founders of the field, as a means to abstract the… …   Wikipedia

  • Gottfried Leibniz — Infobox Philosopher region = Western Philosophy era = 18th century philosophy color = #B0C4DE |250px image caption = Gottfried Wilhelm Leibniz name = Gottfried Wilhelm Leibniz birth = 1 July (21 June Old Style) 1646, Leipzig, Electorate of Saxony …   Wikipedia

  • System of Leibniz —     The System of Leibniz     † Catholic Encyclopedia ► The System of Leibniz     I. LIFE OF LEIBNIZ     Gottfried Wilhelm von Leibniz was born at Leipzig on 21 June (1 July), 1646. In 1661 he entered the University of Leipzig as a student of… …   Catholic encyclopedia

  • Determinant — This article is about determinants in mathematics. For determinants in epidemiology, see Risk factor. In linear algebra, the determinant is a value associated with a square matrix. It can be computed from the entries of the matrix by a specific… …   Wikipedia

  • List of mathematics articles (L) — NOTOC L L (complexity) L BFGS L² cohomology L function L game L notation L system L theory L Analyse des Infiniment Petits pour l Intelligence des Lignes Courbes L Hôpital s rule L(R) La Géométrie Labeled graph Labelled enumeration theorem Lack… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”