If f:R→S is given by fx=sinx−3 cosx+1 is onto, then interval of S is
0,1
−1,1
0,3
−1,3
We have −a2+b2≤asinx+bcosx≤a2+b2
So −1+3≤sinx−3cosx≤1+3
⇒−2≤sinx−3cosx≤2
⇒−2+1≤sinx−3cosx+1≤2+1
⇒−1≤fx≤3
⇒S=-1,3