Is it correct to say that $\displaystyle \lim_{M\to\infty}\frac{1}{2}tan^{-1}(M^2)=\frac{\pi}{4}$?
Yes! You know that the inverse tangent function limits off at $\displaystyle \frac{\pi}{2}$, so you just use properties of limits and multiply it by one half.