How do you find the antiderivative of #int (xsinxcosx) dx#?

1 Answer
Nov 7, 2016

# :int (xsinxcosx)dx = 1/8 sin(2x) -1/4xcos(2x) + C#

Explanation:

If you are studying maths, then you should learn the formula for Integration By Parts (IBP), and practice how to use it:

# intu(dv)/dxdx = uv - intv(du)/dxdx #, or less formally # intudv=uv-intvdu #

I was taught to remember the less formal rule in word; "The integral of udv equals uv minus the integral of vdu". If you struggle to remember the rule, then it may help to see that it comes a s a direct consequence of integrating the Product Rule for differentiation.

Essentially we would like to identify one function that simplifies when differentiated, and identify one that simplifies when integrated (or is at least is integrable).

Firstly we need to chage the integrand to simplify it to a product of two functions whereas currently we have a product of three;

Using, # sin(2x) = 2sinxcosx # we can write
# int (xsinxcosx)dx = int 1/2xsin(2x)dx = 1/2 int xsin(2x)dx#

So for the integrand # xsin(2x) #, hopefully you can see that #x# simplifies when differentiated and sin(2x) changes to #Acos(2x)#.

Let # { (u=x, => , (du)/dx=1), ((dv)/dx=sin(2x), =>, v=-1/2cos(2x) ) :}#

Then plugging into the IBP formula givs us:
# int(u)((dv)/dx)dx = (u)(v) - int(v)((du)/dx)dx #
# :. int(x)(sin(2x))dx = (x)(-1/2cos(2x)) - int(-1/2cos(2x))(1)dx #
# :. int(x)(sin(2x))dx = -1/2xcos(2x) +1/2 intcos(2x)dx #
# :. int(x)(sin(2x))dx = -1/2xcos(2x) +1/2 (1/2sin(2x)) #
# :. int(x)(sin(2x))dx = -1/2xcos(2x) +1/4 sin(2x) + C'#

So then,
# int (xsinxcosx)dx = 1/2 {-1/2xcos(2x) +1/4 sin(2x)} + C#
# :. int (xsinxcosx)dx = 1/8 sin(2x) -1/4xcos(2x) + C#