Integration by parts

Lessons and exercises follow the school system and stay in its language.Les leçons et les exercices suivent le système scolaire et restent dans sa langue.Lektionen und Übungen folgen dem Schulsystem und bleiben in seiner Sprache.

About this lesson

Calculus BC (AP-aligned) › Integration by parts and partial fractions

To save a PDF, choose “Save as PDF” in the print dialog.

Sources and credits

Written with this source as a starting point:

sedifier rewrote the text and added its own examples and exercises.

Written with AI assistance; every answer is checked by our math engine. Not yet reviewed by a teacher.

This lesson: CC BY-SA 4.0, © sedifier · All credits

Integration by parts

Integration by parts and partial fractions.

Warm-up

Three quick questions from earlier lessons.

  1. f(x)=x3sin⁡xf(x) = x^{ 3 }\sin x. Find f′(x)f'(x).
  2. f(x)=(x+3)exf(x) = (x + 3)e^x. Find f′(x)f'(x).
  3. f(2)=4f(2) = 4, f′(2)=4f'(2) = 4, g(2)=−4g(2) = -4 and g′(2)=−1g'(2) = -1. Find (fg)′(2)(fg)'(2).

Discover

The product rule says (xex)′=ex+xex(x e^x)' = e^x + x e^x. Integrate both sides: xex=∫ex dx+∫xex dxx e^x = \displaystyle\int e^x\,dx + \int x e^x\,dx. So what is ∫xex dx\displaystyle\int x e^x\,dx?

  1. xex−ex+Cx e^x - e^x + C
  2. x22ex+C\dfrac{x^2}{2}e^x + C

Key idea

Trade one integral for an easier one.

Integration by parts: ∫u dv=uv−∫v du\displaystyle\int u\,dv = uv - \int v\,du. For definite integrals: ∫abu dv=[uv]ab−∫abv du\displaystyle\int_a^b u\,dv = \big[uv\big]_a^b - \int_a^b v\,du. Choose uu so that dudu is simpler.

Worked example

∫xsin⁡x dx\displaystyle\int x\sin x\,dx.

u=xu = x, du=dxdu = dx, v=−cos⁡xv = -\cos x
u = x simplifies; dv = sin x dx is easy to integrate.
−xcos⁡x+∫cos⁡x dx-x\cos x + \displaystyle\int \cos x\,dx
uv − ∫v du.
−xcos⁡x+sin⁡x+C-x\cos x + \sin x + C
Finish.

Your turn, guided

Your turn: ∫xe2x dx\displaystyle\int x e^{2x}\,dx, u=xu = x, v=12e2xv = \tfrac{1}{2}e^{2x}.

12xe2x−14e2x+C\tfrac{1}{2}xe^{2x} - \tfrac{1}{4}e^{2x} + C
½xe^{2x} − ∫½e^{2x} dx.

Practice ★

  1. Find FF with F′(x)=1xexF'(x) = 1x e^x and F(0)=0F(0) = 0.
  2. Find FF with F′(x)=49xexF'(x) = 49x e^x and F(0)=0F(0) = 0.
  3. Find FF with F′(x)=2xexF'(x) = 2x e^x and F(0)=0F(0) = 0.

Watch out!

Practice ★★

  1. Evaluate ∫0π/22xcos⁡x dx\displaystyle\int_0^{\pi/2} 2x\cos x\,dx.
  2. Evaluate ∫0π/234xcos⁡x dx\displaystyle\int_0^{\pi/2} 34x\cos x\,dx.
  1. Evaluate ∫1e3ln⁡x dx\displaystyle\int_1^{e^{ 3 } } \ln x\,dx.

Exit ticket

Three questions to check you have got it.

  1. Find FF with F′(x)=1xexF'(x) = 1x e^x and F(0)=0F(0) = 0.
  2. Find FF with F′(x)=49xexF'(x) = 49x e^x and F(0)=0F(0) = 0.
  3. Find FF with F′(x)=2xexF'(x) = 2x e^x and F(0)=0F(0) = 0.

Summary card

Integration by parts

∫u dv=uv−∫v du\displaystyle\int u\,dv = uv - \int v\,du.

Watch out: the minus sign, and signs inside ∫v du\int v\,du.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. Evaluate ∫015x2ex dx\displaystyle\int_0^1 5x^2 e^x\,dx (integrate by parts twice).
Sources and credits

Written with this source as a starting point:

sedifier rewrote the text and added its own examples and exercises.

Written with AI assistance; every answer is checked by our math engine. Not yet reviewed by a teacher.

This lesson: CC BY-SA 4.0, © sedifier · All credits