Since the integrand is the product of polynomial and trigonometric functions, we suspect it might yield to integration by parts. There are a number of ways this can be accomplished.
- Solution 1: Before we choose parts, let's use the identity sin(2x)=2sinxcosx.
∫xsinxcosxdxNow let u=x, dv=sin(2x)dx; du=dx, and v=−21cos(2x). Using integration by parts:=21∫xsin(2x)dx=21[−2xcos(2x)+21∫cos(2x)dx]=−4xcos(2x)+81sin(2x)+C=−4x(1−2sin2x)+41sinxcosx+C=−4x+2xsin2x+41sinxcosx+C
- Solution 2: If we let u=x, then du=dx, and this seems desirable for integration by parts. If u=x, then dv=sinxcosxdx. To find v we can use the substitution u=sinx, du=cosxdx.
v=∫sinxcosxdxSo, we take v=21sin2x. Now we can apply integration by parts to our original integral.∫xsinxcosx dxApply the identity sin2x=21−cos(2x).=∫udu=21u2+C=21sin2x+C=2xsin2x−∫21sin2xdx=2xsin2x−41∫1−cos(2x)dx=2xsin2x−4x+81sin(2x)+C=2xsin2x−4x+41sinxcosx+C
- Solution 3: Let u=xsinx and dv=cosxdx; then du=(xcosx+sinx)dx and v=sinx.
∫xsinxcosxdxApply the identity sin2x=21−cos(2x) to the second integral.So, we have the equation∫xsinxcosxdx2∫xsinxcosxdx∫xsinxcosxdx=xsin2x−∫sinx(xcosx+sinx)dx=xsin2x−∫xsinxcosxdx−∫sin2xdx=xsin2x−∫xsinxcosxdx−∫21−cos(2x)dx=xsin2x−∫xsinxcosxdx−2x+41sin(2x)+C=xsin2x−∫xsinxcosxdx−2x+41sin(2x)+C=xsin2x−2x+41sin(2x)+C=2xsin2x−4x+81sin(2x)+2C=2xsin2x−4x+41sinxcosx+2C
Since C is an arbitrary constant that can take any number in (−∞,∞), also 2C is an arbitrary constant that can take any number in (−∞,∞), so we're free to rename 2C to C.