Teleport

Main features

On this page

Topics

Arithmetic drills
Grade 7
Grade 8
Grade 9
Math I
Math A
Math II
Math B
Math C
Math III
Calculus
Linear algebra
Differential equations

Display

Theme
Math III

Integration by parts

Integration by parts handles products of functions. The key decision is which factor to differentiate and which to integrate.

Basic, Standard: Grade 12 · Term 2 / Advanced: Grade 12 · Exam prep

Math problem generator

Level

The formula

Integration by parts
∫f(x)g′(x) dx=f(x)g(x)−∫f′(x)g(x) dx\int f(x)g'(x)\,dx = f(x)g(x) - \int f'(x)g(x)\,dx
∫abf(x)g′(x) dx=[f(x)g(x)]ab−∫abf′(x)g(x) dx\int_a^b f(x)g'(x)\,dx = \Bigl[f(x)g(x)\Bigr]_a^b - \int_a^b f'(x)g(x)\,dx

It follows by integrating the product rule {f(x)g(x)}′=f′(x)g(x)+f(x)g′(x)\{f(x)g(x)\}' = f'(x)g(x) + f(x)g'(x) and rearranging.

Choosing f and g'

Choose so that ∫f′(x)g(x) dx\int f'(x)g(x)\,dx is simpler than the original integral. A useful order (the further left, the better as the part to differentiate, ff):

Rule of thumb

log⁡x\log x > polynomials (xx, x2x^2, ...) > trig and exponential functions

For xexxe^x take f=xf = x (its derivative 1 disappears); for xlog⁡xx\log x take f=log⁡xf = \log x (its derivative is 1x\frac{1}{x}).

∫xex dx=xex−∫ex dx=xex−ex+C=(x−1)ex+C\int xe^x\,dx = xe^x - \int e^x\,dx = xe^x - e^x + C = (x-1)e^x + C
∫log⁡x dx=∫(x)′log⁡x dx=xlog⁡x−∫x⋅1x dx=xlog⁡x−x+C\int \log x\,dx = \int (x)'\log x\,dx = x\log x - \int x\cdot\frac{1}{x}\,dx = x\log x - x + C

Integrating by parts twice

For a quadratic factor, as in x2exx^2 e^x or x2sin⁡xx^2\sin x, integrate by parts twice: the power drops 2→1→02 \to 1 \to 0.

∫x2ex dx=x2ex−2∫xex dx=x2ex−2(x−1)ex+C=(x2−2x+2)ex+C\int x^2e^x\,dx = x^2e^x - 2\int xe^x\,dx = x^2e^x - 2(x-1)e^x + C = (x^2 - 2x + 2)e^x + C

When the original integral comes back

For ∫exsin⁡x dx\int e^x\sin x\,dx, integrating by parts twice brings the original integral II back on the right-hand side. Solve the equation for II.

I=∫exsin⁡x dx=exsin⁡x−∫excos⁡x dx=exsin⁡x−excos⁡x−II = \int e^x\sin x\,dx = e^x\sin x - \int e^x\cos x\,dx = e^x\sin x - e^x\cos x - I

So 2I=ex(sin⁡x−cos⁡x)2I = e^x(\sin x - \cos x) and I=12ex(sin⁡x−cos⁡x)+CI = \dfrac{1}{2}e^x(\sin x - \cos x) + C.

Common mistakes

  • Signs: the formula has "−∫-\int". Use parentheses carefully the second time.
  • The coefficient of gg: if g′(x)=e2xg'(x) = e^{2x}, then g(x)=12e2xg(x) = \frac{1}{2}e^{2x}.
  • Choosing the wrong way round: for xexxe^x, taking f=exf = e^x and g′=xg' = x gives ∫x22ex dx\int \frac{x^2}{2}e^x\,dx, which is worse.