<s>[INST] $ \int_0^{+\infty} \frac{1}{(1+x^2)(1+x^{\phi})}\, dx \, \, \, (\phi>0) $ Evaluate 
$$
\int_0^{+\infty} \frac{1}{(1+x^2)(1+x^{\phi})}\, dx \, \, \, (\phi>0)
$$
See my answer below for a solution using a nice substitution.
 [/INST] Solution 
$$ \small
\int_0^{+\infty} \frac{1}{(1+x^2)(1+x^{\phi})}\, dx = \int_0^{1} \frac{1}{(1+x^2)(1+x^{\phi})}\, dx + \int_1^{+\infty} \frac{1}{(1+x^2)(1+x^{\phi})}\, dx
$$
Notice that with the substitution $y=\frac{1}{x}$, 
$$\begin{aligned}
\int_1^{+\infty} \frac{1}{(1+x^2)(1+x^{\phi})}\, dx &= \int_1^0 \frac{1}{\left( 1+\frac{1}{y^2}\right)\left(1+\frac{1}{y^{\phi}} \right)}\cdot \left(\frac{-1}{y^2} \right)\, dy\\
&=\int_0^1\frac{y^{\phi}}{(1+y^2)(1+y^{\phi})}\, dy
\end{aligned}$$
Therefore 
$$\begin{aligned}
\int_0^{+\infty} \frac{1}{(1+x^2)(1+x^{\phi})}\, dx &= \int_0^1\frac{1+x^{\phi}}{(1+x^2)(1+x^{\phi})}\, dx \\ &= \int_0^1 \frac{1}{1+x^2}\, dx \\ &= \arctan x|_0^1 \\ &= \frac{\pi}{4}
\end{aligned}$$
</s>