While trying to integrate $\sin(\ln(x))$, I used both Euler's formula for complex sine as well as a more traditional integration by parts method. The first method gave me the solution
$\int\frac{e^{i\ln(x)}-e^{-i\ln(x)}}{2i}\text dx=\frac{1}{2i}(\int x^i\text dx-\int x^{-i}\text dx)=\frac{1}{2i}(\frac{x^{i+1}}{i+1}-\frac{x^{-i+1}}{-i+1})=\frac{x^{i+1}}{-2+2i}-\frac{x^{-i+1}}{2+2i},$
while the second method, using the substitution $u=\ln(x)$, gave
$\int\sin(\ln(x))\text dx=\int e^u\sin(x)\text dx=e^u\sin(u)-e^u\cos(u)-\int e^u\sin(u)\text du\\ 2\int e^u\sin(u)\text du=e^u\sin(u)-e^u\cos(u)\\ \int\sin(\ln(x))\text dx=\frac{x\sin(\ln(x))-x\cos(\ln(x))}{2}$
I checked both solutions in WolframAlpha and they both appear to be correct and equivalent to each other. However, I'm not sure how to go about proving that they are equivalent. Is there any way to verify that both solutions are the same? I've tried rearranging the first solution to see if I can put it in terms of sine and cosine, but can't figure out any way to do so.
Note that The two fractions on the left are conjugates. $$\frac{x^{i+1}}{-2+2i}-\frac{x^{-i+1}}{2+2i}= \frac{x\sin(\ln(x))- x\cos(\ln(x))}{2}$$
Since $$Z+\overline Z =2Re(Z) $$ All we have to do is to find $$ 2Re(\frac{x^{i+1}}{-2+2i})$$
We have $$x^i = e^{i ln(x)}=cos(ln(x))+isin(ln(x))$$ and $$\frac {1}{-1+i}=\frac {-1-i}{2}$$
Upon multiplication and separation of the real part from the imaginary part we get the desired result of $$ 2Re(\frac{x^{i+1}}{-2+2i}) =\frac{x\sin(\ln(x))-x\cos(\ln(x))}{2}$$