When trying to solve $\int\frac{dx}{\sqrt{x^2-a^2}}$ we can substitue $x$ in two ways:
METHOD 1: $x=a\sec(\theta)$ and $dx=a\sec(\theta)\tan(\theta) d\theta$ and $\theta=\sec^{-1}(\frac{x}{a})$.
METHOD 2: $x=a\cosh(u)$ and $dx=a\sinh(u)du$ and $u=\cosh^{-1}(\frac{x}{a})$
My calculus-book states that we can use a similar method when we assume $x\le -a$.
I can see how that would work with method 1 because $\sec^{-1}(\frac{x}{a})$ is indeed defined for $x\le -a$.
QUESTION: But how would that work in method 2? $\cosh^{-1}(\frac{x}{a})$ is only defined for $\frac{x}{a}\ge1$ and if $x\le-a$ then $\frac{x}{a}$ is negative. So in this case $\cosh^{-1}(\frac{x}{a})$ is not defined!!!
What is happening here? Thanks!
Given that $a>0$ you cannot substitute $x=a \cosh u$ when you are interested in $x$-values $<-a$. In order to use the basic idea of method 2 also when $x<-a$ we just set up the substitution $$x:=-a\cosh u\quad (u>0),\qquad dx=-a\sinh u\>du\ ,$$ and obtain $$\eqalign{\int{dx\over\sqrt{x^2-a^2}}&=\int{-a\sinh u\>du\over a\sinh u}\Biggr|_{u:={\rm arcosh}(-x/a)}\cr &=(-u+C)\biggr|_{u:={\rm arcosh}(-x/a)}\cr &=-{\rm arcosh}{-x\over a}\qquad(x<-a)\ .\cr}$$ Note that this is not the same as the answer for $x>a$, since ${\rm arcosh}$ is not an odd function.