Loading [MathJax]/jax/output/HTML-CSS/jax.js

Wednesday, June 12, 2013

another experiment

(This post is an experiment in two senses. First, to test embedding graphs from the Desmos calculator into the post. Second, to show the results of a mathematical experiment carried out on Desmos and Twitter last night.)

In Spivak’s classic textbook Calculus, one exercise asks the reader to show that each of the following (complex) power series has radius of convergence 1: n=1znn2,n=1znn,n=1zn. (I’ll leave that task to you. Hint: ratio test.) Another exercise then says, “Prove that the first series converges everywhere on the unit circle; that the third series converges nowhere on the unit circle; and that the second series converges for at least one point on the unit circle and diverges for at least one point on the unit circle.” Points where a series converges always raise a new problem: can we tell what value it converges to? Generally, that problem is hard. But at a point where a series is known to diverge, the story’s over, right? Well, no. There are many ways for a series to diverge.

I want to focus here on the behavior of zn when |z|=1. The series diverges, of course, because the size of every term is 1. But what do the partial sums look like? What do their real and imaginary parts look like? My thoughts on this began last night when I plotted the graph of 50n=1sinnx:

(Click on the graph to go to an interactive version.) To my surprise, there appeared to be well-defined curves bounding the top and bottom of this graph. To be more precise, the points corresponding to critical values (or local extreme values) of the function lie on a pair of analytic curves. After some playing around, I found these curves to be the graphs of 12tanx4 and 12cotx4 (shown in blue and green, respectively, below).
I sent out a tweet about my discovery: I went investigating and found some hints that this behavior might be related to the Fourier series of the cotangent. Meanwhile, my tweet generated some interest, including this response: Also, later in the evening, Desmos took my initial graph and augmented it: Paul’s on the right track, which brings us back to the Spivak exercise I mentioned earlier.

To get a point of the unit circle, write z=eix, with xR. Then the summation formula for partial geometric series yields 1+eix++eimx=1ei(m+1)x1eix. We can take imaginary parts of both sides and use some trig identities to get sinx++sinmx=cosx2cos(m+12)x2sinx2. (Note that Desmos included this latter formula in their augmented form of the graph. See also this nice derivation.) On the other hand, the tangent half-angle formulas give us tanx4=cosx21sinx2andcotx4=cosx2+1sinx2. When sinx2 is positive (for example, when 0<x<2π), we have 12tanx4sinx++sinmx12cotx4, with equality on the left whenever cos(m+12)x=1 and equality on the right whenever cos(m+12)x=1. The direction of the inequalities is reversed when sinx2<0, but the rest of the analysis remains the same. This is the desired result.

Thus the imaginary parts of the partial sums of einx are always contained between 12tanx4 and 12cotx4. To complete the picture, let's look at the real parts. Here is the graph of 50n=0cosnx:

Using similar arguments as before, we can show that the value of mn=0cosnx always lies between 1212cscx2 and 12+12cscx2.

Therefore, even though the series zn diverges whenever |z|=1, the real and imaginary parts of its partial sums remain tightly constrained by values that depend analytically on the argument of z (unless z=1, i.e., its argument is a multiple of 2π, in which case the series is just 1+1+1+).

Coda: The real and imaginary parts of znn2 and znn also look like Fourier series, no? Here, for instance, are the graphs of 100n=1cosnxn (left) and 100n=1sinnxn (right):

In particular, it looks like znn diverges only when z=1 (where it becomes the harmonic series). Can you find the functions to which its real and imaginary parts converge away from multiples of 2π? Click on the graphs and try!

No comments: