# Prove that ∫∞0sin(2013x)x(cosx+coshx)dx=π4\int_0^{\infty} \frac{\sin(2013 x)}{x(\cos x+\cosh x)}dx=\frac{\pi}{4}

Prove that

Because the integrand is even, contour integration yields

where $\gamma^+$ goes from $-R-i$ to $+R-i$ then circles counterclockwise back in the upper half plane along $|z+i|=R$ and $\gamma^+$ goes from $-R-i$ to $+R-i$ then circles clockwise back in the lower half plane along $|z+i|=R$.

The residue of $f(z)=\dfrac{e^{imz}}{z(\cos(z)+\cosh(z))}$ at $z=0$ is $\frac12$.

Let $\alpha=\frac{1+i}{2}$. As noted in this answer, $f$ has singularities at $\pm(2k+1)\pi\alpha$ and $\pm(2k+1)\pi\overline{\alpha}$.

The sum of the residues in the upper half plane at $(2k+1)\pi\alpha$ and $-(2k+1)\pi\overline{\alpha}$ is the same as the sum of the residues in the lower half plane at $(2k+1)\pi\overline{\alpha}$ and $-(2k+1)\pi\alpha$. Both are equal to

Note that for odd $m$, these are all $0$; $x=m\frac{2k+1}{2}\pi\equiv\frac\pi2\pmod{\pi}\Rightarrow\cos(x)=0$. This is not so for even $m$. Thus,
{"extraction_info": {"found_math": true, "script_math_tex": 23, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 1, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9607496857643127, "perplexity": 113.3022202208357}, "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": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2022-40/segments/1664030337415.12/warc/CC-MAIN-20221003101805-20221003131805-00118.warc.gz"}