Step 1: Choose the substitution:
The integrand has \(\sqrt{x}\) inside the cotangent and also \(\sqrt{x}\) in the denominator.
So we put \(t=\sqrt{x}\).
Then \(dt=\dfrac{1}{2\sqrt{x}}\,dx\), which gives \(\dfrac{dx}{\sqrt{x}}=2\,dt\).
Step 2: Rewrite the integral in t:
Replace \(\sqrt{x}\) by \(t\) and \(\dfrac{dx}{\sqrt{x}}\) by \(2\,dt\).
\[ I=\int \cot t\cdot 2\,dt = 2\int \cot t\,dt \]
Step 3: Use the standard integral:
We know \(\displaystyle\int \cot t\,dt=\log|\sin t|+C\).
\[ I = 2\log|\sin t| + C \]
Step 4: Go back to x:
Put \(t=\sqrt{x}\) again.
\[ I = 2\log\left|\sin\sqrt{x}\right| + C \]
Step 5: Check each option:
Option (A) \(\log\sin\sqrt{x}+C\) has no factor 2, so it is only half of the answer. It is wrong.
Option (B) has the extra factor \(\dfrac{1}{2\sqrt{x}}\) outside the logarithm. That factor comes from \(dt\), and it must not stay in the answer. It is wrong.
Option (C) is \(2\log\sin\sqrt{x}+C\). It matches our result. It is correct.
Option (D) keeps the factor \(\dfrac{1}{\sqrt{x}}\) outside the logarithm. This is the same mistake as in (B). It is wrong.
Final Answer:
The integral equals \(2\log\sin\sqrt{x}+C\), which is option (C).
\[ \boxed{2\log\sin\sqrt{x}+C} \]