Integration by Parts (College Board AP® Calculus BC): Revision Note

Dan Finlay

Written by: Dan Finlay

Reviewed by: Mark Curtis

Updated on

Integration by parts

What is integration by parts?

  • Integration by parts is a technique that can be used to integrate a product of two functions

    • Not all products can be integrated using this technique

  • The formula is u·dvdxdx=u·vdudx·vdx

  • Integration by parts is the reverse of the product rule for differentiation

    • Product rule

      • ddx(u·v)=u·dvdx+dudx·v

    • Integrate each term with respect to x

      • u·v=u·dvdxdx+dudx·vdx

    • Rearrange

      • u·dvdxdx=u·vdudx·vdx

How do I use integration by parts?

  • STEP 1
    Label one function u and one function dvdx

    • E.g. for xcosxdx let u=x and dvdx=cosx

  • STEP 2
    Find the derivative of uand the antiderivative of dvdx

    • You do not need to include a constant of integration

    • E.g. dudx=1 and v=sinx

  • STEP 3
    Substitute into the formula

    • u·dvdxdx=u·vdudx·vdx

    • E.g. xcosxdx=x·sinx1·sinxdx

  • STEP 4
    Find the antiderivative of dudx·v

    • E.g. 1·sinxdx=cosx

  • STEP 5
    Simplify and include a constant of integration

    • E.g. xcosxdx=xsinx(cosx)+C=xsinx+cosx+C

Examiner Tips and Tricks

In your working, be sure to clearly identify what you are using for u and dvdx and clearly show the results for dudx and v.

How do I choose the function to use for u?

  • The trick is to choose u such that dudx·v is a function that can be integrated

  • Remember dvdx needs to be integrated

    • If a function does not have a straightforward antiderivative, then choose this as u

  • The order of choice for u is the following:

    • Logarithms and inverse trigonometric functions

      • E.g. u=lnx, u=arctanx or u=arcsinx

    • Polynomials

      • E.g. u=x or u=2x+1 etc

    • Exponentials and trigonometric functions

      • Though it is very rare you would choose these to be u

      • E.g. u=e2x or u=sin3x

Examiner Tips and Tricks

You can use the acronym LIPET to help you remember how to select the function for u. LIPET stands for logarithms, inverse trig, polynomials, exponentials and trig.

How can I use integration by parts with definite integrals?

  • You can use integration by parts with definite integrals

  • One method is to apply the limits at each stage

    • The formula looks like abu·dvdxdx=[u·v]ababdudx·vdx

  • Alternatively, you can find the indefinite integral and then apply the limits

Worked Example

Find the indefinite integral 5xe3xdx.

Answer:

STEP 1
Label one function u and one function dvdx

u=5x and dvdx=e3x

STEP 2
Find the derivative of uand the antiderivative of dvdx

u=5xdvdx=e3xdudx=5v=13e3x

STEP 3
Substitute into the formula

5xe3xdx=5x·13e3x5·13e3xdx

STEP 4
Find the antiderivative of dudx·v

5·13e3xdx=53e3xdx=53·13e3x=59e3x

STEP 5
Simplify and include a constant of integration

5xe3xdx=53xe3x59e3x+C

How do I find the antiderivatives of logarithmic and inverse trigonometric functions?

  • You can use integration by parts to find antiderivatives of logarithmic and inverse trigonometric functions

  • Let u equal the function and set dvdx equal to 1

    • e.g. for lnxdx use u=lnx and dvdx=1

  • Follow the steps for integration by parts to get the antiderivatives:

    • lnxdx=xlnxx+C

    • arctanxdx=xarctanx12ln(x2+1)+C

    • arcsinxdx=xarcsinx+1x2+C

Worked Example

Find the value of 01arctanxdx.

Answer:

Rewrite this as 1·arctanx and choose the inverse trig function to differentiate

u=arctanxdvdx=1dudx=1x2+1v=x

Use the integration by parts formula and include the limits

01arctanxdx=[x·arctanx]0101xx2+1dx

