Key idea: write asinx+bcosx as Rsin(x−ϕ) with R=a2+b2.
- sinx−3cosx=2(21sinx−23cosx)=2sin(x−3π).
- This takes every value in [−2,2].
- So f(x)=2sin(x−3π)+1 takes every value in [−1,3].
- For f to be onto, S must equal the range: S=[−1,3].
Answer: (D) [−1,3]