This solution I have found in my book for the indefinite integral
$\int{\frac{1}{\sqrt{x^2-9}}dx}=ln|x+\sqrt{x^2-9}| +c$
I think that this is acceptable only for $0<\theta<\frac{\pi}{2}$.
But what about when $\frac{\pi}{2}<\theta<\pi$ ? Is it the same? I think it is opposite to the above, means:
$\int{\frac{1}{\sqrt{x^2-9}}dx}= -ln|x+\sqrt{x^2-9}| +c$.
beacuse:
$\sqrt{x^2-9}=\sqrt{\tan^2\theta}=|\tan\theta|$
which is positive when $0<\theta<\frac{\pi}{2}$ and negative when $\frac{\pi}{2}<\theta<\pi$.
Can you explain me what happens in this situation?
How do I work out the integral?