Clearly, domain of f(x) is R and f(x)>0,∀x∈R
Let y=f(x)
Then, y=2−cos3x1 ⇒cos3x=y2y−1 ⇒x=31cos−1(y2y−1)
For x to be real, we must have −1≤y2y−1≤1 ⇒−y≤2y−1≤y ⇒−y≤2y−1 and 2y−1≤y ⇒3y≥1 and y≤1 ⇒y≥31 and y≤1 ⇒y∈[31,1]
Therefore, range (f)=[31,1]