Step 1: Set up the integral for the given expression.
We need to integrate sin(3x)−e3x with respect to x.
∫(sin(3x)−e3x)dx
Step 2: Integrate each term separately.
The integral of a difference is the difference of the integrals.
∫sin(3x)dx−∫e3xdx
For the first term, ∫sin(ax)dx=−a1cos(ax)+C. Here a=3.
∫sin(3x)dx=−31cos(3x)
For the second term, ∫eaxdx=a1eax+C. Here a=3.
∫e3xdx=31e3x
Step 3: Combine the results and add the constant of integration.
−31cos(3x)−31e3x+C
The final answer is −31cos(3x)−31e3x+C.