3. Integration by Parts0%

Integration · Topic 3 of 5

3. Integration by Parts

Video coming soon5 worked examples

Theory

Integration by parts reverses the product rule:

udvdxdx=uvvdudxdx\int u\,\frac{dv}{dx}\,dx = uv - \int v\,\frac{du}{dx}\,dx

Choose uu to be the factor that becomes simpler when differentiated. A useful guide is LIATE (Logarithm, Inverse trig, Algebraic, Trig, Exponential): the factor earliest in this list is usually uu. Some integrals need parts applied more than once.

The Golden Rule: pick uu so that dudx\frac{du}{dx} is simpler, and dvdx\frac{dv}{dx} as the part you can integrate; then apply uvvdudxdxuv - \int v\,\frac{du}{dx}\,dx.

⚠️ Common Examiner Traps

  • Wrong choice of uu: if the new integral is harder, you likely chose uu and dvdv the wrong way round.
  • Sign error: the formula subtracts the second integral.
  • The lnx\ln x trick: for lnxdx\int \ln x\,dx, take u=lnxu = \ln x and dvdx=1\frac{dv}{dx} = 1.

Worked examples

Example 1

Find xexdx\displaystyle\int x e^x\,dx.

Step 1: Let u=xu = x (so dudx=1\frac{du}{dx} = 1) and dvdx=ex\frac{dv}{dx} = e^x (so v=exv = e^x).

Step 2: Apply the formula:

xexdx=xexexdx=xexex+c\int x e^x\,dx = x e^x - \int e^x\,dx = x e^x - e^x + c

Step 3: Factor: =ex(x1)+c= e^x(x - 1) + c.

Example 2

Find xcosxdx\displaystyle\int x \cos x\,dx.

Step 1: Let u=xu = x and dvdx=cosx\frac{dv}{dx} = \cos x (so v=sinxv = \sin x).

Step 2: Apply the formula:

xcosxdx=xsinxsinxdx=xsinx+cosx+c\int x \cos x\,dx = x \sin x - \int \sin x\,dx = x \sin x + \cos x + c

Example 3

Find lnxdx\displaystyle\int \ln x\,dx.

Step 1: Take u=lnxu = \ln x (so dudx=1x\frac{du}{dx} = \frac{1}{x}) and dvdx=1\frac{dv}{dx} = 1 (so v=xv = x).

Step 2: Apply the formula:

lnxdx=xlnxx1xdx=xlnx1dx\int \ln x\,dx = x\ln x - \int x \cdot \frac{1}{x}\,dx = x\ln x - \int 1\,dx

Step 3: So lnxdx=xlnxx+c\int \ln x\,dx = x\ln x - x + c.

Example 4

Find x2e3xdx\displaystyle\int x^2 e^{3x}\,dx.

Step 1: Take u=x2u = x^2 so that differentiating reduces the power. With dvdx=e3x\frac{dv}{dx} = e^{3x}, we get v=13e3xv = \frac{1}{3}e^{3x}:

x2e3xdx=13x2e3x23xe3xdx\int x^2 e^{3x}\,dx = \frac{1}{3}x^2e^{3x} - \frac{2}{3}\int x e^{3x}\,dx

Step 2: The remaining integral still has a power of xx, so apply integration by parts a second time, now with u=xu = x:

xe3xdx=13xe3x13e3xdx=13xe3x19e3x\int x e^{3x}\,dx = \frac{1}{3}xe^{3x} - \frac{1}{3}\int e^{3x}\,dx = \frac{1}{3}xe^{3x} - \frac{1}{9}e^{3x}

Step 3: Substitute this back into Step 1, taking care with the 23-\frac{2}{3} multiplying both terms:

x2e3xdx=13x2e3x23(13xe3x19e3x)\int x^2 e^{3x}\,dx = \frac{1}{3}x^2e^{3x} - \frac{2}{3}\left(\frac{1}{3}xe^{3x} - \frac{1}{9}e^{3x}\right)

Step 4: Expand and tidy:

=13x2e3x29xe3x+227e3x+c= \frac{1}{3}x^2e^{3x} - \frac{2}{9}xe^{3x} + \frac{2}{27}e^{3x} + c

Each application of the rule drops the power of xx by one, so an xnx^n term needs nn applications.

Example 5

Find e2xsinxdx\displaystyle\int e^{2x}\sin x\,dx.

Step 1: Neither factor simplifies when differentiated, so parts will not terminate. Give the integral a name so we can treat it as an unknown:

I=e2xsinxdxI = \int e^{2x}\sin x\,dx

Step 2: Apply parts with u=e2xu = e^{2x} and dvdx=sinx\frac{dv}{dx} = \sin x, so v=cosxv = -\cos x:

I=e2xcosx+2e2xcosxdxI = -e^{2x}\cos x + 2\int e^{2x}\cos x\,dx

Step 3: Apply parts again to the new integral, keeping u=e2xu = e^{2x} — switching now would simply undo the first step:

e2xcosxdx=e2xsinx2e2xsinxdx=e2xsinx2I\int e^{2x}\cos x\,dx = e^{2x}\sin x - 2\int e^{2x}\sin x\,dx = e^{2x}\sin x - 2I

Step 4: The original integral has reappeared. Substitute back:

I=e2xcosx+2(e2xsinx2I)=e2xcosx+2e2xsinx4II = -e^{2x}\cos x + 2\left(e^{2x}\sin x - 2I\right) = -e^{2x}\cos x + 2e^{2x}\sin x - 4I

Step 5: Now solve for II algebraically, gathering both II terms on the left:

5I=e2x(2sinxcosx)5I = e^{2x}\left(2\sin x - \cos x\right)

Step 6: Divide, remembering the constant of integration only at the end:

I=15e2x(2sinxcosx)+cI = \frac{1}{5}e^{2x}\left(2\sin x - \cos x\right) + c