How to properly simplify and trig substitute this integral? $\int\frac{{\sqrt {25-x^2}}}x\,dx$
I see that it is the form $a-x^2$.
Let $x = 5\sin\theta$
Then substitute this $x$ value in and 
get $\int\frac {\sqrt {25-(5 \sin\theta)^2}}{5 \sin\theta}\, d\theta $
Take the root, simplified to $\int\frac { {5-(5 \sin\theta)}}{5 \sin\theta}\,d\theta $
Factor out 5 and cancel, simplified to $\int\frac { {5(1-( \sin\theta))}}{5 (\sin\theta)}\, d\theta $
Divide by $\sin\theta$ to get $\int\frac { (1-( \sin\theta))}{ (\sin\theta)}\, d\theta $
Simplified to $\int\frac {1}{ \sin\theta}d\,\theta - 1 $
I am stuck here and I can't figure it out. Supposedly the answer simplifies to  $\int-5 \sin x \tan x \,dx$
 A: If $x = 5\sin\theta$ then $dx = 5\cos\theta\, d\theta.$ That was neglected.
You also replaced $\sqrt{25 - (5\sin\theta)^2}$ with $5 - 5\sin\theta.$ That is also not correct. Notice that, for example,
$$
\sqrt{5^2 - 3^3} = \sqrt{25-9} = \sqrt{16} = 4 \ne 5-3, \text{ so } \sqrt{5^2-3^2} \text{ differs from } 5-3.
$$
A: Let us begin by $x=5t $ and $dx=5\,dt $.
it becomes
$$\int\frac {\sqrt {25 (1-t^2)}}{5t}5\,dt $$
$$=5\int \frac {\sqrt {1-t^2}}{t}\,dt $$
now put $t=\sin (u) $ and $dt=\cos (u)\,du $.
we get
$$\pm 5\int \frac {\cos(u)}{\sin (u)}\cos (u)\,du $$
$$=\pm 5 \int \frac {\cos^2 (u)}{1-\cos^2 (u)}\sin (u)\,du $$
put $v=\cos (u) $ and you can finish.
A: Following your steps, with corrections:
$\int\frac{{\sqrt {25-x^2}}}x\,dx$
I see that it is the form $a-x^2$.
Let $x = 5\sin\theta$
Then $dx=5\cos\theta d\theta$
Then substitute this $x$ and $dx$ value in and 
get $\int\frac {\sqrt {25-(5 \sin\theta)^2}}{5 \sin\theta}\, 5\cos\theta d\theta $
Using the trig identity, simplify the root to get  $\int\frac {\sqrt {25\cos^2\theta}}{5 \sin\theta}\, 5\cos\theta d\theta $
Factor out 5 and cancel, simplified to get  $\int\frac {5|cos\theta|}{ \sin\theta}\, \cos\theta d\theta $
(Note that we're taking the square root of a square here, so we should get the absolute value. Unless you're on a domain where cosine is positive, you can't neglect this.)
This seems to not be where you want to go.
Let's try instead a substitution of $x=5\cos\theta$. Then $dx=-5\sin\theta d\theta$
Thus, we have $-\int\frac{\sqrt{25-(5\cos\theta)^2}}{5\cos\theta}5\sin\theta d\theta$
After simplification, we get $-5\int\frac{|\sin\theta|}{\cos\theta}\sin\theta d\theta$
The simplification you get works if x is such that $\sin\theta$ is always positive, so we can drop the absolute value sign.
