Q. The solution of $dy = \cos x(2 - y\ cosec\ x)dx$, where $y = \sqrt{2}$, when $x = \frac{\pi}{4}$ is

A) $y = \sin x + \frac{1}{2}\ cosec\ x$
B) $y = \tan{(\frac{x}{2})} + \cot\left( \frac{x}{2} \right)$
C) $y = \left( \frac{1}{\sqrt{2}} \right)\sec\left( \frac{x}{2} \right) + \sqrt{2}\cos\left( \frac{x}{2} \right)$
D) None of the above
Explanation

(a)
Given, $\frac{dy}{dx} = 2\cos x - y\cos x\ cosec\ x$
$\Rightarrow$ $\frac{dy}{dx} + y\cot x = 2\cos x$
$\therefore$ $IF = e^{\int_{}^{}{\cot x\ dx}} = e^{\log\left( \sin x \right)} = \sin x$
$\therefore$ Solution is $y\sin x = \int_{}^{}{2\cos x}\sin x\ dx + c$
$\Rightarrow$ $y\sin x = \int_{}^{}{\sin{2x}}\ dx + c$
$\Rightarrow \ \$ $y\sin x = \frac{- \cos{2x}}{2} + c$
At $x = \frac{\pi}{4},y = \sqrt{2}$
$\therefore$ $\sqrt{2}\sin\frac{\pi}{4} = \frac{- \cos{2(\frac{\pi}{4})}}{2} + c$
$\Rightarrow$ $c = 1$
$\therefore$ $y\sin x = - \frac{1}{2}\cos{2x} + 1$
$\Rightarrow$ $y = - \frac{1}{2}.\ \frac{\cos{2x}}{\sin x} + cosec\ x$
$\Rightarrow$ $y = - \frac{1}{2\sin x}\left( 1 - 2\sin^{2}x \right) + cosec\ x$
$\Rightarrow$ $y = \frac{1}{2}\ cosec\ x + \sin x$

Dr. Abubacker
Reviewed by Dr. Abubacker

Physics Educator & NEET/JEE Specialist

Ph.D. in Physics with 19+ years of teaching experience.