Integration by parts and volumes of revolution AA HL

Integration by parts turns the integral of a product into a simpler integral, and a volume of revolution adds up thin discs to find the solid formed when a region is rotated about an axis. This page shows how to choose the two parts, when to repeat the method, and how to set up the integral for a rotation about the x-axis or the y-axis. Most of the working is exact, so practise it without a calculator. Work through the sections in order.

Formulas at a glance

The by parts formula and the volume formulas for a rotation about the xx-axis and about the yy-axis are in the formula booklet. The integral of the natural logarithm is not, so learn it or derive it by parts.

Integration by parts

∫udvdxdx=uv−∫vdudxdx\displaystyle\int u\,\dfrac{dv}{dx}\,dx = uv - \int v\,\dfrac{du}{dx}\,dx

In the booklet

Integral of the natural logarithm

∫ln⁡xdx=xln⁡x−x+C\displaystyle\int \ln x\,dx = x\ln x - x + C

Not in the booklet

Volume about the xx-axis

V=π∫aby2dxV = \pi\displaystyle\int_a^b y^2\,dx

In the booklet

Volume about the yy-axis

V=π∫cdx2dyV = \pi\displaystyle\int_c^d x^2\,dy

In the booklet

Which method to use

First decide whether you are integrating a function or finding a volume. For an integral, look at the factors; for a volume, look at the axis of rotation.

The question hasUseNotes
A power of xx multiplied by an exponential or a sine or cosineIntegration by parts with uu as the power of xxThe power of xx falls by one each time it is differentiated
A power of xx multiplied by ln⁡x\ln xIntegration by parts with u=ln⁡xu=\ln xln⁡x\ln x is hard to integrate but easy to differentiate, so it is always uu
ln⁡x\ln x on its ownIntegration by parts with u=ln⁡xu=\ln x and dvdx=1\dfrac{dv}{dx}=1Write the integrand as 1×ln⁡x1\times\ln x
A power of xx of degree two or more, or an exponential with a sine or cosineRepeated integration by partsA power xnx^n needs nn passes. For an exponential with a sine or cosine the original integral comes back after two passes, so solve for it
A region rotated about the xx-axisV=π∫aby2dxV=\pi\displaystyle\int_a^b y^2\,dxThe limits are xx-values. Square yy before integrating, and keep the π\pi
A region rotated about the yy-axisV=π∫cdx2dyV=\pi\displaystyle\int_c^d x^2\,dyRearrange the curve to give x2x^2 in terms of yy, and use yy-values as limits
A region between two curves, rotated about an axisThe volume from the outer curve minus the volume from the inner curveSubtract the two volumes. Do not square the difference of the two functions

Section 1 of 2 AHL5.16

Integration by parts

Integration by parts integrates a product of two functions when inspection and substitution do not work, using ∫udvdxdx=uv−∫vdudxdx\int u\dfrac{dv}{dx}\,dx=uv-\int v\dfrac{du}{dx}\,dx. Choose uu to be the factor that simplifies when differentiated, find vv by integrating, then evaluate the new integral. It also covers repeating the method when one pass is not enough.

The formula

The by-parts formula is given in the formula booklet, so the real skill is spotting when to use it and choosing uu and dvdv sensibly.

Integration by parts

∫udvdxdx=uv−∫vdudxdx\int u\,\dfrac{dv}{dx}\,dx = uv - \int v\,\dfrac{du}{dx}\,dx

Used for products where one factor simplifies on differentiating, such as xln⁡xx\ln x or xe2xxe^{2x}. Sometimes needs repeating.

✓ In the formula booklet

Repeated by parts

Apply the formula more than once when one differentiation does not remove the power of xx, as in x2exx^2 e^x: each pass leaves a simpler product until the power of xx has gone.

A special case is an exponential multiplied by a sine or cosine, where the original integral reappears and you solve for it algebraically.

Not a listed formula - technique

Key terms

When is integration by parts needed?

