๐Ÿงฎ Brain Teaser

The Weierstrass M-Test at Its Limits

Consider the series of functions on [0,1][0, 1]:

f(x)=โˆ‘n=1โˆž(โˆ’1)nn+x.f(x) = \sum_{n=1}^{\infty} \frac{(-1)^n}{n + x}.

(a) Prove that f(x)f(x) converges uniformly on [0,1][0,1].

(b) Prove that ff is continuous on [0,1][0,1].

(c) Now observe: the Weierstrass M-test fails for this series (there is no summable dominating sequence). Yet we have uniform convergence. Why?

uniform convergencealternating seriesWeierstrass M-testreal analysiscontinuity

Answer: Alternating Series Beyond the M-Test

Key Idea / Intuition

The Weierstrass M-test is a sufficient condition for uniform convergence, not a necessary one. Alternating series enjoy a much more delicate cancellation mechanism โ€” adjacent terms nearly cancel, and the error after NN terms is bounded by the size of the next term, which can be made uniformly small even when the individual terms are not summable. This example cleanly separates the concepts of "absolute uniform convergence" from "uniform convergence via cancellation."


Formal Proof / Solution

Part (a): Uniform Convergence via the Alternating Series Test (Uniform Version)

Write the partial sums SN(x)=โˆ‘n=1N(โˆ’1)nn+xS_N(x) = \sum_{n=1}^N \frac{(-1)^n}{n+x}.

The standard Alternating Series Estimation says: if an(x)a_n(x) is decreasing to 00 for each xx and the signs alternate, then

โˆฃf(x)โˆ’SN(x)โˆฃโ‰คaN+1(x).|f(x) - S_N(x)| \leq a_{N+1}(x).

Here an(x)=1n+xa_n(x) = \frac{1}{n+x}. For each fixed xโˆˆ[0,1]x \in [0,1] this is indeed decreasing in nn and tends to 00. Moreover,

supโกxโˆˆ[0,1]aN+1(x)=supโกxโˆˆ[0,1]1N+1+x=1N+1โ†’Nโ†’โˆž0.\sup_{x \in [0,1]} a_{N+1}(x) = \sup_{x \in [0,1]} \frac{1}{N+1+x} = \frac{1}{N+1} \xrightarrow{N \to \infty} 0.

Therefore

supโกxโˆˆ[0,1]โˆฃf(x)โˆ’SN(x)โˆฃโ‰ค1N+1โ†’0,\sup_{x \in [0,1]} |f(x) - S_N(x)| \leq \frac{1}{N+1} \to 0,

which is uniform convergence.


Part (b): Continuity of ff

Each partial sum SN(x)=โˆ‘n=1N(โˆ’1)nn+xS_N(x) = \sum_{n=1}^N \frac{(-1)^n}{n+x} is a finite sum of continuous functions on [0,1][0,1], hence continuous. Since SNโ†’fS_N \to f uniformly, and the uniform limit of continuous functions is continuous, ff is continuous on [0,1][0,1].


Part (c): Why the Weierstrass M-Test Fails Here (and Why That's Fine)

The Weierstrass M-test requires finding constants MnM_n with โˆฃ(โˆ’1)nn+xโˆฃโ‰คMn\left|\frac{(-1)^n}{n+x}\right| \leq M_n for all xx and โˆ‘Mn<โˆž\sum M_n < \infty.

The natural bound is Mn=1n+0=1nM_n = \frac{1}{n+0} = \frac{1}{n}, but โˆ‘1n=โˆž\sum \frac{1}{n} = \infty. Any other bound MnM_n would have to satisfy Mnโ‰ฅ1n+1M_n \geq \frac{1}{n+1}, so no summable dominating sequence exists.

But the M-test is only sufficient, not necessary. It tests for absolute uniform convergence:

M-testย succeedsโ€…โ€ŠโŸบโ€…โ€Šโˆ‘nsupโกxโˆฃfn(x)โˆฃ<โˆž.\text{M-test succeeds} \iff \sum_n \sup_x |f_n(x)| < \infty.

Our series converges uniformly by cancellation between consecutive terms, not by absolute dominance. The correct tool is the Dirichlet/Abel test for uniform convergence (or the uniform alternating series test used above).

Moral: โˆ‘fn\sum f_n can converge uniformly even when โˆ‘โˆฃfnโˆฃ\sum |f_n| diverges uniformly. Cancellation is a genuine and powerful phenomenon in analysis, and the M-test is too blunt an instrument to see it.


Bonus Remark

In fact f(x)f(x) has a closed form. Writing the series as a difference of harmonic series one can show

f(x)=โˆ‘n=1โˆž(โˆ’1)nn+x=12[ฯˆโ€‰โฃ(x+22)โˆ’ฯˆโ€‰โฃ(x+12)],f(x) = \sum_{n=1}^\infty \frac{(-1)^n}{n+x} = \frac{1}{2}\left[\psi\!\left(\frac{x+2}{2}\right) - \psi\!\left(\frac{x+1}{2}\right)\right],

where ฯˆ\psi is the digamma function โ€” confirming continuity and giving a rich connection to special functions.