Suppose we are given:
$$\text{Evaluate} \int_{0}^{1} \frac{1}{1+x^2} \text{dx}$$
This is quite easy because you will notice that:
$$\int_{0}^{1} \frac{1}{1+x^2} \text{dx} = \arctan(1) - \arctan(0) = \frac{\pi}{4} $$
But can this be done using complex analysis, contour integration?
Also, is this possible (using contour integration?)
$$\int_{0}^{1} \frac{\ln(1+x)}{1+x^2} \text{dx}$$
Thanks!