# U-Substitution with Integration by Parts

I've been told to evaluate the indefinite integral of this function:

$$\int \sin {\ln {x}} dx$$

I'm supposed to make a $u$-substitution in the beginning, then complete it using integration by parts. Every time I try, I just end up going in circles. Could someone please help me? Thanks!

-

Hint: Let $u = \ln{x}$. Then $du = \frac{1}{x} dx$, or $x du = dx$. Using the fact that $x = e^u$, we can write
$$\int \sin \ln{x} dx = \int e^u \sin{u}du$$
$$\sin{u} = \operatorname{Im} e^{iu}$$