The Gregory-Leibniz Series
Proof: Start with the Taylor series:
Apply the variable substitution to get
Now since , by integrating, we find that the Taylor expansion of is
and the formula is obtained by substituting .
Variations
The Gregory-Leibniz Series converges very slowly. One way to improve it is to use
Even better is
Another way that is handy for decimal digits is: