Integration by Parts

The formula

When a function is a product of two simpler ones, integration by parts breaks it down:

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

The trick is picking which factor is uu (something that gets simpler when differentiated) and which is dvdv (something easy to integrate).

Choosing u: the ILATE order

Take uu to be whichever factor comes first in this list. Functions near the top get simpler when differentiated, and functions near the bottom are easy to integrate.

ILATE: choose u from the type that appears first in the list
LetterTypeExamples
IInverse trigonometrictan⁡−1x\tan^{-1}x, sin⁡−1x\sin^{-1}x
LLogarithmicln⁡x\ln x
AAlgebraicxx, x2x^2, 3x+13x + 1
TTrigonometricsin⁡x\sin x, cos⁡x\cos x
EExponentialexe^x, 2x2^x

In ∫xcos⁡x dx\int x\cos x\,dx, xx is algebraic (A) and cos⁡x\cos x is trigonometric (T). A comes first, so u=xu = x, as in the example below.

Worked example

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

Solution: Let u=xu = x and dv=cos⁡x dxdv = \cos x\,dx, so du=dxdu = dx and v=sin⁡xv = \sin x:

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

Worked example: a lone logarithm

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

Solution: There seems to be only one factor, but write it as ln⁡x⋅1\ln x \cdot 1. Take u=ln⁡xu = \ln x (L) and dv=dxdv = dx, so du=1x dxdu = \dfrac{1}{x}\,dx and v=xv = x:

∫ln⁡x dx=xln⁡x−∫x⋅1x dx=xln⁡x−x+C\int \ln x\,dx = x\ln x - \int x\cdot\dfrac{1}{x}\,dx = x\ln x - x + C

Worked example: applying parts twice

Find ∫x2ex dx\int x^2e^x\,dx.

Solution: Take u=x2u = x^2 (A) and dv=ex dxdv = e^x\,dx:

∫x2ex dx=x2ex−∫2xex dx\int x^2e^x\,dx = x^2e^x - \int 2xe^x\,dx

The new integral still has a product, so apply parts again with u=2xu = 2x and dv=ex dxdv = e^x\,dx: ∫2xex dx=2xex−2ex\int 2xe^x\,dx = 2xe^x - 2e^x. Substituting back:

∫x2ex dx=x2ex−2xex+2ex+C=ex(x2−2x+2)+C\int x^2e^x\,dx = x^2e^x - 2xe^x + 2e^x + C = e^x\left(x^2 - 2x + 2\right) + C

Worked example: the cyclic case

Find I=∫exsin⁡x dxI = \int e^x\sin x\,dx.

Solution: Take u=sin⁡xu = \sin x and dv=ex dxdv = e^x\,dx:

I=exsin⁡x−∫excos⁡x dxI = e^x\sin x - \int e^x\cos x\,dx

Apply parts to the new integral, again with the trig function as uu (u=cos⁡xu = \cos x):

∫excos⁡x dx=excos⁡x+∫exsin⁡x dx=excos⁡x+I\int e^x\cos x\,dx = e^x\cos x + \int e^x\sin x\,dx = e^x\cos x + I

The original integral II has come back. Substitute and solve for it like an equation:

I=exsin⁡x−excos⁡x−I  ⇒  2I=ex(sin⁡x−cos⁡x)  ⇒  I=ex2(sin⁡x−cos⁡x)+CI = e^x\sin x - e^x\cos x - I \;\Rightarrow\; 2I = e^x(\sin x - \cos x) \;\Rightarrow\; I = \dfrac{e^x}{2}(\sin x - \cos x) + C

Worked example: a definite integral

Evaluate ∫01xex dx\displaystyle\int_0^1 xe^x\,dx.

Solution: With u=xu = x and dv=ex dxdv = e^x\,dx, the antiderivative is xex−exxe^x - e^x. So:

∫01xex dx=[xex−ex]01=(e−e)−(0−1)=1\int_0^1 xe^x\,dx = \left[xe^x - e^x\right]_0^1 = (e - e) - (0 - 1) = 1

Common mistakes

  • Picking uu the wrong way round. In ∫xex dx\int xe^x\,dx, taking u=exu = e^x and dv=x dxdv = x\,dx gives ∫x22ex dx\int \dfrac{x^2}{2}e^x\,dx, which is harder than the start. Follow ILATE.
  • Losing the minus sign. The formula is uv−∫v duuv - \int v\,du. When applying it twice, the second result goes inside the first one's minus sign.
  • Switching choices in the cyclic case. If you take the trig function as uu the first time, do the same the second time. Switching to u=exu = e^x just undoes the first step.
  • Forgetting +C+ C at the end of an indefinite integral.

Where this comes up in exams

The 2025-26 CBSE Class XII syllabus lists integration by substitution, by partial fractions and by parts. JEE Main 2026 lists integration by substitution, by parts and by partial fractions, and JEE Advanced 2026 lists integration by parts alongside substitution and partial fractions.

Checked against CBSE Mathematics curriculum, Classes XI-XII (2025-26), JEE (Main) 2026 syllabus (NTA) and JEE (Advanced) 2026 syllabus. Syllabi can change from year to year, so confirm with the latest official notification for your exam.

Continue learning

Integration by parts is one of two main techniques for evaluating an integral, definite integrals use the same antiderivative work, just with limits applied at the end.