How to solve $\displaystyle\int x\, \frac{\sqrt {a^2 - x^2}}{\sqrt{a^2+x^2}}\, dx$?
I have tried substituting $x = a \sin(\theta)$ and got
$$a^2\int\frac{\sin(\theta) \cos^2(\theta)}{\sqrt{1+\sin^2(\theta)}}\, d \theta.$$
I'm not sure how to proceed from here.
Hint:
Set $x^2=a^2\cos2t,0\le2t\le\dfrac\pi2$ and $\cos2t=\cdots\ge0$
$\implies x\ dx=-\sin2t\ dt$ and $\sin2t=+\sqrt{1-\cos^22t}=?$
$$\sqrt{\dfrac{a^2-x^2}{a^2+x^2}}=+\tan t$$ and $0\le t\le\dfrac\pi4,\tan t\ge0$