Math Lab
Home/Class XII/Ch 7/Integration by parts

Integration by parts

The product rule of differentiation reads (uv)=uv+uv(uv)' = u'v + uv'. Integrate both sides: uv=uvdx+uvdxudv=uvvdu.uv = \int u'v\,dx + \int uv'\,dx \quad \Longrightarrow \quad \int u\,dv = uv - \int v\,du.

That last line is integration by parts. It trades one integral for another. The trade is worthwhile only when the new integral is easier than the old.

Statement

If uu and vv are differentiable functions of xx, then u(x)v(x)dx=u(x)v(x)v(x)u(x)dx.\int u(x)\,v'(x)\,dx = u(x)\,v(x) - \int v(x)\,u'(x)\,dx. Equivalently, writing dv=v(x)dxdv = v'(x)\,dx and du=u(x)dxdu = u'(x)\,dx: udv=uvvdu.\int u\,dv = uv - \int v\,du.

The art is in choosing uu and dvdv. A poor choice makes the integral harder. A good choice makes it disappear.

LIATE , the choice rule

Among the two factors in your integrand, choose uu as whichever class comes first in the list:

  • Logarithmic (lnx\ln x)
  • Inverse trigonometric (sin1x\sin^{-1}x, tan1x\tan^{-1}x)
  • Algebraic (xnx^n)
  • Trigonometric (sinx\sin x, cosx\cos x)
  • Exponential (exe^x)

For example, in xexdx\int x\,e^x\,dx, the choices are algebraic and exponential. Algebraic comes first in LIATE, so u=xu = x, dv=exdxdv = e^x\,dx. Then du=dxdu = dx, v=exv = e^x, and xexdx=xexexdx=xexex+C.\int x\,e^x\,dx = xe^x - \int e^x\,dx = xe^x - e^x + C.

Why LIATE? When you differentiate uu, you want it to simplify (or at least not blow up). Logs and inverse-trig functions become algebraic on differentiation , they should be uu. Trigonometric and exponential factors cycle under differentiation , they make excellent dvdv.

The single-factor trick

For functions like lnxdx\int \ln x\,dx or sin1xdx\int \sin^{-1}x\,dx, there is only one factor. Manufacture a second one: set dv=dxdv = dx, i.e. v=xv = x.

lnxdx\int \ln x\,dx: u=lnxu = \ln x, dv=dxdv = dx. Then du=1xdxdu = \tfrac{1}{x}dx, v=xv = x. lnxdx=xlnxx1xdx=xlnxx+C.\int \ln x\,dx = x \ln x - \int x \cdot \tfrac{1}{x}\,dx = x\ln x - x + C.

Repeated integration by parts

For x2exdx\int x^2 e^x\,dx, one application reduces the algebraic factor's degree by one, but you still have an integral. Apply integration by parts again. After two applications, the algebraic factor is gone.

A particularly elegant case occurs when integration by parts twice gives you a multiple of the original integral. Then you solve algebraically. This trick is essential for exsinxdx\int e^x \sin x\,dx and similar.

