The integral to compute is $\displaystyle\int_0^\infty \frac{1}{3+x^2} \ \mathrm dx$.
I know how to compute the indefinite integral of this function - I obtained:
$$\frac{\sqrt{3}}{3} \arctan\left(\frac{x}{\sqrt{3}}\right).$$
But when I compute the definite integral it now gives me :
$$\frac{\sqrt{3}}{3} \left(\lim\limits_{x \to \infty }\arctan\left(\frac{x}{\sqrt{3}}\right)-\arctan(0)\right).$$
Then I don't understand why my teacher writes that $\arctan(0)=0$ because it also can be equal to $\pi$, and more strangely, I don't know how $\lim\limits_{x \to \infty }\arctan\left(\frac{x}{\sqrt{3}}\right)=\pi/2$.
Can someone explain how the limit is evaluated? Thank you for help !
EDIT : I only need to know how to compute the limit.