Solveeit Logo

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)=cosxsinxf(x)=\cos x-\sin xis
A.[1,1]\left[ -1,1 \right]
B.(1,2)\left( -1,2 \right)
C.[π2,π2]\left[ -\dfrac{\pi }{2},\dfrac{\pi }{2} \right]
D.(2,2)\left( -\sqrt{2},\sqrt{2} \right)

Explanation

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 xx 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 yy -values the relation can produce from the xx-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 xx and yy 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)=cosxsinxf(x)=\cos x-\sin x
Rewriting the above equation by dividing and multiplying by 2\sqrt{2}
f(x)=2[cosx2sinx2]f(x)=\sqrt{2}\left[ \dfrac{\cos x}{\sqrt{2}}-\dfrac{\sin x}{\sqrt{2}} \right]
As we know that sinπ4=12\sin \dfrac{\pi }{4}=\dfrac{1}{\sqrt{2}} and cosπ4=12\cos \dfrac{\pi }{4}=\dfrac{1}{\sqrt{2}}
Applying these we can write the equation as
f(x)=2[sinπ4cosxcosπ4sinx]f(x)=\sqrt{2}\left[ \sin \dfrac{\pi }{4}\cos x-\cos \dfrac{\pi }{4}\sin x \right]
Further solving using the trigonometric formulas we get
f(x)=2sin(π4x)f(x)=\sqrt{2}\sin \left( \dfrac{\pi }{4}-x \right)
We know that the domain of sinx\sin x is [1,1]\left[ -1,1 \right], that means
1sinx1-1\le \sin x\le 1
So,
1sin(π4x)1-1\le \sin \left( \dfrac{\pi }{4}-x \right)\le 1
Multiplying by 2\sqrt{2} we get
22sin(π4x)2-\sqrt{2}\le \sqrt{2}\sin \left( \dfrac{\pi }{4}-x \right)\le \sqrt{2}
We can write the above equation as
2f(x)2-\sqrt{2}\le f(x)\le \sqrt{2}
Therefore, the range of f(x)=cosxsinxf(x)=\cos x-\sin x is [2,2]\left[ -\sqrt{2},\sqrt{2} \right].
Hence, option (D)(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.