Using Integration by Parts

Integration by parts for definite integrals follows the same rule with bounds.

The Integration by Parts Formula

If u(x),v(x)u(x), v(x) are differentiable,

∫abu(x)v′(x) dx=[u(x)v(x)]ab−∫abu′(x)v(x) dx.\int_a^b u(x) v'(x) \, dx = [u(x) v(x)]_a^b - \int_a^b u'(x) v(x) \, dx.

Worked Examples

Example: ∫01xexdx\int_0^1 x e^x dx
Take u=x, v′=ex⇒u′=1, v=exu=x,\ v'=e^x \Rightarrow u'=1,\ v=e^x.
∫01xexdx=[xex]01−∫01exdx=1\int_0^1 x e^x dx = [x e^x]_0^1 - \int_0^1 e^x dx = 1.


Exercises

Exercise 1

Compute ∫01xexdx\int_0^1 x e^x dx using integration by parts.

definite integralintegration by parts

Approach: The integrand is the product of xx and exe^x, so take u(x)=xu(x) = x and v′(x)=exv'(x) = e^x. That shifts the derivative onto the linear factor and leaves ∫01exdx\int_0^1 e^x dx, which is a basic integral.

Steps:

  1. Take u(x)=xu(x) = x, v′(x)=exv'(x) = e^x, so u′(x)=1u'(x) = 1 and v(x)=exv(x) = e^x.
  2. Apply the formula: ∫01xexdx=[xex]01−∫01exdx\int_0^1 x e^x dx = [x e^x]_0^1 - \int_0^1 e^x dx.
  3. Boundary term: [xex]01=1⋅e1−0⋅e0=e[x e^x]_0^1 = 1 \cdot e^1 - 0 \cdot e^0 = e.
  4. Remaining integral: ∫01exdx=[ex]01=e−1\int_0^1 e^x dx = [e^x]_0^1 = e - 1.
  5. Therefore ∫01xexdx=e−(e−1)=1\int_0^1 x e^x dx = e - (e - 1) = 1.

Answer: 11

Exercise 2

Compute ∫0πxcos⁡xdx\int_0^{\pi} x \cos x dx using integration by parts.

definite integralintegration by partstrigonometric function

Approach: Again take u(x)=xu(x) = x, but this time v′(x)=cos⁡xv'(x) = \cos x, whose antiderivative is v(x)=sin⁡xv(x) = \sin x. The boundary term [xsin⁡x]0π[x \sin x]_0^{\pi} happens to vanish, and the remaining ∫0πsin⁡xdx\int_0^{\pi} \sin x dx is a basic integral.

Steps:

  1. Take u(x)=xu(x) = x, v′(x)=cos⁡xv'(x) = \cos x, so u′(x)=1u'(x) = 1 and v(x)=sin⁡xv(x) = \sin x.
  2. Apply the formula: ∫0πxcos⁡xdx=[xsin⁡x]0π−∫0πsin⁡xdx\int_0^{\pi} x \cos x dx = [x \sin x]_0^{\pi} - \int_0^{\pi} \sin x dx.
  3. Boundary term: [xsin⁡x]0π=πsin⁡π−0sin⁡0=0[x \sin x]_0^{\pi} = \pi \sin \pi - 0 \sin 0 = 0.
  4. Remaining integral: ∫0πsin⁡xdx=[−cos⁡x]0π=−cos⁡π+cos⁡0=1+1=2\int_0^{\pi} \sin x dx = [-\cos x]_0^{\pi} = -\cos \pi + \cos 0 = 1 + 1 = 2.
  5. Therefore ∫0πxcos⁡xdx=0−2=−2\int_0^{\pi} x \cos x dx = 0 - 2 = -2.

Answer: −2-2

Exercise 3

Compute ∫01x2exdx\int_0^1 x^2 e^x dx using integration by parts.

definite integralintegration by partsrepeated integration by parts

Approach: One application of the formula leaves ∫012xexdx\int_0^1 2x e^x dx, which is still a product, so the formula has to be used twice: the first round removes x2x^2, the second one removes xx.

Steps:

  1. First round: take u(x)=x2u(x) = x^2, v′(x)=exv'(x) = e^x, so u′(x)=2xu'(x) = 2x and v(x)=exv(x) = e^x.
  2. ∫01x2exdx=[x2ex]01−∫012xexdx=e−2∫01xexdx\int_0^1 x^2 e^x dx = [x^2 e^x]_0^1 - \int_0^1 2x e^x dx = e - 2\int_0^1 x e^x dx.
  3. Integrate ∫01xexdx\int_0^1 x e^x dx by parts once more (take u(x)=xu(x) = x, v′(x)=exv'(x) = e^x): ∫01xexdx=[xex]01−∫01exdx=e−(e−1)=1\int_0^1 x e^x dx = [x e^x]_0^1 - \int_0^1 e^x dx = e - (e - 1) = 1.
  4. Substitute back: ∫01x2exdx=e−2⋅1=e−2\int_0^1 x^2 e^x dx = e - 2 \cdot 1 = e - 2.

Answer: e−2e - 2


Summary

Symbols Used in This Article

SymbolTypePronunciation/ExplanationMeaning in This Article
∫\intmathematical symbolintegralDefinite integral sign
[uv]ab[u v]_a^bmathematical symbolbracketThe difference of the values at aa and bb
u(x),v(x)u(x), v(x)function symbolu of x, v of xThe two differentiable functions whose product is integrated
v′(x)v'(x)mathematical symbolv prime of xThe derivative that is integrated in the first form of the formula
u′(x)u'(x)mathematical symbolu prime of xThe derivative transferred to the other factor in the second term
exe^xmathematical symbole to the xThe exponential factor taken as v′v' in the worked example
dxdxmathematical symboldifferential of xThe differential element of the integration variable xx
[a,b][a,b]intervalclosed intervalThe interval of integration in the formula
xxvariableexThe integration variable, chosen as uu in the worked example
[xex]01[x e^x]_0^1mathematical symbolx e to the x from 0 to 1The boundary term evaluated in the worked example

Found an issue with this content?

Tell us what could be improved.