Complex contour integral, which one do I use?

In summary, you would need to use the keyhole contour around the branch points \pm a enclosed inside a larger closed contour which includes the Bromwich path to perform the integral.
  • #1
hunt_mat
Homework Helper
1,782
32
I want to perform the following integral which comes from inverting a Laplace transform:
[tex]
\lim_{R\rightarrow\infty}\int_{\sigma -Ri}^{\sigma +Ri}\frac{e^{sx}}{\sqrt{s^{2}-a^{2}}}ds
[/tex]
Would it be some kind of keyhole contour?

Mat
 
Physics news on Phys.org
  • #2
You need a semi-circle where the diameter is on the right (from your perspective) of the poles [tex]\pm a[/tex]. That's easier to work with.
 
  • #3
I am aware of the Bromwhich contour for the Laplace transform. Do I need to cut to disks out at [itex]\pm a[/itex] to make a double keyhole if you like?

Also if a is complex do I need to do the same thing? What about a slightly function?
[tex]
\lim_{R\rightarrow\infty}\int_{\sigma -Ri}^{\sigma +Ri}\frac{e^{sx}}{(s-b)\sqrt{s^{2}-a^{2}}}ds
[/tex]
where b is real. Do I need the keyhole contour again?
 
  • #4
This is the contour that you would usually use if there are any singularities on the real line but what is you singularities move? I have a value which moves from being completely real (hence the need for a keyhole contour shown to one being complex and I can just take a semi-circle.

Suggestions?

Mat
 

Attachments

  • contour.jpg
    contour.jpg
    2.8 KB · Views: 803
  • #6
I don't have this book. I am not going to buy this book either, our library does not have this book.

Care to describe the contour?
 
  • #7
It doesn't matter if the pole is real or complex. You just move the location of the keyhole to circumvent the value. If there are more poles, you simple include more keyholes.

I included the link because the parts you are interested in is free to view in Google Books.
 
  • #8
It's just showing me the cover of the book and I can't see inside the actual book.

Surely if [itex]a[/itex] is complex then then I don't need all this fuss about a keyhole contour, I can just use a semi-circle.
 
  • #9
I have done another contour which I think it should be, is this more like it?
 

Attachments

  • contour3.jpg
    contour3.jpg
    3.8 KB · Views: 598
  • #10
hunt_mat said:
I want to perform the following integral which comes from inverting a Laplace transform:
[tex]
\lim_{R\rightarrow\infty}\int_{\sigma -Ri}^{\sigma +Ri}\frac{e^{sx}}{\sqrt{s^2-a^{2}}}ds
[/tex]
Would it be some kind of keyhole contour?

Mat

I believe direct contour integration is going to be tough. How about a different approach? Solve an easy one, get the answer (via Mathematica), then justify that answer. Then generalize it to arbitrary values of the parameter. Ok, let me try without helping you too much. Say:

[tex]\mathcal{L}^{-1}\left\{\frac{1}{\sqrt{s^2-1}}\right\}=\text{BesselJ[0,ix]}[/tex]

Now, we know:

[tex]\text{BesselJ[0,ix]}=\frac{1}{2\pi i}\oint{e^{ix/2(t-1/t)}1/t dt}[/tex]

So, if you're interested, can you come up with a suitable change of variable (and subsequent change of contour) and justify saying:

[tex]\frac{1}{2\pi i}\int_{\sigma-i\infty}^{\sigma+i\infty}\frac{e^{sx}}{\sqrt{s^2-1}}ds=\frac{1}{2\pi i}\oint{e^{ix/2(t-1/t)}1/t dt}=\text{BesselJ[0,ix]}[/tex]

I've not (completely) proven this and would personally find it a challenge to do so. Maybe though, you may wish to pursue it.
 
Last edited:
  • #11
I think the best approach here would be to use the keyhole contour, the integral in question is somewhat more complicated than the initial one I posted as I wanted to get a feel for the square root in the denominator.
 
  • #12
If you wish to integrate it directly, then I think you need to use a dumb-bell contour around the branch points [itex]\pm a[/itex] enclosed inside a larger closed contour which includes the Bromwich path. These two contours then traverse an entirely analytic function so they are equal to one another and I think the dumb-bell contour is not too difficult to analyze. The reason I suggest that is because the Riemann surface for n'th roots of n'th degree polynomials are analytic outside the hull of polynomial zeros. I barely understand it myself for that matter. Tell you what, when I do that for the simple case I used above, I obtain:

[tex]\int_{1}^{-1}\frac{e^{r x}+e^{-{rx}}}{\sqrt{r^2-1}}dr[/tex]

and that integral can be written in terms of [itex]\text{BesselJ[0,ix]}[/itex]

however, I've not analyzed the remaining parts of the contour to justifiy equating that answer as the inverse transform.
 
Last edited:
  • #13
I had a go at doing the integral myself and it reduces to an integral on the real line which I can't compute, can anyone lend a hand or spot where I have made a mistake?
 

Attachments

  • Contour_integral.pdf
    52.7 KB · Views: 373
  • #14
hunt_mat said:
can anyone lend a hand or spot where I have made a mistake?

. . . that's not the correct contour to use although it may turn out to give you the correct answer or maybe the neg of the answer because it's computationally similar to what I said earlier. However, using it to solve this problem in my opinion clearly indicates a lack of understanding of the underlying Riemann geometry. No offense ok. It's just if you don't understand that geometry for this one, then you'll have problems solving others like it that likely will not be so forgiving if you use the wrong contour.
 
Last edited:
  • #15
My Riemannian geometry isn't bad (I have an MSc in it from Oxford university in geometry) but I don't see how it pertains to this problem.

Let us examine the reason why the contour may be a good one to use. First off, for the inverse Laplace transform, the Bromwich contour, so whatever contour id used, it must be a deformation of this in some way. There is a square root involved, so there must be a branch cut of some kind, so a branch cut is taken from -a to +a and the contour is deformed around the two branch points, so that is what I did.

As I homework helper, I am always polite and helpful. I am never condescending to any of the people I help out. I would ask you to do the same.
 
  • #16
hunt_mat said:
My Riemannian geometry isn't bad (I have an MSc in it from Oxford university in geometry) but I don't see how it pertains to this problem.

Let us examine the reason why the contour may be a good one to use. First off, for the inverse Laplace transform, the Bromwich contour, so whatever contour id used, it must be a deformation of this in some way. There is a square root involved, so there must be a branch cut of some kind, so a branch cut is taken from -a to +a and the contour is deformed around the two branch points, so that is what I did.

As I homework helper, I am always polite and helpful. I am never condescending to any of the people I help out. I would ask you to do the same.

I did not feel I was being condenscending. Actually I thought I was being quite polite. Sorry if I came across that way. Also, I should have said, "Riemann surface" and not Riemann geometry. The two legs you have going from -infty to -b are completely unnecessary. The function is analytic there so you can just cross-over the negative imaginary axis with one big circular contour (which includes the Bromwich path) and equate that contour it to the remaining "dumb-bell" contour going around the two branch-points unless the pole at a is "between" the two contours in which case you'd have to adjust the calculation to include that pole. I stand by what I said: in order to do well integrating over multifunctions, I believe it's essential to have a good understanding of the underlying Riemann surfaces that are being integrated over and understanding why you can delete the two "excipient" legs from -infty to -b is one way to exhibit such an understanding.

Also, unless you know what the answer is, I suggest you numerically integrate over the Bromwich path for some value of x and compare that with the inverse transform expression you obtain. If these agree, then I think it's a very good indication your answer is correct.
 
Last edited:
  • #17
I am assuming a and b are real. Also is a>b or is b>a?
 
  • #18
I couldn't evaluate the integral you posted using Mathematica. I suggest that the inverse you want is the convolution of [tex] BesselJ[0, i a t] [/tex] and [tex] e^{b t}[/tex] where BesselJ is the Bessel function of the first kind. The convolution is defined as [tex]f*g=\int_0^t f(y)g(t-y)dy.[/tex] This follows from the convolution theorem which says that the product of functions in the s domain equals to the Laplace transform of the convolution of the inverse Laplace transform of the individual factors.
 
Last edited:
  • #19
Charles49 said:
I couldn't evaluate the integral you posted using Mathematica. I suggest that the inverse you want is the convolution of [tex] BesselJ[0, i a t] [/tex] and [tex] e^{a t}[/tex] where BesselJ is the Bessel function of the first kind. The convolution is defined as [tex]f*g=\int_0^t f(y)g(t-y)dy.[/tex] This follows from the convolution theorem which says that the product of functions in the s domain equals to the Laplace transform of the convolution of the inverse Laplace transform of the individual factors.

Does that answer agree with the numerical result:

Code:
In[16]:=
a = 2; 
b = 1; 
x = 1; 
NIntegrate[(1/(2*Pi*I))*((I*Exp[s x])/
     ((s - a)*Sqrt[s^2 - b^2])) /. s -> 3 + I*y, 
  {y, -250, 250}]

Out[19]= 3.34859 + 4.35036*10^-15 I
 
  • #20
jackmell said:
Does that answer agree with the numerical result:

Code:
In[16]:=
a = 2; 
b = 1; 
x = 1; 
NIntegrate[(1/(2*Pi*I))*((I*Exp[s x])/
     ((s - a)*Sqrt[s^2 - b^2])) /. s -> 3 + I*y, 
  {y, -250, 250}]

Out[19]= 3.34859 + 4.35036*10^-15 I

No, it doesn't. How did you get s=3+iy?
 
  • #21
Charles49 said:
No, it doesn't. How did you get s=3+iy?

The value of [itex]\sigma=3[/itex] for [itex]s=\sigma+it[/itex] is arbitrary as long as it's to the right of any singularities although the particular value will affect the rate of convergence of the numerical results. Also, I just arbitrarily stopped the integration at [itex]\pm 250[/itex]. Generally with these, you sequentially bump up the path length until you observe some sort of limiting value for the integral. It wasn't changing much at 250 so I stopped. Also, I do obtain that (approx) answer with numerically integrating the convolution:

Code:
In[41]:= NIntegrate[BesselJ[0, I u] Exp[2 (1 - u)], {u, 0, 1}]

Out[41]= 3.34849 + 0. I

When I said "agree" I meant "close" right? That's pretty close so just with that calculation, I would have pretty good confidence the convolution is the inverse transform (without actually knowing for a fact it is).
 
Last edited:
  • #22
If you read the pdf of my calculations, I say why the two integrals vanish. I didn't just come up with this idea off the top of my head, I read various book on complex analysis (Riemannian geometry doesn't come into it) and adapted the analysis that they gave for their calculations to the one I presented in my notes.

