Math 2.0

Sequences, series, summability Proof

Proof of the Leibniz formula for pi by integrating a finite geometric sum

Builds on Alternating series testpiArctangentTangent functionSine and cosineAngle addition formulasIntermediate value theoremDerivative of sineMean value theoremDerivative of arctangentDifferentiable functions are continuousContinuous functions are Riemann integrableSecond fundamental theorem of calculusSum of a finite geometric seriesLinearity of the integralIntegral of a powerMonotonicity of the integralLimit of a sequence

Proof

Let sN=∑n=0N(−1)n2n+1s_N = \sum_{n=0}^{N} \frac{(-1)^n}{2n+1} be the partial sums.

  1. The numbers bn=1/(2n+1)b_n = 1/(2n+1) are positive, decreasing, and tend to 00. By the alternating series test, the series converges.
  2. We compute arctan⁡1\arctan 1. By the definition of pi, π/2\pi/2 is the only zero of cos⁡\cos in [0,2][0, 2]. Also π/2≠0\pi/2 \ne 0, since cos⁡0=1\cos 0 = 1 by the definition of sine and cosine.
  3. The function cos⁡\cos is continuous and cos⁡0=1>0\cos 0 = 1 > 0. If cos⁡x≤0\cos x \le 0 for some x∈[0,π/2)x \in [0, \pi/2), the intermediate value theorem would give a zero of cos⁡\cos in (0,x](0, x]. This zero would lie in [0,2][0, 2] and differ from π/2\pi/2, which is impossible. So cos⁡x>0\cos x > 0 on [0,π/2)[0, \pi/2).
  4. By the mean value theorem and the derivative of sine, sin⁡(π/4)−sin⁡0=π4cos⁡ξ\sin(\pi/4) - \sin 0 = \frac{\pi}{4} \cos \xi for some ξ∈(0,π/4)\xi \in (0, \pi/4). By step 3 this is positive, and sin⁡0=0\sin 0 = 0, so sin⁡(π/4)>0\sin(\pi/4) > 0.
  5. By the angle addition formulas, 0=cos⁡(π/2)=cos⁡2(π/4)−sin⁡2(π/4)0 = \cos(\pi/2) = \cos^2(\pi/4) - \sin^2(\pi/4). Since sin⁡(π/4)\sin(\pi/4) and cos⁡(π/4)\cos(\pi/4) are both positive, they are equal.
  6. So tan⁡(π/4)=1\tan(\pi/4) = 1, by the definition of the tangent function. Since π/4∈(−π/2,π/2)\pi/4 \in (-\pi/2, \pi/2), the definition of the arctangent gives arctan⁡1=π/4\arctan 1 = \pi/4.
  7. Also tan⁡0=sin⁡0/cos⁡0=0\tan 0 = \sin 0 / \cos 0 = 0, so arctan⁡0=0\arctan 0 = 0.
  8. The arctangent is differentiable with derivative 1/(1+x2)1/(1+x^2), by the derivative of arctangent. So it is continuous. Its derivative is a quotient of continuous functions with 1+x2>01 + x^2 > 0, so it is continuous, hence Riemann integrable on [0,1][0, 1].
  9. By the second fundamental theorem of calculus and steps 6 and 7, ∫01dt1+t2=arctan⁡1−arctan⁡0=π4.\int_0^1 \frac{dt}{1 + t^2} = \arctan 1 - \arctan 0 = \frac{\pi}{4}.
  10. Let n≥1n \ge 1 and t∈[0,1]t \in [0, 1]. Apply the sum of a finite geometric series with r=−t2≠1r = -t^2 \ne 1. It gives ∑k=0n−1(−1)kt2k=1−(−1)nt2n1+t2\sum_{k=0}^{n-1} (-1)^k t^{2k} = \frac{1 - (-1)^n t^{2n}}{1 + t^2}.
  11. Rearranging step 10 gives 11+t2=∑k=0n−1(−1)kt2k+(−1)nt2n1+t2.\frac{1}{1 + t^2} = \sum_{k=0}^{n-1} (-1)^k t^{2k} + (-1)^n \frac{t^{2n}}{1 + t^2}.
  12. All functions in step 11 are continuous on [0,1][0,1], hence integrable. By linearity of the integral and the integral of a power, ∫01t2k dt=12k+1\int_0^1 t^{2k}\, dt = \frac{1}{2k+1}. Integrating step 11 over [0,1][0, 1] and using step 9 gives π4=sn−1+(−1)nRn,Rn=∫01t2n1+t2 dt.\frac{\pi}{4} = s_{n-1} + (-1)^n R_n, \qquad R_n = \int_0^1 \frac{t^{2n}}{1 + t^2}\, dt.
  13. For t∈[0,1]t \in [0, 1], 0≤t2n1+t2≤t2n0 \le \frac{t^{2n}}{1 + t^2} \le t^{2n}. By monotonicity of the integral and the integral of a power, 0≤Rn≤12n+10 \le R_n \le \frac{1}{2n+1}.
  14. By steps 12 and 13, ∣π/4−sn−1∣=Rn≤12n+1\abs{\pi/4 - s_{n-1}} = R_n \le \frac{1}{2n+1} for every n≥1n \ge 1.
  15. Let ε>0\varepsilon > 0, and take n0n_0 with 1/(2n0+1)<ε1/(2n_0 + 1) < \varepsilon. For N≥n0−1N \ge n_0 - 1, step 14 with n=N+1n = N + 1 gives ∣π/4−sN∣≤1/(2N+3)<ε\abs{\pi/4 - s_N} \le 1/(2N+3) < \varepsilon.
  16. So sN→π/4s_N \to \pi/4 by the definition of the limit. Hence 1−13+15−17+⋯=π41 - \frac13 + \frac15 - \frac17 + \cdots = \frac{\pi}{4}.

