Solution:
Concept: When logx appears inside a function, the substitution logx=t; with x=et, it turns the integral into one of the form ∫eatsinbtdt. Such an integral is found by integrating by parts twice: the original integral comes back, and we solve for it like an unknown.
Step 1 — Choose the substitution.
The logarithm sits inside the sine, so we put logx=t; this needs x>0, which the integrand already requires.
logx=t
x=et
dx=etdt
Step 2 — Write x31 in terms of t.
Since x=et, the cube of x is e3t.
x31=e−3t
Step 3 — Rewrite the integral in t.
We replace each part and combine the powers of e: e−3t⋅et=e−2t.
I=∫e−3tsint⋅etdt
I=∫e−2tsintdt
Step 4 — Integrate by parts once.
We take sint as the first function and e−2t as the second, using ∫e−2tdt=−21e−2t.
I=sint(−21e−2t)−∫cost(−21e−2t)dt
I=−21e−2tsint+21∫e−2tcostdt
Step 5 — Integrate by parts again.
We treat the new integral the same way, now with cost as the first function, so that the original integral I appears.
∫e−2tcostdt=−21e−2tcost−∫(−sint)(−21e−2t)dt
∫e−2tcostdt=−21e−2tcost−21I
Step 6 — Substitute back and collect I.
We put the result of Step 5 into Step 4 and move every I term to the left side.
I=−21e−2tsint−41e−2tcost−41I
45I=−41e−2t(cost+2sint)
I=−51e−2t(cost+2sint)+C
Step 7 — Return to x.
We use e−2t=x21 and t=logx; the answer holds for x>0.
I=−5x21[cos(logx)+2sin(logx)]+C
Step 8 — Check by differentiating.
Differentiating the answer (product and chain rules) gives back x3sin(logx), so the result is correct.
Watch out: In the second integration by parts keep the same kind of first function (the trigonometric one); switching to e−2t as the first function would only undo the first step.
Therefore, ∫x31sin(logx)dx=−5x21[cos(logx)+2sin(logx)]+C, for x>0.