Join the Most Relevant JEE Main 2025 Test Series & get 99+ percentile! Join Now
Search any question & find its solution
Question: Answered & Verified by Expert
The solution of the differential equation $\frac{\mathrm{d} y}{\mathrm{~d} x}+\frac{y}{x}=\sin x$ is
MathematicsDifferential EquationsMHT CETMHT CET 2023 (11 May Shift 2)
Options:
  • A $x y+\cos x=\sin x+\mathrm{c}$, where $\mathrm{c}$ is a constant of integration.
  • B $x(y+\cos x)=\sin x+\mathrm{c}$, where $\mathrm{c}$ is a constant of integration.
  • C $y(x+\cos x)=\sin x+\mathrm{c}$, where $\mathrm{c}$ is a constant of integration.
  • D $x y+\sin x=\cos x+c$, where $\mathrm{c}$ is a constant of integration.
Solution:
1052 Upvotes Verified Answer
The correct answer is: $x(y+\cos x)=\sin x+\mathrm{c}$, where $\mathrm{c}$ is a constant of integration.
For given linear differential equation,
$\text { I.F. }=\mathrm{e}^{\int \frac{1}{x} d x}=\mathrm{e}^{\log x}=x$
$\therefore \quad$ The required solution is
$y x=\int x \sin x \frac{\mathrm{d} y}{\mathrm{~d} x}$
$\begin{aligned} & \therefore \quad y x=-x \cos x+\int \cos x \mathrm{~d} x \\ & \therefore \quad y x=-x \cos x+\sin x+\mathrm{c} \\ & \therefore \quad x(y+\cos x)=\sin x+\mathrm{c}\end{aligned}$

Looking for more such questions to practice?

Download the MARKS App - The ultimate prep app for IIT JEE & NEET with chapter-wise PYQs, revision notes, formula sheets, custom tests & much more.