Integration by parts

Some integrals refuse every trick you already know. ∫xex dx\int x e^x\,dx is not a simple substitution, and ∫ln⁡x dx\int \ln x\,dx does not even look like a product. Integration by parts is the technique built exactly for this gap: it turns the integral of a product of two functions into a smaller, easier integral, by running the product rule for differentiation backwards. It is the third core weapon in the CBSE Class 12 Integrals chapter, after substitution and partial fractions, and it is the one examiners lean on hardest — because it rewards students who can choose wisely (which factor to differentiate, which to integrate) rather than just apply a formula mechanically. This article rebuilds the formula from the product rule, gives the ILATE rule for choosing factors, works a single-pass and a repeated example, and flags the traps that cost the most marks.

The core insight

Integration by parts converts ∫u v′ dx\int u\,v'\,dx into uv−∫u′ v dxuv - \int u'\,v\,dx by reversing the product rule, and the ILATE priority order tells you which factor to call uu.

The core idea

From the product rule, backwards. For differentiable u(x)u(x) and v(x)v(x), the product rule states ddx[uv]=u′v+uv′\dfrac{d}{dx}[uv] = u'v + uv'. Integrate both sides with respect to xx and rearrange, and the differentiation formula flips into an integration formula:

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

where: uu is the factor you choose to differentiate (it should get simpler under d/dxd/dx), v′v' is the factor you choose to integrate (it should have an easy antiderivative vv), and u′u' is the derivative of uu. In the notation NCERT prefers, calling the two factors uu (first function) and vv (second function, easy to integrate), the same formula reads:

∫u⋅v dx=u∫v dx−∫[dudx∫v dx]dx\int u \cdot v\,dx = u\int v\,dx - \int \left[\frac{du}{dx}\int v\,dx\right]dx

Both versions say the same thing: pick a uu, pick a v′v', and the product's integral becomes (something already known) minus (a hopefully-simpler integral).

Choosing uu and vv: the ILATE rule. The single biggest source of marks lost on this topic is picking uu and vv the wrong way round, which turns a shrinking problem into a growing one. The standard heuristic ranks function types by priority for being chosen as uu:

Inverse trig>Logarithmic>Algebraic>Trigonometric>Exponential\textbf{I}\text{nverse trig} > \textbf{L}\text{ogarithmic} > \textbf{A}\text{lgebraic} > \textbf{T}\text{rigonometric} > \textbf{E}\text{xponential}

Whichever type sits earlier in this list becomes uu (the one you differentiate); the other becomes v′v' (the one you integrate). The logic behind the order is that differentiating an inverse-trig or log function tends to simplify it dramatically (often down to an algebraic fraction), while differentiating a polynomial repeatedly reduces its degree toward zero — both moves shrink the remaining integral. Differentiating an exponential or a plain trig function, by contrast, just reproduces a similar function, so those are better left to be integrated.

Figure
A decision flow for integration by parts showing product identification then ILATE ranking then apply the formula then simplify
Choosing u and v with ILATE Spot a product of two functions Rank both by I L A T E Earlier type = u later type = v prime Apply the formula I greater than L greater than A greater than T greater than E inverse trig, log, algebraic, trig, exponential Example: x times e to the x — algebraic outranks exponential, so u = x If neither factor vanishes on differentiating, apply the formula twice and solve algebraically