You can evaluate the first term

[x·arctanx]01=(arctan1)0=π4

Evaluate the new integral by noticing that the numerator looks like the derivative of the denominator

01xx2+1dx=12012xx2+1dx=12·[ln(x2+1)]01=12·(ln2ln1)=12ln2

Combine the two terms

01arctanxdx=π412ln2

You could have also found the indefinite integral before apply the limits

arctanxdx=x·arctanx12ln(x2+1)+C

01arctanxdx=[x·arctanx12ln(x2+1)]01

01arctanxdx=π412ln2

Can I use integration by parts twice?

  • You can use integration by parts twice to find the antiderivative of functions such as x2ex, x2sinx or x2cosx

  • Using integration by parts once on these functions will result in an integral of the form xex, xcosx or xsinx

  • Use integration by parts again to complete finding the antiderivative

What is a DI table?

  • A DI table is a way to set out your work when using integration by parts multiple times

  • Identify the expression to differentiate and write this in a column labeled D

    • Continuously differentiate this until you get 0

  • Identify the expression to integrate and write this in a column labeled I

    • Continuously integrate this

  • To solve the original indefinite integral:

    • Multiply the first term in the D column by the second column in the I column

      • It should give a diagonal pattern

    • Multiply the second term in the D column by the third column in the I column and subtract it from the overall expression

      • You should alternate between adding and subtracting products

    • When you get to the row with zero, you can stop and just add a constant

      • Technically, the formula tells you to integrate the zero with the other term in that row

      • However, the antiderivative of zero is a constant

  • For example, consider x2sinxdx

    • Using the table, you get x2·(cosx)2x·(sinx)+2·cosx+C

    • This simplifies to x2cosx+2xsinx+2cosx+C

D

I

x2

sinx

2x

cosx

2

sinx

0

cosx

Worked Example

Find the indefinite integral x2cos(3x)dx.

Answer:

Use integration by parts with u=x2 and dvdx=cos(3x)

u=x2dvdx=cos(3x)dudx=2xv=13sin(3x)

x2cos(3x)dx=x2·13sin(3x)2x·13sin(3x)dx=13x2sin(3x)23xsin(3x)dx

Use integration by parts again on the new integral with u=x and dvdx=sin(3x)

u=xdvdx=sin(3x)dudx=1v=13cos(3x)

xsin(3x)dx=x·(13cos(3x))1·(13cos(3x))dx=13xcos(3x)+13cos(3x)dx=13xcos(3x)+13·13sin(3x)=13xcos(3x)+19sin(3x)

Substitute this back in to the full integral
Remember to multiply by the factor in front of the integral

x2cos(3x)dx=13x2sin(3x)23(13xcos(3x)+19sin(3x))

Simplify and include a constant of integration

x2cos(3x)dx=13x2sin(3x)+29xcos(3x)227sin(3x)+C

The DI table for this would look like

D

I

x2

cos3x

2x

13sin3x

2

19cos3x

0

127sin3x

x2cos(3x)dx=x2·(13sin3x)2x·(19cos3x)+2·(127sin3x)+C

This simplies to

x2cos(3x)dx=13x2sin(3x)+29xcos(3x)227sin(3x)+C

Will I have to use integration by parts more than twice?

  • You will not have to use integration by parts more than twice in an exam question

  • However the expression given after using integration by parts twice might contain the original integral

    • e.g. after one use excosxdx=exsinxexsinxdx

    • e.g. after two uses excosxdx=exsinx+excosxexcosxdx

  • This formula can then be rearranged to make the original integral the subject

    • e.g. rearranging gives excosxdx=12(exsinx+excosx)

  • Remember to include a constant of integration

    • e.g. excosxdx=12(exsinx+excosx)+C

Examiner Tips and Tricks

If you find rearranging with integrals tricky, then assign a variable to the integral. For example, let I=excosxdx then I=exsinx+excosxI. You should find this easier to rearrange.

