AP Calculus BC

Integration by Parts: LIATE, When to Use It, Examples

Integration by parts undoes the product rule: it rewrites the integral of u dv as uv minus the integral of v du. Reach for it when the integrand is a product of two unlike function types, like x times e^x, that substitution cannot simplify. LIATE picks which factor becomes u. It is BC-only (CED Topic 6.11).

When integration by parts is the right tool

Integration by parts is the technique for antidifferentiating a product of two functions that come from different families, the kind of integrand where substitution has nothing to grab onto. If you see xexx e^x, xsinxx \sin x, x2lnxx^2 \ln x, or a lone logarithm or inverse trig function like lnx\ln x or arctanx\arctan x, parts is almost certainly the move. It is a BC-only topic (CED Topic 6.11), so AB students will not meet it on their exam.

The signature to train your eye on is a product of two factors that pull in opposite directions: one that gets simpler when differentiated (a power of xx, a logarithm) sitting next to one that stays manageable when integrated (an exponential, a sine, a cosine). Parts is built to exploit exactly that mismatch. A product from the same family, like sinxcosx\sin x \cos x, is usually not a parts problem: there a substitution or a trig identity does the job faster.

The quickest way to tell parts from u-substitution is to look for a derivative relationship. Substitution works when one factor is, up to a constant, the derivative of the inside of the other, so the whole integrand collapses onto a single new variable. In 2xex2dx\int 2x e^{x^2}\,dx the factor 2x2x is the derivative of x2x^2, so substitution wins. In xexdx\int x e^x\,dx the factor xx has nothing to do with the derivative of exe^x, substitution stalls, and parts takes over. Always test substitution first; only when it stalls on a genuine product do you reach for parts.

The formula and why it works

Integration by parts is the product rule read backward. The product rule says ddx(uv)=udvdx+vdudx\frac{d}{dx}(uv) = u\frac{dv}{dx} + v\frac{du}{dx}. Multiply through by dxdx to reach the differential form d(uv)=udv+vdud(uv) = u\,dv + v\,du, then integrate both sides to get uv=udv+vduuv = \int u\,dv + \int v\,du. Solving for the piece you want gives the formula.

udv=uvvdu\int u \,dv = uv - \int v \,du

That single line is the whole method. You split the integrand into a part you name uu and a part you name dvdv, then trade the original integral udv\int u\,dv for a new one, vdu\int v\,du. The trade is only worth making if vdu\int v\,du turns out easier than the integral you started with. Nothing guarantees that: it depends entirely on how you split the integrand, which is what the next section is about.

LIATE: choosing u without guessing

When the integrand is a product, LIATE gives you a priority order for what to call uu. Read down the list; whichever type appears first becomes uu, and everything else, including the dxdx, becomes dvdv.

  1. Logarithmic, such as lnx\ln x and logx\log x
  2. Inverse trigonometric, such as arctanx\arctan x and arcsinx\arcsin x
  3. Algebraic, meaning powers of xx like xx and x2x^2
  4. Trigonometric, such as sinx\sin x and cosx\cos x
  5. Exponential, such as exe^x

The ordering is not arbitrary. Functions near the top get simpler when you differentiate them, and differentiating uu is exactly what the formula does to it: lnx\ln x becomes 1x\frac{1}{x}, and a power of xx drops a degree toward a constant. Functions near the bottom stay well behaved when you integrate them, and integrating dvdv is what the formula does to that piece: exe^x integrates to exe^x, and sinx\sin x integrates to cosx-\cos x. Putting the top function in uu and the bottom function in dvdv steers vdu\int v\,du toward something simpler than where you began.

Treat LIATE as a heuristic, not a law. It is a reliable opening guess that works on nearly every AP problem, but it is not a theorem and it does not know anything about your specific integrand. The genuine test of a good split is whether vdu\int v\,du actually came out easier. If your choice makes the new integral harder than the original, you picked uu and dvdv backward: swap them and run the formula again.

Pitfalls and the cases LIATE hides

Three mistakes account for most lost points. First, the minus sign: the formula is uvvduuv - \int v\,du, and dropping that subtraction quietly wrecks the answer. Second, dvdv has to be something you can actually integrate to recover vv; if you cannot antidifferentiate your chosen dvdv, that is a signal you split the integrand wrong. Third, this is still an indefinite integral, so the constant +C+C belongs at the end.

A single logarithm or inverse trig function looks like it has no dvdv at all, but it does: let dv=dxdv = dx, which makes v=xv = x. That is how lnxdx\int \ln x\,dx and arctanxdx\int \arctan x\,dx get done, and it is the case LIATE quietly relies on, since Logarithmic and Inverse trig sit at the top of the list and dxdx is the only thing left to be dvdv.

Some integrands need parts more than once. A polynomial of degree nn multiplied by exe^x or sinx\sin x takes nn applications, each one knocking the power down by a degree, and the tabular method is just an organized way to track that repetition. A handful of integrals such as exsinxdx\int e^x \sin x\,dx return to themselves after two rounds of parts; when the original integral reappears, set it equal to II and solve the resulting equation for II algebraically instead of integrating forever. For a definite integral, the boundary term gets evaluated too:

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

Check by differentiating

