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 equal to

Show Hint

Separate the variables and use the product (y+1)(2+sin x) as a constant.
Updated On: Nov 16, 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
\((2+\sin x)\dfrac{dy}{dx}=-(y+1)\cos x\) is separable.

Step 2: Separate and Integrate
\(\dfrac{dy}{y+1}=-\dfrac{\cos x}{2+\sin x}dx\Rightarrow \ln(y+1)=-\ln(2+\sin x)+C\).

Step 3: Constant
\((y+1)(2+\sin x)=K\). At \(x=0,\ y=1\): \(K=2\times2=4\).

Step 4: Evaluate
At \(x=\dfrac\pi2\): \((y+1)\cdot3=4\Rightarrow y=\dfrac13\).

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