Search

Search papers and lessons

Large Sieve Inequality

Level 4 · 13 min read

The large sieve bounds how much a sum of exponentials can concentrate at well-spaced frequencies, and its arithmetic form gives strong upper bounds on how many integers survive a sieve.

On this page

  • Colour = topic mix
  • Discrete math
  • Linear algebra
  • Calculus
  • ReadReady to readNot yet

TL;DR

The large sieve is an inequality that limits how much a sum of exponentials can be large at several points at once, provided the points are spread out. Its arithmetic form turns this into an upper bound on how many whole numbers can survive when you remove a few residue classes modulo each small prime. Both forms give bounds that hold for every choice of the coefficients, so they work as tools for proving that a set is small.

Builds on: Fourier Series, Gram Matrix, Matrix Norm, Cauchy–Schwarz Inequality · Leads to: Bombieri-Vinogradov Theorem

Where it's used

Short intervals of primes. The large sieve gives the Brun–Titchmarsh bound: an interval of length yy contains at most about 2y/log⁡y2y/\log y primes, for yy large. Montgomery and Vaughan proved the sharp form of this with the large sieve, and it is much stronger than the crude bound you get by counting integers that are not divisible by small primes.

Primes in arithmetic progressions on average. The primes in arithmetic progressions are spread evenly for most moduli up to about the square root of the range. The Bombieri–Vinogradov theorem makes this precise, and modern proofs use the large sieve to average over moduli at once, which a single modulus cannot achieve.

Zeros of L-functions. Hugh Montgomery used the large sieve to bound how many zeros of families of Dirichlet L-functions can lie to the right of the critical line. Those zero-density estimates control how regularly primes are distributed, which is why the inequality matters well beyond sieves.

How it works

Take a tiny instance: two coefficients, a1=1a_1 = 1 and a2=1a_2 = 1, and the sum

S(α)=a1e(α)+a2e(2α),S(\alpha) = a_1 e(\alpha) + a_2 e(2\alpha),

where e(x)=e2πixe(x) = e^{2\pi i x} is the unit-circle wave of frequency xx. The frequency α\alpha runs around a circle of length 1, so α=0\alpha = 0 and α=1\alpha = 1 are the same point.

flowchart LR
  A["Coefficients a_1 to a_N"] --> B["Exponential sum S(alpha)"]
  B --> C["Sample at points alpha_r spaced at least delta apart"]
  C --> D["Energy: sum of |S(alpha_r)| squared"]
  A --> E["Coefficient energy: sum of |a_n| squared"]
  D --> F["Compare: energy at most (N - 1 + 1/delta) times coefficient energy"]
  E --> F
  1. Choose the coefficients. a1=1a_1 = 1, a2=1a_2 = 1, so N=2N = 2 and the coefficient energy is ∑∣an∣2=2\sum |a_n|^2 = 2.
  2. Build the sum. S(α)=e(α)+e(2α)S(\alpha) = e(\alpha) + e(2\alpha). Check: SS repeats every time α\alpha increases by 1, as a function on the circle should.
  3. Choose the sample points. Take α1=0\alpha_1 = 0 and α2=12\alpha_2 = \tfrac{1}{2}. They are δ=12\delta = \tfrac{1}{2} apart on the circle. Check: no two points are closer than δ\delta.
  4. Evaluate at the points. At α=0\alpha = 0, S=1+1=2S = 1 + 1 = 2. At α=12\alpha = \tfrac{1}{2}, e(12)=−1e(\tfrac{1}{2}) = -1 and e(1)=1e(1) = 1, so S=−1+1=0S = -1 + 1 = 0. Check: the values are real here, as the symmetry of these two points predicts.
  5. Compute the energy at the points. ∣S(0)∣2+∣S(12)∣2=4+0=4|S(0)|^2 + |S(\tfrac{1}{2})|^2 = 4 + 0 = 4.
  6. Compare with the bound. The large sieve says the energy is at most (N−1+δ−1)∑∣an∣2=(2−1+2)×2=6(N - 1 + \delta^{-1}) \sum |a_n|^2 = (2 - 1 + 2) \times 2 = 6. Check: 4≤64 \le 6, so the bound holds.
  7. Interpret. The sum is large at α=0\alpha = 0 and zero at the other point, and the bound limits how much the energy can gather. The bound is not tight here: the exact energy at these points, in the matrix form below, is 44.
00.20.40.60.8101234frequency alpha|S(alpha)| squared
  • energy |S(alpha)| squared
The energy of the two-coefficient sum as a function of frequency. The marked points are the two sample points of the walkthrough, with energies 4 and 0.

The math

