To find the range of this function
$$f(x) = \sec ^{-1}(x) + \tan^{-1} (x)$$
I solved it like,
Range ($\sec ^{-1}(x)$) = $[0,π] $~$ ${π/2}
and, Range ($\tan^{-1} (x)$) = $(-π/2 , π/2)$
So the resultant Range will be the intersection of the two individual ranges.
So I got my answer as $[0, π/2)$, but the textbook answer is $(0,π)$. Hence my question is what is happening here and where am I wrong.
Please help me to get the fundamentals used here.
First of all, for real $\sec^{-1}x,$ we need $x^2\ge1$
$\implies$ either $x\ge1$ or $x\le-1$
Let $\sec^{-1}x=y\implies0\le y\le\pi,\ne\dfrac\pi2$ and $x=\sec y$
Case $\#1:$ When $x<0, x\le-1$ and $y>\dfrac\pi2$
$\tan y=-\sqrt{x^2-1}\implies y=\pi+\tan^{-1}(-\sqrt{x^2-1})$
Set $x=-u, u\ge1,$
$$f(x)=\tan^{-1}(x)+\pi+\tan^{-1}(-\sqrt{x^2-1})=\pi-(\tan^{-1}u+\tan^{-1}\sqrt{u^2-1})=g(u)\text{(say)}$$
Clearly, $g(u)$ is a decreasing function
$$g(1)=?, \lim_{u\to\infty}g(u)=0$$
Case $\#2:$ When $x>0, x\ge1$ and $y<\dfrac\pi2;$
$$f(x)=\tan^{-1}x+\tan^{-1}(\sqrt{x^2-1})$$ which is clearly an increasing function
Can you take it from here?