Mathwords logoMathwords

Riemann Zeta Function — Definition, Formula & Example

The Riemann zeta function is the function ζ(s)\zeta(s) that adds up 1/ns1/n^s over every positive integer nn. It also links that sum to an infinite product taken over all the prime numbers.

For complex ss with Re⁡(s)>1\operatorname{Re}(s) > 1, ζ(s)=∑n=1∞n−s\zeta(s) = \sum_{n=1}^{\infty} n^{-s}, and this series converges absolutely there. By analytic continuation, ζ\zeta extends uniquely to a meromorphic function on all of C\mathbb{C}. Its only singularity is a simple pole at s=1s = 1 with residue 11. At values such as s=−1s = -1, the continued function has a finite value even though the original series diverges.

Key Formula

ζ(s)=∑n=1∞1ns=∏p prime11−p−s,Re⁡(s)>1\zeta(s) = \sum_{n=1}^{\infty} \frac{1}{n^s} = \prod_{p \text{ prime}} \frac{1}{1 - p^{-s}}, \qquad \operatorname{Re}(s) > 1
Where:
  • ss = Complex input; the sum and product formulas are valid only when its real part exceeds 1
  • nn = Positive integer summation index: 1, 2, 3, ...
  • pp = Runs over all primes: 2, 3, 5, 7, ... (the Euler product)

Worked Example

Problem: Use Euler's formula for even integers, ζ(2k)=(−1)k+1B2k(2π)2k2 (2k)!\zeta(2k) = \dfrac{(-1)^{k+1} B_{2k} (2\pi)^{2k}}{2\,(2k)!}, to find the exact value of ζ(4)\zeta(4). Then use the continuation formula ζ(−n)=−Bn+1n+1\zeta(-n) = -\dfrac{B_{n+1}}{n+1} to find ζ(−1)\zeta(-1). The Bernoulli numbers you need are B2=16B_2 = \tfrac{1}{6} and B4=−130B_4 = -\tfrac{1}{30}.
Step 1: Set k=2k = 2 and substitute B4=−130B_4 = -\tfrac{1}{30}, (2π)4=16π4(2\pi)^4 = 16\pi^4, and 4!=244! = 24.
ζ(4)=(−1)3(−130)(16π4)2⋅24=16π41440=π490\zeta(4) = \frac{(-1)^{3}\left(-\tfrac{1}{30}\right)(16\pi^4)}{2 \cdot 24} = \frac{16\pi^4}{1440} = \frac{\pi^4}{90}
Step 2: Check the size of the answer. The series 1+116+181+⋯1 + \tfrac{1}{16} + \tfrac{1}{81} + \cdots starts at 1 and its terms shrink fast, so a value just above 1 makes sense.
π490≈1.0823\frac{\pi^4}{90} \approx 1.0823
Step 3: Now set n=1n = 1 in the continuation formula. The series 1+2+3+⋯1 + 2 + 3 + \cdots diverges, so this value comes only from the analytically continued function.
ζ(−1)=−B22=−1/62=−112\zeta(-1) = -\frac{B_2}{2} = -\frac{1/6}{2} = -\frac{1}{12}
Answer: ζ(4)=π490≈1.0823\zeta(4) = \dfrac{\pi^4}{90} \approx 1.0823 and ζ(−1)=−112\zeta(-1) = -\dfrac{1}{12}. The first value is a genuine convergent sum. The second is a value of the continued function, not a sum.

Why It Matters

The Euler product ties ζ\zeta to the primes. Because ζ(s)→∞\zeta(s) \to \infty as s→1+s \to 1^+, the product cannot have finitely many factors, which proves there are infinitely many primes. The Prime Number Theorem rests on showing ζ(s)≠0\zeta(s) \neq 0 on the line Re⁡(s)=1\operatorname{Re}(s) = 1. Physicists also use continued values such as ζ(−3)=1120\zeta(-3) = \tfrac{1}{120} to regularize divergent sums, for example in calculations of the Casimir effect.

Common Mistakes

Mistake: Claiming that 1+2+3+4+⋯=−1121 + 2 + 3 + 4 + \cdots = -\tfrac{1}{12} because ζ(−1)=−112\zeta(-1) = -\tfrac{1}{12}.
Correction: The series ∑n−s\sum n^{-s} defines ζ(s)\zeta(s) only when Re⁡(s)>1\operatorname{Re}(s) > 1. At s=−1s = -1 the sum diverges to infinity. The number −112-\tfrac{1}{12} is the value of the analytically continued function, not the sum of the positive integers.

Related Terms