As a reference for the complex analysis required I used "Introduction to complex analysis" by H.A. Priestly who gives examples of computing inverse Laplace transforms.
 
  • #23
hunt_mat said:
If you read the pdf of my calculations, I say why the two integrals vanish. I didn't just come up with this idea off the top of my head, I read various book on complex analysis (Riemannian geometry doesn't come into it) and adapted the analysis that they gave for their calculations to the one I presented in my notes.

As a reference for the complex analysis required I used "Introduction to complex analysis" by H.A. Priestly who gives examples of computing inverse Laplace transforms.

I apologize for offending you Hunt. Also, I probably should not have said, "not the right contour". It's an acceptable contour that is not incorrect. Now that myself and Charlie have established with high confidence what the inverse transform is, you now need only confirm that your analytical results agree.
 
  • #24
Charles49 said:
I am assuming a and b are real. Also is a>b or is b>a?
[itex]b=\pm\sqrt{k^{2}-1/4}[/itex], the k here comes from taking a Fourier transform. [itex]b^{2}[/itex] is always real. However the value [itex]a[/itex] is complex.
 
  • #25
I ran it through Maple and I got the result:
[tex]
e^{2t}\int_{0}^{t}I_{0}(u)e^{-2u}du
[/tex]

However this is a warm up problem and the real problem is find the inverse Laplace transform of:
[tex]
\frac{e^{as\pm\sqrt{s^{2}-b^{2}}}}{(s-c)(s-d)\sqrt{s^{2}-b^{2}}}
[/tex]
 
  • #26