Use it when the integrand is a product of two different types of function and the reverse chain rule does not apply. If the integrand is a function of an inner function multiplied by that inner function's derivative, inspection is quicker.

e.g. ∫xexdx\int xe^x\,dx needs parts, but ∫2xex2dx=ex2+C\int 2xe^{x^2}\,dx=e^{x^2}+C can be done by inspection.

How do you work out the four pieces of the formula?

After choosing uu and dvdx\dfrac{dv}{dx}, differentiate uu to get dudx\dfrac{du}{dx} and integrate dvdx\dfrac{dv}{dx} to get vv. No constant is needed at this stage.

e.g. For ∫xe2xdx\int xe^{2x}\,dx, take u=xu=x and dvdx=e2x\dfrac{dv}{dx}=e^{2x}, so dudx=1\dfrac{du}{dx}=1 and v=12e2xv=\tfrac12e^{2x}. The result is 12xe2x−14e2x+C\tfrac12xe^{2x}-\tfrac14e^{2x}+C.

What is the method for integrating ln⁡x\ln x?

Write ln⁡x\ln x as 1×ln⁡x1\times\ln x, with u=ln⁡xu=\ln x and dvdx=1\dfrac{dv}{dx}=1.

e.g. ∫ln⁡xdx=xln⁡x−∫x⋅1xdx=xln⁡x−x+C\int\ln x\,dx=x\ln x-\int x\cdot\dfrac1x\,dx=x\ln x-x+C.

What is repeated integration by parts?

If the new integral after one pass is still a product, apply integration by parts again. This often happens when a power of xx of degree two or more is multiplied by exe^x, sin⁡x\sin x or cos⁡x\cos x.

e.g. ∫x2exdx=x2ex−∫2xexdx\int x^2e^x\,dx=x^2e^x-\int2xe^x\,dx, and a second pass on the last integral gives ex(x2−2x+2)+Ce^x(x^2-2x+2)+C.

Worked example, step by step

The question No calculator needed [6 marks]

Find the exact value of ∫01x2e−xdx\displaystyle\int_0^1 x^2e^{-x}\,dx.

Worked solution: worked example

Answer: 2−5e−12-5e^{-1}

Step 1 - Choose the two parts.

Take u=x2u=x^2 and dvdx=e−x\dfrac{dv}{dx}=e^{-x}. Then dudx=2x\dfrac{du}{dx}=2x and v=−e−xv=-e^{-x}.

Why? The power of xx gets simpler each time it is differentiated, and e−xe^{-x} can always be integrated. Take the simplest vv: a constant added to it would cancel later.

Step 2 - Apply the formula once.

∫x2e−xdx=−x2e−x−∫(2x)(−e−x)dx=−x2e−x+2∫xe−xdx.\int x^2e^{-x}\,dx=-x^2e^{-x}-\int(2x)(-e^{-x})\,dx=-x^2e^{-x}+2\int xe^{-x}\,dx. M1 - Apply the by parts formula with u=x2u=x^2 and dvdx=e−x\dfrac{dv}{dx}=e^{-x} A1 - −x2e−x+2∫xe−xdx-x^2e^{-x}+2\int xe^{-x}\,dx

Why? The new integral is still a product, but the power of xx has dropped from two to one. Watch the signs: subtracting a negative gives a plus.

Step 3 - Apply the formula again.

For ∫xe−xdx\displaystyle\int xe^{-x}\,dx take u=xu=x and dvdx=e−x\dfrac{dv}{dx}=e^{-x}, so ∫xe−xdx=−xe−x+∫e−xdx=−xe−x−e−x.\int xe^{-x}\,dx=-xe^{-x}+\int e^{-x}\,dx=-xe^{-x}-e^{-x}. M1 - Apply integration by parts a second time to ∫xe−xdx\int xe^{-x}\,dx

Why? One pass leaves a product, so the method is repeated until the power of xx has gone and only a standard integral is left.

Step 4 - Write the antiderivative.

