Question:

If \[(2+\sin x) \frac{\mathrm{d} y}{\mathrm{~d} x}+(y+1) \cos x=0\] and \[y(0)=1\], then \[y\left(\frac{\pi}{2}\right)\] is

Show Hint

Separate the variables, integrate, and use the initial condition.
Updated On: Nov 17, 2026
  • \(\frac{-2}{3}\)
  • \(\frac{-1}{3}\)
  • \(\frac{4}{3}\)
  • \(\frac{1}{3}\)
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is D

Solution and Explanation

Step 1: Understanding the Concept
Separate: \(\dfrac{dy}{y+1}=-\dfrac{\cos x}{2+\sin x}\,dx\).

Step 2: Integrate
\(\ln|y+1|=-\ln(2+\sin x)+\ln C\), so \((y+1)(2+\sin x)=C\).

Step 3: Use the condition
At \(x=0,\ y=1\): \(2\times2=4=C\).

Step 4: Calculation
At \(x=\dfrac{\pi}{2}\): \((y+1)\cdot3=4\), so \(y=\dfrac{4}{3}-1=\dfrac{1}{3}\), option (D).

Final Answer:
The value of \(y\left(\dfrac{\pi}{2}\right)\) is \(\dfrac{1}{3}\). \[ \boxed{\text{(D) }\dfrac{1}{3}} \]
Was this answer helpful?
0
0