Skip to ContentGo to accessibility page
Calculus Volume 2

3.1 Integration by Parts

Calculus Volume 23.1 Integration by Parts

3.1 Integration by Parts

Learning Objectives

  • 3.1.1 Recognize when to use integration by parts.
  • 3.1.2 Use the integration-by-parts formula to solve integration problems.
  • 3.1.3 Use the integration-by-parts formula for definite integrals.

By now we have a fairly thorough procedure for how to evaluate many basic integrals. However, although we can integrate ∫xsin(x2)dx∫xsin(x2)dx by using the substitution, u=x2,u=x2, something as simple looking as ∫xsinxdx∫xsinxdx defies us. Many students want to know whether there is a product rule for integration. There isn’t, but there is a technique based on the product rule for differentiation that allows us to exchange one integral for another. We call this technique integration by parts.

The Integration-by-Parts Formula

If, h(x)=f(x)g(x),h(x)=f(x)g(x), then by using the product rule, we obtain h′(x)=f′(x)g(x)+g′(x)f(x).h′(x)=f′(x)g(x)+g′(x)f(x). Although at first it may seem counterproductive, let’s now integrate both sides of this equation: ∫h′(x)dx=∫(g(x)f′(x)+f(x)g′(x))dx.∫h′(x)dx=∫(g(x)f′(x)+f(x)g′(x))dx.

This gives us

h(x)=f(x)g(x)=∫g(x)f′(x)dx+∫f(x)g′(x)dx.h(x)=f(x)g(x)=∫g(x)f′(x)dx+∫f(x)g′(x)dx.

Now we solve for ∫f(x)g′(x)dx:∫f(x)g′(x)dx:

∫f(x)g′(x)dx=f(x)g(x)−∫g(x)f′(x)dx.∫f(x)g′(x)dx=f(x)g(x)−∫g(x)f′(x)dx.

By making the substitutions u=f(x)u=f(x) and v=g(x),v=g(x), which in turn make du=f′(x)dxdu=f′(x)dx and dv=g′(x)dx,dv=g′(x)dx, we have the more compact form

∫udv=uv−∫vdu.∫udv=uv−∫vdu.

Theorem 3.1

Integration by Parts

Let u=f(x)u=f(x) and v=g(x)v=g(x) be functions with continuous derivatives. Then, the integration-by-parts formula for the integral involving these two functions is:

∫udv=uv−∫vdu.∫udv=uv−∫vdu.
(3.1)

The advantage of using the integration-by-parts formula is that we can use it to exchange one integral for another, possibly easier, integral. The following example illustrates its use.

Example 3.1

Using Integration by Parts

Use integration by parts with u=xu=x and dv=sinxdxdv=sinxdx to evaluate ∫xsinxdx.∫xsinxdx.

Analysis

At this point, there are probably a few items that need clarification. First of all, you may be curious about what would have happened if we had chosen u=sinxu=sinx and dv=x.dv=x. If we had done so, then we would have du=cosxdxdu=cosxdx and v=12x2.v=12x2. Thus, after applying integration by parts, we have ∫​xsinxdx=12x2sinx−∫​12x2cosxdx.∫​xsinxdx=12x2sinx−∫​12x2cosxdx. Unfortunately, with the new integral, we are in no better position than before. It is important to keep in mind that when we apply integration by parts, we may need to try several choices for uu and dvdv before finding a choice that works.

Second, you may wonder why, when we find v=∫​sinxdx=−cosx,v=∫​sinxdx=−cosx, we do not use v=−cosx+K.v=−cosx+K. To see that it makes no difference, we can rework the problem using v=−cosx+K:v=−cosx+K:

∫xsinxdx=(x)(−cosx+K)−∫(−cosx+K)(1dx)=−xcosx+Kx+∫cosxdx−∫Kdx=−xcosx+Kx+sinx−Kx+C=−xcosx+sinx+C.∫xsinxdx=(x)(−cosx+K)−∫(−cosx+K)(1dx)=−xcosx+Kx+∫cosxdx−∫Kdx=−xcosx+Kx+sinx−Kx+C=−xcosx+sinx+C.

As you can see, it makes no difference in the final solution.

Last, we can check to make sure that our antiderivative is correct by differentiating −xcosx+sinx+C:−xcosx+sinx+C:

ddx(−xcosx+sinx+C)=(−1)cosx+(−x)(−sinx)+cosx=xsinx.ddx(−xcosx+sinx+C)=(−1)cosx+(−x)(−sinx)+cosx=xsinx.

Therefore, the antiderivative checks out.

Media

Watch this video and visit this website for examples of integration by parts.

Checkpoint 3.1

Evaluate ∫​xe2xdx∫​xe2xdx using the integration-by-parts formula with u=xu=x and dv=e2xdx.dv=e2xdx.

