Solveeit Logo

Question

Question: Find the general solution of \[|\sin x| = \cos x\] is (when \[n \in I\]) given by A) \(n\pi + \dfr...

Find the general solution of sinx=cosx|\sin x| = \cos x is (when nIn \in I) given by
A) nπ+π4n\pi + \dfrac{\pi }{4}
B) 2nπ±π42n\pi \pm \dfrac{\pi }{4}
C) nπ±π4n\pi \pm \dfrac{\pi }{4}
D) nππ4n\pi - \dfrac{\pi }{4}

Explanation

Solution

The trigonometric functions are functions which relate the angle of the right angled triangle to the ratios of two side lengths . There are six trigonometric functions , there are sine , cosine , tangent , cosecant , secant and cotangent .
Formula between sine and cosine is sin2x+cos2x=1{\sin ^2}x + {\cos ^2}x = 1 . In any case a variable positive or negative we get the mod value i.e., +a=a=a| + a| = | - a| = a , where aa is a variable, Square of any modulus begins positive terms .

Complete step by step answer:
Given sinx=cosx|\sin x| = \cos x , xIx \in I
Squaring both sides we get ,
(sinx)2=(cosx)2{(|\sin x|)^2} = {(\cos x)^2}
sin2x=cos2x\Rightarrow {\sin ^2}x = {\cos ^2}x
From the formula of sine and cosine sin2x+cos2x=1{\sin ^2}x + {\cos ^2}x = 1
Using Pythagorean identity of right angled triangle we will have sin2x=1cos2x{\sin ^2}x = 1 - {\cos ^2}x
We substitute this in above equation we will have
1cos2x=cos2x\Rightarrow 1 - {\cos ^2}x = {\cos ^2}x
2cos2x=1\Rightarrow 2{\cos ^2}x = 1
Dividing both sides by 22 , we get
cos2x=12\Rightarrow {\cos ^2}x = \dfrac{1}{2}
We know cosπ4=12\cos \dfrac{\pi }{4} = \dfrac{1}{{\sqrt 2 }}
Therefore 12=cos2π4\dfrac{1}{2} = {\cos ^2}\dfrac{\pi }{4} , put this and we get
cos2x=cos2π4\Rightarrow {\cos ^2}x = {\cos ^2}\dfrac{\pi }{4}
Taking square root of both sides , we get
cosx=cosπ4\Rightarrow \cos x = \cos \dfrac{\pi }{4} ………………………………..(i)
If cosx=cosy\cos x = \cos y then we get the general solution x=2nπ±yx = 2n\pi \pm y
x=2nπ±π4\Rightarrow x = 2n\pi \pm \dfrac{\pi }{4} , in this case y=π4y = \dfrac{\pi }{4}
Therefore, option (B) is correct.

Note:
In the equation (i) , we get always positive value because given in the question cosx=sinx\cos x = |\sin x| , for this reason we do not take the negative value of x and in other way we know cosx=cos(x)\cos x = \cos ( - x) . So the option (B) is correct .
We can also solve the given problem by using the like this we will put this formula cos2xsin2x=cos2x{\cos ^2}x - {\sin ^2}x = \cos 2x in the given equation and you get the required answer .