∫x2e−xdx=−x2e−x−2xe−x−2e−x+C=−e−x(x2+2x+2)+C.\int x^2e^{-x}\,dx=-x^2e^{-x}-2xe^{-x}-2e^{-x}+C=-e^{-x}\left(x^2+2x+2\right)+C. A1 - −e−x(x2+2x+2)-e^{-x}(x^2+2x+2), or an equivalent form

Why? Combine the two passes, with the factor of 22 from the first pass multiplying the whole second result. Differentiating the answer is a good check.

Step 5 - Substitute the limits.

[−e−x(x2+2x+2)]01=−e−1(1+2+2)−(−e0(2)).\Big[-e^{-x}(x^2+2x+2)\Big]_0^1=-e^{-1}(1+2+2)-\left(-e^{0}(2)\right). M1 - Substitute the limits 11 and 00 into the antiderivative

Why? Evaluate the antiderivative at the upper limit and subtract its value at the lower limit. No constant is needed in a definite integral.

Step 6 - Simplify.

∫01x2e−xdx=2−5e−1.\int_0^1 x^2e^{-x}\,dx=2-5e^{-1}. A1 - 2−5e−12-5e^{-1}

Why? Leave the answer exact. As a check, the value is about 0.1610.161, which is small and positive as the integrand is non-negative and below 0.40.4 on the interval.

Marks (6):
M1 Apply the by parts formula with u=x2u=x^2 and dvdx=e−x\dfrac{dv}{dx}=e^{-x}
A1 −x2e−x+2∫xe−xdx-x^2e^{-x}+2\int xe^{-x}\,dx
M1 Apply integration by parts a second time to ∫xe−xdx\int xe^{-x}\,dx
A1 −e−x(x2+2x+2)-e^{-x}(x^2+2x+2), or an equivalent form
M1 Substitute the limits 11 and 00 into the antiderivative
A1 2−5e−12-5e^{-1}

Now you try: enter your answers to be marked

These are real practice questions. Type your answer in each box and press Mark it. The worked solution and mark scheme appear straight away, and your first attempt is the one that counts. Use the keyboard for powers, roots and trig, and the working box for your notes.

1
Easy
No calc
[4 marks]
Find ∫x3ln⁡xdx.\displaystyle\int x^3\ln x\,dx.
[4]
Fractions & powers
Logs
Other

Worked solution: practice question 1

2
Medium
No calc
[2 marks]
Find ∫xsin⁡xdx\displaystyle\int x\sin x\,dx.
[2]
Fractions & powers
Trig
Other

Worked solution: practice question 2

3
Hard
No calc
[6 marks]
Find I=∫excos⁡xdx.I = \displaystyle\int e^x\cos x\,dx.
[6]
Fractions & powers
Trig
Other

Worked solution: practice question 3

Your score so far: 0 out of 12 marks

Common mistakes

  • Choosing uu and dvdv poorly. Pick uu to be the factor that gets simpler when differentiated (like xx or ln⁡x\ln x) - choosing the other way round usually makes the resulting integral harder, not easier.
  • Stopping after one pass when a second is needed. For something like ∫x2exdx\int x^2 e^x\,dx, one application of the formula still leaves a product to integrate - keep applying by parts until the polynomial factor has fully disappeared.
  • Dropping the +C+C. An indefinite integral by parts is still a family of antiderivatives - forgetting the constant costs an accuracy mark even when every other line is correct.

Try some questions on integration by parts

Section 2 of 2 AHL5.17

Volumes of revolution

A volume of revolution is the solid formed when a region is rotated through 360∘360^\circ about the xx-axis or the yy-axis. For rotation about the xx-axis, integrate πy2\pi y^2 with respect to xx; about the yy-axis, integrate πx2\pi x^2 with respect to yy. It also covers finding the limits, rewriting the curve, and a region between two curves, whose volume is the volume from the outer curve minus the volume from the inner curve.

The formula

Both formulas are in the formula booklet: the skill is choosing the right variable to integrate with respect to.

Volume about the x-axis

V=π∫aby2dxV = \pi\int_a^b y^2\,dx

