Euler Hall — free maths guides

Integration by parts

Apply integration by parts with a well-chosen u and dv. The idea in plain words, a worked example, and a check with the answers shown — part of the free Calculus II guides.

Trading one integral for a simpler one

The integration by parts formula is the product rule rearranged:

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

The product rule says(uv)′=u′v+uv′(uv)' = u'v + uv'. Integrating both sides and rearranging gives the formula above. So parts is not a new idea — it is the product rule read backwards, exactly as substitution is the chain rule read backwards.

What it accomplishes. It trades∫u dv\int u\,dv for∫v du\int v\,du. The trade is worth making whenuu gets SIMPLER on differentiation anddvdv stays integrable.

The standard choices:

| integrand |uu |dvdv | |---|---|---| |xnexx^n e^x |xnx^n |ex dxe^x\,dx | |xnsin⁡xx^n \sin x |xnx^n |sin⁡x dx\sin x\,dx | |xnln⁡xx^n \ln x |ln⁡x\ln x |xn dxx^n\,dx | |ln⁡x\ln x alone |ln⁡x\ln x |dxdx |

The pattern in the table:uu is the part that becomes simpler, and it is always the polynomial or the logarithm — never the exponential or the sine.

The check is differentiation, as always. Every worked answer is verified in one line.

Why the formula is the product rule

Start from(uv)′=u′v+uv′(uv)' = u'v + uv' and integrate both sides overxx:

uv=∫u′v dx+∫uv′ dx.uv = \int u'v\,dx + \int uv'\,dx.

Rearrange:

∫uv′ dx=uv−∫u′v dx.\int uv'\,dx = uv - \int u'v\,dx.

Writingdv=v′ dxdv = v'\,dx anddu=u′ dxdu = u'\,dx gives∫u dv=uv−∫v du\int u\,dv = uv - \int v\,du, which is the formula.

So parts is an identity, not a technique with hypotheses — it is always true when the pieces are differentiable. What makes it USEFUL is the choice ofuu anddvdv, and that is judgement rather than rule.

The one structural requirement is thatvv must be obtainable fromdvdv, which is whydvdv is always something you can integrate.

Worked example: three shapes from the table

Polynomial times exponential.∫xex dx=(x−1)ex+C\int xe^x\,dx = (x-1)e^x + C, as above.

Polynomial times sine.∫xsin⁡x dx\int x\sin x\,dx:u=xu = x,dv=sin⁡x dxdv = \sin x\,dx, sodu=dxdu = dx andv=−cos⁡xv = -\cos x. Then

∫xsin⁡x dx=−xcos⁡x+∫cos⁡x dx=−xcos⁡x+sin⁡x+C.\int x\sin x\,dx = -x\cos x + \int\cos x\,dx = -x\cos x + \sin x + C.

A logarithm alone.∫ln⁡x dx\int\ln x\,dx:u=ln⁡xu = \ln x anddv=dxdv = dx, sodu=dxxdu = \frac{dx}{x} andv=xv = x. Then

∫ln⁡x dx=xln⁡x−∫1 dx=xln⁡x−x+C.\int\ln x\,dx = x\ln x - \int 1\,dx = x\ln x - x + C.

The third is the one that surprises students: a single function, no product visible, and parts still applies becausedv=dxdv = dx is a legitimate choice. When there is no obvious product, theu dvu\,dv split isu=fu = f anddv=dxdv = dx.

By the end you can
  • Apply integration by parts with a well-chosen u and dv
  • Decide which factor becomes u by comparing the remaining integrals
  • Recognise a lone function as a parts problem with dv = dx
Check yourself
  1. 1.∫xe−x dx\int xe^{-x}\,dx
  2. 2.∫xsin⁡2x dx\int x\sin2x\,dx
  3. 3.∫ln⁡(2x) dx\int \ln(2x)\,dx
Answers
  1. 1.−(x+1)e−x+C-(x+1)e^{-x} + C.
  2. 2.−xcos⁡2x2+sin⁡2x4+C-\frac{x\cos2x}{2} + \frac{\sin2x}{4} + C.
  3. 3.xln⁡(2x)−x+Cx\ln(2x) - x + C.
Work out where to start — free, no accountAnswer six real questions — free, no account