Integration by parts

Some integrals are products that no single standard formula can touch — xexx e^x, x2sin⁡xx^2\sin x, even a lone log⁡x\log x. Integration by parts is the tool built exactly for this: it turns the product rule for differentiation inside out, trading one integral for a hopefully simpler one. It sits inside the Integrals unit of ISC Class 12 Mathematics (Calculus, Section A, 32 marks), right after substitution, and it is used constantly afterwards — inside partial fractions, definite integrals, and reduction formulae. The skill has three parts: picking which factor is uu and which is dvdv using the ILATE priority order, applying the formula (sometimes twice), and recognising the special "multiply by 1" trick for lone transcendental functions like log⁡x\log x or tan⁡−1x\tan^{-1}x. Master the choice of uu and the rest becomes routine algebra.

The core insight

Integration by parts reverses the product rule to convert ∫u dv\int u\,dv into uv−∫v duuv - \int v\,du, with uu chosen by the ILATE priority order so that differentiating it simplifies the remaining integral.

The core idea

The formula. If uu and vv are differentiable functions of xx, running the product rule for differentiation backwards and integrating gives

∫u v dx=u∫v dx−∫(dudx∫v dx)dx\int u\,v\,dx = u\int v\,dx - \int\left(\frac{du}{dx}\int v\,dx\right)dx

where: uu is the factor chosen to be differentiated, vv is the factor chosen to be integrated first, dudx\dfrac{du}{dx} is the derivative of uu, and ∫v dx\int v\,dx is an antiderivative of vv. In the compact notation you will use most often, writing dv=v dxdv = v\,dx, this reads ∫u dv=uv−∫v du\int u\,dv = uv - \int v\,du.

Choosing uu: the ILATE rule. With two factors in front of you, decide which is uu using the priority order Inverse trig, Logarithmic, Algebraic, Trigonometric, Exponential. Whichever type sits earlier in ILATE becomes uu, because it usually gets simpler on differentiation, while the later type integrates easily and becomes dvdv. In ∫x ex dx\int x\,e^x\,dx, Algebraic beats Exponential, so u=xu=x; differentiating xx once kills it, while exe^x integrates to itself.

The "multiply by 1" trick. When only one function is visible — ∫log⁡x dx\int \log x\,dx or ∫tan⁡−1x dx\int \tan^{-1}x\,dx — write it as (function)×1\times 1. Take uu as the function and dv=dxdv = dx, so v=xv = x. For ∫log⁡x dx\int \log x\,dx: u=log⁡xu = \log x, dv=dxdv=dx, giving du=1xdxdu = \tfrac{1}{x}dx, v=xv=x, and

∫log⁡x dx=xlog⁡x−∫x⋅1x dx=xlog⁡x−x+C\int \log x\,dx = x\log x - \int x\cdot\frac{1}{x}\,dx = x\log x - x + C

The same move handles ∫tan⁡−1x dx\int \tan^{-1}x\,dx and ∫sin⁡−1x dx\int \sin^{-1}x\,dx: put the inverse-trig function as uu against dv=dxdv = dx, then simplify what remains, often with a quick substitution.

