The given question asks us to evaluate the indefinite integral:
\(\int \sin(\log x)\,dx\)
To solve this integral, we will use integration by parts. Recall the integration by parts formula:
\(\int u\,dv = uv - \int v\,du\)
Here, we select:
Then, we find:
Applying the integration by parts formula, we get:
\(\int \sin(\log x)\,dx = x \sin(\log x) - \int x \cos(\log x) \, \frac{1}{x} \, dx\)
Simplifying further:
\(= x \sin(\log x) - \int \cos(\log x) \, dx\)
Notice, we now have a similar integral to solve. We use integration by parts again:
Then, we find:
Applying the integration by parts formula again, we get:
\(\int \cos(\log x)\,dx = x \cos(\log x) + \int x \sin(\log x) \, \frac{1}{x} \, dx\)
Simplifying this gives:
\(= x \cos(\log x) + \int \sin(\log x) \, dx\)\)
We recognize that we've set up an equation in terms of the original integral:
\(I = x \sin(\log x) - [x \cos(\log x) + I]\)
Solving for \(I\) gives:
\(2I = x \sin(\log x) - x \cos(\log x)\)
Thus:
\(I = \frac{x}{2}[\sin(\log x) + \cos(\log x)] + C\)
The correct answer is:
\(\dfrac{x}{2}[\sin(\log x)+\cos(\log x)] + C\)