Can I still use a DI table?

  • You can still use a DI table

  • In these cases, you will not reach a zero in the D row

    • Instead, stop when you reach a row that is similar to the starting row

      • Each term in this row should be a multiple of the starting term in that column

      • E.g. sin3x and 9sin3x in the D column and e2x and 14e2x in the I column

  • Follow the same process:

    • Differentiate the term in the D column

    • Integrate the term in the I column

    • Multiply diagonally

    • Alternate between adding and subtracting

  • When you get to the row that is the same row as the first row

    • you multiply both terms in that row

    • integrate the product

    • and add or subtract depending on where the pattern is up to

  • This then gives a term that is the same as the starting term

    • You can form and solve equations like the example above

  • For example, consider excosxdx

    D

    I

    ex

    cosx

    ex

    sinx

    ex

    cosx

    • Using the table, you get excosxdx=exsinxex·(cosx)+ex·(cosx)dx

    • This simplifies to excosxdx=exsinx+excosxexcosxdx

    • And can be solved as above to get excosxdx=12(exsinx+excosx)

    • Then just remember a constant of integration excosxdx=12(exsinx+excosx)+C

Examiner Tips and Tricks

The DI table is a good way to organize your work. However, make sure you understand the process and how it is just repeated use of the formula. You should always state the formula too.

Worked Example

Find the indefinite integral e2xsin(5x)dx.

Answer:

Use integration by parts with u=e2x and dvdx=sin(5x)

u=e2xdvdx=sin(5x)dudx=2e2xv=15cos(5x)

e2xsin(5x)dx=e2x·(15cos(5x))2e2x·(15cos(5x))dx=15e2xcos(5x)+25e2xcos(5x)dx

Use integration by parts again on the new integral with u=e2x and dvdx=cos(5x)

u=e2xdvdx=cos(5x)dudx=2e2xv=15sin(5x)

e2xcos(5x)dx=e2x·15sin(5x)2e2x·15sin(5x)dx=15e2xsin(5x)25e2xsin(5x)dx

Substitute this back in to the full integral
Remember to multiply by the factor in front of the integral

e2xsin(5x)dx=15e2xcos(5x)+25(15e2xsin(5x)25e2xsin(5x)dx)=15e2xcos(5x)+225e2xsin(5x)425e2xsin(5x)dx

Rearrange to make e2xsin(5x)dx the subject

e2xsin(5x)dx+425e2xsin(5x)dx=15e2xcos(5x)+225e2xsin(5x)2925e2xsin(5x)dx=15e2xcos(5x)+225e2xsin(5x)e2xsin(5x)dx=2529(15e2xcos(5x)+225e2xsin(5x))e2xsin(5x)dx=529e2xcos(5x)+229e2xsin(5x)

Include a constant of integration

e2xsin(5x)dx=529e2xcos(5x)+229e2xsin(5x)+C

The DI table for this would look like

D

I

e2x

sin5x

2e2x

15cos5x

4e2x

125sin5x

e2xsin(5x)dx=e2x·(15cos5x)2e2x·(125sin5x)+4e2x·(125sin5x)

You can then rearrange as above to get the answer

e2xsin(5x)dx=529e2xcos(5x)+229e2xsin(5x)+C

Unlock more, it's free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Build on this topic

Dan Finlay

Author: Dan Finlay

Expertise: Portfolio Lead

Dan graduated from the University of Oxford with a First class degree in mathematics. As well as teaching maths for over 8 years, Dan has marked a range of exams for Edexcel, tutored students and taught A Level Accounting. Dan has a keen interest in statistics and probability and their real-life applications.

Mark Curtis

Reviewer: Mark Curtis

Expertise: Maths Content Creator

Mark graduated twice from the University of Oxford: once in 2009 with a First in Mathematics, then again in 2013 with a PhD (DPhil) in Mathematics. He has had nine successful years as a secondary school teacher, specialising in A-Level Further Maths and running extension classes for Oxbridge Maths applicants. Alongside his teaching, he has written five internal textbooks, introduced new spiralling school curriculums and trained other Maths teachers through outreach programmes.