AP® CALCULUS BC · UNIT 6

Integration by Parts

Reverse the product rule, choose which factor to differentiate, and check the remaining integral. Work through repeated, cyclic, and definite examples in AP Calculus BC.

Topic 6.11 study notes8 worked examples · 8 practice questionsUpdated 11 November 2026
Calculus notebook with limit and integral symbols, a compass and pencil on an olive and cream study desk

1. What Topic 6.11 asks you to do

Integration by parts reverses the product rule. It trades one integral for a product and a new integral. The method is useful when differentiating one factor simplifies it and the other factor has a manageable antiderivative.

AP Calculus BC only · Topic 6.11. Use integration by parts to find antiderivatives and evaluate definite integrals. Show your choice of factors and keep the subtraction in the formula.

2. Reverse the product rule

For differentiable functions u and v of x, the product rule gives

ddx(uv)=u′v+uv′.

Rearrange to isolate uv′, then take antiderivatives on an interval where the functions and derivatives are continuous:

∫uv′dx=uv−∫vu′dx.

Writing du=u′dx and dv=v′dx gives the usual shorthand:

∫udv=uv−∫vdu.
  1. Choose u and assign the rest of the integrand, including dx, to dv.
  2. Differentiate u to get du. Integrate dv to get one v.
  3. Write the product uv and subtract the entire new integral. If needed, apply parts again or use another technique.
  4. For an indefinite integral, give one final constant C and differentiate the answer to check it.

Choose a convenient primitive v, usually with no added constant. Any constant in v would cancel between the product and the new integral, up to the final arbitrary constant.

3. Choose the differentiated factor with LIATE

LIATE is a starting point for choosing u: try the factor that appears earlier in the list. A good choice still needs an easy v and a simpler new integral, or a cycle that can be solved algebraically.

LIATE: a suggested order for choosing the differentiated factor
LetterTypeExamples
LLogarithmiclnx, logx
IInverse trigonometricarctanx, arcsinx, arcsecx
AAlgebraicx, x2, x3, x
TTrigonometricsinx, cosx, tanx, secx
EExponentialex, 2x, ax

For a lone logarithm or inverse trigonometric function, treat it as a product with 1, so dv=dx. For polynomial products, differentiating the polynomial reduces its degree. Here n is a positive integer, and trigonometric inputs use radians.

Common starting choices for integration by parts
IntegrandChoose uChoose dv
xnexxnexdx
xnsinxxnsinxdx
xncosxxncosxdx
lnxlnxdx
arctanxarctanxdx
exsinxsinxexdx

First check for a direct rule or a substitution. In xcos(x2), the factor x matches the inside derivative up to a constant, so substitution is simpler. The presence of a product alone does not determine the method.

4. Worked examples: single, repeated, and cyclic

Example 1 · Differentiate a linear factor

Find I=∫xexdx.

1 · Choose and compute the four parts

Choose u=x and dv=exdx. Differentiating the linear factor leaves a constant:

du=dx,v=ex.

2 · Write the product minus the new integral

I=xex−∫exdx

3 · Finish and check

I=ex(x−1)+C

The product rule gives ex(x−1)+ex=xex, so the derivative recovers the integrand.

Example 2 · Treat a logarithm as a product with one

Find I=∫lnxdx for x>0.

1 · Put the logarithm in the differentiated factor

Set u=lnx and dv=dx. Then

du=1xdx,v=x.

2 · Simplify the remaining integrand

In the new integral, x times 1x is 1 on this interval.

I=xlnx−∫1dx

3 · Check on the logarithm's domain

I=xlnx−x+C

The derivative of xlnx is lnx+1. Subtracting the derivative of x leaves lnx.

Example 3 · Keep both signs in a trigonometric product

Find I=∫xsinxdx.

1 · Integrate sine before applying the formula

Take u=x and dv=sinxdx. Thus du=dx and v=−cosx.

2 · Subtract the negative remaining integral

I=−xcosx+∫cosxdx
I=−xcosx+sinx+C

On differentiation, the two cosine terms cancel and leave xsinx.

3 · Connect the primitive to signed area

For F(x)=−xcosx+sinx, the values at 0, π, and 2π are 0, π, and −2π. The first region contributes π, and the next contributes −3π.

Read the signed result from the graph

image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ 0 π 2 π x −5 −3 −1 0 1 2 f x ( )
For f(x)=xsinx, the area above the axis on [0,π] is π. The hatched area below on [π,2π] has magnitude 3π, so the net integral is −2π.

Example 4 · Apply integration by parts twice

Find I=∫x2exdx.

1 · Lower the degree once

Let u=x2 and dv=exdx. Then du=2xdx and v=ex.

I=x2ex−2∫xexdx

2 · Integrate the remaining product

The remaining integral is the one from Example 1. Use the primitive ex(x−1), obtained by taking the linear factor as u.

3 · Factor and verify

I=ex(x2−2x+2)+C

On differentiating, adding x2−2x+2 to its derivative 2x−2 leaves x2. The product with ex is the original integrand.

Example 5 · Solve a cyclic integral algebraically

Find I=∫exsinxdx.

1 · Name the second integral

Take u=sinx and dv=exdx. Let J=∫excosxdx. Work with antiderivatives up to a constant until the end.

I=exsinx−J

2 · Apply parts again and track the sign

For J, differentiate cosx to get −sinx, and again take v=ex. The subtraction in the formula changes the sign of the new integral.

J=excosx+I

3 · Move the returning integral to the left

2I=ex(sinx−cosx)
I=ex(sinx−cosx)2+C

Differentiate to check: the cosine terms cancel, and the two sine terms give 2exsinx before division by 2.

