Step 1: Understanding the Concept
Let \(I=\int\cos(\log x)\,dx\). Use integration by parts with 1 as the second function.
Step 2: First step
\(I=x\cos(\log x)+\int\sin(\log x)\,dx\), because \(\frac{d}{dx}\cos(\log x)=-\frac{\sin(\log x)}{x}\).
Step 3: Second step
\(\int\sin(\log x)\,dx=x\sin(\log x)-\int\cos(\log x)\,dx=x\sin(\log x)-I\).
Step 4: Calculation
So \(I=x\cos(\log x)+x\sin(\log x)-I\), giving \(2I=x(\cos(\log x)+\sin(\log x))\).
Hence \(I=\frac{x}{2}(\cos(\log x)+\sin(\log x))+c\), option (C).
Final Answer:
The integral equals x/2 times (cos(log x) + sin(log x)) plus c.
\[ \boxed{\text{(C) }\dfrac{x}{2}(\cos(\log x)+\sin(\log x))+c} \]