How do I find the integral int(x^2*sin(pix))dx∫(x2⋅sin(πx))dx ?
1 Answer
Using Integration by parts,
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
Remember that Integration by parts uses the formula:
intu∫u dvdv =uv - intvuv−∫v 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
Inverse Trig
Logarithms
Algebra
Trig
Exponentials
This gives you an order of priority of which term is used for "
We now have:
u = x^2u=x2 ,dv = sinpixdv=sinπx
The next items we need in the formula are "
The derivative is obtained using the power rule:
d/dxx^2 = 2x = duddxx2=2x=du
For the integral, we can use substitution.
using
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:
intu∫u dvdv =uv - intvuv−∫v dudu
==
intx^2sinpixdx = (-1/pi)x^2cospix - (-1/pi)int2xcospixdx∫x2sinπ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
intxcospixdx = (1/pi)xsinpix - (1/pi)intsinpixdx∫xcosπ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.