Question
Question: The range of \(f(x) = \cos x - \sin x,\) is...
The range of f(x)=cosx−sinx, is
A
(−1,1)
B
[−1,1)
C
[−2π,2π]
D
[−2,2]
Answer
[−2,2]
Explanation
Solution
Let,f(x)=cosx−sinx⇒f(x)=2(21cosx−21sinx)
⇒f(x)=2cos(x+4π)
Now since, −1≤cos(x+4π)≤1 ⇒−2≤f(x)≤2
⇒f(x)∈[−2,2]
Trick : ∵ Maximum value of cosx−sinx is 2 and
minimum value of cosx−sinx is −2.
Hence, range of f(x)=[−2,2].