We have,
∫dx√3sinx+cosx
On divide and multiply denominator
∫dx2(√32sinx+12cosx)
=12∫dx(√32sinx+12cosx)
=12∫dx(sinxcosπ6+cosxsinπ6)
=12∫dxsin(x+π6)
=12∫csc(x+π6)dx
=−12ln[csc(x+π6)+cot(x+π6)]+C