Contour integral with absolute value

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
2 replies · 4K views
Messages
1,816
Reaction score
33
Suppose I want to compute tthe integral:
[tex] \int_{-\infty}^{\infty}\frac{\textrm{sech}\hspace{0.1cm} x}{x^{2}-2|x|+1}dx[/tex]
Can I compute this integral via contour integration? The only way that I have thought of is to split up the domain:
[tex] \int_{-\infty}^{\infty}\frac{\textrm{sech}\hspace{0.1cm} x}{x^{2}-2|x|+1}dx=\int_{-\infty}^{0}\frac{\textrm{sech}\hspace{0.1cm} x}{x^{2}+2x+1}dx+\int_{0}^{\infty}\frac{\textrm{sech}\hspace{0.1cm} x}{x^{2}-2x+1}dx[/tex]
Is this the best way I can go about things for is there a better way?
 
Physics news on Phys.org
I am aware of the singularities, this was just an example. The other integral doesn't have singularities, I just wanted to get my ideas across.