We wish to evaluate
[
I=\int_0^\infty \frac{x}{(1+x)(1+x^2)},dx.
]
A very clever hint is to use the substitution
[
x=\tan y,\quad\text{so that}\quad dx=\sec^2 y,dy.
]
Notice also that when ( x ) goes from ( 0 ) to ( \infty ), the variable ( y ) goes from
[
y=\arctan 0=0 \quad \text{to} \quad y=\arctan(\infty)=\frac{\pi}{2}.
]
Let’s now perform the substitution.
Step 1. Change of Variables
With ( x=\tan y ) and ( dx=\sec^2 y,dy ), we have:
- (1+x = 1+\tan y).
- (1+x^2 = 1+\tan^2 y). Recall the trigonometric identity:
[
1+\tan^2 y = \sec^2 y.
]
Thus, the integral becomes
[
I=\int_{y=0}^{y=\pi/2} \frac{\tan y}{\big(1+\tan y\big),\sec^2 y},\sec^2 y,dy
=\int_0^{\pi/2} \frac{\tan y}{1+\tan y},dy.
]
Step 2. Simplify the Integrand
Recall that
[
\tan y=\frac{\sin y}{\cos y}.
]
Substitute this into the integrand:
[
\frac{\tan y}{1+\tan y} = \frac{\frac{\sin y}{\cos y}}{1+\frac{\sin y}{\cos y}}
=\frac{\frac{\sin y}{\cos y}}{\frac{\cos y+\sin y}{\cos y}}
=\frac{\sin y}{\cos y+\sin y}.
]
Thus the integral now is
[
I = \int_0^{\pi/2} \frac{\sin y}{\sin y+\cos y},dy.
]
Step 3. Exploit Symmetry
The integral
[
I=\int_0^{\pi/2} \frac{\sin y}{\sin y+\cos y},dy
]
already looks promising. Notice that by symmetry it is related to a similar integral where (\sin y) is replaced by (\cos y). Indeed, perform the substitution
[
u=\frac{\pi}{2} - y,,
]
so that (du=-dy). When (y=0), (u=\pi/2); when (y=\pi/2), (u=0). Reversing the limits, we obtain:
[
I = \int_{\pi/2}^{0} \frac{\sin \left(\frac{\pi}{2}-u\right)}{\sin \left(\frac{\pi}{2}-u\right)+\cos \left(\frac{\pi}{2}-u\right)}(-du)
=\int_{0}^{\pi/2} \frac{\cos u}{\cos u+\sin u},du.
]
Thus, if we denote
[
J=\int_0^{\pi/2} \frac{\cos y}{\sin y+\cos y},dy,
]
we see that
[
I=J.
]
Now, add the two integrals:
[
I+J = \int_{0}^{\pi/2} \left[\frac{\sin y}{\sin y+\cos y}+\frac{\cos y}{\sin y+\cos y} \right]dy
=\int_{0}^{\pi/2} \frac{\sin y+\cos y}{\sin y+\cos y},dy = \int_{0}^{\pi/2} 1,dy = \frac{\pi}{2}.
]
Since ( I = J ), it follows that
[
2I = \frac{\pi}{2}\quad\Longrightarrow\quad I=\frac{\pi}{4}.
]
Final Answer
Thus, the value of the original integral is
[
I = \frac{\pi}{4},.
]