3sinx+√3 cos x=2√3(√3/2 sin x+1/2cosx)=2√3 sin(x+π/6)=2√3 sin(x+y)
y=π/6+2kπ,k属于整数,又因为y属于(-π,π)
所以y=π/6