I tried finding $\int{\dfrac{\cos{x}}{2+\sin{x}}}dx$ via Weierstraß substitution: $t = \tan{\frac{x}{2}}$ and alternatively via $u = 2 + \sin{x}$.
The first approach results in a rational function in $t$, applying partial fraction decomposition and solving elementary integrals. Eventually it yields $$\log{\left(\frac{1}{2}\sin{(x)}+1\right)}$$
The second approach is more straight forward and gives
$$\log{(\sin{(x)}+2)}$$
Are these expressions potentially equal since I could not find any computation error.