If $\arctan(\tan(\theta))$ is not necessarily equal to $\theta$, how come if we are given $y=\tan(θ)$ the solution in terms of $\theta$ is $\theta=\arctan(y)$?
I'm trying to intergrate $1/(1+y^2)$ using trig substitution and I am trying to get my solution, $\theta$, in terms of $y$, $y=\tan(\theta)$