A useful shortcut. When the integrand has the special shape ex[f(x)+f′(x)]e^x\big[f(x) + f'(x)\big], the answer collapses without any real work:

∫ex[f(x)+f′(x)] dx=exf(x)+C\int e^x\big[f(x)+f'(x)\big]\,dx = e^x f(x) + C

This is a one-line consequence of applying integration by parts to ∫exf(x) dx\int e^x f(x)\,dx and watching the leftover ∫exf′(x) dx\int e^x f'(x)\,dx term cancel against the extra f′(x)f'(x) term already present.

Products that never simplify away. For integrands like exsin⁡xe^x\sin x, neither factor is reduced to nothing by repeated differentiation, so the formula must be applied twice. On the second pass, the original integral reappears on the right side, and it can then be solved for algebraically, as in the worked example below.

Functions in disguise. ∫ln⁡x dx\int \ln x\,dx and ∫tan⁡−1x dx\int \tan^{-1}x\,dx do not look like products at all, but they are — with the second factor being the constant function 11. Writing them as ∫(ln⁡x)⋅1 dx\int(\ln x)\cdot 1\,dx or ∫(tan⁡−1x)⋅1 dx\int(\tan^{-1}x)\cdot 1\,dx makes u=ln⁡xu = \ln x (or tan⁡−1x\tan^{-1}x) and v′=1v' = 1 explicit, and this trick is the only way logarithmic and inverse-trig functions get integrated by this method, since they have no natural "easy to integrate" partner.

Derivation ADeriving the integration-by-parts formula from the product rule

The goal of this derivation is to show, in three short algebraic steps and without any new assumption beyond the product rule for differentiation, that ∫u v′ dx=uv−∫u′ v dx\int u\,v'\,dx = uv - \int u'\,v\,dx — the formula that lets a hard product integral be traded for a hopefully-easier one, and that underlies every worked example in this article.

Step 1. Start from the product rule for two differentiable functions u(x)u(x) and v(x)v(x): ddx[u(x)v(x)]=u′(x)v(x)+u(x)v′(x)\dfrac{d}{dx}\big[u(x)v(x)\big] = u'(x)v(x) + u(x)v'(x). This is a statement about derivatives, true for every xx in the common domain of uu and vv.

Step 2. Integrate both sides with respect to xx. The left side, being the derivative of uvuv, integrates back to uvuv itself (plus a constant, absorbed later): uv=∫u′v dx+∫uv′ dxuv = \int u'v\,dx + \int uv'\,dx. This step is the entire trick — integration simply undoes the differentiation the product rule performed.

Step 3. Rearrange for the integral we actually want, ∫uv′ dx\int uv'\,dx: subtract ∫u′v dx\int u'v\,dx from both sides to get ∫u v′ dx=uv−∫u′ v dx\int u\,v'\,dx = uv - \int u'\,v\,dx. Here uu is the factor we chose to differentiate and v′v' the factor we chose to integrate; the formula trades the original product integral for the boundary term uvuv minus a new integral ∫u′v dx\int u'v\,dx, which is smaller whenever u′u' is simpler than uu (for instance, a polynomial's derivative has lower degree). Verified: with u=xu = x, v′=exv' = e^x, differentiating the claimed antiderivative xex−exxe^x - e^x gives back xexxe^x, matching the original integrand — confirming the formula's direction and sign.

Worked example

Evaluate ∫x ex dx\displaystyle\int x\,e^x\,dx, then extend to the repeated case ∫exsin⁡x dx\displaystyle\int e^x\sin x\,dx.

Step 1. By ILATE, "Algebraic" (xx) outranks "Exponential" (exe^x), so take u=xu = x and v′=exv' = e^x, giving v=∫ex dx=exv = \int e^x\,dx = e^x.

Step 2. Substitute into ∫u v′ dx=uv−∫u′v dx\int u\,v'\,dx = uv - \int u'v\,dx: ∫xex dx=x⋅ex−∫(1)⋅ex dx=xex−ex+C\int x e^x\,dx = x\cdot e^x - \int (1)\cdot e^x\,dx = xe^x - e^x + C. Checking by differentiation, ddx(xex−ex)=(ex+xex)−ex=xex\dfrac{d}{dx}(xe^x - e^x) = (e^x + xe^x) - e^x = xe^x, matching the integrand. So ∫xex dx=xex−ex+C\int x e^x\,dx = xe^x - e^x + C.

Step 3. Now the harder case, I=∫exsin⁡x dxI = \int e^x\sin x\,dx, where neither factor disappears. Take u=sin⁡xu = \sin x, v′=ex⇒v=exv' = e^x \Rightarrow v = e^x: I=exsin⁡x−∫excos⁡x dxI = e^x\sin x - \int e^x\cos x\,dx. Apply the formula again to ∫excos⁡x dx\int e^x\cos x\,dx, keeping the same rule (differentiate the trig factor each time): with u=cos⁡xu = \cos x, v′=ex⇒v=exv' = e^x \Rightarrow v = e^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.

Step 4. Substitute back: I=exsin⁡x−(excos⁡x+I)=exsin⁡x−excos⁡x−II = e^x\sin x - (e^x\cos x + I) = e^x\sin x - e^x\cos x - I, so 2I=ex(sin⁡x−cos⁡x)2I = e^x(\sin x - \cos x). Final answer: I=∫exsin⁡x dx=ex(sin⁡x−cos⁡x)2+CI = \displaystyle\int e^x\sin x\,dx = \dfrac{e^x(\sin x - \cos x)}{2} + C.

Common traps

  • Picking uu and vv against ILATE — this can make ∫u′v dx\int u'v\,dx harder than the original integral instead of simpler.
  • Adding the constant of integration CC after each partial step instead of only once, at the very end.
  • Switching which factor is uu midway through a repeated application (example: differentiating exe^x on the second pass instead of the trig factor) — the original integral then fails to reappear correctly.
  • Ignoring the ex[f(x)+f′(x)]e^x[f(x)+f'(x)] shortcut and grinding through the full formula when it is not needed.
  • Not noticing that a "single" function like ln⁡x\ln x or tan⁡−1x\tan^{-1}x is secretly a product with 11, and trying to look it up as a standard integral instead.

Ask the tutor: unsure how to pick uu and vv for a tricky product, or want a walkthrough of a "twice around" integration by parts with a different function pair? Ask the AI tutor for guided practice.

Why does ILATE put logarithmic functions ahead of algebraic ones?

Because differentiating ln⁡x\ln x produces the simple fraction 1/x1/x, which is a large simplification, while integrating ln⁡x\ln x directly is not something you can do by inspection — you would need integration by parts to do it anyway. Algebraic functions like x2x^2 simplify under differentiation too (their degree drops) but are also trivial to integrate. ILATE therefore favours turning a hard-to-integrate function like ln⁡x\ln x into a manageable derivative 1/x1/x, so it is always chosen as uu over an algebraic partner.

What if I choose u and v the wrong way round by mistake?

Nothing breaks the mathematics, but the resulting integral ∫u′v dx\int u'v\,dx typically gets more complicated instead of simpler — for example, choosing u=exu = e^x and v′=xv' = x in ∫xex dx\int xe^x\,dx leaves you with ∫ex⋅x22 dx\int e^x \cdot \frac{x^2}{2}\,dx, a worse integral than you started with. If your new integral looks harder than the original, that is the signal to go back and swap the choice of uu and vv.

How do I know when to stop applying integration by parts and switch to solving algebraically?

Apply it once, and check whether the new integral on the right is a standard one you can finish directly (as with ∫xex dx\int xe^x\,dx). If instead the new integral is a scaled copy of the original — same function types, same structure, just possibly a sign flipped — as happens with exsin⁡xe^x\sin x or excos⁡xe^x\cos x, stop applying the formula and instead treat the original integral II as an unknown, collect all copies of II on one side of the equation, and solve for it algebraically.

Before this

Where this leads