Artificial intelligent assistant

Find $\sin(\frac{x}{2})$, given $\tan(x) = 2$, with $0 < x < \frac{\pi}{2}$. Find $\sin(\frac{x}{2})$, given $\tan(x) = 2$, with $0 < x < \frac{\pi}{2}$. Which half-identity formular should I use and why?

$\tan^2 x + 1 =\sec^2 x\\\ \sec x = \sqrt 5\\\ \cos x = \frac {1}{\sqrt 5}\\\ \sin \frac{x}{2} = \sqrt {\frac {1-\cos x}{2}}$

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy a10ee889524b8a092a8905f379bd5aa1