# Complex integral.

1. Aug 22, 2006

### lokofer

It's quite a "strange" thing..why people have so many difficulties with dealing with integrals of the form:

$$\int _{c-i\infty}^{c+i\infty}dsf(s)e^{st}=I(t)$$ ?

You can always make the change of variable s=c+ix so you get:

$$\int _{-\infty}^{+\infty}dxf(c+ix)e^{ixt}=I(t)e^{-ict}$$ (2)

And (2) is just simply an improper integral that can be evaluated approximately by some quadrature formula..... :approve :

Last edited: Aug 22, 2006
2. Aug 22, 2006

### shmoe

No one ever thought to try to numerically approximate an integral like that before

How about this, go find someone who had "difficulties" with an integral like that and show them how your numeric approximation will solve their problem. Go on, actually do an example (have you heard me say this before?)

3. Aug 22, 2006

### saltydog

I think you're missing an i: If $s=c+ix$ then $ds=idx$. Making this substitution, I get:

$$I(t)=ie^{ct}\int_{-\infty}^{\infty}e^{ixt}f(c+ix)dx$$

Evaluating these integrals numerically can, I think, "help" you arrive at the solution. Take for example, the expression:

$$\mathcal{L}^{-1}\left\{\frac{1}{s-k}\right\}=\frac{1}{2\pi i}\int_{c-i\infty}^{c+i\infty}\frac{e^{st}}{s-k}ds$$

This could be evaluated via Residue Integration about an expanding half-circle contour by splitting up the contour into two integrals.

I suspect the integral about the curved portion of the contour tends to zero as the radius increases without bound. Therefore, any calculations I do to justify this suspicion, unless I'm absolutely sure (almost never), I would estimate numerically. If the numerical approximation is not tending to zero, there is a good chance I made a mistake in the analysis and I would go back and check it. Works for me.

4. Aug 25, 2006

### lokofer

But what's the problem doing the integral:

$$\int_{-\infty}^{\infty}dxe^{ixt}f(c+ix)$$ ??

This is just the "Fourier transform" plus the function exp(ct) of the function f(c+ix) "Shmoe" i have "Mathematica 5.0 " (cracked) if you tell me what i must introduce to evaluate the integral, I don't mind performing it Numerically......or if you indicates me a webpage to evaluate integrals by Numerical Methods

5. Aug 25, 2006

### TD

It puzzles me why you would want to explicitly mention that it is a cracked version.
It's not really something to be proud of (:grumpy:), nor is it of any relevance

Sorry for the off topic

6. Aug 25, 2006

### shmoe

I wouldn't know how to do anything in mathematica. I wasn't willing to either pay for or steal it.

Any of these integrals can be approximated as accurately as you like given enough time and resources, assuming you can determine f with the required accuracy and you have some way to estimate the rate of convergence. This doesn't solve a problem like determining the asymptotic behavior of psi(x) for example as you are only able to approximate these integrals for one "x" at a time.

You've read the Odlyzko/Lagarias paper on calculating pi(x) via analytic techniques by now right? It takes some work to get around the slow convergence of the relevant integral, they have to worry about approximating zeta quickly, etc. I'd suggest you read their paper very carefully, it will be able to teach you much more about this sort of thing than I ever will (Odlyzko=king of computations, shmoe=boob).

7. Aug 25, 2006

### lokofer

I really can't believe there's NO method to evaluate for big t (t-->oo) integrals of the form:

$$\int_{-\infty}^{\infty}dxf(c+ix)e^{ixt}$$ when the argument of the t is big t>>1, i think this has to deal with "Cauchy's Stationary phase method" but i don't know how to apply this to the Fourier transform.

- by the way isn't a reliable and fast method to compute Fourier transforms? (FFT Algorithm)

8. Aug 25, 2006

### shmoe

Of course there are ways to work with an integral like that as t->infinity, I did not say there wasn't. I said calculating one of these integrals for a given value of t (or as many values of t as you have time to do) says nothing at all about the behavior as t->infinity. How you will deal with an integral like this depends very much on f.

