I am trying to find $$\int \dfrac{\sqrt{1-x^2}}{x^2} \operatorname d \! x$$
I can get to $${\int \dfrac{\sin x}{\cos^2x}\operatorname d \! x}$$
I tried u substitution by making $u=\cos x$ and $du= −\sin x dx$
but this leads to $$\int \dfrac{1}{u^2}\operatorname d \! u$$ and this is where I get stuck $$ \dfrac{1}{\cos x}.$$
The actual answer is $\int \frac{\sqrt{1-x^2}}{x^2}dx=-\frac{\sqrt{1-x^2}}{x}-\arcsin \left(x\right)+C$
From where does the arcsin(x) come from? Also the first term doesn't make sense if I'm dealing with 1/cosx ... :(
Careful, you left out your variable of integration (the $dx$) and also used $x$ to mean two different things. Let's back up and be more careful. $$x = \cos \theta,\ dx = -\sin \theta d\theta$$ $$\int \frac{\sqrt{1-x^2}}{x^2} dx = \int \frac{\sin \theta}{\cos^2 \theta}(-\sin \theta d\theta) = -\int\tan^2\theta d\theta$$ (Since I wrote this answer other people have edited the original question and added in the $d$s, but the other problems remain.)