I am looking to solve $$I=\int_{-\infty}^{\infty}\frac{\cos{x}}{x^2+1}dx$$ To do so i defined a function of complex variable as follows: $$f(z)=\frac{\cos{z}}{z^2+1}$$ Then i make a closed countour $C$ by uniting a semicircle (denoted $\gamma_R$) above the origin and a line connecting points $-R$ and $R$ on the real axis. $$\oint_Cf(z)dz=\int_{-R}^{R}f(x)dx+\int_{\gamma_R}f(z)dz$$ The only pole within the contour is at $z=i$. By the residue theorem $$\oint_Cf(z)dz=2\pi i\cdot \operatorname{Res}[f]_{z=i}$$ I use the definition of complex cosine: $$\cos{z}=\frac{e^{iz}+e^{-iz}}{2}$$ $$\operatorname{Res}[f]_{z=i}=\lim_{z\to i}\bigg\{(z-i)\frac{e^{iz}+e^{-iz}}{2(z-i)(z+i)}\bigg\}=\frac{1/e+e}{4i}$$ My calculation then becomes: $$I=\pi\frac{1/e+e}{2}-\int_{\gamma_R}f(z)dz$$ Now: $$\int_{\gamma_R}f(z)dz=\int_{-R}^{R}f(Re^{i\phi})dRe^{i\phi}=\int_{-R}^{R}\frac{\cos{(Re^{i\phi})}}{R^2e^{2i\phi}+1}d\phi$$ as $R\to\infty$ this integral goes to zero (Jordan's Lemma??). I can conclude $$I=\pi\frac{e+1/e}{2}$$ But the answer should be $$\frac{\pi}{e}$$ I can't seem to find the mistake. I am pretty new to complex analysis, would anyone give me hint, what did i do wrong please?
2026-03-29 12:41:34.1774788094
Solving integral using complex analysis
1.7k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in COMPLEX-ANALYSIS
- Minkowski functional of balanced domain with smooth boundary
- limit points at infinity
- conformal mapping and rational function
- orientation of circle in complex plane
- If $u+v = \frac{2 \sin 2x}{e^{2y}+e^{-2y}-2 \cos 2x}$ then find corresponding analytical function $f(z)=u+iv$
- Is there a trigonometric identity that implies the Riemann Hypothesis?
- order of zero of modular form from it's expansion at infinity
- How to get to $\frac{1}{2\pi i} \oint_C \frac{f'(z)}{f(z)} \, dz =n_0-n_p$ from Cauchy's residue theorem?
- If $g(z)$ is analytic function, and $g(z)=O(|z|)$ and g(z) is never zero then show that g(z) is constant.
- Radius of convergence of Taylor series of a function of real variable
Related Questions in DEFINITE-INTEGRALS
- How can I prove that $\int_0^{\frac{\pi}{2}}\frac{\ln(1+\cos(\alpha)\cos(x))}{\cos(x)}dx=\frac{1}{2}\left(\frac{\pi^2}{4}-\alpha^2\right)$?
- Closed form of integration
- Integral of ratio of polynomial
- An inequality involving $\int_0^{\frac{\pi}{2}}\sqrt{\sin x}\:dx $
- How is $\int_{-T_0/2}^{+T_0/2} \delta(t) \cos(n\omega_0 t)dt=1$ and $\int_{-T_0/2}^{+T_0/2} \delta(t) \sin(n\omega_0 t)=0$?
- Roots of the quadratic eqn
- Area between curves finding pressure
- Hint required : Why is the integral $\int_0^x \frac{\sin(t)}{1+t}\mathrm{d}t$ positive?
- A definite integral of a rational function: How can this be transformed from trivial to obvious by a change in viewpoint?
- Integrate exponential over shifted square root
Related Questions in CONTOUR-INTEGRATION
- contour integral involving the Gamma function
- Find contour integral around the circle $\oint\frac{2z-1}{z(z-1)}dz$
- prove that $\int_{-\infty}^{\infty} \frac{x^4}{1+x^8} dx= \frac{\pi}{\sqrt 2} \sin \frac{\pi}{8}$
- Intuition for $\int_Cz^ndz$ for $n=-1, n\neq -1$
- Complex integral involving Cauchy integral formula
- Contour integration with absolute value
- Contour Integration with $\sec{(\sqrt{1-x^2})}$
- Evaluating the integral $\int_0^{2\pi}e^{-\sqrt{a-b\cos t}}\mathrm dt$
- Integral of a Gaussian multiplied with a Confluent Hypergeometric Function?
- Can one solve $ \int_{0}^\infty\frac{\sin(xb)}{x^2+a^2}dx $ using contour integration?
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
The reason your method does not work is that the integral over $\gamma_R$ does not tend to zero as $R$ tends to infinity because $e^{-iz}$ blows up.
There is a standard trick here. Consider $\cos(\theta) = \operatorname{Re}(e^{i\theta})$ and integrate $\frac{e^{iz}}{1+z^2}$ instead. The integral of this over $\gamma_R$ is zero because $e^{iz}$ is bounded.