Solution:
Concept: Put logx=t; then x=et and dx=etdt, so the substitution brings in a factor et. If the rest is a function plus its derivative, we then use ∫et[f(t)+f′(t)]dt=etf(t)+C.
Step 1 — Choose the substitution.
The logarithm sits inside both trigonometric functions, so we put logx=t (this needs x>0).
logx=t
x=et
dx=etdt
Step 2 — Rewrite the integral in t.
Each logx becomes t and dx becomes etdt.
I=∫et(sint+cost)dt
Step 3 — Choose f(t).
We take f(t)=sint; its derivative f′(t)=cost is the other term, so the bracket is f(t)+f′(t).
I=etsint+C
Step 4 — Return to x.
We use et=x and t=logx.
I=xsin(logx)+C
Step 5 — Check by differentiating.
By the product rule, the derivative of xsin(logx) is sin(logx)+x⋅cos(logx)⋅x1, which is the integrand.
Therefore, ∫{sin(logx)+cos(logx)}dx=xsin(logx)+C, for x>0.