Calculate Integral $\int_{0}^{\infty} \,\frac{\sqrt{x}\,\cos\big(\ln(x)\big)}{x^2+1}\,\text{d}x$, Using Complex Analysis

313 Views Asked by At

I need to calculate the integral of $$\int_{0}^{\infty} \,\frac{\sqrt{x}\,\cos\big(\ln(x)\big)}{x^2+1}\,\text{d}x \,.$$ I tried to use the complex function of $$f(z) = \frac{\sqrt{z}\cos\big(\text{Log}(z)\big)}{z^2+1} $$ and the contour of Pacman, or half a disk in the upper half plane (of course, taking into consideration the residues and using the Residue Theorem), without any success. Any help would be appreciated.

3

There are 3 best solutions below

7
On BEST ANSWER

A general hint: never try to use trigonometric functions in this kind of exercises. In complex numbers it is very hard to find bounds for sine and cosine on a disk or on half a disk. So in the complex function you defined you need to replace cosine with exponential, and in the end just take the real or imaginary part, using the fact that $e^{iz}=cos(z)+isin(z)$.

0
On

Hint

$$\cos(x)\rightarrow \Re(e^{iz})$$

0
On

Claim. Let $\alpha\in\mathbb{C}$ be such that $-1<\text{Re}(\alpha)<+1$. Then, $$\int_0^\infty\,\frac{x^\alpha}{x^2+1}\,\text{d}x=\frac{\pi}{2}\,\text{sech}\left(\frac{\text{i}\pi\alpha}{2}\right)=\frac{\pi}{2}\,\sec\left(\frac{\pi\alpha}{2}\right)\,.$$ Here, $x^\alpha$ is defined to be $\exp\big(\alpha\,\ln(x)\big)$ for all $x>0$.

Without loss of generality, we assume that $\text{Im}(\alpha)\geq 0$. That is, $\alpha=\beta+\text{i}\,\gamma$, where $\beta,\gamma\in\mathbb{R}$ with $-1<\beta<+1$ and $\gamma\geq0$. Use the negative imaginary line to be the branch cut of $z^\alpha$ in the definition of the function $f$ below: $$f(z):=\frac{z^{\alpha}}{z^2+1}\text{ for }z\in\mathbb{C}\setminus\big(\text{i}\,\mathbb{R}_{\leq 0}\cup\{-\text{i},+\text{i}\}\big)\,.$$

Pick a real number $\epsilon$ such that $0<\epsilon<1$, and choose the counterclockwise contour $$C_\epsilon=\left[\epsilon,\frac1\epsilon\right]\cup \Big\{\frac1\epsilon\,\exp(\text{i}\theta)\,\Big|\,\theta\in[0,\pi]\,\Big\}\cup\left[-\frac1\epsilon,-\epsilon\right]\cup\big\{\epsilon\,\exp(\text{i}\theta)\,\big|\,\theta\in[\pi,0]\big\}\,.$$ For a positive real number $r$, let $\Gamma_r$ denote the semicircular arc $\Big\{r\,\exp(\text{i}\theta)\,\Big|\,\theta\in[0,\pi]\,\Big\}$ (oriented in the counterclockwise direction). Thus, for $z=\frac{1}{\epsilon}\,\exp(\text{i}\theta)$, where $0\leq \theta\leq \pi$, we have $$\big|f(z)\big|\leq\frac{\Big|\exp\big(-\gamma\theta+\text{i}\,\beta\theta-\text{i}\,\gamma\,\ln(\epsilon)\big)\Big|}{\epsilon^\beta\,\left(\frac{1}{\epsilon^2}-1\right)}=\frac{\exp(-\gamma\theta)\,\epsilon^{2-\beta}}{1-\epsilon^2}\leq \frac{\epsilon^{2-\beta}}{1-\epsilon^2}\,.$$ As a consequence, $$\left|\int_{\Gamma_{\frac1\epsilon}}\,f(z)\,\text{d}z\right|\leq \frac{\pi\,\epsilon^{1-\beta}}{1-\epsilon^2}\underset{\small\epsilon\to0^+}{\longrightarrow}0\,.$$ Similarly, $$\left|\int_{\Gamma_{\epsilon}}\,f(z)\,\text{d}z\right|\leq \frac{\pi\,\epsilon^{1+\beta}}{1-\epsilon^2}\underset{\small\epsilon\to0^+}{\longrightarrow}0\,.$$

