In short

Integration by parts is the product rule for differentiation, run backward. If you want to integrate a product uv', you replace the hard piece with the easier-looking piece u'v at the cost of an extra uv term. The ILATE rule tells you which factor to call u, and repeated application tames products that shrink — like x^n times e^x — all the way to zero.

How do you integrate x\cos x? Substitution does not help — there is no inner function whose derivative is sitting there waiting to be absorbed. You cannot split it into two simpler integrals, because x and \cos x are not glued by addition, they are glued by multiplication.

What you need is a rule for integrating a product. One exists. It is called integration by parts, and it comes from running the product rule for derivatives backward.

The product rule says that for any two differentiable functions u and v,

\frac{d}{dx}(uv) = u'v + uv'.

Integrate both sides with respect to x. The left side integrates trivially — the integral of a derivative is the function itself:

uv = \int u'v\,dx + \int uv'\,dx.

Now solve for one of the integrals on the right. Say you want \int uv'\,dx. Move \int u'v\,dx to the other side:

\int uv'\,dx = uv - \int u'v\,dx.

That is the integration-by-parts formula. It says: if you can identify one factor of your integrand as u and another as v', then you can trade \int uv'\,dx for \int u'v\,dx. You win if the new integral is easier than the old one.

The formula, labelled

Let me rewrite the formula with explicit labels, since the bookkeeping is the part that trips students up.

Integration by Parts

If u = u(x) and v = v(x) are differentiable functions, then

\int u\,dv \;=\; uv - \int v\,du

or, with dv = v'(x)\,dx and du = u'(x)\,dx written out,

\int u(x) v'(x)\,dx \;=\; u(x) v(x) - \int v(x) u'(x)\,dx

Reading the formula: you start with a product u \cdot v' under an integral sign. You differentiate u (to get u') and integrate v' (to get v). The new integral has u' \cdot v in it. If u' is simpler than u, you win. If it is not, you picked wrong — swap the roles and try again.

Let me run it on the first problem. Take \int x\cos x\,dx. Identify the two factors: x and \cos x. You have to choose which one is u and which one is dv.

Try 1. Let u = x, dv = \cos x\,dx. Then du = dx and v = \sin x. Plug into the formula:

\int x\cos x\,dx = x\sin x - \int \sin x\,dx = x\sin x + \cos x + C

That worked. The integral on the right, \int \sin x\,dx, is trivial because differentiating u = x collapsed it to du = dx, removing the polynomial factor entirely.

Try 2. What if you had made the opposite choice? Let u = \cos x, dv = x\,dx. Then du = -\sin x\,dx and v = x^2/2. The formula gives

\int x\cos x\,dx = \frac{x^2}{2}\cos x - \int \frac{x^2}{2}(-\sin x)\,dx = \frac{x^2}{2}\cos x + \frac{1}{2}\int x^2 \sin x\,dx

Worse. The new integral has x^2 in it instead of x. You made the polynomial bigger instead of smaller. The technique is still valid — the formula is still true — but you picked the wrong u, so the new integral is harder than the old one.

The lesson: the choice of u matters. You want the factor that gets simpler when differentiated to be u, and the factor that integrates cleanly to be dv.

The ILATE rule

There is a mnemonic that tells you which factor to pick as u in almost every textbook problem. It is called ILATE (or LIATE in some books — same rule, letters reordered). It gives a priority order:

Rule: pick u to be the factor highest on the ILATE list; the other factor (plus dx) becomes dv.

So for \int x\cos x\,dx: x is algebraic (A), \cos x is trigonometric (T). A is higher on the list than T, so u = x. That is the choice that worked above.

For \int x^2 e^x\,dx: x^2 is algebraic (A), e^x is exponential (E). A beats E, so u = x^2. You will see this one in Example 1.

For \int x\ln x\,dx: \ln x is logarithmic (L), x is algebraic (A). L beats A, so u = \ln x. You will see this one in Example 2.

For \int \tan^{-1}(x)\,dx: there seems to be only one factor, not a product. Trick: multiply mentally by 1 and call the other factor dv = 1\,dx, so v = x. Then u = \tan^{-1}(x) — I is the top of the ILATE list, so it is u. This is a standard application called integration by parts with a missing factor, and it is the only way to integrate \sin^{-1}, \cos^{-1}, \tan^{-1}, and \ln x by themselves.

Why does ILATE work? Because differentiating factors near the top of the list simplifies them sharply (inverse trig and log become algebraic; polynomials lose a degree), while integrating factors near the bottom is easy (exponentials and basic trig integrate to themselves up to signs). You want differentiation to do the hard work and integration to do the easy work.

The first worked example

Here is the full version, with all the bookkeeping on display.

Example 1: $\int x^2 e^x\,dx$

Step 1. Apply ILATE. x^2 is A, e^x is E. A beats E, so u = x^2 and dv = e^x\,dx.