Rotating the region under a curve fully around the xx-axis between x=ax=a and x=bx=b.

✓ In the formula booklet

Volume about the y-axis

V=π∫cdx2dyV = \pi\int_c^d x^2\,dy

Swap the roles of xx and yy: rewrite the curve as xx in terms of yy, then integrate with respect to yy between the two yy-limits.

✓ In the formula booklet

Key terms

What is a solid of revolution?

It is the three-dimensional shape formed by rotating a region about an axis. Each thin slice perpendicular to the axis is a disc, which is why the formula contains π\pi.

e.g. Rotating the region under y=2y=2 from x=0x=0 to x=3x=3 about the xx-axis gives a cylinder of radius 22 and height 33, with volume π×22×3=12π\pi\times2^2\times3=12\pi.

Why is yy squared in the formula?

Each slice is a disc of radius yy, and its area is πy2\pi y^2. Integration adds up all the thin discs.

e.g. At x=2x=2 on the line y=xy=x, the radius is 22, so the disc has area π×22=4π\pi\times2^2=4\pi.

How do you find the limits of integration?

The limits are the bounds of the region in the variable you integrate with respect to: xx-values for rotation about the xx-axis and yy-values for rotation about the yy-axis. They come from the given lines or from where the curve meets the axes.

e.g. For the part of y=x2y=x^2 with yy from 00 to 99 rotated about the yy-axis, the limits are y=0y=0 and y=9y=9.

How do you rewrite a curve for rotation about the yy-axis?

Make x2x^2 the subject of the equation so that the integrand is in terms of yy.

e.g. From y=x2y=x^2, x2=yx^2=y, so the volume for yy from 00 to 99 is π∫09ydy=π[y22]09=81π2\pi\int_0^9 y\,dy=\pi\left[\dfrac{y^2}{2}\right]_0^9=\dfrac{81\pi}{2}.

Worked example, step by step

The question No calculator needed [5 marks]

The region RR is bounded by the curve y=e−xy=e^{-x}, the xx-axis, the yy-axis and the line x=1x=1. The region RR is rotated through 2π2\pi radians about the xx-axis. Find the exact volume of the solid formed.

Worked solution: worked example

Answer: π2(1−e−2)\dfrac{\pi}{2}\left(1-e^{-2}\right)

Step 1 - Write the volume integral.

Rotation about the xx-axis uses V=π∫aby2dxV=\pi\displaystyle\int_a^b y^2\,dx, with a=0a=0 and b=1b=1: V=π∫01(e−x)2dx.V=\pi\int_0^1\left(e^{-x}\right)^2dx. M1 - Use V=π∫y2dxV=\pi\int y^2\,dx with limits 00 and 11

Why? The limits are the xx-values at the ends of the region. Each thin slice is a disc of radius yy, which is why yy is squared and the π\pi stays in front.

Step 2 - Square the function.

(e−x)2=e−2x,soV=π∫01e−2xdx.\left(e^{-x}\right)^2=e^{-2x},\qquad\text{so}\qquad V=\pi\int_0^1 e^{-2x}\,dx. A1 - e−2xe^{-2x} as the integrand

Why? The square is taken before integrating, using the laws of indices. Squaring the answer to ∫e−xdx\displaystyle\int e^{-x}\,dx instead would give a wrong result.

Step 3 - Integrate.

V=π[−12e−2x]01.V=\pi\left[-\dfrac12e^{-2x}\right]_0^1. A1 - −12e−2x-\dfrac12e^{-2x} as the antiderivative

Why? The integral of eax+be^{ax+b} is 1aeax+b\dfrac1a e^{ax+b}, and here a=−2a=-2.

Step 4 - Substitute the limits.

V=π(−12e−2+12e0).V=\pi\left(-\dfrac12e^{-2}+\dfrac12e^{0}\right). M1 - Substitute the limits and subtract

Why? Upper limit minus lower limit, and e0=1e^0=1.

Step 5 - State the volume.

