🧮 Brain Teaser

The Weierstrass M-Test and a Tricky Series

Define the function

f(x)=∑n=1∞sin⁡(n2x)n2f(x) = \sum_{n=1}^{\infty} \frac{\sin(n^2 x)}{n^2}

(a) Prove that ff is continuous on R\mathbb{R}.

(b) Prove that ff is differentiable nowhere.

Wait — actually, part (b) is false! The series ∑sin⁡(n2x)n2\sum \frac{\sin(n^2 x)}{n^2} is differentiable (in fact C∞C^\infty) everywhere.

Here is the real question:

True or False, and prove it: The function g(x)=∑n=1∞sin⁡(n2x)n1/2g(x) = \sum_{n=1}^{\infty} \frac{\sin(n^2 x)}{n^{1/2}} is continuous on R\mathbb{R}.

And the follow-up:

Can you construct a series ∑ansin⁡(n2x)\sum a_n \sin(n^2 x) that is continuous but not differentiable anywhere? What is the threshold on the decay rate of ana_n?

Focus on: Is gg well-defined and continuous? Prove your answer carefully.

uniform convergenceDirichlet testAbel summationWeierstrass functioncontinuity

Answer: Weierstrass Series: Continuity via Abel Summation

Key Idea / Intuition

The key question is whether the series converges uniformly. The Weierstrass M-test says: if ∣ansin⁡(n2x)∣≤∣an∣|a_n \sin(n^2 x)| \leq |a_n| and ∑∣an∣<∞\sum |a_n| < \infty, then the series converges uniformly, hence the limit is continuous. For g(x)g(x), the coefficients are an=n−1/2a_n = n^{-1/2}, and ∑n−1/2\sum n^{-1/2} diverges. So the M-test fails. But failing the M-test doesn't immediately mean gg is discontinuous or ill-defined — we need to think more carefully about pointwise convergence first.

The punchline: g(x)=∑n−1/2sin⁡(n2x)g(x) = \sum n^{-1/2} \sin(n^2 x) is a Weierstrass-type function — it converges conditionally for each fixed xx (by Dirichlet's test applied to partial sums of sin⁡(n2x)\sin(n^2 x)), but the convergence is not uniform, and in fact gg is continuous but nowhere differentiable — a genuine Weierstrass-type example.

Below we focus on the precise claim the question asks: gg is well-defined and continuous.


Formal Proof / Solution

Step 1: Pointwise convergence via Dirichlet's test

For fixed xx not a multiple of 2π2\pi, the partial sums SN(x)=∑n=1Nsin⁡(n2x)S_N(x) = \sum_{n=1}^N \sin(n^2 x) are bounded (this follows from the fact that ein2xe^{in^2 x} has bounded partial sums when x/πx/\pi is irrational, and can be checked directly for rational multiples of π\pi).

More precisely, for any fixed xx, one can show (by geometric series / exponential sum estimates) that

∣∑n=MNsin⁡(n2x)∣≤C(x)\left|\sum_{n=M}^{N} \sin(n^2 x)\right| \leq C(x)

for some constant depending on xx.

By Dirichlet's test for series: if ∑n=1Nbn\sum_{n=1}^N b_n has bounded partial sums and an↘0a_n \searrow 0 monotonically, then ∑anbn\sum a_n b_n converges. Here an=n−1/2↘0a_n = n^{-1/2} \searrow 0 and bn=sin⁡(n2x)b_n = \sin(n^2 x). So g(x)g(x) converges pointwise for all xx.

Step 2: Uniform convergence on compact sets (and continuity)

To show continuity, we use a more refined tool: Abel's summation (summation by parts).

Write BN(x)=∑n=1Nsin⁡(n2x)B_N(x) = \sum_{n=1}^N \sin(n^2 x). The Weierstrass-type estimate gives:

∣BN(x)∣≤C∣sin⁡(x/2)∣for x≢0(mod2π).|B_N(x)| \leq \frac{C}{|\sin(x/2)|} \quad \text{for } x \not\equiv 0 \pmod{2\pi}.

Actually, let us instead invoke the cleaner uniform version. The key estimate is:

For any δ>0\delta > 0, on [δ,2π−δ][\delta, 2\pi - \delta], the partial sums ∑n=1Nsin⁡(n2x)\sum_{n=1}^N \sin(n^2 x) are uniformly bounded by a constant C(δ)C(\delta).

Using Abel summation:

∑n=MNsin⁡(n2x)n1/2=∑n=MN−1Bn(x)(1n1/2−1(n+1)1/2)+BN(x)N1/2−BM−1(x)M1/2\sum_{n=M}^{N} \frac{\sin(n^2 x)}{n^{1/2}} = \sum_{n=M}^{N-1} B_n(x)\left(\frac{1}{n^{1/2}} - \frac{1}{(n+1)^{1/2}}\right) + \frac{B_N(x)}{N^{1/2}} - \frac{B_{M-1}(x)}{M^{1/2}}

where Bn(x)=∑k=1nsin⁡(k2x)B_n(x) = \sum_{k=1}^n \sin(k^2 x) are the partial sums of the bk=sin⁡(k2x)b_k = \sin(k^2 x) series.

Since ∣Bn(x)∣≤C(δ)|B_n(x)| \leq C(\delta) uniformly on [δ,2π−δ][\delta, 2\pi-\delta], and

1n1/2−1(n+1)1/2∼12n−3/2,\frac{1}{n^{1/2}} - \frac{1}{(n+1)^{1/2}} \sim \frac{1}{2} n^{-3/2},

we get

∣∑n=MNsin⁡(n2x)n1/2∣≤C(δ)(∑n=M∞12n−3/2+1M1/2+1(M−1)1/2)→0 as M→∞,\left|\sum_{n=M}^{N} \frac{\sin(n^2 x)}{n^{1/2}}\right| \leq C(\delta)\left(\sum_{n=M}^{\infty} \frac{1}{2}n^{-3/2} + \frac{1}{M^{1/2}} + \frac{1}{(M-1)^{1/2}}\right) \to 0 \text{ as } M\to\infty,

uniformly on [δ,2π−δ][\delta, 2\pi - \delta].

This means the series converges uniformly on compact subsets of (0,2π)(0, 2\pi) (and by periodicity, on all of R\mathbb{R}). Since each partial sum is continuous, and the convergence is uniform, gg is continuous.

Step 3: The threshold

The general Weierstrass-type function ∑n−αsin⁡(n2x)\sum n^{-\alpha} \sin(n^2 x):

  • α>1\alpha > 1: M-test applies, uniformly convergent, C∞C^\infty.
  • 12<α≤1\frac{1}{2} < \alpha \leq 1: Converges uniformly (M-test partially), continuous.
  • 0<α≤120 < \alpha \leq \frac{1}{2}: Converges conditionally (Dirichlet), continuous but nowhere differentiable — a Weierstrass phenomenon.

Our gg has α=1/2\alpha = 1/2, which sits exactly at the boundary of the nowhere-differentiable regime.

Summary

g(x)=∑n=1∞sin⁡(n2x)n1/2 is well-defined and continuous on R.\boxed{g(x) = \sum_{n=1}^{\infty} \frac{\sin(n^2 x)}{n^{1/2}} \text{ is well-defined and continuous on } \mathbb{R}.}

The proof uses Dirichlet's test for pointwise convergence and Abel summation + uniform boundedness of partial sums of sin⁡(n2x)\sin(n^2 x) to upgrade to uniform convergence on compact sets.

Type: analysisEdit on GitHub ↗