Ergo, $$\lim_{\epsilon\to0^+}\,\oint_{C_\epsilon}\,f(z)\,\text{d}z=\int_0^\infty\,\frac{x^\alpha}{x^2+1}\,\text{d}x+\int^{\infty}_0\,\frac{\exp(\text{i}\pi\alpha)\,x^\alpha}{x^2+1}\,\text{d}x\,.$$ Since $$\lim_{\epsilon\to0^+}\,\oint_{C_\epsilon}\,f(z)\,\text{d}z=2\pi\text{i}\,\text{Res}_{z=\text{i}}\left(\frac{z^\alpha}{z^2+1}\right)=2\pi\text{i}\,\left(\frac{\text{i}^\alpha}{2\text{i}}\right)=\pi\,\exp\left(\frac{\text{i}\pi\alpha}{2}\right)\,.$$ This shows that $$\int_0^\infty\,\frac{x^\alpha}{x^2+1}\,\text{d}x=\frac{\pi}{2}\,\text{sech}\left(\frac{\text{i}\pi\alpha}{2}\right)=\small\frac{\pi}{2}\,\left(\frac{\cos\left(\frac{\pi\beta}{2}\right)\,\cosh\left(\frac{\pi\gamma}{2}\right)+\text{i}\,\sin\left(\frac{\pi\beta}{2}\right)\,\sinh\left(\frac{\pi\gamma}{2}\right)}{\cos^2\left(\frac{\pi\beta}{2}\right)\,\cosh^2\left(\frac{\pi\gamma}{2}\right)+\sin^2\left(\frac{\pi\beta}{2}\right)\,\sinh^2\left(\frac{\pi\gamma}{2}\right)}\right)\,.$$

Corollary 1. Let $\beta$ and $\gamma$ be real numbers such that $|\beta|<1$. Then, $$\int_{0}^{\infty}\,\frac{x^\beta\,\cos\big(\gamma\,\ln(x)\big)}{x^2+1}\,\text{d}x=\pi\,\left(\frac{\cos\left(\frac{\pi\beta}{2}\right)\,\cosh\left(\frac{\pi\gamma}{2}\right)}{\cos(\pi\beta)+\cosh(\pi\gamma)}\right)\,.$$


Corollary 2. Let $\beta$ and $\gamma$ be real numbers such that $|\beta|<1$. Then, $$\int_{0}^{\infty}\,\frac{x^\beta\,\sin\big(\gamma\,\ln(x)\big)}{x^2+1}\,\text{d}x=\pi\,\left(\frac{\sin\left(\frac{\pi\beta}{2}\right)\,\sinh\left(\frac{\pi\gamma}{2}\right)}{\cos(\pi\beta)+\cosh(\pi\gamma)}\right)\,.$$


Corollary 3. Let $\alpha$ be a complex number such that $\big|\text{Re}(\alpha)\big|<1$. Then, $$\int_{-\infty}^{+\infty}\,\frac{x^\alpha}{x^2+1}\,\text{d}x=\pi\,\exp\left(\frac{\text{i}\pi\alpha}{2}\right)\,,$$ where $x^\alpha$ is defined to be $\exp\Big(\alpha\,\ln\big(x\big)\Big)$ when $x>0$, and $\exp\Big(\alpha\,\ln\big(|x|\big)+\text{i}\pi\alpha\Big)$ when $x<0$.


Corollary 4. Let $\beta$ and $\gamma$ be real numbers such that $|\beta|+|\gamma|<1$. Then, $$\int_{0}^{\infty}\,\frac{x^\beta\,\cosh\big(\gamma\,\ln(x)\big)}{x^2+1}\,\text{d}x=\pi\,\left(\frac{\cos\left(\frac{\pi\beta}{2}\right)\,\cos\left(\frac{\pi\gamma}{2}\right)}{\cos(\pi\beta)+\cos(\pi\gamma)}\right)\,.$$


Corollary 5. Let $\beta$ and $\gamma$ be real numbers such that $|\beta|+|\gamma|<1$. Then, $$\int_{0}^{\infty}\,\frac{x^\beta\,\sinh\big(\gamma\,\ln(x)\big)}{x^2+1}\,\text{d}x=\pi\,\left(\frac{\sin\left(\frac{\pi\beta}{2}\right)\,\sin\left(\frac{\pi\gamma}{2}\right)}{\cos(\pi\beta)+\cos(\pi\gamma)}\right)\,.$$


To answer the OP's question, write $$I:=\int_0^\infty\,\frac{\sqrt{x}\,\cos\big(\ln(x)\big)}{x^2+1}\,\text{d}x=\text{Re}\left(\int_0^\infty\,\frac{x^{\frac{1}{2}}\,\exp\big(\text{i}\,\ln(x)\big)}{x^2+1}\,\text{d}x\right)\,.$$ Thus, it suffices to find $$J:=\int_0^\infty\,\frac{x^{\frac{1}{2}}\,\exp\big(\text{i}\,\ln(x)\big)}{x^2+1}\,\text{d}x=\int_0^\infty\,\frac{x^{\frac{1}{2}}\,x^\text{i}}{x^2+1}\,\text{d}x=\int_0^\infty\,\frac{x^{\frac{1}{2}+\text{i}}}{x^2+1}\,\text{d}x\,.$$ From the work above, $$J=\frac{\pi}{2}\,\text{sech}\Biggl(\frac{\text{i}\pi}{2}\left(\frac{1}{2}+\text{i}\right)\Biggr)=\frac{\pi}{\sqrt{2}}\,\left(\frac{\cosh\left(\frac{\pi}{2}\right)+\text{i}\,\sinh\left(\frac{\pi}{2}\right)}{\cosh(\pi)}\right)\,.$$ This gives $$I=\text{Re}(J)=\frac{\pi\,\cosh\left(\frac{\pi}{2}\right)}{\sqrt{2}\,\cosh(\pi)}\approx0.48085\,.$$