Integrate
$$\int\frac{1}{1+a^2+x^2}dx$$
where $a$ is constant.
My approach: Substitute $x=\frac{1}{t}$, then I am get an answer in terms of $\arctan x$.
Please tell me whether i am correct or not, since my answer doesn't match with teacher's answer.
Just let $$x=\sqrt{1+a^2}\, t\implies dx=\sqrt{1+a^2}\, dt$$ making $$I=\int \frac{dx}{1+a^2+x^2}=\frac 1{\sqrt{1+a^2}}\int \frac{dt}{1+t^2}$$