Contour Integration for the Complex Contour Integral Problem

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 3K views
ijustlost
Messages
22
Reaction score
0
I'm trying to find

[tex] \int_{-\infty}^{\infty} \frac{exp(ax)}{cosh(x)} dx[/tex]

where 0<a<1 and x is taken to be real. I'm doing this by contour integration using a contour with corners +- R, +- R + i(pi), and I'm getting an imaginary answer which is

[tex]\frac{2i\pi}{sin (a \pi)}[/tex].

I'm thinking this is a problem because my original integral was completely real. Can I just take the real part of my answer, and say the integral = 0 ? That doesn't seem to make any sense, I've drawn a graph of the function and it doesn't look like it's integral should be zero! I'm fairly sure my answer to the contour integral is correct!
 
Last edited:
Physics news on Phys.org
P.s - is there a guide to using tex on physics forums somewhere? Then I could format the above properly!
 
Ah thanks, I knew there was one somewhere!
 
Oops, stupid me! The answer is

[tex] \frac{\pi}{cos(\frac{a\pi}{2})}[/tex]

I didn't work out the phase shift the function takes on along the top line of the path properly!