# integration of complex trigonometric function

Compute $$\oint_{|z-\frac{\pi}{2}|=\pi+1}z\cdot \tan(z)dz$$

My solution: the integrand is a meromorphic function with simple poles at points: $\frac{\pi}{2}+n\pi$, with $n$ integer. Among these points, $\pm \frac{\pi}{2},\frac{3}{2}\pi$ lie inside the contour. I use the formula for simple poles: $$Res\left(\frac{f}{g},z_0\right)=\frac{f(z_0)}{g'(z_0)}$$ In my case ($f=z\sin z, g=\cos z$) i get: $$Res\left(z\cdot \tan(z),\pm\frac{\pi}{2}\right)=\mp\frac{\pi}{2}$$ and $$Res\left(z\cdot \tan(z),\frac{3\pi}{2}\right)=-\frac{3\pi}{2}$$ I apply residue formula to get $I=-3\pi^2i$. Someone could say me if i made some mistakes?

-

Fix your accept rate. :-) – Babak S. Dec 5 '12 at 19:36

## 1 Answer

There are three singularities inside the given path, $-\frac\pi2,\frac\pi2,\frac{3\pi}2$.

For $z=-\frac\pi2$, let $z=w-\frac\pi2$ $$z\tan(z)=-\frac{\left(w-\frac\pi2\right)\cos(w)}{\sin(w)}\to\frac\pi2$$ For $z=\frac\pi2$, let $z=w+\frac\pi2$ $$z\tan(z)=-\frac{\left(w+\frac\pi2\right)\cos(w)}{\sin(w)}\to-\frac\pi2$$ For $z=\frac{3\pi}2$, let $z=w+\frac{3\pi}2$ $$z\tan(z)=-\frac{\left(w+\frac{3\pi}2\right)\cos(w)}{\sin(w)}\to-\frac{3\pi}2$$ Thus, the sum of the residues inside the contour is $-\dfrac{3\pi}2$. To get the integral, multiply by $2\pi i$ to get $$\oint_{|z-\frac{\pi}{2}|=\pi+1}z\tan(z)\mathrm{d}z=-3\pi^2i$$ It looks as if you are fine.

-
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 14, "mathjax_display_tex": 8, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.8656215071678162, "perplexity_flag": "head"}