Idea

Since arctan⁡′=1/(1+t2)\arctan' = 1/(1+t^2), the number π/4=arctan⁡1\pi/4 = \arctan 1 is the integral of 1/(1+t2)1/(1+t^2) over [0,1][0,1]. Expanding 1/(1+t2)1/(1+t^2) as a finite geometric sum in −t2-t^2 plus a remainder, and integrating term by term, gives a partial sum of the series. The remainder integral is at most 1/(2n+1)1/(2n+1), so it tends to 00.

Reading path

To understand this page from the ground up, read these 299 pages in order. The foundations come first. The path takes the proofs Proof that Darboux and Riemann integrals agree, Proof of the Cauchy–Hadamard theorem, Proof of the derivative of cosine by term-by-term differentiation, Proof of the Weierstrass M-test, Proof of the limit of a sum of sequences, Proof of Rolle's theorem, Proof of the approximation property of the supremum, Proof that every sequence has a monotone subsequence, by peaks, Proof of the formula for the derivative of a polynomial, Proof of the reciprocal rule, Proof of the commutativity of addition by induction, Proof of term-by-term differentiation, Proof of the integral of a power, Proof of the epsilon-delta form of continuity, Proof of the power rule by induction, Proof that absolutely convergent series converge, Proof of the sum of a finite geometric series, Proof that convergent sequences are Cauchy, Proof that there is a natural number n with 1/n below any positive epsilon, Proof of the chain rule with an auxiliary difference quotient, Proof of the Cauchy criterion for series, Proof of the Cauchy criterion for sequences by the Bolzano–Weierstrass theorem, Proof of the reverse triangle inequality, Proof of the limit of a quotient of sequences, Proof that continuous functions on a closed bounded interval are uniformly continuous, Proof that the reals form an ordered field, with the Cauchy sequence construction, Proof of the root test, Proof of the double negation law by a truth table, Proof that power series converge uniformly on smaller intervals inside the radius of convergence, Proof of the extreme value theorem by the Bolzano–Weierstrass theorem, Proof of the alternating series test, Proof that subsequences of a convergent sequence converge to the same limit, Proof of the uniqueness of limits, Proof of strong induction from ordinary induction, Proof that power series are differentiable inside the radius of convergence, Proof of the limit of a product of sequences, Proof that uniform convergence of derivatives allows term-by-term differentiation, Proof of the derivative of arctangent, Proof that the absolute value is multiplicative, Proof of the squeeze theorem for sequences, Proof of Pascal's rule from the recursive definition, Proof of the linearity of differentiation, Proof of the angle addition formulas by differentiation, Proof of Riemann's criterion for integrability, Proof of the sequential characterization of limits, Proof that Cauchy sequences are bounded, Proof of the triangle inequality for real numbers, Proof of the derivative of tangent by the quotient rule, Proof of the epsilon-N definition of the limit of a sequence, Proof of the quotient rule from the product and reciprocal rules, Proof of the comparison test, Proof of the existence of the infimum by negation, Proof of the continuity of the inverse of a strictly monotone continuous function, Proof of Fermat's theorem on stationary points, Proof that limits preserve non-strict inequalities, Proof of the linearity of the integral, Proof of the factorial formula for binomial coefficients by induction, Proof that a function with positive derivative is strictly increasing, Proof of the second fundamental theorem of calculus, Proof of the intermediate value theorem by the supremum, Proof of the binomial theorem by induction, Proof that exponentials dominate powers in sequences, by the ratio of consecutive terms, Proof that differentiable functions are continuous, Proof that one-sided limits of a monotone function exist, Proof of the epsilon-delta form of the limit of a function, Proof of the derivative of sine by term-by-term differentiation, Proof of the well-ordering principle from strong induction, Proof of the Bolzano–Weierstrass theorem by a monotone subsequence, Proof of the Archimedean property in an Archimedean ordered field, Proof that a composition of continuous functions is continuous, Proof of the Pythagorean trigonometric identity by differentiation, Proof that a decreasing sequence bounded below converges, Proof of the term test, Proof that the reals are Archimedean from the completeness axiom, Proof of the ratio test, Proof that convergent sequences are bounded, Proof of the product rule, Proof of the monotone convergence theorem for sequences, Proof that continuity is equivalent to sequential continuity, Proof that a function with zero derivative on an open interval is constant, Proof of the monotonicity of the integral, Proof of the boundedness theorem by Bolzano–Weierstrass, Proof that a series of nonnegative terms converges iff its partial sums are bounded, Proof of the mean value theorem from Rolle's theorem, Proof that the Cauchy product of absolutely convergent series converges absolutely to the product, Proof that continuous functions are Riemann integrable, Proof of the constant multiple rule.

  1. Binomial coefficient definition
  2. Construction of the reals from Cauchy sequences concept
  3. Definition by recursion concept
  4. Element definition
  5. Factorial definition
  6. Group concept
  7. Integers object
  8. Limit point of a set definition
  9. Local maximum definition
  10. Mathematical induction concept
  11. Natural numbers object
  12. Ordered field definition
  13. Partition of an interval definition
  14. Peano axioms concept
  15. Proposition concept
  16. Rational numbers object
  17. Real numbers object
  18. Sequence definition
  19. Set bounded above definition
  20. Strictly monotone function definition
  21. Proof of Pascal's rule from the recursive definition proof
  22. Set definition
  23. Ring definition
  24. Ring of integers statement
  25. Limit of a function definition
  26. Local minimum definition
  27. Archimedean ordered field definition
  28. Successor function definition
  29. Mesh of a partition definition
  30. Refinement of a partition definition
  31. Riemann sum definition
  32. Conjunction definition
  33. Disjunction definition
  34. Implication definition
  35. Negation definition
  36. Predicate definition
  37. The reals form a field statement
  38. Real sequence definition
  39. Subsequence definition
  40. Infimum definition
  41. Supremum definition
  42. Pascal's rule statement
  43. Ordered pair definition
  44. Commutative ring definition
  45. Continuity at a point definition
  46. Derivative definition
  47. One-sided limit definition
  48. Addition of natural numbers definition
  49. Proof of the Archimedean property in an Archimedean ordered field proof
  50. Riemann integrable function definition
  51. The rationals form a field statement
  52. The successor function is injective statement
  53. Zero is not a successor statement
  54. Biconditional definition
  55. Truth table concept
  56. Modus ponens concept
  57. Existential quantifier definition
  58. Universal quantifier definition
  59. Bounded sequence definition
  60. Cauchy sequence definition
  61. Geometric sequence definition
  62. Limit of a sequence definition
  63. Monotone sequence definition
  64. Sequence tending to infinity definition
  65. Series definition
  66. Completeness axiom statement
  67. Cartesian product definition
  68. Proof of the factorial formula for binomial coefficients by induction proof
  69. Continuous function definition
  70. Differentiable function definition
  71. One-sided derivative definition
  72. Archimedean property statement
  73. Proof of the commutativity of addition by induction proof
  74. Order on the natural numbers definition
  75. Riemann integral definition
  76. Subset definition
  77. The rationals form an ordered field statement
  78. Propositional logic concept
  79. Mathematical proof concept
  80. Upper and lower Darboux sums definition
  81. Uniqueness quantifier definition
  82. Limit superior definition
  83. Proof of the sum of a finite geometric series proof
  84. Convergent sequence definition
  85. Pointwise convergence definition
  86. Sequential continuity definition
  87. The sequence r^n tends to infinity for r > 1 example
  88. Alternating series definition
  89. Cauchy product definition
  90. Partial sum definition
  91. Power series definition
  92. Factorial formula for binomial coefficients statement
  93. Proof that a composition of continuous functions is continuous proof
  94. Binary relation definition
  95. Order on the reals definition
  96. Commutativity of addition statement
  97. Definite integral definition
  98. Proof of strong induction from ordinary induction proof
  99. Tautology definition
  100. Upper and lower Darboux integrals definition
  101. Sum of a finite geometric series statement
  102. Uniform convergence definition
  103. Radius of convergence definition
  104. Convergent series definition
  105. Sine and cosine definition
  106. Proof of the binomial theorem by induction proof
  107. Antisymmetric relation definition
  108. Reflexive relation definition
  109. Transitive relation definition
  110. Interval definition
  111. Strong induction statement
  112. Function definition
  113. Uniform convergence on a set definition
  114. Logical equivalence definition
  115. Tangent function definition
  116. Series of functions definition
  117. Absolute convergence definition
  118. Sum of a series definition
  119. Binomial theorem statement
  120. Preorder definition
  121. Proof of the epsilon-delta form of continuity proof
  122. Proof of the epsilon-delta form of the limit of a function proof
  123. Codomain definition
  124. Injective function definition
  125. Proof of the well-ordering principle from strong induction proof
  126. Proof of the double negation law by a truth table proof
  127. Partial order definition
  128. Epsilon-delta definition of continuity statement
  129. Epsilon-delta definition of a limit statement
  130. Monotone function definition
  131. Surjective function definition
  132. Well-ordering principle statement
  133. Double negation law statement
  134. Total order definition
  135. Uniform continuity definition
  136. Composition of continuous functions is continuous statement
  137. Bijective function definition
  138. Proof by contradiction concept
  139. Proof that every sequence has a monotone subsequence, by peaks proof
  140. Uniform continuity on a set definition
  141. Inverse function definition
  142. Proof that the reals form an ordered field, with the Cauchy sequence construction proof
  143. Every sequence has a monotone subsequence statement
  144. The reals form an ordered field statement
  145. Absolute value definition
  146. Proof of the approximation property of the supremum proof
  147. Proof of the existence of the infimum by negation proof
  148. Proof of the triangle inequality for real numbers proof
  149. Proof that the absolute value is multiplicative proof
  150. Proof of the epsilon-N definition of the limit of a sequence proof
  151. Approximation property of the supremum statement
  152. Existence of the infimum statement
  153. Triangle inequality statement
  154. Absolute value is multiplicative statement
  155. Epsilon-N definition of the limit of a sequence statement
  156. Proof of the intermediate value theorem by the supremum proof
  157. Proof that one-sided limits of a monotone function exist proof
  158. Proof that the reals are Archimedean from the completeness axiom proof
  159. Proof of the reverse triangle inequality proof
  160. Proof of the limit of a sum of sequences proof
  161. Proof of the squeeze theorem for sequences proof
  162. Proof of the uniqueness of limits proof
  163. Proof that limits preserve non-strict inequalities proof
  164. Proof that differentiable functions are continuous proof
  165. Intermediate value theorem statement
  166. Proof of the linearity of the integral proof
  167. The reals are Archimedean statement
  168. Proof that convergent sequences are bounded proof
  169. Proof that convergent sequences are Cauchy proof
  170. Proof that subsequences of a convergent sequence converge to the same limit proof
  171. The sequence 1/n tends to zero example
  172. Proof that Cauchy sequences are bounded proof
  173. Proof of the term test proof
  174. Proof of the monotone convergence theorem for sequences proof
  175. Reverse triangle inequality statement
  176. Differentiable functions are continuous statement
  177. Proof that there is a natural number n with 1/n below any positive epsilon proof
  178. Proof of the continuity of the inverse of a strictly monotone continuous function proof
  179. Linearity of the integral statement
  180. Limit of a sum of sequences statement
  181. Uniqueness of limits statement
  182. Proof of the monotonicity of the integral proof
  183. Limits preserve non-strict inequalities statement
  184. Squeeze theorem statement
  185. Proof that Darboux and Riemann integrals agree proof
  186. Convergent sequences are bounded statement
  187. Subsequences of a convergent sequence converge to the same limit statement
  188. Convergent sequences are Cauchy statement
  189. Cauchy sequences are bounded statement
  190. Monotone convergence theorem for sequences statement
  191. Proof of the limit of a product of sequences proof
  192. There is a natural number n with 1/n below any positive epsilon statement
  193. Monotonicity of the integral statement
  194. One-sided limits of a monotone function exist statement
  195. Darboux and Riemann integrals agree statement
  196. Term test statement
  197. Proof of the alternating series test proof
  198. Proof that a decreasing sequence bounded below converges proof
  199. Proof that a series of nonnegative terms converges iff its partial sums are bounded proof
  200. The sequence r^n tends to zero for |r| < 1 example
  201. Proof of the sequential characterization of limits proof
  202. Proof that continuity is equivalent to sequential continuity proof
  203. Continuity of the inverse of a strictly monotone continuous function statement
  204. Limit of a product of sequences statement
  205. Decreasing sequence bounded below converges statement
  206. Proof of Riemann's criterion for integrability proof
  207. Geometric series example
  208. A series of nonnegative terms converges iff its partial sums are bounded statement
  209. Alternating series test statement
  210. Proof of the limit of a quotient of sequences proof
  211. Arctangent definition
  212. Continuity is equivalent to sequential continuity statement
  213. Riemann's criterion for integrability statement
  214. Sequential characterization of limits statement
  215. Proof that the Cauchy product of absolutely convergent series converges absolutely to the product proof
  216. Proof of the root test proof
  217. Proof of the Cauchy–Hadamard theorem proof
  218. Proof that exponentials dominate powers in sequences, by the ratio of consecutive terms proof
  219. Proof of the ratio test proof
  220. Proof of the Bolzano–Weierstrass theorem by a monotone subsequence proof
  221. Proof of the comparison test proof
  222. Proof of the chain rule with an auxiliary difference quotient proof
  223. Proof of the product rule proof
  224. Proof of the linearity of differentiation proof
  225. Limit of a quotient of sequences statement
  226. Comparison test statement
  227. Cauchy product of absolutely convergent series statement
  228. Bolzano–Weierstrass theorem statement
  229. Exponentials dominate powers in sequences statement
  230. Chain rule statement
  231. Product rule statement
  232. Proof of the reciprocal rule proof
  233. Linearity of differentiation statement
  234. Proof that continuous functions on a closed bounded interval are uniformly continuous proof
  235. Ratio test statement
  236. Root test statement
  237. Proof of the boundedness theorem by Bolzano–Weierstrass proof
  238. Proof of the Cauchy criterion for sequences by the Bolzano–Weierstrass theorem proof
  239. Derivative of an inverse function statement
  240. Reciprocal rule statement
  241. Proof of the power rule by induction proof
  242. Continuous functions on a closed bounded interval are uniformly continuous statement
  243. Proof of the constant multiple rule proof
  244. Boundedness theorem statement
  245. Cauchy–Hadamard theorem statement
  246. Cauchy criterion for sequences statement
  247. Power rule statement
  248. Proof of the quotient rule from the product and reciprocal rules proof
  249. Constant multiple rule statement
  250. Proof of the extreme value theorem by the Bolzano–Weierstrass theorem proof
  251. Uniformly Cauchy sequence of functions definition
  252. Proof of the Cauchy criterion for series proof
  253. Quotient rule statement
  254. Proof of the formula for the derivative of a polynomial proof
  255. Extreme value theorem statement
  256. Proof of Fermat's theorem on stationary points proof
  257. Cauchy criterion for series statement
  258. Derivative of a polynomial statement
  259. Proof that continuous functions are Riemann integrable proof
  260. Fermat's theorem on stationary points statement
  261. Proof that absolutely convergent series converge proof
  262. Continuous functions are Riemann integrable statement
  263. Proof of Rolle's theorem proof
  264. Absolutely convergent series converge statement
  265. Rolle's theorem statement
  266. Proof of the Weierstrass M-test proof
  267. Proof of the mean value theorem from Rolle's theorem proof
  268. Weierstrass M-test statement
  269. Mean value theorem statement
  270. Proof that power series converge uniformly on smaller intervals inside the radius of convergence proof
  271. Proof that a function with zero derivative on an open interval is constant proof
  272. Proof that uniform convergence of derivatives allows term-by-term differentiation proof
  273. Proof that a function with positive derivative is strictly increasing proof
  274. Proof of the second fundamental theorem of calculus proof
  275. Power series converge uniformly on smaller discs inside the radius of convergence statement
  276. A function with zero derivative is constant statement
  277. Uniform convergence of derivatives allows term-by-term differentiation statement
  278. Second fundamental theorem of calculus statement
  279. A function with positive derivative is strictly increasing statement
  280. Proof of the integral of a power proof
  281. Proof of term-by-term differentiation proof
  282. Integral of a power statement
  283. Term-by-term differentiation statement
  284. Proof that power series are differentiable inside the radius of convergence proof
  285. Power series are differentiable inside the radius of convergence statement
  286. Proof of the derivative of cosine by term-by-term differentiation proof
  287. Proof of the derivative of sine by term-by-term differentiation proof
  288. Derivative of cosine statement
  289. Derivative of sine statement
  290. Proof of the angle addition formulas by differentiation proof
  291. Proof of the Pythagorean trigonometric identity by differentiation proof
  292. pi object
  293. Pythagorean trigonometric identity statement
  294. Angle addition formulas statement
  295. Proof of the derivative of tangent by the quotient rule proof
  296. Derivative of tangent statement
  297. Proof of the derivative of arctangent proof
  298. Derivative of arctangent statement
  299. Proof of the Leibniz formula for pi by integrating a finite geometric sum proof

Where this leads

2 pages build on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Leibniz_formula_for_%CF%80, Proof 1
About this page
Tag2703AZH0B6
URIm2://2703AZH0B6
Kindproof
WritingW0 stub
MSC40A05
ProvesLeibniz formula for pi
UsesAlternating series test, pi, Arctangent, Tangent function, Sine and cosine, Angle addition formulas, Intermediate value theorem, Derivative of sine, Mean value theorem, Derivative of arctangent, Differentiable functions are continuous, Continuous functions are Riemann integrable, Second fundamental theorem of calculus, Sum of a finite geometric series, Linearity of the integral, Integral of a power, Monotonicity of the integral, Limit of a sequence
Changed4 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.