Solution:
Key idea: When an equation has the form dxdy=f(x), we write dy=f(x)dx and integrate both sides. One arbitrary constant c is added, because the equation has order 1.
Step 1 — Split the integral.
The right side depends on x only, so we integrate it; the two terms are integrated separately.
y=∫sin3xcos2xdx+∫xexdx
Step 2 — Prepare the first integral.
We keep one sinx for the substitution and write the rest using sin2x=1−cos2x.
sin3xcos2x=(1−cos2x)cos2xsinx
Step 3 — Substitute t=cosx.
We put t=cosx and differentiate it, so that sinxdx can be replaced by −dt.
dt=−sinxdx
∫sin3xcos2xdx=−∫(1−t2)t2dt=∫(t4−t2)dt=5t5−3t3
Putting back t=cosx gives the first integral.
∫sin3xcos2xdx=5cos5x−3cos3x
Step 4 — Integrate the second term by parts.
We take u=x and dv=exdx, so du=dx and v=ex.
∫xexdx=xex−∫exdx=xex−ex
Step 5 — Combine the results.
Adding the two integrals and one arbitrary constant c gives the general solution.
Therefore, the general solution is y=51cos5x−31cos3x+xex−ex+c.