Question
Question: The general solution of \(\left| \sin x \right|=\cos x\) is (When \(n\in Z \)) given by (A) \(n\pi...
The general solution of ∣sinx∣=cosx is (When n∈Z) given by
(A) nπ+4π
(B) 2nπ±4π
(C) nπ±4π
(D) nπ−4π
Solution
We solve this question by first considering the given equation, ∣sinx∣=cosx. Then we consider the definition of modulus function and then we use it to define ∣sinx∣. Then we consider the case when sinx>0. Then we solve it to find the value of tanx. Then we use the formula for the general solution of equation tanx=tanθ, x=nπ+θ and find the general solution when sinx>0. Then we consider the case when sinx<0 and solve it to find the value of tanx. Then we use the formula for the general solution of equation tanx=tanθ, x=nπ+θ and find the general solution when sinx<0. So, combining the obtained solutions we can find the general solution of ∣sinx∣=cosx.
Complete step by step answer:
The equation we are given is ∣sinx∣=cosx.
First let us consider the definition of modulus function.
\left| x \right|=\left\\{ \begin{matrix}
x\ \ \ if\ \ x>0 \\\
-x\ \ \ if\ \ x<0 \\\
\end{matrix} \right.
So, we can write ∣sinx∣ as,
\left| \sin x \right|=\left\\{ \begin{matrix}
\sin x\ \ \ if\ \ \sin x>0 \\\
-\sin x\ \ \ if\ \ \sin x<0 \\\
\end{matrix} \right...............\left( 1 \right)
First let us consider the case when sinx>0.
Then from equation (1) we get ∣sinx∣ as,
⇒∣sinx∣=sinx
As we are given that ∣sinx∣=cosx, we get,
⇒cosx=sinx⇒cosxsinx=1⇒tanx=1
Now let us find the principal value of the above tangent function.
⇒tanx=tan4π
Now let us consider the formula for the general solution of equation tanx=tanθ,
x=nπ+θ
So, we get the general solution of tanx=tan4π as,
⇒x=nπ+4π...........(2)
Now let us consider the case when sinx<0.
Then from equation (1) we get ∣sinx∣ as,
⇒∣sinx∣=−sinx
As we are given that ∣sinx∣=cosx, we get,
⇒cosx=−sinx⇒cosxsinx=−1⇒tanx=−1
Now let us find the principal value of the above tangent function.
⇒tanx=tan(−4π)
Now let us consider the formula for the general solution of equation tanx=tanθ,
x=nπ+θ
So, we get the general solution of tanx=tan(−4π) as,
⇒x=nπ−4π...........(2)
So, from equation (2) and equation (3) we get the general solution of ∣sinx∣=cosx as,
⇒x=nπ+4π,nπ−4π⇒x=nπ±4π
So, we get the general solution of ∣sinx∣=cosx as x=nπ±4π.
So, the correct answer is “Option A”.
Note: The common mistake one makes is one might take the formula for the general solution of equation tanx=tanθ as x=2nπ+θ then one gets the final solution for the question as x=2nπ±4π and mark the answer as Option B. But it is wrong as the correct formula is x=nπ+θ.