Why: differentiating x^2 drops its degree to 1, which is progress. Differentiating e^x does not simplify it at all.

Step 2. Compute du and v.

u = x^2 \quad\Rightarrow\quad du = 2x\,dx
dv = e^x\,dx \quad\Rightarrow\quad v = e^x

Why: when you integrate to find v, you can drop the arbitrary constant — it will cancel with the constant in the final answer.

Step 3. Apply the formula.

\int x^2 e^x\,dx = x^2 e^x - \int e^x \cdot 2x\,dx = x^2 e^x - 2\int x e^x\,dx

Why: the new integral has x (not x^2) in the polynomial slot. You have knocked one power off. But it is still a product, so you are not done — you have to integrate by parts again.

Step 4. Apply by parts a second time to \int x e^x\,dx. Again ILATE: u = x, dv = e^x\,dx, so du = dx and v = e^x.

\int x e^x\,dx = x e^x - \int e^x\,dx = x e^x - e^x + C_1

Why: this time differentiating u = x kills the polynomial completely, leaving an integral you know by heart.

Step 5. Substitute back.

\int x^2 e^x\,dx = x^2 e^x - 2\left(x e^x - e^x\right) + C = x^2 e^x - 2x e^x + 2e^x + C

Factor out e^x for a cleaner answer:

\int x^2 e^x\,dx = e^x(x^2 - 2x + 2) + C

Result: \int x^2 e^x\,dx = e^x(x^2 - 2x + 2) + C.

The dashed curve is the integrand $x^2 e^x$. The solid red curve is the antiderivative $e^x(x^2 - 2x + 2)$. At $x = 0$, the integrand is $0$ — the tangent to the antiderivative is horizontal there, exactly as it should be when the derivative (the integrand) is zero.

Check by differentiating the answer:

\frac{d}{dx}\left[e^x(x^2 - 2x + 2)\right] = e^x(x^2 - 2x + 2) + e^x(2x - 2) = e^x(x^2 - 2x + 2 + 2x - 2) = e^x \cdot x^2

Back to the integrand. The two applications of by parts were the right move, and the ILATE choice was the right choice at each step.

The second worked example

The second example brings in a different flavour — a logarithm, which is what ILATE flags as the u candidate.

Example 2: $\int x\ln x\,dx$

Step 1. Apply ILATE. \ln x is L, x is A. L beats A, so u = \ln x and dv = x\,dx.

Why: differentiating \ln x gives \frac{1}{x}, which is algebraic — a big simplification. Integrating x gives x^2/2, which is fine.

Step 2. Compute du and v.

u = \ln x \quad\Rightarrow\quad du = \frac{1}{x}\,dx
dv = x\,dx \quad\Rightarrow\quad v = \frac{x^2}{2}

Step 3. Apply the formula.

\int x\ln x\,dx = \ln x \cdot \frac{x^2}{2} - \int \frac{x^2}{2} \cdot \frac{1}{x}\,dx = \frac{x^2 \ln x}{2} - \frac{1}{2}\int x\,dx

Why: the factor \frac{x^2}{2}\cdot\frac{1}{x} collapses to \frac{x}{2}, so the new integrand is a trivial polynomial. One application of by parts was enough.

Step 4. Finish the easy integral.

\frac{1}{2}\int x\,dx = \frac{1}{2}\cdot\frac{x^2}{2} = \frac{x^2}{4}

Result: \int x\ln x\,dx = \dfrac{x^2 \ln x}{2} - \dfrac{x^2}{4} + C = \dfrac{x^2}{4}(2\ln x - 1) + C.

The dashed curve is $x\ln x$, which is negative between $0$ and $1$ and positive for $x > 1$. The solid red curve is the antiderivative $\frac{x^2}{4}(2\ln x - 1)$. The integrand crosses zero at $x = 1$, and the antiderivative has a horizontal tangent there — its minimum.

Sanity check by differentiating: \frac{d}{dx}\left[\frac{x^2 \ln x}{2}\right] = x\ln x + \frac{x^2}{2}\cdot\frac{1}{x} = x\ln x + \frac{x}{2}, and \frac{d}{dx}\left[-\frac{x^2}{4}\right] = -\frac{x}{2}. The two \frac{x}{2} pieces cancel, leaving x\ln x. Correct.

The "missing factor" trick

Some integrands have only one obvious factor. The trick is to multiply by 1 and use that 1 as dv.

Integrating \ln x by itself. Take \int \ln x\,dx. There is only one factor — \ln x — but you can write the integrand as \ln x \cdot 1 and apply by parts with u = \ln x and dv = 1\,dx:

u = \ln x \Rightarrow du = \frac{1}{x}\,dx, \qquad dv = dx \Rightarrow v = x
\int \ln x\,dx = x\ln x - \int x \cdot \frac{1}{x}\,dx = x\ln x - \int dx = x\ln x - x + C

