We have,
sin−12a1+a2+cos−1 1−b21+b2=2 tan−1x
2 tan−1a+2 tan−1b=2 tan−1x
⇒tan−1a+tan−1b=tan−1x
⇒tan−1x=tan−1a+tan−1b
⇒tan−1x=tan−1 a+b1−ab
⇒x=a+b1−ab
Hence, this is the answer.