The natural question to ask at this point is: How do we know how to choose uu and dv?dv? Sometimes it is a matter of trial and error; however, the acronym LIATE can often help to take some of the guesswork out of our choices. This acronym stands for Logarithmic Functions, Inverse Trigonometric Functions, Algebraic Functions, Trigonometric Functions, and Exponential Functions. This mnemonic serves as an aid in determining an appropriate choice for u.u.

The type of function in the integral that appears first in the list should be our first choice of u.u. For example, if an integral contains a logarithmic function and an algebraic function, we should choose uu to be the logarithmic function, because L comes before A in LIATE. The integral in Example 3.1 has a trigonometric function (sinx)(sinx) and an algebraic function (x).(x). Because A comes before T in LIATE, we chose uu to be the algebraic function. When we have chosen u,u, dvdv is selected to be the remaining part of the function to be integrated, together with dx.dx.

Why does this mnemonic work? Remember that whatever we pick to be dvdv must be something we can integrate. Since we do not have integration formulas that allow us to integrate simple logarithmic functions and inverse trigonometric functions, it makes sense that they should not be chosen as values for dv.dv. Consequently, they should be at the head of the list as choices for u.u. Thus, we put LI at the beginning of the mnemonic. (We could just as easily have started with IL, since these two types of functions won’t appear together in an integration-by-parts problem.) The exponential and trigonometric functions are at the end of our list because they are fairly easy to integrate and make good choices for dv.dv. Thus, we have TE at the end of our mnemonic. (We could just as easily have used ET at the end, since when these types of functions appear together it usually doesn’t really matter which one is uu and which one is dv.)dv.) Algebraic functions are generally easy both to integrate and to differentiate, and they come in the middle of the mnemonic.

Example 3.2

Using Integration by Parts

Evaluate ∫lnxx3dx.∫lnxx3dx.

Checkpoint 3.2

Evaluate ∫​xlnxdx.∫​xlnxdx.

In some cases, as in the next two examples, it may be necessary to apply integration by parts more than once.

Example 3.3

Applying Integration by Parts More Than Once

Evaluate ∫​x2e3xdx.∫​x2e3xdx.

Example 3.4

Applying Integration by Parts When LIATE Doesn’t Quite Work

Evaluate ∫​t3et2dt.∫​t3et2dt.

Example 3.5

Applying Integration by Parts More Than Once

Evaluate ∫​sin(lnx)dx.∫​sin(lnx)dx.

Analysis

If this method feels a little strange at first, we can check the answer by differentiation:

ddx(12xsin(lnx)−12xcos(lnx))=12(sin(lnx))+cos(lnx)·1x·12x−(12cos(lnx)−sin(lnx)·1x·12x)=sin(lnx).ddx(12xsin(lnx)−12xcos(lnx))=12(sin(lnx))+cos(lnx)·1x·12x−(12cos(lnx)−sin(lnx)·1x·12x)=sin(lnx).

Checkpoint 3.3

Evaluate ∫​x2sinxdx.∫​x2sinxdx.

Integration by Parts for Definite Integrals

Now that we have used integration by parts successfully to evaluate indefinite integrals, we turn our attention to definite integrals. The integration technique is really the same, only we add a step to evaluate the integral at the upper and lower limits of integration.

Theorem 3.2

Integration by Parts for Definite Integrals

Let u=f(x)u=f(x) and v=g(x)v=g(x) be functions with continuous derivatives on [a,b].[a,b]. Then

∫abudv=uv|ab−∫abvdu.∫abudv=uv|ab−∫abvdu.
(3.2)

Example 3.6

Finding the Area of a Region

Find the area of the region bounded above by the graph of y=tan−1xy=tan−1x and below by the xx-axis over the interval [0,1].[0,1].

Example 3.7

Finding a Volume of Revolution

Find the volume of the solid obtained by revolving the region bounded by the graph of f(x)=e−x,f(x)=e−x, the x-axis, the y-axis, and the line x=1x=1 about the y-axis.

Analysis

Again, it is a good idea to check the reasonableness of our solution. We observe that the solid has a volume slightly less than that of a cylinder of radius 11 and height of 1/e1/e added to the volume of a cone of base radius 11 and height of 1−1e.1−1e. Consequently, the solid should have a volume a bit less than

π(1)21e+(π3)(1)2(1−1e)=2π3e+π3≈1.8177.π(1)21e+(π3)(1)2(1−1e)=2π3e+π3≈1.8177.

Since 2π−4πe≈1.6603,2π−4πe≈1.6603, we see that our calculated volume is reasonable.

Checkpoint 3.4

Evaluate ∫0π/2xcosxdx.∫0π/2xcosxdx.

Section 3.1 Exercises

In using the technique of integration by parts, you must carefully choose which expression is u. For each of the following problems, use the guidelines in this section to choose u. Do not evaluate the integrals.

