Question:

\[\int \cos (\log x) \mathrm{d} x=\]

Show Hint

Integrate by parts twice and solve for the original integral.
Updated On: Nov 16, 2026
  • \(\frac{x}{2}(\mathrm{sin}(\mathrm{log}x)-\mathrm{cos}(\mathrm{log}x))+c\), (where c is a constant of integration)
  • \(x(\mathrm{cos}(\mathrm{log}x)-\mathrm{sin}(\mathrm{log}x))+c\), (where c is a constant of integration)
  • \(\frac{x}{2}(\mathrm{cos}(\mathrm{log}x)+\mathrm{sin}(\mathrm{log}x))+\mathrm{c}\), (where c is a constant of integration)
  • \(x(\mathrm{cos}(\mathrm{log}x)+\mathrm{sin}(\mathrm{log}x))+c\), (where c is a constant of integration)
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

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} \]
Was this answer helpful?
0
0