Why does this converge to $\pi/4$?

23k Views Asked by At

The infinite series...

$\pi/4 = 1 - 1/3 + 1/5 - 1/7 ...$

...is very intriguing to me and seems like a crazy coincidence (its relationship to $\pi$). Is it actually crazy or does it have an easy to explain, logical reasoning behind it that would make it seem not so magical?

6

There are 6 best solutions below

2
On BEST ANSWER

The standard proof is that this follows from the Taylor series

$$\arctan x = x - \frac{x^3}{3} + \frac{x^5}{5} \mp ...$$

for the arctangent. This Taylor series is closely related to the Taylor series of the logarithm

$$\log (1 + x) = x - \frac{x^2}{2} + \frac{x^3}{3} \mp ...$$

and this is because the tangent function can be written in terms of complex exponentials, so the arctangent function can be written in terms of complex logarithms. So the appearance of $\pi$ in this formula is morally due to Euler's formula.

But there is also the following beautiful proof, which I learned from Gabor Toth's Glimpses of Algebra and Geometry. Consider the number $N(r)$ of integer lattice points inside the circle of radius $r$ centered at the origin, or in other words the number of pairs of integers $x, y$ satisfying $x^2 + y^2 \le r^2$. It is not hard to see that $N(r) \sim \pi r^2$ for large $r$; in fact, it is not hard to see that $N(r) = \pi r^2 + O(r)$.

Let $r_2(n)$ denote the number of pairs of integers $(x, y)$ such that $x^2 + y^2 = n$. Then $N(r) = 1 + r_2(1) + ... + r_2(r^2)$ (if $r$ is an integer). On the other hand, a classic result of number theory implies that

$$r_2(n) = 4(d_1(n) - d_3(n))$$

where $d_k(n)$ is the number of divisors of $n$ congruent to $k \bmod 4$. It follows that we can evaluate $N(r)$ by counting how many numbers between $1$ and $r^2$ are divisible by each number congruent to $1, 3 \bmod 4$ with the appropriate sign. This gives

$$\frac{N(r) - 1}{4} = r^2 - \left\lfloor \frac{r^2}{3} \right\rfloor + \left\lfloor \frac{r^2}{5} \right\rfloor \mp ...$$

and the result follows by taking the limit as $r \to \infty$.

1
On

It comes from evaluating the arctan of 1.

0
On

The function $\sec(x)=\frac{1}{\cos(x)}$ also has a series expansion that will give you this result, but it is not its Taylor series. Namely, its partial fraction expansion is $$\sec(x)=\sum_{n=1}^\infty \frac{(-1)^n(2n-1)\pi }{x^2-\left (n-\frac{1}{2}\right )^2\pi^2},$$ as derived in Example 1 at this link to Markushevich and Silverman, for example. The series converges to $\sec(x)$ everywhere the latter is defined (and uniformly on compact subsets of the domain). Plugging in $x=0$ and multiplying both sides by $\frac{\pi}{4}$ yields $$\frac{\pi}{4}=1-\frac{1}{3}+\frac{1}{5}-\frac{1}{7}+\cdots.$$

2
On

I think this is relevant, and an explanation of QY's proof.

$$1+i\,\tan\,\theta=\sec\,\theta(\cos\,\theta+i\,\sin\,\theta)$$
$$1+i\,\tan\,\theta=\sec\,\theta\cdot e^{i\theta}$$

Taking logs,

$$ \ln(1+i\,\tan\,\theta) = \ln(\sec\,\theta\cdot e^{i\theta})$$
$$ \ln(1+i\,\tan\,\theta) = i\theta + \ln(\sec\,\theta)$$

The rest follows easily.

There are other interesting identities which stem from this, and are easily proved. $$\arctan(1/2)+\arctan(1/3) = \pi/4$$ $$4\arctan(1/5)-\arctan(1/239) = \pi/4$$ $$4\arctan(1/5)-\arctan(1/70)+\arctan(1/99) = \pi/4$$

These final equations make it progressively easier to evaluate $\pi$, and that is what they are used for.

1
On

For a historical perspective (i.e. if you want to see how geniuses struggled through things that would be natural today, mostly because of things they later discovered), the nice article The Discovery of the Series Formula for π by Leibniz, Gregory and Nilakantha1 by Ranjan Roy (1990) describes how the formula was discovered independently thrice:

The series (2) was obtained independently by Gottfried Wilhelm Leibniz (1646-1716), James Gregory (1638-1675) and an Indian mathematician of the fourteenth century or probably the fifteenth cen­tury whose identity is not definitely known. Usually ascribed to Nilakantha, the Indian proof of (2) ap­pears to date from the mid-fifteenth century and was a consequence of an effort to rectify the circle. […] Leibniz's work, in fact, was primarily concerned with quadrature; the π/4 series resulted (in 1673) when he applied his method to the circle. Gregory, by comparison, was interested in finding an infinite series representation of any given func­tion and discovered the relationship between this and the successive derivatives of the given function. Gre­gory's discovery, made in 1671, is none other than the Taylor series; note that Taylor was not born un­til 1685. […]

Finally, although the proofs of (2) by Leibniz, Gregory and Nilakantha are very different in approach and motivation, they all bear a relation to the modem proof given above.

Perhaps I'll come back and edit this post for a summary of their methods if I actually read the article. :-)


1: Ranjan Roy, Mathematics Magazine, Vol. 63 (1990), pp. 291-306. I found this while flipping through the book Sherlock Holmes in Babylon: and other tales of mathematical history.

0
On

This is a follow-up to the comment about Abel's theorem below Willie Wong's post.

You don't need Abel's theorem if you proceed as follows (taken from "What is Mathematics?" by Courant and Robbins):

$$\sum_{k=0}^{n} (-1)^k x^{2k} = \frac{1+(-1)^nx^{2n+2}}{1+x^2} = \frac{1}{1+x^2} + \frac{(-1)^nx^{2n+2}}{1+x^2}$$

and you integrate each side from $x=0$ to $x=1$ and then take a limit, bounding the rightmost term in the right integral by discarding the $x^2$ term in the denominator. This is nice as it allows a rigorous presentation of this to (a suitably motivated) audience of first year calculus students.