Advertisements
Advertisements
Question
\[\frac{dy}{dx}\] = y tan x − 2 sin x
Advertisements
Solution
We have,
\[\frac{dy}{dx} = y \tan x - 2\sin x\]
\[\frac{dy}{dx} - y \tan x = - 2\sin x . . . . . \left( 1 \right)\]
Clearly, it is a linear differential equation of the form
\[\frac{dy}{dx} + Py = Q\]
where
\[P = - \tan x\]
\[Q = - 2\sin x \]
\[ \therefore \text{I.F.} = e^{\int P\ dx} \]
\[ = e^{- \int\tan x dx} \]
\[ = e^{- \log\left| \sec x \right|} = \cos x\]
\[\text{ Multiplying both sides of }\left( 1 \right)\text{ by }\cos x, \text{ we get }\]
\[\cos x \left( \frac{dy}{dx} - y \tan x \right) = - 2\sin x \times \cos x\]
\[ \Rightarrow \cos x\frac{dy}{dx} - y\sin x = - \sin 2x \]
Integrating both sides with respect to x, we get
\[y \cos x = - \int\sin 2x dx + C\]
\[ \Rightarrow y\cos x = \frac{\cos 2x}{2} + C\]
\[ \Rightarrow 2y \cos x = \cos 2x + 2C\]
\[ \Rightarrow 2y \cos x = \cos 2x + K, ..........\left(\text{where }k = 2C \right)\]
\[\text{ Hence, }2y \cos x = \cos 2x + K\text{ is the required solution.}\]
