f(x)=sinx√3cosx+1
2(12sinx−12√3cosx)+1
2(sin(x−π3))+1
−1≤sinx−π3≤1
−2≤2sinx−π3≤2
−1≤2sinx−π3+1≤3
−1,3
If f: R→ S defined by f(x)=sinx−√3cosx+1 is onto ,then the interval of S is