V=π2(1−e−2).V=\dfrac{\pi}{2}\left(1-e^{-2}\right). A1 - π2(1−e−2)\dfrac{\pi}{2}\left(1-e^{-2}\right) or an equivalent exact form

Why? An exact answer is asked for, so leave it in terms of π\pi and ee. A decimal is not needed.

Marks (5):
M1 Use V=π∫y2dxV=\pi\int y^2\,dx with limits 00 and 11
A1 e−2xe^{-2x} as the integrand
A1 −12e−2x-\dfrac12e^{-2x} as the antiderivative
M1 Substitute the limits and subtract
A1 π2(1−e−2)\dfrac{\pi}{2}\left(1-e^{-2}\right) or an equivalent exact form

Now you try: enter your answers to be marked

1
Easy
No calc
[4 marks]
02-20246810xy

Find the volume of the solid formed when the curve y=x2y = x^2 is rotated 2π2\pi radians about the xx-axis between x=0x = 0 and x=2x = 2.
[4]
Fractions & powers
Other

Worked solution: practice question 1

2
Medium
No calc
[4 marks]
The curve y=xy = \sqrt{x} is rotated 2π2\pi radians about the yy-axis between y=0y = 0 and y=3y = 3.
2468-11230xy

Find the volume of the solid of revolution.
[4]
Fractions & powers
Other

Worked solution: practice question 2

3
Hard
No calc
[6 marks]
The region RR is bounded by y=xy = x and y=x2y = x^2 for 0≤x≤10 \leq x \leq 1.
-1012-2-1012345xy

Find the volume of the solid formed when RR is rotated 2π2\pi radians about the xx-axis.
[6]
Fractions & powers
Other

Worked solution: practice question 3

Your score so far: 0 out of 14 marks

Common mistakes

  • Forgetting to square yy (or xx) before integrating. The formula is π∫y2dx\pi\int y^2\,dx, not π∫ydx\pi\int y\,dx - skipping the square is one of the most common slips on this topic.
  • Dropping the π\pi. Every volume-of-revolution answer needs the constant π\pi out front - it is easy to lose when the working gets long.
  • Not rewriting the curve before rotating about the y-axis. A rotation about the yy-axis needs x2x^2 as a function of yy, so an equation given as y=f(x)y=f(x) must be rearranged into x=g(y)x=g(y) first.

Try some questions on volumes of revolution

Using your GDC

The exact key presses for the TI-84 Plus CE, Casio fx-CG50, Casio fx-CG100 and TI-Nspire CX, with what the screen shows. Pick your calculator.

Definite integral (area under a curve)

Used in: Volumes of revolution

How to find a definite integral on a TI-84 Plus CE

Route A: type the integral (quickest)

On the home screen press math, then 9 to choose 9:fnInt. In MathPrint mode (the default) an integral template appears, with boxes for the limits and the function.

The cursor starts in the lower limit box: type 0. Press ▶ to move to the next box and type 3 for the upper limit, then press ▶ again and type X,T,θ,n x² − 4 for the function. Use the X,T,θ,n key for x, not ALPHA. If the template has a box for the variable after the function, type X,T,θ,n there too.

∫03(X2−4)dX\int_0^3 (X^2-4)\,dX

Press enter.

The signed value is −3-3.

∫03(X2−4)dX\int_0^3 (X^2-4)\,dX
-3

