Solution:
Put x=tanθ, so that θ=tan−1x. Then
1+x22x=1+tan2θ2tanθ=sin2θ
So, for ∣x∣≤1 (where 2θ lies in [−2π,2π]),
sin−1(1+x22x)=sin−1(sin2θ)=2θ=2tan−1x
Hence,
∫sin−1(1+x22x)dx=2∫tan−1xdx
Integrate by parts, with tan−1x as the first function and the constant function 1 as the second function.
∫tan−1xdx=xtan−1x−∫1+x2xdx=xtan−1x−21log(1+x2)
(For the last integral, put 1+x2=t, so that 2xdx=dt.)
So,
∫sin−1(1+x22x)dx=2[xtan−1x−21log(1+x2)]+C
Therefore,
∫sin−1(1+x22x)dx=2xtan−1x−log(1+x2)+C