Hey Hunt, the contour you used is definitely wrong if [tex]a[/tex] is complex. I know this because, the contour must have keyholes which have positive or negative imaginary parts (depending on where [tex]a[/tex] is located). However, on the contour that you used, the keyholes are located on the real axis. By the way, just to avoid confusion as to which [tex] a[/tex] we are talking about, forget about the new problem, I'm still looking at the pdf you attached.

To get the Bromwich contour, look at all the singularities of the function you are dealing with. Plot them on the complex plane. Then look for a the line which is greater than the real parts of all the singularities of the poles. It doesn't matter how far away this line is or how close as long as it is to the right of the poles. Then try to draw the fewest number of keyholes around the poles with the contour going in the counterclockwise direction. Remember this: If you are walking along the contour you must see the poles on your right hand side. Then use the Cauchy residue theorem like you did before.
 
  • #27
Three words I'd like to add to the discussion: Cauchy... Residue... Theorem...
 
  • #28
Charles49 said:
Hey Hunt, the contour you used is definitely wrong if [tex]a[/tex] is complex. I know this because, the contour must have keyholes which have positive or negative imaginary parts (depending on where [tex]a[/tex] is located). However, on the contour that you used, the keyholes are located on the real axis. By the way, just to avoid confusion as to which [tex] a[/tex] we are talking about, forget about the new problem, I'm still looking at the pdf you attached.