For the area. Open the template again. In the function box press math ▶ (NUM) 1 for abs(, then type X,T,θ,n x² − 4. If abs( shows an open bracket, close it with ); if it shows bars, press ▶ to move out of them. Keep the limits 0 and 3 and press enter.

The area is 7.677.67 to 3 significant figures.

∫03abs(X2−4)dX\int_0^3 \mathrm{abs}(X^2-4)\,dX
7.666666667

If you see fnInt( instead of a template, the calculator is in Classic mode. Type fnInt(X²-4,X,0,3) with commas between the four parts, or press mode and choose MATHPRINT.

Route B: from the graph (shows the region)

Press Y=, clear any old function with clear, then type X,T,θ,n x² − 4 next to Y1=.

Plot1 Plot2 Plot3
\Y1=X²-4
\Y2=
\Y3=

Press window and set Xmin = −1, Xmax = 4, Ymin = −5, Ymax = 6. For a negative number use the (−) key next to the decimal point, not the subtraction key.

WINDOW
Xmin=-1
Xmax=4
Xscl=1
Ymin=-5
Ymax=6
Yscl=1

Press graph, then 2nd trace (CALC) and choose 7:∫f(x)dx\int f(x)\,dx.

If more than one function is drawn, press ▲ or ▼ to choose it. At Lower Limit? type 0 and press enter. At Upper Limit? type 3 and press enter.

Upper Limit?

The region is shaded and the value appears. The part below the axis is counted as negative, which is why the value is −3-3 and not the area. Use Route A with abs( for the area.

∫f(x)dx=-3

Tip: Route B only works if x = 0 and x = 3 are inside the window, so check WINDOW before pressing CALC. In MathPrint mode this route and the template in Route A both use a tolerance of 0.001, which is accurate enough for 3 significant figures. Typing fnInt( in Classic mode uses 0.00001 unless you choose another.

The full guide: Definite integral (area under a curve)

See the full list of GDC guides for every calculator task.

Syllabus content covered

CodeSyllabus content
AHL5.16Integration by parts, including repeated integration by parts.
AHL5.17Volumes of revolution about the xx-axis or yy-axis.

Official IB source: Mathematics: analysis and approaches subject brief (PDF, ibo.org).

Quick questions

What is the formula for integration by parts?

∫udvdxdx=uv−∫vdudxdx\int u\,\dfrac{dv}{dx}\,dx = uv - \int v\,\dfrac{du}{dx}\,dx. It is given in the formula booklet, so you only need to know when and how to apply it.

What is the formula for a volume of revolution about the x-axis?

V=π∫aby2dxV = \pi\int_a^b y^2\,dx, for the solid formed when the region under a curve is rotated fully about the xx-axis.

How do I choose u and dv in integration by parts?

Pick uu to be the factor that gets simpler when differentiated, such as xx or ln⁡x\ln x, and dvdv to be the factor you can integrate directly, such as exe^x or sin⁡x\sin x.

How do I find a volume of revolution about the y-axis?

Use the same formula with xx and yy swapped: V=π∫cdx2dyV = \pi\int_c^d x^2\,dy, rewriting the curve's equation to give xx in terms of yy first.

Why is no constant needed when finding v?

Any constant added to vv cancels out of the formula, so use the simplest antiderivative. Add the +C+C only once, at the end.

How do I find the volume when y = 2x is rotated about the x-axis from x = 0 to x = 3?

V=π∫03(2x)2dx=π∫034x2dx=π[4x33]03=36πV=\pi\int_0^3(2x)^2\,dx=\pi\int_0^3 4x^2\,dx=\pi\left[\dfrac{4x^3}{3}\right]_0^3=36\pi. This is a cone of radius 66 and height 33, and 13π×62×3=36π\tfrac13\pi\times6^2\times3=36\pi confirms it.

How can I check an integration by parts answer?

Differentiate your answer, and it should return the original integrand. For example, ddx(xln⁡x−x)=ln⁡x+1−1=ln⁡x\dfrac{d}{dx}(x\ln x-x)=\ln x+1-1=\ln x.

Should the answer be left in terms of pi?

An exact answer can be left in terms of π\pi, such as 36π36\pi. If a decimal is requested, give it to 3 significant figures, which here is 113113.

For the integral of x squared times sin x, which factor should be u?

Take u=x2u=x^2, because it becomes simpler when differentiated, giving 2x2x and then 22. Integrating sin⁡x\sin x is straightforward, but two applications of the method are needed.

Do I need a modulus if the region lies below the axis?

No. Squaring yy makes the integrand non-negative, so the volume is positive whether the curve is above or below the axis.

Ready to practise properly?

Practice questions on every section, marked instantly like the real exam.