How do I find the integral int(x^2*sin(pix))dx(x2sin(πx))dx ?

1 Answer
Jul 29, 2014

Using Integration by parts,

intx^2sinpixdxx2sinπxdx

==

(-1/pi)x^2cospix + ((2)/pi^2)xsinpix + (2/pi^3)cospix + C(1π)x2cosπx+(2π2)xsinπx+(2π3)cosπx+C

Remember that Integration by parts uses the formula:

intuu dvdv = uv - intvuvv dudu

Which is based off of the product rule for derivatives:

uv = vdu + udvuv=vdu+udv

To use this formula, we must decide which term will be uu, and which will be dvdv. A useful way to figure out which term goes where is the ILATE method.

Inverse Trig
Logarithms
Algebra
Trig
Exponentials

This gives you an order of priority of which term is used for "uu", so whatever is left over becomes our dvdv. Our function contains an x^2x2 and a sinpixsinπx, so the ILATE method tells us that x^2x2 should be used as our uu, since it is algebraic and higher on the list than sinpixsinπx, which is trig.

We now have:

u = x^2u=x2, dv = sinpixdv=sinπx

The next items we need in the formula are "dudu" and "vv", which we get by finding the derivative of "uu" and the integral of "dvdv".

The derivative is obtained using the power rule:

d/dxx^2 = 2x = duddxx2=2x=du

For the integral, we can use substitution.

using w = pixw=πx, we end up with (-1/pi)cosw(1π)cosw

We now have:

du = 2x dxdu=2xdx, v = v=(-1/pi)cospix(1π)cosπx

Plugging into our original Integration by Parts formula, we have:

intuu dvdv = uv - intvuvv dudu

==

intx^2sinpixdx = (-1/pi)x^2cospix - (-1/pi)int2xcospixdxx2sinπxdx=(1π)x2cosπx(1π)2xcosπxdx

We are now left with another integral which we must use Integration by Parts once more to resolve. By pulling the 22 out of the integral, we are left with u = xu=x, dv = cospixdv=cosπx. By going through the same process of before, we get:

intxcospixdx = (1/pi)xsinpix - (1/pi)intsinpixdxxcosπxdx=(1π)xsinπx(1π)sinπxdx

This last integral we can solve with a final round of substitution, giving us:

(1/pi)intsinpixdx = (-1/pi^2)cospix(1π)sinπxdx=(1π2)cosπx

Placing everything we've found together, we now have:

(-1/pi)x^2cospix - (-2/pi)[(1/pi)xsinpix - (-1/pi^2)cospix](1π)x2cosπx(2π)[(1π)xsinπx(1π2)cosπx]

Now we can simplify the negatives and parenthesis to get our final answer:

intx^2sinpixdx =x2sinπxdx=

(-1/pi)x^2cospix + ((2)/pi^2)xsinpix + (2/pi^3)cospix + C(1π)x2cosπx+(2π2)xsinπx+(2π3)cosπx+C

The key is to remember that you will end up with a chain of multiple terms being added or subtracted together. You are continuously splitting the integral into smaller, manageable parts that you must keep track of for the final answer.