The ex[f(x)+f(x)]e^x[f(x) + f'(x)] shortcut

If you can rewrite an integrand in the form ex[f(x)+f(x)]e^x [f(x) + f'(x)], then ex[f(x)+f(x)]dx=exf(x)+C.\int e^x[f(x) + f'(x)]\,dx = e^x f(x) + C.

This is integration by parts in disguise: exf(x)dx=exf(x)exf(x)dx\int e^x f(x)\,dx = e^x f(x) - \int e^x f'(x)\,dx, so exf(x)dx+exf(x)dx=exf(x)\int e^x f(x)\,dx + \int e^x f'(x)\,dx = e^x f(x). The shortcut saves time on exams.

Worked examples

Example 1. xcosxdx\int x \cos x\,dx.

LIATE: u=xu = x (algebraic), dv=cosxdxdv = \cos x\,dx. So du=dxdu = dx, v=sinxv = \sin x. xcosxdx=xsinxsinxdx=xsinx+cosx+C.\int x\cos x\,dx = x\sin x - \int \sin x\,dx = x\sin x + \cos x + C.

Example 2. tan1xdx\int \tan^{-1}x\,dx.

Single-factor trick: u=tan1xu = \tan^{-1}x, dv=dxdv = dx. Then du=dx1+x2du = \dfrac{dx}{1+x^2}, v=xv = x. tan1xdx=xtan1xxdx1+x2=xtan1x12ln(1+x2)+C.\int \tan^{-1}x\,dx = x\tan^{-1}x - \int \frac{x\,dx}{1+x^2} = x\tan^{-1}x - \tfrac{1}{2}\ln(1+x^2) + C.

Example 3. x2exdx\int x^2 e^x\,dx.

First: u=x2u = x^2, dv=exdxdv = e^x\,dx. So du=2xdxdu = 2x\,dx, v=exv = e^x. x2exdx=x2ex2xexdx.\int x^2 e^x\,dx = x^2 e^x - 2\int x e^x\,dx. From Example before opening: xexdx=xexex\int x e^x\,dx = xe^x - e^x. So x2exdx=x2ex2xex+2ex+C=ex(x22x+2)+C.\int x^2 e^x\,dx = x^2 e^x - 2xe^x + 2e^x + C = e^x(x^2 - 2x + 2) + C.

Example 4. exsinxdx\int e^x \sin x\,dx.

Let I=exsinxdxI = \int e^x \sin x\,dx. By parts: u=sinxu = \sin x, dv=exdxdv = e^x\,dx, so du=cosxdxdu = \cos x\,dx, v=exv = e^x. Then I=exsinxexcosxdxI = e^x \sin x - \int e^x \cos x\,dx. Apply parts again with u=cosxu = \cos x, dv=exdxdv = e^x\,dx: excosxdx=excosx+exsinxdx=excosx+I\int e^x \cos x\,dx = e^x \cos x + \int e^x \sin x\,dx = e^x \cos x + I. Substituting back: I=exsinxexcosxII = e^x \sin x - e^x \cos x - I, so 2I=ex(sinxcosx)2I = e^x(\sin x - \cos x), giving I=ex(sinxcosx)2+CI = \dfrac{e^x(\sin x - \cos x)}{2} + C.

Example 5. ex(sinx+cosx)dx\int e^x(\sin x + \cos x)\,dx.

Here f(x)=sinxf(x) = \sin x, f(x)=cosxf'(x) = \cos x. By the shortcut: exsinx+Ce^x \sin x + C.

Example 6. ex(1x1x2)dx\int e^x \left(\dfrac{1}{x} - \dfrac{1}{x^2}\right)\,dx.

Here f(x)=1xf(x) = \dfrac{1}{x}, f(x)=1x2f'(x) = -\dfrac{1}{x^2}. So the integral equals exx+C\dfrac{e^x}{x} + C.

Try it yourself

  1. xsinxdx\int x \sin x\,dx
  2. x2cosxdx\int x^2 \cos x\,dx
  3. sin1xdx\int \sin^{-1}x\,dx
  4. xlnxdx\int x \ln x\,dx
  5. x2lnxdx\int x^2 \ln x\,dx
  6. excosxdx\int e^x \cos x\,dx
  7. sec3xdx\int \sec^3 x\,dx (use parts with u=secxu = \sec x, dv=sec2xdxdv = \sec^2 x\,dx)
  8. e2xsin3xdx\int e^{2x} \sin 3x\,dx
  9. xtan1xdx\int x \tan^{-1}x\,dx
  10. x3ex2dx\int x^3 e^{x^2}\,dx (hint: substitute u=x2u = x^2 first, then parts)
  11. ex(tanx+sec2x)dx\int e^x \left(\tan x + \sec^2 x\right)\,dx (shortcut)
  12. ex1+sinx1+cosxdx\int e^x \dfrac{1 + \sin x}{1 + \cos x}\,dx (simplify using half-angle, then shortcut)
  13. (lnx)2dx\int (\ln x)^2\,dx (apply parts twice)
  14. xsec2xdx\int x \sec^2 x\,dx

Pitfalls and tricks

  • LIATE is a guide, not a law. Sometimes the second choice works better. If the new integral is uglier, swap.
  • Don't keep going forever. If parts is making things worse, stop and reconsider.
  • Watch for the cycle in exsinxdx\int e^x \sin x\,dx type problems , solve algebraically for the original integral.
  • The ex[f+f]e^x[f+f'] pattern is everywhere in JEE. Train your eye to spot it.
  • For products of a polynomial and sin/cos/ex\sin/\cos/e^x, parts is the default , use it.

Practice quiz

Quick check on this topic.

Quiz
Quick check : Integration by parts
6 questions · pick the best answer
Q1

xexdx=\int x e^x\,dx=

Q2

lnxdx=\int \ln x\,dx=

Q3

By LIATE in xcosxdx\int x \cos x\,dx, uu is

Q4

ex1dx+ex0dx\int e^x \cdot 1\,dx + \int e^x \cdot 0\,dx via shortcut gives

Q5

tan1xdx=\int \tan^{-1}x\,dx=

Q6

Applying parts twice to exsinxdx\int e^x \sin x\,dx yields