To get the Bromwich contour, look at all the singularities of the function you are dealing with. Plot them on the complex plane. Then look for a the line which is greater than the real parts of all the singularities of the poles. It doesn't matter how far away this line is or how close as long as it is to the right of the poles. Then try to draw the fewest number of keyholes around the poles with the contour going in the counterclockwise direction. Remember this: If you are walking along the contour you must see the poles on your right hand side. Then use the Cauchy residue theorem like you did before.
I thought I could just deal with [itex]a[/itex] in the normal way if it was complex, it isn't a branch point in any way, it's just a simple pole. Having taken you suggestion to heart, I sketched the contour which I think you mean. Is this the correct contour now? I have a feeling that the integral around the pole a will vanish but I will be left with contributions from the paths to and from the point?
 

Attachments

  • contour4.jpg
    contour4.jpg
    3.2 KB · Views: 405
  • #29
OK, try this and I'll check numerically the integral you get with the convolution I got.
 

Related to Complex contour integral, which one do I use?

1. What is a complex contour integral?

A complex contour integral is a mathematical concept used in complex analysis to evaluate integrals along curves in the complex plane. It extends the concept of a line integral to complex functions by integrating over a curve instead of a straight line.

2. When do I use a complex contour integral?

Complex contour integrals are used to evaluate integrals involving complex functions, particularly those that cannot be evaluated using standard integration techniques. They are also used in physics and engineering to solve problems involving electric fields, fluid flow, and other complex systems.

3. How do I choose the contour to use for a complex contour integral?

The contour used for a complex contour integral should enclose the region where the function being integrated is analytic, meaning it is differentiable and has no singularities. In some cases, the contour can be chosen to pass through certain points in order to simplify the integral.

4. What is the difference between a closed and open contour in a complex contour integral?

A closed contour is a complete loop that encloses a region in the complex plane, while an open contour does not form a complete loop and may contain branch cuts or other discontinuities. Closed contours are typically used for integrals with no singularities, while open contours may be used for integrals with branch points or other singularities.

5. Can I use any contour for a complex contour integral?

No, not all contours can be used for complex contour integrals. The contour must satisfy certain conditions, such as being smooth and simple, in order for the integral to be well-defined. It is important to carefully choose the contour for a complex contour integral in order to get an accurate result.

Similar threads

  • Calculus
Replies
8
Views
2K
Replies
2
Views
1K
Replies
2
Views
1K
Replies
9
Views
2K
Replies
5
Views
1K
  • Calculus
Replies
4
Views
2K
Replies
1
Views
2K
Replies
3
Views
3K
Back
Top