Step 1: Break the function into named layers:
Let $w = \sqrt{x}$, $v = \cos w$, $u = \sqrt{v}$. Then $y = \cos u$. We find each derivative on its own and multiply them.
Step 2: Write the derivative of each layer:
$\dfrac{dy}{du} = -\sin u$
$\dfrac{du}{dv} = \dfrac{1}{2\sqrt{v}}$
$\dfrac{dv}{dw} = -\sin w$
$\dfrac{dw}{dx} = \dfrac{1}{2\sqrt{x}}$
Step 3: Multiply them (chain rule):
\[ \frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dv} \cdot \frac{dv}{dw} \cdot \frac{dw}{dx} = (-\sin u)\left(\frac{1}{2\sqrt{v}}\right)(-\sin w)\left(\frac{1}{2\sqrt{x}}\right) \]
Step 4: Put the original expressions back:
Replace $u = \sqrt{\cos\sqrt{x}}$, $v = \cos\sqrt{x}$ and $w = \sqrt{x}$. The two negative signs multiply to give a positive sign.
\[ \frac{dy}{dx} = \frac{\sin\left(\sqrt{\cos\sqrt{x}}\right)\sin\left(\sqrt{x}\right)}{4\sqrt{x}\sqrt{\cos\sqrt{x}}} \]
Final Answer:
Multiplying the four layer derivatives gives the result.
\[ \boxed{\frac{dy}{dx} = \frac{\sin\sqrt{x}\,\sin\sqrt{\cos\sqrt{x}}}{4\sqrt{x}\,\sqrt{\cos\sqrt{x}}}} \]