Let's carefully analyze the integral:
[
I = \int_{-\infty}^{\infty} \frac{x \sin x}{1 + x^2} , dx
]
Step 1: Check if the integrand is odd or even
The integrand is ( f(x) = \frac{x \sin x}{1 + x^2} ). Let's test its symmetry:
[
f(-x) = \frac{(-x) \sin(-x)}{1 + (-x)^2} = \frac{-x (-\sin x)}{1 + x^2} = \frac{x \sin x}{1 + x^2} = f(x)
]
Thus, ( f(x) ) is even.
For an even function, we have:
[
\int_{-\infty}^{\infty} f(x) , dx = 2 \int_{0}^{\infty} f(x) , dx
]
So, the integral is not necessarily zero (as it would be for an odd function over symmetric limits).
Step 2: Evaluate the integral
We can compute ( I ) using complex analysis (contour integration).
Method: Contour Integration
Consider the related complex integral:
[
J = \oint_C \frac{z e^{i z}}{1 + z^2} , dz
]
where ( C ) is a semicircular contour in the upper half-plane (radius ( R \to \infty )) with a small indentation around the pole at ( z = i ).
- The integrand has a simple pole at ( z = i ) (since ( 1 + z^2 = (z + i)(z - i) )).
- The residue at ( z = i ) is:
[
\text{Res}(f, i) = \lim_{z \to i} (z - i) \frac{z e^{i z}}{(z + i)(z - i)} = \frac{i e^{-1}}{2i} = \frac{e^{-1}}{2}
]
[
J = 2 \pi i \cdot \text{Res}(f, i) = 2 \pi i \cdot \frac{e^{-1}}{2} = \pi i e^{-1}
]
- Now, break ( J ) into parts:
- The integral along the real axis (as ( R \to \infty )) gives:
[
\int_{-\infty}^{\infty} \frac{x e^{i x}}{1 + x^2} , dx
]
-
The integral along the semicircular arc vanishes as ( R \to \infty ) (by Jordan's lemma, since ( \sin x ) decays exponentially in the upper half-plane).
-
Taking the imaginary part of ( J ):
[
\text{Im}(J) = \int_{-\infty}^{\infty} \frac{x \sin x}{1 + x^2} , dx = \pi e^{-1}
]
Thus:
[
I = \pi e^{-1}
]
Final Answer
[
\boxed{
\int_{-\infty}^{\infty} \frac{x \sin x}{1 + x^2} , dx = \frac{\pi}{e}
}
]
The integral is not zero! The correct value is ( \frac{\pi}{e} ).
Intuition for Why It's Not Zero
- The integrand ( \frac{x \sin x}{1 + x^2} ) is even, so the integral over ( (-\infty, \infty) ) is twice the integral over ( (0, \infty) ).
- The oscillations of ( \sin x ) are weighted by ( \frac{x}{1 + x^2} ), which decays as ( \frac{1}{x} ) for large ( x ). This slow decay means the integral converges, but not to zero.
- The result ( \frac{\pi}{e} ) comes from the residue at ( z = i ), reflecting the contribution of the pole in the upper half-plane.
So, your initial guess was incorrect—the integral is not zero.