Skip to content

Integration by parts, step by step

6 min read

Short answer

For a product of two kinds of functions, use ∫u dv=uv−∫v du\displaystyle\int u\,dv=uv-\int v\,du. Pick uu as the part that gets simpler when differentiated, using the order LIATE (Logarithmic, Inverse trig, Algebraic, Trigonometric, Exponential): the earlier in the list, the better the choice for uu.

∫ u dv = u v − ∫ v du∫ u dv = u v − ∫ v duu differentiate it (it gets simpler)dv integrate it (it must be doable)du = u′ dxv = ∫ dv
Parts is the product rule run in reverse.

Where the formula comes from

The product rule gives (uv)′=u′v+uv′(uv)'=u'v+uv'. Integrate both sides and rearrange: ∫uv′ dx=uv−∫u′v dx\int uv'\,dx=uv-\int u'v\,dx. You trade one integral for another, which is easier if you choose uu well.

Choosing u with LIATE

For ∫x ex dx\int x\,e^x\,dx take u=xu=x (algebraic) and dv=ex dxdv=e^x\,dx (exponential). For ∫ln⁡x dx\int\ln x\,dx take u=ln⁡xu=\ln x and dv=dxdv=dx. If the first choice makes the new integral harder, swap them.

Worked example

Find ∫xcos⁡x dx\displaystyle\int x\cos x\,dx.

Let u=xu=x, dv=cos⁡x dxdv=\cos x\,dx, so du=dxdu=dx and v=sin⁡xv=\sin x. Then ∫xcos⁡x dx=xsin⁡x−∫sin⁡x dx=xsin⁡x+cos⁡x+C\displaystyle\int x\cos x\,dx=x\sin x-\int\sin x\,dx=x\sin x+\cos x+C. Check: the derivative is sin⁡x+xcos⁡x−sin⁡x=xcos⁡x\sin x+x\cos x-\sin x=x\cos x. ✓

Try it yourself

Find ∫ln⁡x dx\displaystyle\int\ln x\,dx.

Show the answer

Let u=ln⁡xu=\ln x, dv=dxdv=dx, so du=1x dxdu=\tfrac1x\,dx and v=xv=x. Then xln⁡x−∫1 dx=xln⁡x−x+Cx\ln x-\int1\,dx=x\ln x-x+C.

Keep going with practice

Vidi's practice sets mix substitution and parts so you learn to choose the method, not only to run it.