Concept:Express cosx+3sinx in the form 2cos(x−3π).Explanation:We have cosx+3sinx=2(21cosx+23sinx)Since cos3π=21 and sin3π=23,cosx+3sinx=2cos(x−3π)The maximum value of cos is 1, which occurs when its angle is 0.So, x−3π=0⇒x=3π.Answer:x=3π, i.e., option B.