Let e(x)=e2πixe(x) = e^{2\pi i x}. Let ana_n be complex numbers for the integers nn in a block M+1,…,M+NM+1, \dots, M+N, and write S(α)=∑nane(nα)S(\alpha) = \sum_{n} a_n e(n\alpha). Let ∥x∥\|x\| denote the distance from xx to the nearest integer, so ∥α−β∥\|\alpha - \beta\| measures the distance on the circle.

Definition: Large sieve inequality (analytic form)

Let δ>0\delta > 0, and let α1,…,αR\alpha_1, \dots, \alpha_R be points with ∥αr−αs∥≥δ\|\alpha_r - \alpha_s\| \ge \delta for r≠sr \ne s. Then

∑r=1R∣S(αr)∣2≤(N−1+1δ)∑n∣an∣2.\sum_{r=1}^{R} |S(\alpha_r)|^2 \le \left(N - 1 + \frac{1}{\delta}\right) \sum_{n} |a_n|^2.

The constant N−1+δ−1N - 1 + \delta^{-1} is the sharp form proved by Montgomery and Vaughan.

Step 3 in symbols: the matrix view

Let AA be the R×NR \times N matrix with entries Arn=e(nαr)A_{rn} = e(n\alpha_r). Then the vector of values (S(αr))r(S(\alpha_r))_r is AaA\mathbf{a}, where a\mathbf{a} is the vector of coefficients, and the energy is ∥Aa∥2\|A\mathbf{a}\|^2. The norm of AA is the largest stretch, so ∥Aa∥2≤∥A∥2∥a∥2\|A\mathbf{a}\|^2 \le \|A\|^2 \|\mathbf{a}\|^2. The inequality therefore says exactly that ∥A∥2≤N−1+δ−1\|A\|^2 \le N - 1 + \delta^{-1}.

For the walkthrough, A=(11−11)A = \begin{pmatrix} 1 & 1 \\ -1 & 1 \end{pmatrix}, with rows for α=0\alpha = 0 and α=12\alpha = \tfrac{1}{2}. Then A⊤A=2IA^{\top}A = 2I, so ∥A∥2=2\|A\|^2 = 2, and ∥Aa∥2=2×∥a∥2=2×2=4\|A\mathbf{a}\|^2 = 2 \times \|\mathbf{a}\|^2 = 2 \times 2 = 4, which matches step 5 of the walkthrough.

Step 4 in symbols: the Gram matrix of the points

The Gram matrix of the rows is AA∗AA^{*}, an R×RR \times R matrix whose (r,s)(r,s) entry is ∑ne(n(αr−αs))\sum_{n} e(n(\alpha_r - \alpha_s)). This is a shifted Dirichlet kernel: its diagonal entries are NN, and its off-diagonal entries are small when the points are spread out. The large sieve is the statement that the largest eigenvalue of this matrix is at most N−1+δ−1N - 1 + \delta^{-1}. The spacing condition is what keeps the off-diagonal entries small enough.

For the walkthrough, the off-diagonal entry is e(12)+e(1)=−1+1=0e(\tfrac{1}{2}) + e(1) = -1 + 1 = 0, so the Gram matrix is 2I2I with largest eigenvalue 22, the same value as ∥A∥2\|A\|^2.

Step 5 in symbols: the exact case

When the points are the NN equally spaced fractions r/Nr/N, orthogonality of exponentials gives equality up to a factor: ∑r=0N−1∣S(r/N)∣2=N∑n∣an∣2\sum_{r=0}^{N-1} |S(r/N)|^2 = N \sum_n |a_n|^2. The large sieve with δ=1/N\delta = 1/N gives 2N−12N - 1 in place of NN, so it loses at most a factor of about two in this case. Its strength is that the same bound holds for any well-spaced set of points, not only equally spaced ones.

Step 6 in symbols: the arithmetic form

Let N\mathcal{N} be a set of integers in [M+1,M+N][M+1, M+N]. For each prime pp, let ω(p)\omega(p) be the number of residue classes mod pp that contain no element of N\mathcal{N}. For any Q≥1Q \ge 1,

∣N∣≤N+Q2L,L=∑q≤Qμ2(q)∏p∣qω(p)p−ω(p).|\mathcal{N}| \le \frac{N + Q^2}{L}, \qquad L = \sum_{q \le Q} \mu^2(q) \prod_{p \mid q} \frac{\omega(p)}{p - \omega(p)}.

Here μ2(q)\mu^2(q) is 1 when qq is squarefree and 0 otherwise (see the Möbius function), and the product runs over the primes dividing qq. The arithmetic form follows from the analytic one by evaluating the sum at the fractions a/qa/q with q≤Qq \le Q. Distinct such fractions are at least 1/Q21/Q^2 apart, so δ−1=Q2\delta^{-1} = Q^2 and the N−1+δ−1N - 1 + \delta^{-1} term becomes N+Q2N + Q^2.

Worked examples

Example
1. Tiny: the bound for one pair of points