Three lines of work, a standard result. This is the only way to handle \int \ln x\,dx — you cannot guess an antiderivative, and substitution will not help.

Integrating \tan^{-1}(x) by itself. Same trick: u = \tan^{-1}(x), dv = dx, so du = \frac{1}{1 + x^2}\,dx and v = x:

\int \tan^{-1}(x)\,dx = x\tan^{-1}(x) - \int \frac{x}{1 + x^2}\,dx

The second integral is a substitution — set w = 1 + x^2, so dw = 2x\,dx — and you get \frac{1}{2}\ln(1 + x^2). Final answer:

\int \tan^{-1}(x)\,dx = x\tan^{-1}(x) - \frac{1}{2}\ln(1 + x^2) + C

Every inverse trigonometric function and the logarithm are integrated this way. Without the missing-factor trick, you would not have anywhere to start.

Repeated application — the polynomial-times-exponential family

When the integrand is x^n \cdot e^{ax} (or x^n \cdot \sin(ax), or x^n \cdot \cos(ax)), each application of by parts knocks one power off the polynomial. After n applications, the polynomial is gone and you have an integral you can finish. This is why the ILATE rule always puts A above T and E: the A-factor is the one that eventually vanishes.

There is even a shortcut called tabular integration that bookkeepers use for this family. You write two columns — one that you keep differentiating (u and its derivatives), the other that you keep integrating (dv and its antiderivatives) — and you pair up diagonals with alternating signs. For \int x^3 e^x\,dx:

derivatives of x^3 antiderivatives of e^x sign
x^3 e^x +
3x^2 e^x -
6x e^x +
6 e^x -
0 e^x stop

Multiply each row across and apply the sign, then add them up:

\int x^3 e^x\,dx = +x^3 e^x - 3x^2 e^x + 6x e^x - 6 e^x + C = e^x(x^3 - 3x^2 + 6x - 6) + C

One step, no recursion. This only works when the u-column terminates at zero (which happens precisely for polynomials). When it doesn't — say, for e^x \sin x — you need the cyclic trick from the next article.

Common confusions

Going deeper

If you can run the formula, pick u with ILATE, and handle a polynomial-times-exponential with repeated application, you have the core skill. The rest of this section covers the definite-integral version of the formula, the recursion trick for infinitely recurring by-parts, and a few edge cases that break the mnemonic.

By parts for definite integrals

The by-parts formula has a definite-integral version that saves you from writing back-substitutions. If the limits are a and b,

\int_a^b u\,dv = \left[uv\right]_a^b - \int_a^b v\,du

where [uv]_a^b means u(b)v(b) - u(a)v(a). As an example, \int_0^1 x e^x\,dx. Take u = x, dv = e^x\,dx, so du = dx and v = e^x:

\int_0^1 x e^x\,dx = \left[xe^x\right]_0^1 - \int_0^1 e^x\,dx = \left(1\cdot e - 0\right) - \left[e^x\right]_0^1 = e - (e - 1) = 1

Clean.

The cyclic trick — when the integral reappears

The mnemonic says a polynomial factor eventually dies off. But some by-parts chains never terminate — they loop. The classic example is \int e^x \sin x\,dx. Let u = \sin x, dv = e^x\,dx:

\int e^x \sin x\,dx = e^x \sin x - \int e^x \cos x\,dx

The new integral \int e^x \cos x\,dx is a new problem. Apply by parts again, u = \cos x, dv = e^x\,dx:

\int e^x \cos x\,dx = e^x \cos x - \int e^x(-\sin x)\,dx = e^x \cos x + \int e^x \sin x\,dx

Now substitute that back into the first equation:

\int e^x \sin x\,dx = e^x \sin x - \left[e^x \cos x + \int e^x \sin x\,dx\right] = e^x \sin x - e^x \cos x - \int e^x \sin x\,dx

The original integral has reappeared on the right. But now you can treat it as an algebraic unknown and solve:

2\int e^x \sin x\,dx = e^x(\sin x - \cos x)
\int e^x \sin x\,dx = \frac{e^x(\sin x - \cos x)}{2} + C

This trick — pushing through by parts twice until the integral returns, then solving algebraically — is the whole content of the next article. It is how you handle e^{ax}\sin(bx) and e^{ax}\cos(bx) in general.

When ILATE lies

The rule works for almost every problem you will meet in JEE. It fails occasionally on exotic integrands, usually when both factors are from the same family (two algebraic factors, say). In those cases you have to think about which factor integrates more pleasantly as dv and just try it.

A small example: \int x^3 / \sqrt{1 - x^2}\,dx. Both x^3 and \frac{1}{\sqrt{1-x^2}} are algebraic, so ILATE gives no guidance. Here the right move is substitution (u = 1 - x^2), not by parts at all. By parts is not always the answer — it is one technique among several, and picking the right technique is a skill that comes with practice.

Where this leads next