Let $f(x) := \arctan(x) + \arctan(1/x)$. Then \begin{align*} f'(x) &= \frac{1}{x^2+1} + \frac{1}{(\frac{1}{x})^2 + 1}\cdot \frac{-1}{x^2} \\ &= \frac{1}{x^2 + 1} + \frac{-1}{x^2 + 1} \\ &= 0 \end{align*}
which should mean that $f$ is a constant function. However, this is false. If $x>0$, $f(x) = \pi/2$, and if $x<0$, $f(x) = -\pi/2$. This apparent contradiction probably has to do with the fact that $f$ is not defined at $x=0$. But where exactly does the reasoning break down?
I saw this in this question (comment thread a while down, searching arctan should find it).