Use a1=a2=1a_1 = a_2 = 1, so N=2N = 2 and ∑∣an∣2=2\sum |a_n|^2 = 2, with points 00 and 12\tfrac{1}{2} at spacing δ=12\delta = \tfrac{1}{2}.

  1. Constant: N−1+δ−1=2−1+2=3N - 1 + \delta^{-1} = 2 - 1 + 2 = 3.
  2. Right-hand side: 3×2=63 \times 2 = 6.
  3. Left-hand side: ∣S(0)∣2+∣S(12)∣2=22+02=4|S(0)|^2 + |S(\tfrac{1}{2})|^2 = 2^2 + 0^2 = 4.
  4. Check: 4≤64 \le 6.
  5. Interpretation: a sum with two unit coefficients cannot pile up energy at two well-spaced frequencies beyond six times its coefficient energy, and here it manages only four.
Example
2. Standard: four coefficients at the fourth roots

Take a1=a2=a3=a4=1a_1 = a_2 = a_3 = a_4 = 1, so N=4N = 4 and ∑∣an∣2=4\sum |a_n|^2 = 4, and sample at α=0,14,12,34\alpha = 0, \tfrac{1}{4}, \tfrac{1}{2}, \tfrac{3}{4}, which are spaced δ=14\delta = \tfrac{1}{4} apart.

  1. At α=0\alpha = 0: S=1+1+1+1=4S = 1 + 1 + 1 + 1 = 4, so ∣S∣2=16|S|^2 = 16.
  2. At α=14\alpha = \tfrac{1}{4}: S=i−1−i+1=0S = i - 1 - i + 1 = 0, so ∣S∣2=0|S|^2 = 0.
  3. At α=12\alpha = \tfrac{1}{2}: S=−1+1−1+1=0S = -1 + 1 - 1 + 1 = 0, so ∣S∣2=0|S|^2 = 0.
  4. At α=34\alpha = \tfrac{3}{4}: S=−i−1+i+1=0S = -i - 1 + i + 1 = 0, so ∣S∣2=0|S|^2 = 0.
  5. Left-hand side: 1616. Right-hand side: (4−1+4)×4=28(4 - 1 + 4) \times 4 = 28.
  6. Check: 16≤2816 \le 28. In fact 16=N∑∣an∣216 = N \sum |a_n|^2, the exact orthogonality value, which lies below the bound by a factor of about 1.75.
  7. Interpretation: at the fourth roots the energy is NN times the coefficient energy, and the bound is within a factor of about two of it. The constant cannot be lowered much for every configuration of points.
Example
3. Realistic: a sieve on an interval of length 100

Let N\mathcal{N} be the integers in [1,100][1, 100] that are not divisible by 22, 33 or 55. For p=2,3,5p = 2, 3, 5, the sieve removes one residue class, so ω(2)=ω(3)=ω(5)=1\omega(2) = \omega(3) = \omega(5) = 1, and for all other primes ω(p)=0\omega(p) = 0 so they contribute nothing. Take Q=5Q = 5.

  1. The squarefree q≤5q \le 5 built only from 2,3,52, 3, 5 are q=1,2,3,5q = 1, 2, 3, 5.
  2. The factor for q=1q = 1 is 11. For q=2q = 2 it is ω(2)/(2−ω(2))=1/1=1\omega(2)/(2 - \omega(2)) = 1/1 = 1.
  3. For q=3q = 3 it is 1/(3−1)=1/21/(3 - 1) = 1/2. For q=5q = 5 it is 1/(5−1)=1/41/(5 - 1) = 1/4.
  4. So L=1+1+12+14=2.75L = 1 + 1 + \tfrac{1}{2} + \tfrac{1}{4} = 2.75.
  5. The bound is (100+52)/2.75=125/2.75≈45.5(100 + 5^2)/2.75 = 125/2.75 \approx 45.5, so at most 4545 integers survive.
  6. Interpretation: the exact count is 26, so the bound is valid and about 1.7 times the true count. The bound is useful because it works for any set with the same residue structure, not just this one.

Try it: with Q=3Q = 3 instead, what is the bound? Answer: the squarefree q≤3q \le 3 are 1,2,31, 2, 3, so L=1+1+12=2.5L = 1 + 1 + \tfrac{1}{2} = 2.5, and the bound is (100+9)/2.5=43.6(100 + 9)/2.5 = 43.6, so at most 4343 survive. The smaller QQ is better here, because Q2Q^2 grows faster than LL.

Common mistakes and tradeoffs

It is tempting to think the large sieve is a method for sieving. In fact it is an inequality about exponential sums. The arithmetic sieve bound is one application, obtained by choosing the points as fractions with small denominators.

