Solution:
Concept: The factor x2 is a constant multiple of the derivative of x3, so the substitution x3=t removes it. The new integral ∫etcostdt is found by integrating by parts twice and solving for the integral that reappears.
Step 1 — Choose the substitution.
We put the repeated expression x3 equal to t and differentiate.
x3=t
3x2dx=dt
x2dx=31dt
Step 2 — Rewrite the integral in t.
Every x3 becomes t and x2dx becomes 31dt. Call the new integral P.
I=31∫etcostdt
I=31P
Step 3 — Integrate P by parts once.
We take cost as the first function and et as the second.
P=etcost−∫(−sint)etdt
P=etcost+∫etsintdt
Step 4 — Integrate by parts again.
Now sint is the first function and et the second, so that P comes back.
∫etsintdt=etsint−∫cost⋅etdt
∫etsintdt=etsint−P
Step 5 — Solve for P.
We substitute Step 4 into Step 3 and collect the P terms.
P=etcost+etsint−P
2P=et(sint+cost)
P=21et(sint+cost)
Step 6 — Return to x.
We multiply by 31, put back t=x3 and add the constant.
I=61ex3(sinx3+cosx3)+C
Step 7 — Check by differentiating.
The derivative of ex3(sinx3+cosx3) is 3x2ex3⋅2cosx3, so dividing by 6 gives back x2ex3cosx3.
Therefore, ∫x2ex3cosx3dx=61ex3(sinx3+cosx3)+C.