This is the problem:
$$f(x)= \frac{a^x-1}{a^x+1}, \quad a > 0, \quad a \ne 1.$$
What I can get, but I don't think it is right:
$$f^{-1}(x) = \frac{-x-1}{x \ln a-\ln a}.$$
So this is what I did:
$$x=\frac{a^y-1}{a^y+1}$$ $$xa^y+x=a^y-1$$ $$xa^y-a^y=-x-1$$ $$xy\ln(a)-y\ln(a)=-x-1$$ $$y(x\ln(a)-ln(a))$$ $$y=\frac{-x-1}{x\ln(a)-\ln(a)}$$
Solution:$$y=\frac{\ln\frac{-(x+1)}{x-1}}{\ln(a)}$$
You are fine down to $xa^y-a^y=-x-1$, but you take the log on the left and not on the right. When you do so, you assume the log of a sum is the sum of the logs, which is not correct. You seem to be claiming that $\ln (xa^y-a^y)=xy\ln a - y\ln a$. You should distribute out the $a^y$ to get$$(x-1)a^y=-x-1\\a^y=-\frac{x+1}{x-1}$$ now take logs and you are set.