1.

∫ x 3 e 2 x d x ∫ x 3 e 2 x d x

2.

∫ x 3 ln ( x ) d x ∫ x 3 ln ( x ) d x

3.

∫ y 3 cos y d y ∫ y 3 cos y d y

4.

∫ x 2 arctan x d x ∫ x 2 arctan x d x

5.

∫ e 3 x sin ( 2 x ) d x ∫ e 3 x sin ( 2 x ) d x

Find the integral by using the simplest method. Not all problems require integration by parts.

6.

∫ v sin v d v ∫ v sin v d v

7.

∫lnxdx∫lnxdx (Hint: ∫lnxdx∫lnxdx is equivalent to ∫1·ln(x)dx.)∫1·ln(x)dx.)

8.

∫ x cos x d x ∫ x cos x d x

9.

∫ tan −1 x d x ∫ tan −1 x d x

10.

∫ x 2 e x d x ∫ x 2 e x d x

11.

∫ x sin ( 2 x ) d x ∫ x sin ( 2 x ) d x

12.

∫ x e 4 x d x ∫ x e 4 x d x

13.

∫ x e − x d x ∫ x e − x d x

14.

∫ x cos 3 x d x ∫ x cos 3 x d x

15.

∫ x 2 cos x d x ∫ x 2 cos x d x

16.

∫ x ln x d x ∫ x ln x d x

17.

∫ ln ( 2 x + 1 ) d x ∫ ln ( 2 x + 1 ) d x

18.

∫ x 2 e 4 x d x ∫ x 2 e 4 x d x

19.

∫ e x sin x d x ∫ e x sin x d x

20.

∫ e x cos x d x ∫ e x cos x d x

21.

∫ x e − x 2 d x ∫ x e − x 2 d x

22.

∫ x 2 e − x d x ∫ x 2 e − x d x

23.

∫ sin ( ln ( 2 x ) ) d x ∫ sin ( ln ( 2 x ) ) d x

24.

∫ c o s ( ln x ) d x ∫ c o s ( ln x ) d x

25.

∫ ( ln x ) 2 d x ∫ ( ln x ) 2 d x

26.

∫ ln ( x 2 ) d x ∫ ln ( x 2 ) d x

27.

∫ x 2 ln x d x ∫ x 2 ln x d x

28.

∫ sin −1 x d x ∫ sin −1 x d x

29.

∫ cos −1 ( 2 x ) d x ∫ cos −1 ( 2 x ) d x

30.

∫ x arctan x d x ∫ x arctan x d x

31.

∫ x 2 sin x d x ∫ x 2 sin x d x

32.

∫ x 3 cos x d x ∫ x 3 cos x d x

33.

∫ x 3 sin x d x ∫ x 3 sin x d x

34.

∫ x 3 e x d x ∫ x 3 e x d x

35.

∫ x sec −1 x d x ∫ x sec −1 x d x

36.

∫ x sec 2 x d x ∫ x sec 2 x d x

37.

∫ x cosh x d x ∫ x cosh x d x

Compute the definite integrals. Use a graphing utility to confirm your answers.

38.

∫ 1 / e 1 ln x d x ∫ 1 / e 1 ln x d x

39.

∫01xe−2xdx∫01xe−2xdx (Express the answer in exact form.)

40.

∫ 0 1 e x d x ( let u = x ) ∫ 0 1 e x d x ( let u = x )

41.

∫ 1 e ln ( x 2 ) d x ∫ 1 e ln ( x 2 ) d x

42.

∫ 0 π x cos x d x ∫ 0 π x cos x d x

43.

∫−ππxsinxdx∫−ππxsinxdx (Express the answer in exact form.)

44.

∫03ln(x2+1)dx∫03ln(x2+1)dx (Express the answer in exact form.)

45.

∫0π/2x2sinxdx∫0π/2x2sinxdx (Express the answer in exact form.)

46.

∫01x5xdx∫01x5xdx (Express the answer using five significant digits.)

47.

Evaluate ∫cosxln(sinx)dx∫cosxln(sinx)dx

Derive the following formulas using the technique of integration by parts. Assume that n is a positive integer. These formulas are called reduction formulas because the exponent in the x term has been reduced by one in each case. The second integral is simpler than the original integral.

48.

∫ x n e x d x = x n e x − n ∫ x n − 1 e x d x ∫ x n e x d x = x n e x − n ∫ x n − 1 e x d x

49.

∫ x n cos x d x = x n sin x − n ∫ x n − 1 sin x d x ∫ x n cos x d x = x n sin x − n ∫ x n − 1 sin x d x

50.

∫ x n sin x d x = ______ ∫ x n sin x d x = ______

51.

Integrate ∫2x2x−3dx∫2x2x−3dx using two methods:

  1. Using parts, letting dv=2x−3dxdv=2x−3dx
  2. Substitution, letting u=2x−3u=2x−3

