Question:medium

If \(y=\sqrt{y+\cos x}\), then \(\frac{dy}{dx}\) is equal to :

Show Hint

Square both sides to get y^2 = y + cos x and differentiate implicitly, then solve for dy/dx.
Updated On: Oct 22, 2026
  • \(\frac{1}{2\sqrt{y+\cos x}}\)
  • \(\frac{\cos x}{2y-1}\)
  • \(\frac{-\sin x}{2\sqrt{y+\cos x}}\)
  • \(\frac{\sin x}{1-2y}\)
Show Solution

The Correct Option is D

Solution and Explanation

Step 1: Differentiate the root directly:
Let $u=y+\cos x$, so $y=\sqrt{u}$. By the chain rule,
\[ \frac{dy}{dx}=\frac{1}{2\sqrt{u}}\cdot\frac{du}{dx} \]

Step 2: Find du/dx:
\[ \frac{du}{dx}=\frac{dy}{dx}-\sin x \]

Step 3: Replace the root by y:
From the given equation, $\sqrt{u}=y$. So
\[ \frac{dy}{dx}=\frac{1}{2y}\left(\frac{dy}{dx}-\sin x\right) \]
Multiply both sides by $2y$.
\[ 2y\,\frac{dy}{dx}=\frac{dy}{dx}-\sin x \]

Step 4: Solve for dy/dx:
\[ (2y-1)\frac{dy}{dx}=-\sin x \ \Rightarrow\ \frac{dy}{dx}=\frac{\sin x}{1-2y} \]
Options (A), (B) and (C) do not match this form, so only (D) is correct.

Final Answer:
$\frac{dy}{dx}=\frac{\sin x}{1-2y}$, option (D). \[ \boxed{\frac{\sin x}{1-2y}} \]
Was this answer helpful?
0