Integration by parts produces answers with several terms, and a stray sign or dropped factor is easy to miss, so build the habit of differentiating your result and confirming it collapses back to the integrand. Each worked example on this page ends that way. Because you are differentiating a product, the product rule you started from reappears and the terms telescope: the derivative of uvuv contributes udv+vduu\,dv + v\,du, the vdu-\int v\,du term contributes vdu-v\,du, and those two vduv\,du pieces cancel, leaving exactly udvu\,dv. If your check does not reduce to the original integrand, the error is almost always a sign or a missed factor in vv.

Worked examples

Worked example

The classic case: $\int x e^x \,dx$

Evaluate xexdx\int x e^x \,dx.

  1. Recognize the type. The integrand is a product of an algebraic factor xx and an exponential factor exe^x, and no substitution simplifies it, so this is integration by parts.
  2. Choose uu with LIATE. Algebraic (A) comes before Exponential (E) in LIATE, so let u=xu = x and dv=exdxdv = e^x\,dx.
  3. Differentiate uu and integrate dvdv. From u=xu = x you get du=dxdu = dx. From dv=exdxdv = e^x\,dx you get v=exv = e^x.
  4. Apply the formula udv=uvvdu\int u\,dv = uv - \int v\,du, which gives xexdx=xexexdx\int x e^x\,dx = x e^x - \int e^x\,dx.
  5. Finish the remaining integral. Since exdx=ex\int e^x\,dx = e^x, you have xexdx=xexex+C\int x e^x\,dx = x e^x - e^x + C.
  6. Factor and check. Rewrite as ex(x1)+Ce^x(x - 1) + C. Differentiating ex(x1)e^x(x-1) gives ex(x1)+ex=xexe^x(x-1) + e^x = x e^x, which matches the integrand.

xexdx=ex(x1)+C\int x e^x\,dx = e^x(x - 1) + C

Worked example

The lone logarithm: $\int \ln x \,dx$

Evaluate lnxdx\int \ln x \,dx.

  1. See past the missing product. There is only one factor, so parts looks impossible, but LIATE puts Logarithmic first. The move is to let dxdx itself play the role of dvdv.
  2. Assign the parts. Let u=lnxu = \ln x and dv=dxdv = dx.
  3. Differentiate and integrate. From u=lnxu = \ln x you get du=1xdxdu = \frac{1}{x}\,dx. From dv=dxdv = dx you get v=xv = x.
  4. Apply the formula. lnxdx=uvvdu=xlnxx1xdx\int \ln x\,dx = uv - \int v\,du = x\ln x - \int x \cdot \frac{1}{x}\,dx.
  5. Simplify the new integral. The xx cancels, so x1xdx=1dx=x\int x \cdot \frac{1}{x}\,dx = \int 1\,dx = x.
  6. Combine and check. lnxdx=xlnxx+C\int \ln x\,dx = x\ln x - x + C. Differentiating gives ddx(xlnxx)=lnx+x1x1=lnx\frac{d}{dx}(x\ln x - x) = \ln x + x\cdot\frac{1}{x} - 1 = \ln x.

lnxdx=xlnxx+C\int \ln x\,dx = x\ln x - x + C

Worked example

Applying parts twice: $\int x^2 e^x \,dx$

Evaluate x2exdx\int x^2 e^x \,dx.

  1. Recognize the type and choose uu. This is Algebraic times Exponential again, so u=x2u = x^2 and dv=exdxdv = e^x\,dx.
  2. Differentiate and integrate. From u=x2u = x^2 you get du=2xdxdu = 2x\,dx, and from dv=exdxdv = e^x\,dx you get v=exv = e^x.
  3. Apply the formula once. x2exdx=x2exex2xdx=x2ex2xexdx\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.
  4. Notice the leftover integral is simpler but still a product, so apply parts again. From the first worked example, xexdx=xexex\int x e^x\,dx = x e^x - e^x.
  5. Substitute that result back. x2exdx=x2ex2(xexex)+C=x2ex2xex+2ex+C\int x^2 e^x\,dx = x^2 e^x - 2(x e^x - e^x) + C = x^2 e^x - 2x e^x + 2e^x + C.
  6. Factor and check. This is ex(x22x+2)+Ce^x(x^2 - 2x + 2) + C. Differentiating gives ex(x22x+2)+ex(2x2)=exx2=x2exe^x(x^2 - 2x + 2) + e^x(2x - 2) = e^x \cdot x^2 = x^2 e^x.

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

Frequently asked questions

When do you use integration by parts instead of u-substitution?

Try substitution first. It works when one factor is a constant multiple of the derivative of the inside of the other, so the integral collapses to a single variable. When the integrand is a genuine product of unrelated functions, like xcosxx\cos x or x2exx^2 e^x, and no substitution simplifies it, use integration by parts.

What does LIATE stand for?

Logarithmic, Inverse trigonometric, Algebraic, Trigonometric, Exponential. Whichever type appears first in that list becomes uu, and the rest becomes dvdv. It is a heuristic for choosing uu, not a rule that always holds, but it works on nearly every AP problem.

Is integration by parts on the AP Calculus AB exam?

No. Integration by parts is CED Topic 6.11, marked BC only, so it appears on the AP Calculus BC exam but not AB. AB students cover substitution (Topic 6.9) but not parts.