In solving the integral $\int \frac{\sqrt{a^2-x^2}}{x} \, dx$ I have found out by hand thet the result is $$|a|\sqrt{1-\bigg(\frac{x}{a}\bigg)^2}+\frac{|a|}{2}\ln\Bigg({\frac{\bigg|1-\sqrt{1-\bigg(\frac{x}{a}\bigg)^2}\bigg|}{\bigg|1+\sqrt{1-\bigg(\frac{x}{a}\bigg)^2}\bigg|}}\Bigg)+c=\sqrt{a^2-x^2}-|a|\ln{\Bigg(\frac{|a|\big(\sqrt{1-\frac{x^2}{a^2}}+1\big)}{|x|}}\Bigg)+c$$ But in order to check my result I have write the integral on wolfram and it tells me that is: $$\sqrt{(a^2 - x^2)} - a \tanh^{-1}{(\frac{\sqrt{a^2 - x^2}}{a}}) \,\,\,\,(*)$$ Wolfram Alpha
I don't know if really my result and $(*)$ are equivalent. Can you help me?
Since $\operatorname{artanh}u=\tfrac12\ln\tfrac{1+u}{1-u}$, Wolfram Alpha's formula is $\sqrt{a^2-x^2}-\tfrac12a\ln\tfrac{a+\sqrt{a^2-x^2}}{a-\sqrt{a^2-x^2}}+c$, in agreement with your calculation.