Question
Question: The range of \[f(x)=\cos x-\sin x\]is A.\[\left[ -1,1 \right]\] B.\[\left( -1,2 \right)\] C.\[...
The range of f(x)=cosx−sinxis
A.[−1,1]
B.(−1,2)
C.[−2π,2π]
D.(−2,2)
Solution
Hint : The domain of any given function is the set of input values for which the function is defined. When determining the domain of a function, two situations are considered. Firstly, division by zero is not allowed. So, one must eliminate the values of x which makes the denominator zero.
Secondly, for even roots such as square roots, the radicant cannot be negative. We must make sure that the radicand is nonnegative. The range can be defined as the set of all possible y -values the relation can produce from the x-values. There is no direct way to find the range algebraically. However, one strategy that works most of the time is to find the domain of the inverse function (if it exists). First, swap the x and y variables everywhere they appear in the equation and then solve for y. Find the domain of this new equation and it will be the range of the original.
Complete step-by-step answer :
f(x)=cosx−sinx
Rewriting the above equation by dividing and multiplying by 2
f(x)=2[2cosx−2sinx]
As we know that sin4π=21 and cos4π=21
Applying these we can write the equation as
f(x)=2[sin4πcosx−cos4πsinx]
Further solving using the trigonometric formulas we get
f(x)=2sin(4π−x)
We know that the domain of sinx is [−1,1], that means
−1≤sinx≤1
So,
−1≤sin(4π−x)≤1
Multiplying by 2 we get
−2≤2sin(4π−x)≤2
We can write the above equation as
−2≤f(x)≤2
Therefore, the range of f(x)=cosx−sinx is [−2,2].
Hence, option (D) is the correct answer.
So, the correct answer is “Option D”.
Note : The range of the real function is the set of all real values taken at points in its domain. In order to find the range of real functions, first solve the equation and find the values. The set of values obtained is the range of the function.