The integral ∫xsin3xdx is solved using integration by parts (the product rule in reverse). Choosing u=x and dv=sin3xdx, we get the result −3xcos3x+91sin3x+C.
Why integration by parts?
When you see a product of two different kinds of functions — here, a polynomial (x) and a trigonometric function (sin3x) — the standard tool is integration by parts. It comes from the product rule for derivatives:
dxd(uv)=udxdv+vdxdu
Rearranging and integrating gives:
∫udv=uv−∫vdu
The trick is to pick u and dv so that the new integral ∫vdu is simpler than the original. For xsin3x, we want u to be something that simplifies when differentiated (like x, which becomes 1), and dv to be something we can integrate easily (like sin3x).
A common mistake is to pick u=sin3x and dv=xdx. Then du=3cos3xdx and v=2x2, giving 2x2sin3x−∫23x2cos3xdx — which is worse, not better. Always let the polynomial be u.
Step-by-step solution
1. Set up the parts.
Let u=x and dv=sin3xdx.
2. Differentiate u and integrate dv.
- du=dx
- v=∫sin3xdx=−31cos3x
For ∫sin(ax)dx, the antiderivative is −a1cos(ax). Here a=3, so it's −31cos3x.
3. Apply the integration by parts formula.
∫xsin3xdx=uv−∫vdu
Substitute:
=x⋅(−31cos3x)−∫(−31cos3x)dx
4. Simplify the expression.
=−3xcos3x+31∫cos3xdx
5. Integrate cos3x.
∫cos3xdx=31sin3x
So:
=−3xcos3x+31⋅31sin3x+C
6. Write the final result.
=−3xcos3x+91sin3x+C
✓Final answer
The integral is −3xcos3x+91sin3x+C.