Step 1: Understanding the Concept
Let \(I=\int\cos(\log x)\,dx\). Use integration by parts with \(u=\cos(\log x)\), \(dv=dx\).
Step 2: First application
\(I=x\cos(\log x)+\int\sin(\log x)\,dx\).
Step 3: Second application
\(\int\sin(\log x)dx=x\sin(\log x)-\int\cos(\log x)dx=x\sin(\log x)-I\).
Step 4: Solve
\(I=x\cos(\log x)+x\sin(\log x)-I\), so \(2I=x[\cos(\log x)+\sin(\log x)]\).
Final Answer:
The integral is \(\dfrac{x}{2}[\sin(\log x)+\cos(\log x)]+C\).
\[ \boxed{\text{(C) }\dfrac{x}{2}[\sin(\log x)+\cos(\log x)]+C} \]