A shortcut worth memorising. When the integrand has the exact shape ex[f(x)+f′(x)]e^x[f(x)+f'(x)], skip integration by parts entirely:

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

where: f(x)f(x) is any differentiable function and f′(x)f'(x) its derivative — recognising this pattern in the integrand saves a full application of the by-parts formula.

Figure
ILATE priority order for choosing u, from Inverse trig at the top through Logarithmic Algebraic Trigonometric down to Exponential at the bottom, with an arrow showing simpler on differentiation on the left and easier to integrate on the right
ILATE — priority order for choosing u I — Inverse trig (sin⁻¹x, tan⁻¹x) L — Logarithmic (log x) A — Algebraic (x, x²) T — Trigonometric (sin x, cos x) E — Exponential (eˣ) earlier type is chosen as u — simpler after differentiating
Derivation ADeriving the integration-by-parts formula

The goal is to show, starting only from the product rule for differentiation that a student already knows, exactly why the integration-by-parts formula has a minus sign in front of its second term and why that second term involves the integral of vv rather than vv itself — seeing this removes any need to memorise the formula by rote.

Step 1. Start from the product rule. For differentiable functions u(x)u(x) and v(x)v(x), ddx(uv)=udvdx+vdudx\dfrac{d}{dx}(uv) = u\dfrac{dv}{dx} + v\dfrac{du}{dx}. This is a statement about derivatives; the plan is to integrate both sides with respect to xx.

Step 2. Integrate both sides. ∫ddx(uv) dx=∫u dvdx dx+∫v dudx dx\displaystyle\int \frac{d}{dx}(uv)\,dx = \int u\,\frac{dv}{dx}\,dx + \int v\,\frac{du}{dx}\,dx. The left side is simply uvuv (integrating a derivative undoes the differentiation), so uv=∫u dvdx dx+∫v dudx dxuv = \displaystyle\int u\,\frac{dv}{dx}\,dx + \int v\,\frac{du}{dx}\,dx.

Step 3. Rearrange for the term you actually want. Solving for ∫u dvdx dx\displaystyle\int u\,\dfrac{dv}{dx}\,dx gives ∫u dvdx dx=uv−∫v dudx dx\displaystyle\int u\,\frac{dv}{dx}\,dx = uv - \int v\,\frac{du}{dx}\,dx, which is exactly the integration-by-parts formula written with vv known explicitly (rather than as ∫v dx\int v\,dx).

Step 4. Read off the roles. The minus sign appears because it came from rearranging an equality, not from any arbitrary convention. And the surviving integral is ∫v du\int v\,du, not ∫u dv\int u\,dv again — this is precisely why choosing uu so that dudx\dfrac{du}{dx} simplifies is the whole strategy: a simpler dudu makes the remaining integral easier than the one you started with.

Worked example

Evaluate ∫x ex dx\displaystyle\int x\,e^{x}\,dx.

Step 1. Choose uu and dvdv. By ILATE, Algebraic (xx) outranks Exponential (exe^x), so take u=xu = x and dv=ex dxdv = e^x\,dx.

Step 2. Differentiate uu and integrate dvdv: du=dxdu = dx, and v=exv = e^x.

Step 3. Substitute into the formula: ∫xex dx=x ex−∫ex dx=xex−ex+C=ex(x−1)+C\displaystyle\int x e^x\,dx = x\,e^x - \int e^x\,dx = x e^x - e^x + C = e^{x}(x-1) + C.

Step 4. Check by differentiating the answer: ddx[ex(x−1)+C]=ex(x−1)+ex(1)=ex⋅x\dfrac{d}{dx}\big[e^x(x-1)+C\big] = e^x(x-1) + e^x(1) = e^x\cdot x, which matches the original integrand. Answer: ∫xex dx=ex(x−1)+C\displaystyle\int x e^x\,dx = e^{x}(x-1) + C.

Competitive stretch

Extend the same idea to ∫x2sin⁡x dx\int x^2\sin x\,dx, which needs parts twice. Take u=x2u=x^2, dv=sin⁡x dxdv=\sin x\,dx, so du=2x dxdu=2x\,dx, v=−cos⁡xv=-\cos x, giving ∫x2sin⁡x dx=−x2cos⁡x+∫2xcos⁡x dx\int x^2\sin x\,dx = -x^2\cos x + \int 2x\cos x\,dx. Applying parts again to ∫2xcos⁡x dx\int 2x\cos x\,dx (with u=2xu=2x, dv=cos⁡x dxdv=\cos x\,dx) gives 2xsin⁡x+2cos⁡x+C2x\sin x + 2\cos x + C. Combining: ∫x2sin⁡x dx=−x2cos⁡x+2xsin⁡x+2cos⁡x+C\int x^2\sin x\,dx = -x^2\cos x + 2x\sin x + 2\cos x + C. When repeated parts instead brings back a multiple of the original integral — as in ∫eaxsin⁡bx dx\int e^{ax}\sin bx\,dx — treat the result as an algebraic equation in the unknown integral and solve for it, rather than applying parts forever.

Common traps

  • Picking uu and dvdv the wrong way round. Taking u=exu=e^x in ∫xex dx\int xe^x\,dx still "works" formally but the resulting integral never simplifies — always check ILATE priority first.
  • Dropping the second integral. Students often compute u∫v dxu\int v\,dx and stop, forgetting the −∫(du/dx)(∫v dx)dx-\int(du/dx)\big(\int v\,dx\big)dx term entirely.
  • Sign slips when uu or vv involves sine or cosine — track each term's sign carefully rather than trusting memory.
  • Giving up after one application. If the new integral is still a product (as in ∫x2sin⁡x dx\int x^2\sin x\,dx), it usually needs a second pass of the same rule, not a different method.
  • Forgetting to simplify before integrating again. After the first application, the leftover integral ∫(du/dx)(∫v dx)dx\int(du/dx)\big(\int v\,dx\big)dx is often itself a product; tidy the coefficients first so the second pass of the formula is applied to the cleanest possible expression.

Ask the tutor: Stuck on which factor to pick as uu for a tricky product, or want another worked example step by step? Ask the AI tutor to walk through it with you.

How do I remember which function is u without second-guessing myself

Use ILATE as a checklist, not a guess: Inverse trig, Logarithmic, Algebraic, Trigonometric, Exponential, in that priority order. Scan the two factors in the integral, find which type appears earlier in that list, and make that one uu. The reasoning behind it is that the earlier types get algebraically simpler when you differentiate them, while the later types (like exe^x or sin⁡x\sin x) integrate cleanly no matter how many times you integrate them, so putting them in the dvdv slot never causes trouble.

Why does integrating log x need the multiply-by-1 trick instead of a direct formula

There is no elementary function whose derivative is log⁡x\log x, so you cannot integrate it directly the way you integrate xnx^n or sin⁡x\sin x. Writing log⁡x=(log⁡x)×1\log x = (\log x)\times 1 turns it into a product, which integration by parts can handle: take u=log⁡xu=\log x (it differentiates to the simple 1/x1/x) and dv=dxdv=dx (which integrates to xx). The same trick rescues tan⁡−1x\tan^{-1}x and sin⁡−1x\sin^{-1}x, both of which also have no direct antiderivative formula but do have simple derivatives.

I applied integration by parts and the new integral looks just as hard as the original — did I choose wrong

Not necessarily. Some products, like x2sin⁡xx^2\sin x, genuinely need two applications before the integral becomes elementary — check whether the new integral is at least simpler than the last one (lower power of xx, for instance), and if so keep going. If instead the new integral is identical in difficulty or brings back a multiple of your very first integral, that is the signal for the "solve for II" algebraic trick rather than a sign you chose uu wrong. It is also worth remembering that any valid antiderivative works for the intermediate vv — the arbitrary constant you could add to it cancels out, so add the single overall constant of integration only at the very end.

Before this

Where this leads