Consider the following question.
tan−1(sinx1+cosx)
=tan−1⎛⎜ ⎜⎝2sinx2cosx22cos2x2⎞⎟ ⎟⎠
=tan−1(tanx2)
=x2
Hence, this is the required answer.