Example 6 · Organize repeated parts in a table

Find I=∫x3exdx.

1 · Pair each derivative with the corresponding primitive

Start with u=x3. In the first row pair u with the first primitive of ex; in the next row pair u′ with the next primitive. Continue with alternating signs. Here every successive primitive can be chosen as ex.

Products to add after repeated integration by parts
SignDerivative columnPrimitive to multiply
+x3ex
−3x2ex
+6xex
−6ex

The next derivative is 0, so there is no remaining integral.

2 · Add the signed products and check

Factor out ex from the four products. Their polynomial factor is

P(x)=x3−3x2+6x−6.
I=exP(x)+C.

The identity P(x)+P′(x)=x3 verifies the answer by the product rule.

Example 7 · Use parts on an inverse trigonometric function

Find I=∫arctanxdx.

1 · Differentiate the inverse tangent

Choose u=arctanx and dv=dx, giving v=x and du=11+x2dx.

I=xarctanx−∫x1+x2dx

2 · Use substitution for the new integral

Set w=1+x2. Then dw=2xdx, and w is positive for all real x.

∫x1+x2dx=12ln(1+x2)+C

3 · Subtract and verify

I=xarctanx−ln(1+x2)2+C

The derivative of the product produces an extra x1+x2. The logarithm term cancels it.

5. Evaluate definite integrals by parts

With continuous derivatives on [a,b], integration by parts gives the definite formula:

∫abudv=[uv]ab−∫abvdu.

Compute [uv]ab=u(b)v(b)−u(a)v(a). The bounds are values of the original variable x; choosing the two factors does not change the variable. If you later use substitution on the remaining integral, convert its bounds or return to x before evaluating.

Example 8 · Evaluate a definite integral with its endpoint product

Evaluate I=∫01xexdx.

1 · Identify the endpoint product and the leftover integrand

Choose u=x and v=ex as in Example 1. Then uv=xex, and vdu=exdx. Use the original bounds in both terms.

2 · Evaluate both terms

Values at the original bounds
xProduct xexPrimitive ex
001
1ee
B=[xex]01=e
R=[ex]01=e−1

3 · Subtract the remaining integral

I=B−R=e−(e−1)=1

The original integrand is nonnegative, so this value is also the geometric area. Evaluating ex(x−1) at the same bounds gives the same answer.

The original integral

image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ 0.0 0.5 1.0 x 0 1 2 3 f x ( )
The area under f(x)=xex from 0 to 1 is 1. The endpoints on the curve are (0,0) and (1,e).

The integral subtracted by parts

image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ 0.0 0.5 1.0 x 0 1 2 3 g x ( )
The area under g(x)=ex on the same interval is e−1. Together the two areas equal the change e in the product xex, since its derivative is f(x)+g(x).

6. Check the setup, signs, and final answer

  • Label the four parts. Check that differentiating v gives the factor assigned to dv, and that du includes the differential.
  • Keep the subtraction. When v is negative, the subtraction in the formula still applies to the whole remaining integral.
  • Recognize a repeated or cyclic integral. A polynomial derivative eventually becomes zero. If the original integral returns instead, collect its terms and solve.
  • Evaluate both terms for fixed bounds. Use the same original bounds in the endpoint product and in the remaining integral.
  • Check the result. Differentiate an indefinite answer and include one constant. A definite answer has no arbitrary constant; use the sign or a second evaluation to check it.

In an AP response, show the choice of factors, the resulting simpler integral, and the evaluation. For repeated parts, make each application or table product clear.

7. Practice with step-by-step solutions

Problem 1

Find I=∫xcosxdx.

Show solution 1

Solution

Take u=x, dv=cosxdx, and v=sinx. Subtract the integral of sinx.

I=xsinx+cosx+C

The two sine terms cancel when differentiating.

Problem 2

Find I=∫xe2xdx.

Show solution 2

Solution

Take u=x and v=12e2x. Integrating vdu contributes a second factor of 12.

I=e2x(2x−1)4+C

Differentiation restores xe2x.

Problem 3

Find I=∫ln(2x)dx for x>0.

Show solution 3

Solution

Take u=ln(2x) and v=x. The chain rule gives du=1xdx, so the new integrand is 1.

I=xln(2x)−x+C

Problem 4

Find I=∫x2sinxdx.

Show solution 4

Solution

Differentiate x2 and use v=−cosx. The subtraction creates the remaining term 2∫xcosxdx. Apply parts to that term as in Problem 1, then group the cosine terms.

P(x)=(2−x2)cosx
I=P(x)+2xsinx+C

Problem 5

Find I=∫excosxdx.

Show solution 5

Solution

Differentiate cosine and integrate the exponential. With J=∫exsinxdx, the resulting identities, up to constants, are

I=excosx+J
J=exsinx−I

Substitute and solve for I.

I=ex(sinx+cosx)2+C

Problem 6

Evaluate I=∫1elnxdx.

Show solution 6

Solution

Use u=lnx and v=x. The endpoint product changes by e, and the integral of 1 is e−1.

I=e−(e−1)=1

Problem 7

Evaluate I=∫0πxcosxdx.

Show solution 7

Solution

The endpoint product [xsinx]0π is 0. The remaining integral of sinx is 2.

I=0−2=−2

The integral is signed; it need not be positive.

Problem 8

Choose a method for I=∫xcos(x2)dx, then evaluate it.

Show solution 8

Solution

Use substitution: w=x2 and dw=2xdx. The factor x already matches the derivative up to a constant.

I=12sin(x2)+C

8. Continue studying integration

Use Topic 6.9's substitution method for a matching inside derivative, and review Topic 6.7's endpoint evaluation for definite integrals.