A challenge problem $$\int_0^{\infty} \frac{e^{\frac{2}{1+x^2}} \cos{\left(\frac{2x}{1+x^2}\right)}}{x^2+1} \mathop{dx}$$
Someone said that differentiation in the integral should be used, I dont know how? I try $u=\frac{1}{x^2+1}$, $u=\frac{x}{1+x^2}$, and others but I am confused and want help. Thanks
When I see those fractions in the integral with the denominator of $x^2+1$, I assume that this is a backwards Weierstrass substitution.
If $x=\tan{\left(\frac{t}{2}\right)}$, then: $$\cos{t}=\frac{1-x^2}{1+x^2}$$ $$\sin{t}=\frac{2x}{1+x^2}$$ $$\frac{2 \; dx}{1+x^2}=dt$$
You can immediately obtain $$I=\frac{1}{2} \int_0^{\pi} e^{\frac{2}{1+x^2}} \cos{(\sin{t})} \; dt$$ Now we must represent the exponential term in terms of $t$: $$\frac{2}{1+x^2}=\frac{1+x^2+1-x^2}{1+x^2}=1+\frac{1-x^2}{1+x^2}=1+\cos{t}$$ And plugging this back into the integral: $$I=\frac{e}{2} \int_0^{\pi} e^{\cos{t}} \cos{(\sin{t})} \; dt$$ This is where you should introduce the parameter $a$ inside the integral and use differentiation under the integral sign. Determining where to introduce $a$ to easily evaluate the integral takes some intuition and guesses, which I won't show here: $$I(a)=\frac{e}{2} \int_0^{\pi} e^{a\cos{t}} \cos{(a\sin{t})} \; dt$$ Differentiating with respect to $a$: $$I'(a)=\frac{e}{2} \int_0^{\pi} e^{a\cos{t}} \left( \cos{t}\cos{(a\sin{t})}-\sin{t}\sin{(a\sin{t})}\right) \; dt$$ You should notice that this integral is: $$I'(a)=\frac{e}{2} \int_0^{\pi} \frac{d}{dt} \left( \frac{1}{a} \cdot e^{a\cos{t}} \sin{(a\sin{t})} \right) \; dt$$ $$I'(a)=\frac{e}{2a} \left( e^{a\cos{t}} \sin{(a\sin{t})} \right) \big \rvert_0^{\pi}=0$$ This means that $I(a)=C$, where $C$ is some constant. To determine $C$, let $a=0$: $$I(0)=\frac{e}{2}\int_0^{\pi} 1 \; dt = \frac{e \pi}{2}$$ In conclusion, $$I(1)=\boxed{\frac{e \pi}{2}}$$