Integration by parts
The product rule of differentiation reads (uv)′=u′v+uv′. Integrate both sides:
uv=∫u′vdx+∫uv′dx⟹∫udv=uv−∫vdu.
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 u and v are differentiable functions of x, then
∫u(x)v′(x)dx=u(x)v(x)−∫v(x)u′(x)dx.
Equivalently, writing dv=v′(x)dx and du=u′(x)dx:
∫udv=uv−∫vdu.
The art is in choosing u and dv. 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 u as whichever class comes first in the list:
- Logarithmic (lnx)
- Inverse trigonometric (sin−1x, tan−1x)
- Algebraic (xn)
- Trigonometric (sinx, cosx)
- Exponential (ex)
For example, in ∫xexdx, the choices are algebraic and exponential. Algebraic comes first in LIATE, so u=x, dv=exdx. Then du=dx, v=ex, and
∫xexdx=xex−∫exdx=xex−ex+C.
Why LIATE? When you differentiate u, you want it to simplify (or at least not blow up). Logs and inverse-trig functions become algebraic on differentiation , they should be u. Trigonometric and exponential factors cycle under differentiation , they make excellent dv.
The single-factor trick
For functions like ∫lnxdx or ∫sin−1xdx, there is only one factor. Manufacture a second one: set dv=dx, i.e. v=x.
∫lnxdx: u=lnx, dv=dx. Then du=x1dx, v=x.
∫lnxdx=xlnx−∫x⋅x1dx=xlnx−x+C.
Repeated integration by parts
For ∫x2exdx, 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 and similar.
The ex[f(x)+f′(x)] shortcut
If you can rewrite an integrand in the form ex[f(x)+f′(x)], then
∫ex[f(x)+f′(x)]dx=exf(x)+C.
This is integration by parts in disguise: ∫exf(x)dx=exf(x)−∫exf′(x)dx, so ∫exf(x)dx+∫exf′(x)dx=exf(x). The shortcut saves time on exams.
Worked examples
Example 1. ∫xcosxdx.
LIATE: u=x (algebraic), dv=cosxdx. So du=dx, v=sinx.
∫xcosxdx=xsinx−∫sinxdx=xsinx+cosx+C.
Example 2. ∫tan−1xdx.
Single-factor trick: u=tan−1x, dv=dx. Then du=1+x2dx, v=x.
∫tan−1xdx=xtan−1x−∫1+x2xdx=xtan−1x−21ln(1+x2)+C.
Example 3. ∫x2exdx.
First: u=x2, dv=exdx. So du=2xdx, v=ex.
∫x2exdx=x2ex−2∫xexdx.
From Example before opening: ∫xexdx=xex−ex. So
∫x2exdx=x2ex−2xex+2ex+C=ex(x2−2x+2)+C.
Example 4. ∫exsinxdx.
Let I=∫exsinxdx. By parts: u=sinx, dv=exdx, so du=cosxdx, v=ex. Then I=exsinx−∫excosxdx. Apply parts again with u=cosx, dv=exdx: ∫excosxdx=excosx+∫exsinxdx=excosx+I. Substituting back: I=exsinx−excosx−I, so 2I=ex(sinx−cosx), giving I=2ex(sinx−cosx)+C.
Example 5. ∫ex(sinx+cosx)dx.
Here f(x)=sinx, f′(x)=cosx. By the shortcut: exsinx+C.
Example 6. ∫ex(x1−x21)dx.
Here f(x)=x1, f′(x)=−x21. So the integral equals xex+C.
Try it yourself
- ∫xsinxdx
- ∫x2cosxdx
- ∫sin−1xdx
- ∫xlnxdx
- ∫x2lnxdx
- ∫excosxdx
- ∫sec3xdx (use parts with u=secx, dv=sec2xdx)
- ∫e2xsin3xdx
- ∫xtan−1xdx
- ∫x3ex2dx (hint: substitute u=x2 first, then parts)
- ∫ex(tanx+sec2x)dx (shortcut)
- ∫ex1+cosx1+sinxdx (simplify using half-angle, then shortcut)
- ∫(lnx)2dx (apply parts twice)
- ∫xsec2xdx
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 type problems , solve algebraically for the original integral.
- The ex[f+f′] pattern is everywhere in JEE. Train your eye to spot it.
- For products of a polynomial and sin/cos/ex, parts is the default , use it.