State whether you would use integration by parts to evaluate the integral. If so, identify u and dv. If not, describe the technique used to perform the integration without actually doing the problem.

52.

∫ x ln x d x ∫ x ln x d x

53.

∫ ln 2 x x d x ∫ ln 2 x x d x

54.

∫ x e x d x ∫ x e x d x

55.

∫ x e x 2 − 3 d x ∫ x e x 2 − 3 d x

56.

∫ x 2 sin x d x ∫ x 2 sin x d x

57.

∫ x 2 sin ( 3 x 3 + 2 ) d x ∫ x 2 sin ( 3 x 3 + 2 ) d x

Sketch the region bounded above by the curve, the x-axis, and x=1,x=1, and find the area of the region. Provide the exact form or round answers to the number of places indicated.

58.

y=2xe−xy=2xe−x (Approximate answer to four decimal places.)

59.

y=e−xsin(πx)y=e−xsin(πx) (Approximate answer to five decimal places.)

Find the volume generated by rotating the region bounded by the given curves about the specified line. Express the answers in exact form or approximate to the number of decimal places indicated.

60.

y=sinx,y=0,x=2π,x=3πy=sinx,y=0,x=2π,x=3π about the y-axis (Express the answer in exact form.)

61.

y=e−xy=e−x y=0,x=−1x=0;y=0,x=−1x=0; about x=1x=1 (Express the answer in exact form.)

62.

A particle moving along a straight line has a velocity of v(t)=t2e−tv(t)=t2e−t after t sec. How far does it travel in the first 2 sec? (Assume the units are in feet and express the answer in exact form.)

63.

Find the area under the graph of y=sec3xy=sec3x from x=0tox=1.x=0tox=1. (Round the answer to two significant digits.)

64.

Find the area between y=(x−2)exy=(x−2)ex and the x-axis from x=2x=2 to x=5.x=5. (Express the answer in exact form.)

65.

Find the area of the region enclosed by the curve y=xcosxy=xcosx and the x-axis for

11π2≤x≤13π2.11π2≤x≤13π2. (Express the answer in exact form.)

66.

Find the volume of the solid generated by revolving the region bounded by the curve y=lnx,y=lnx, the x-axis, and the vertical line x=e2x=e2 about the x-axis. (Express the answer in exact form.)

67.

Find the volume of the solid generated by revolving the region bounded by the curve y=4cosxy=4cosx and the x-axis, π2≤x≤3π2,π2≤x≤3π2, about the x-axis. (Express the answer in exact form.)

68.

Find the volume of the solid generated by revolving the region in the first quadrant bounded by y=exy=ex and the x-axis, from x=0x=0 to x=ln(7),x=ln(7), about the y-axis. (Express the answer in exact form.)

Citation/Attribution
Reuse and redistribution of this content in digital or print format:
  • This book may not be used in the training of large language models or otherwise be ingested into large language models or generative AI offerings without OpenStax's prior written permission.
  • This book uses the Creative Commons Attribution-NonCommercial-ShareAlike License, which means that you can reuse and modify the material only for noncommercial purposes, must attribute OpenStax, and must distribute any derivative works under the same license.
  • Any commercial printing of this textbook, including using a local or custom printer, must be approved by OpenStax, and proper citation provided.
  • OpenStax-copyrighted images, activities, assessments, and similar components of this book are subject to the same licensing – CC-BY-NC-SA. They can be used for noncommercial purposes with attribution. Commercial use requires permission.
  • Permission requests: Anyone who intends to incorporate this content (including text, images, and other components) into large language models, use it in AI offerings, use it commercially (including in print), and/or has questions about another use case is welcome to complete our reuse request form.
Attribution information
  • If you are redistributing all or part of this book in a noncommercial print format, then you must include on every physical page the following attribution:

    Access for free at https://openstax.org/books/calculus-volume-2/pages/1-introduction

  • If you are redistributing all or part of this book in a noncommercial digital format, then for every page that includes OpenStax content, you must license the derivative work under the same CC-BY-NC-SA license as the original, and include on every digital page view the following attribution:

    Access for free at https://openstax.org/books/calculus-volume-2/pages/1-introduction

Citation information

The information below includes the information needed to generate citations in most major styles (APA, MLA, etc.); you must reformat and organize the information as needed to fit the requirements of the style. Use the information below to generate a citation. We recommend using a citation tool such as this one.

© Jul 15, 2026 OpenStax. Textbook content produced by OpenStax is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike License. The OpenStax name, OpenStax logo, OpenStax book covers, OpenStax CNX name, and OpenStax CNX logo, and Rice University name, and Rice University logo trademarks, or wordmarks are not subject to the Creative Commons license and may not be reproduced without the prior and express written consent of Rice University.