While I know that the answer is $-\frac{1}{8}\arctan \frac{4}{\sqrt{x^4-16}},$ I couldn't reach it. When I solved it I reached a different answer, if someone can point at what point I made a mistake and what is the way to solve it I will be thankful.
I will start with taking $u=x^2$, so $du =2x \;dx,$ and $dx = du/2x.$ So I will multiple the integral by $2$ making it $2\int \frac{du}{\sqrt{u^2-4^2}}$ after that I will use the $\cosh^{-1}x$ to make it $2\cosh^{-1}(x^2/4) + c$