What can I say, I'm assuming that you are hoping to apply this in number theory land and I was just seeing if you had an example of where someone had 'difficulty' with an integral like this which could be dealt with by a numerical approximation and they had overlooked this possibility. I guess it's too much to ask you to justify any of your claims in your OP?

The FFT is for the discrete fourier transform, no? I don't see how this will help?

9. Aug 25, 2006

### lokofer

Of course my intention..was (and i'm not the first thinking this..) is to apply that to the Mertens function given by the integral:(omitting some constants and the exp(ct) )

$$\int_{-\infty}^{\infty} dx \frac{e^{ixt}}{\zeta(c+ix)}$$

to evaluate an asymptotic behaviour of $$M(e^t )$$ (and its relation to RH) and also although is proved before to give an asymptotic behaviour of $$\psi (e^t)$$ to obtain a fast proof of PNT

10. Aug 25, 2006

### saltydog

I suspect Mathematica won't handle the integral:

$$\int_{-\infty}^{\infty} dx \frac{e^{ixt}}{\zeta(c+ix)}$$

easily because of its highly oscillatory nature as t gets bigger due to the $e^{itx}$ component. You can change the various parameters to the NIntegrate function such as MaxRecursion, WorkingPrecision, but that slows the calculations down significantly. For example, the code:

Code (Text):
NIntegrate[e^{ixt}/Zeta[c+ix]},{x,-10,10},
WorkingPrecision->50,MaxRecursion->50]

with t=50 and c=2 took about 3 minutes at 2.2 GHz. Omitting those parameters and Mathematica reports "integration converging too slowly"
Better way I'd like to know.

Last edited: Aug 25, 2006
11. Aug 26, 2006

### saltydog

Thanks to Hurkly, I can now ask my question: The integral above speaks of this:

$$\mathcal{L}^{-1}\left\{\frac{1}{\zeta(s)}\right\}=\frac{1}{2\pi i}\int_{c-i\infty}^{c+i\infty}\frac{e^{st}}{\zeta(s)}ds$$

I think this could be solved via residue integration by taking an expanding square contour (avoiding the zeros of zeta). I wonder if the integral over the remainder of the contour goes to zero, that is:

$$\lim_{R\to\infty}\;\int \! \! \! \! \! \! \square \frac{e^{st}}{\zeta(s)}ds=\; 2\pi i \sum_{n=1}^{\infty} \mathop\text{Res}\limits_{z=z_i} \left\{\frac{e^{st}}{\zeta(s)}\right\} \substack{\displaystyle{?}\\ \displaystyle{=}}\; \int_{c-i\infty}^{c+i\infty}\frac{e^{st}}{\zeta(s)}ds\;$$

Be interesting to work on.

Last edited: Aug 26, 2006
12. Aug 26, 2006

### shmoe

Have you stopped to ask if this integral is even convergent?

It's doesn't give the summatory function for the mobius function in any case, there's a 1/s missing, look up Perron's formula.

13. Aug 26, 2006

### lokofer

Residue integration is known however you can't use it to compute Mertens function...by residue theorem (and assuming you only have roots with multiplicity one) then:

$$M(x)= \sum_{\rho} \frac{x^{\rho}}{\zeta( \rho)}-2+\sum_{n>0} A(n)(-1)^{n-1}x^{-2n}$$ i don't remember what A(n) was although it included the functions n!, n and $$\zeta (1+2n)$$ and a constant involving pi=3.14159.....

EDIT: Sorry "Shmoe" i forgot the s factor inside the integral ..i apologize.. for it.

By the way..is not a similar to "Euler's sum formula so...

$$\int_{-\infty}^{\infty}dx f(x) = \sum_{n=-\infty}^{\infty}f(n)+ R$$

Where "R" is a rest that can be exact or approximated..in a similar form ot the "Euler-Mc Laurin" sum formula...

Last edited: Aug 26, 2006
14. Aug 26, 2006

### saltydog

15. Aug 26, 2006

### saltydog

Ok Lokofer. Thanks. I'm not familiar with Mertens functions and not well explained in Mathworld. Will be something for me additionally to look into this fall in class.

16. Aug 26, 2006

### saltydog

Alright guys, think I have a basic outline of it:

$$\frac{1}{\zeta(s)}=\sum_{n=1}^{\infty}\frac{\mu(n)}{n^s}=\sum_{n=1}^{\infty}\mu(n)e^{-ln(n)s }$$

Therefore, by Perron's formula:

$$\sum_{ln(n)\leq x}^{'}\mu(n)=\frac{1}{2\pi i}\int_{c-i\infty}^{c+i\infty}\frac{1}{\zeta(s)}\frac{e^{sx}}{s}ds$$

Letting $x=ln(u)$ this then becomes:

$$\sum_{n\leq u}^{'}\mu(n)=\frac{1}{2\pi i}\int_{c-i\infty}^{c+i\infty}\frac{1}{\zeta(s)}\frac{u^s}{s}ds$$

And Mertens function is defined as:

$$M(x)=\sum_{n\leq x} \mu(n)$$

I assume the prime above the summation acts similarly as with Chebyshev's $\psi(x)$

Last edited: Aug 26, 2006
17. Aug 26, 2006

### shmoe

That doesn't show the limit is not zero, remember O is just an upper bound. You do know $$\zeta(s)=O(1)$$ on this line (and any right half plane to the right of s=1), which does tell you you don't converge to zero.

However! Not converging to zero is not enough to conclude your intergral is divergent! Consider the limit of the Fresnel integrals:

$$\int_0^\infty \cos(x^2)dx=\sqrt{\pi/8}$$

it's oscillations grow faster and faster, and it does converge.

We don't have that here. The exponential is oscillating at a constant speed and the real part of 1/zeta is bounded away from zero on our line (take c=4 say, this will be easy to prove, the real part of 1/zeta will be 1+ the rest of the terms in the sum, which is bounded trivially by zeta(4)-1=0.082...). This means you can find intervals as high up as you like where the integral will be larger than some fixed constant.

That's the basics in your last post saltydog. M(x) is kinda like a random walk, but not random of course. A good exercise, if you haven't already seen it, is to assume a bouund like M(x)=O(x^(1/2+e)) is true for any e>0 and use this to extend the region of convergence of the dirichlet series for 1/zeta into the critical strip. The other direction is also possible, but less straightforward.

The expression lokofer gave for M(x) has some problems, this lives on the mathworld page I believe if anyone is interested.

Last edited: Aug 26, 2006
18. Aug 27, 2006

### saltydog

You mean:

$$M_0(x)=\sum_{\rho}\frac{x^{\rho}} {\rho\zeta'(\rho)}-2+\sum_{n=1}^{\infty}\frac{2\pi}{x}^{2n} \frac{(-1)^{n-1}}{(2n)!n\zeta(2n+1)}$$

I assume that's from residue integration. First term is from the complex zeros, second term is residue at 0, (residue at s=1 is zero), and the remaining term comes from the trivial zeros (need to check that last one though). I suspect the sum over the complex zeros is done symmetrically like the expression for [itex]\psi_0(x)[/tex].

Therefore let me hypothesize (haven't checked it yet):

$$\lim_{R\to\infty}\;\frac{1}{2\pi i}\int \! \! \! \! \! \! \square \frac{1}{\zeta(s)}\frac{e^{sx}}{s}ds=\; \sum_{n=1}^{\infty} \mathop\text{Res}\limits_{s=s_n} \left\{\frac{1}{\zeta(s)}\frac{e^{st}}{s}\right\}\; \substack{\displaystyle{?}\\ \displaystyle{=}}\; \frac{1}{2\pi i} \int_{c-i\infty}^{c+i\infty}\frac{1}{\zeta(s)}\frac{e^{st}}{s}ds\; =M_0(x)$$

In this case, I would asssume the expansion of the contour is done in discrete "jumps" so as to assure an upper bound on the integrand as it passes across the critial line as is done for [itex]\psi_0(x)[/tex].

The contribution from the remaining sides of the contour approach zero as R grows without bounds (need to verify that though).

You know Lokofer . . . . you missed an s up there dude.

Anyway guys, I need some projects to work on this fall because I'm taking Complex Analysis. This looks very interesting to me as well. Thanks.

Last edited: Aug 27, 2006