It is tempting to think the bound is nearly tight for every set. In fact the constant can lose a factor of about two, as the fourth-roots example shows, and the bound is weak when the residue structure is simple. It is an upper bound only, and it cannot give exact counts or lower bounds.

It is tempting to think any points can be used. In fact the spacing δ\delta must be respected. Points closer together than δ\delta are not allowed, and if the spacing is small the constant δ−1\delta^{-1} becomes large and the bound weakens. In the arithmetic form, the spacing comes for free from the Farey fractions.

It is tempting to think larger QQ always gives a better bound. In fact LL grows with QQ but the penalty Q2Q^2 grows faster, so there is an optimum, often near the square root of the interval length. The Try-it example shows the bound can get worse as QQ grows past it.

When to use it. Use the large sieve when you have many residue-class conditions at once, when you need an upper bound that holds uniformly, or when you want to average over many moduli, as in the Bombieri–Vinogradov theorem. It is the tool of choice for averaging over moduli.

When not to use it. When you need an exact count or a lower bound, use something else. When you have only one modulus or a few small primes, the simpler Selberg sieve often gives a comparable bound with less machinery.

ToolOutputStrengthWeakness
Large sieveupper bound on many moduli at onceaverages well over moduliconstants can be lossy
Selberg sieveupper bound for one sifted setclean, optimised weightsweaker for averages over moduli

History

The large sieve grew out of Yuri Linnik's work in the 1940s on additive problems involving primes.

In the 1960s the idea was developed in several directions. Enrico Bombieri gave a version in 1965 that led to the Bombieri–Vinogradov theorem, and Hugh Montgomery turned it into the arithmetic form used for sieving.

In 1973 Montgomery and Vaughan proved the sharp constant N−1+δ−1N - 1 + \delta^{-1} in the analytic form, which made the inequality a clean tool.

It caught on because one inequality bounds many moduli at once, which the older sieve methods could not do. That made it the standard tool for averaging over arithmetic progressions and for zero-density estimates.

Recap

  • The analytic large sieve says that the energy of an exponential sum at well-spaced points is at most (N−1+δ−1)(N - 1 + \delta^{-1}) times the coefficient energy.
  • In matrix terms this is a bound on the norm of a matrix of exponentials: the square of that norm is the largest eigenvalue of its Gram matrix.
  • The arithmetic form bounds how many integers survive a sieve, with LL summing a weight over squarefree moduli up to QQ and a penalty Q2Q^2.
  • Read next: Bombieri-Vinogradov Theorem for the average-over-moduli application, and Selberg Sieve for the other standard upper-bound sieve.

Check yourself

QuestionRecall: what are the two quantities that the analytic large sieve compares, and what is the constant in the bound?Show answer

It compares the energy ∑r∣S(αr)∣2\sum_r |S(\alpha_r)|^2 of the exponential sum at well-spaced points with the coefficient energy ∑n∣an∣2\sum_n |a_n|^2. The constant is N−1+δ−1N - 1 + \delta^{-1}, where NN is the number of coefficients and δ\delta is the minimum spacing between the points on the circle.

QuestionComputation: take a1=1a_1 = 1, a2=−1a_2 = -1, N=2N = 2, and points α=0\alpha = 0 and α=12\alpha = \tfrac{1}{2} with spacing δ=12\delta = \tfrac{1}{2}. What is the energy at the points, and what is the bound?Show answer

At α=0\alpha = 0, S=1−1=0S = 1 - 1 = 0. At α=12\alpha = \tfrac{1}{2}, S=e(12)−e(1)=−1−1=−2S = e(\tfrac{1}{2}) - e(1) = -1 - 1 = -2, so ∣S∣2=4|S|^2 = 4. The energy is 0+4=40 + 4 = 4. The coefficient energy is 22, and the bound is (2−1+2)×2=6(2 - 1 + 2) \times 2 = 6. So 4≤64 \le 6.

QuestionWhy: why does the spacing of the points matter in the bound, and what happens to the bound if two points are very close?Show answer

The spacing δ\delta enters through δ−1\delta^{-1}. Points that are close have nearly equal values of SS, so their energies add up, and the bound must allow for that. If two points are closer than δ\delta, the constant δ−1\delta^{-1} grows, so the bound weakens. The inequality is valid only when the minimum spacing is at least δ\delta, and it becomes useless as δ\delta shrinks to zero.

QuestionApplied: you want to sift the integers in an interval of length NN by a few small primes, and you can choose QQ. What trade-off governs the choice, and what would you check first?Show answer

The bound is (N+Q2)/L(N + Q^2)/L. Increasing QQ adds more squarefree moduli to LL, which helps, but it also increases the penalty Q2Q^2. The best QQ is often close to the square root of NN, and it should be chosen by evaluating the bound for several values. Check first that every ω(p)\omega(p) is correct, because an overcounted set of avoided classes makes LL too large and the bound invalid.

Sources