Peaks of Sinc
Yesterday I wrote two posts about finding the peaks of the sinc function. Both focused on numerical methods, the first using a contraction mapping and the second using Newton's method. This post will focus on the locations of the peaks rather than ways of computing them.
The first post included this discussion of the peak locations.
The peaks of sin(x)/x are approximately at the same positions as sin(x), and so we use (2n + 1/2) as our initial guess. In fact, all our peaks will be a little to the left of the corresponding peak in the sine function because dividing by x pulls the peak to the left. The larger x is, the less it pulls the root over.
This post will refine the observation above. The paragraph above suggests that for large n, the nth peak is located at approximately (2n + 1/2). This is a zeroth order asymptotic approximation. Here we will give a first order asymptotic approximation.
For a fixed positive n, let
= (2n + 1/2)
and let
x = +
be the location of the nth peak. We will improve or approximation of the location of x by estimating .
As described in the first post in this series, setting the derivative of the sinc function to zero says x satisfies
x cos x - sin x = 0.
Therefore
( + ) cos( + ) = sin( + )
Applying the sum-angle identities for sine and cosine shows
( + ) (cos cos - sin sin ) = sin cos + cos sin
Now sin = 1 and cos = 0, so
-( + ) sin = cos .
or
tan = -1/( + ).
So far our calculations are exact. You could, for example, solve the equation above for using a numerical method. But now we're going to make a couple very simple approximations [1]. On the left, we will approximate tan with . On the right, we will approximate with 0. This gives us
-1/ = -1/(2n + 1/2).
This says the nth peak is located at approximately
- 1/
where = (2n + 1/2). This refines the earlier statement our peaks will be a little to the left of the corresponding peak in the sine function." As n gets larger, the term we subtract off gets smaller. This makes the statement above The larger x is, the less it pulls the root over" more precise.
Now let's see visually how well our approximation works. The graph below plots the error in approximating the nth peak location by and by - 1/.
Note the log scale. The error in approximating the location of the 10th peak by 20.5 is between 0.1 and 0.01, and the error in approximating the location by 20.5 - 1/20.5 is approximately 0.000001.
[1] As pointed out in the comments, you could a slightly better approximation by not being so simple. Instead of approximating 1/( + ) by 1/ you could use 1/ - /^2 and solve for .
The post Peaks of Sinc first appeared on John D. Cook.