Determine the limit of the following or prove it doesn't exist: $$\lim_{x\to 2} \left(\arctan\left(\frac{1}{2-x}\right)\right)^2$$
If I just plug in the value of $x$, I get an undefined expression. But, unfortunately, I don't see how to expand this limit to either see it doesn't exist or get a value. Any help would be much appreciated.
Performing the substitution $u=\frac{1}{2-x}$, this is just $\lim\limits_{u\to\infty}(\tan^{-1} u)^2$, which evaluates to $\frac{\pi^2}{4}$, since $\lim\limits_{u\to\infty}\tan^{-1} u=\frac{\pi}{2}$. (Note that there actually is a slight technicality, namely that we took only the right hand limit of the original integral. Luckily, the fact that the arctan is squared makes the left hand limit consistent.)