Let $x > 0$. Prove that the value of the following expression doesn't depend on x
$$\int_{0}^{x} \frac{1}{1+t^2} dt + \int_{0}^{\frac{1}{x}} \frac{1}{1+t^2}dt$$
Attempt:
Left: f'(x) = $\frac{1}{1+x^2}$
Right: f'(x) = $\frac{1}{1+(\frac{1}{x})^2} -\frac{1}{x^2}$
$= \frac{1}{(1+\frac{1}{x^2})} - \frac{1}{x^2}$
$=\frac{x^2}{1+x^2} - \frac{1}{x^2}$
$=\frac{x^4 - x^2 - 1}{1+x^2}$
Yeah I don't know what I am doing, I tried to remove the integral but failed miserably