Step 1: Choose a substitution.
The numerator \(\cos x\,dx\) is exactly the differential of \(\sin x\). So we put \(t = \sin x\).
Then \(dt = \cos x\,dx\) and \(\sin^2 x = t^2\).
Step 2: Rewrite the integral in t.
The integral becomes a standard form with only t in it.
\[ \int \frac{\cos x}{\sqrt{\sin^2 x + 1}}\,dx = \int \frac{dt}{\sqrt{t^2 + 1}} \]
Step 3: Use the standard formula.
We know \(\int \frac{dt}{\sqrt{t^2 + a^2}} = \log\left|t + \sqrt{t^2 + a^2}\right| + C\).
Here \(a = 1\), so the result is \(\log\left|t + \sqrt{t^2 + 1}\right| + C\).
Put \(t = \sin x\) back to get the answer in x.
\[ \log\left|\sin x + \sqrt{\sin^2 x + 1}\right| + C \]
This matches option (C).
Step 4: Why the other options are wrong.
(A) The derivative of \(\tan^{-1}(\sin x)\) is \(\frac{\cos x}{1 + \sin^2 x}\). It has no square root, so (A) is wrong.
(B) \(\sin^{-1}(\sin x)\) equals x on the principal range, so its derivative is 1, not the given integrand. So (B) is wrong.
(D) The derivative of \(\log\left|\sin x - \sqrt{\sin^2 x + 1}\right|\) is \(-\frac{\cos x}{\sqrt{\sin^2 x + 1}}\). The sign is opposite, so (D) is wrong.
Final Answer:
The integral equals option (C).
\[ \boxed{\log\left|\sin x + \sqrt{1+\sin^2 x}\right| + C} \]