Math ClubMath Club
v1 · padrão canônico

Lesson 85 — Integration by Parts

∫ u dv = uv − ∫ v du. Inverse of the product rule. LIATE heuristic for choosing u. Tabular method for polynomial × function.

Used in: Calculus II (Brazil) · Equiv. Math III Japanese · Equiv. Analysis LK German · AP Calculus BC (USA)

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

Integration by parts: inverse of the product rule. Choose u that simplifies upon differentiation and dv that has a known antiderivative v. LIATE heuristic: Logarithmic, Inverse trig, Algebraic, Trigonometric, Exponential — whichever appears first becomes u.

Choose your door

Rigorous notation, full derivation, hypotheses

Derivation, LIATE, and tabular method

Derivation of the formula

"The formula for integration by parts comes from the product rule for differentiation: if uu and vv are both functions of xx, then (uv)=uv+uv(uv)' = u'v + uv'. Integrating both sides and rearranging gives udv=uvvdu\int u\, dv = uv - \int v\, du." — Active Calculus §5.4

LIATE heuristic

"A useful heuristic for deciding which function to call uu in integration by parts is the acronym LIATE, which stands for Logarithmic, Inverse trigonometric, Algebraic, Trigonometric, and Exponential functions." — OpenStax Calculus Vol. 2, §3.1

Tabular method (DI Method)

For integrals of the form P(x)f(x)dx\int P(x) f(x)\, dx with PP a polynomial:

D (differentiate)I (integrate)Sign+2x2+0Result: x²eˣ − 2xeˣ + 2eˣ + C

Tabular DI method for x2exdx\int x^2 e^x\, dx. Diagonal sums with alternating signs. Stop when D = 0.

Worked examples

Exercise list

45 exercises · 11 with worked solution (25%)

Application 30Modeling 8Challenge 5Proof 2
  1. Ex. 85.1Application

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

    Show solution
    Choose u=xu = x, dv=exdxdv = e^x dx. Then du=dxdu = dx, v=exv = e^x. Applying the formula: xexexdx=xexex+C=ex(x1)+Cxe^x - \int e^x dx = xe^x - e^x + C = e^x(x-1) + C.
    Show step-by-step (with the why)
    1. Identify the product xexx \cdot e^x. LIATE: xx is Algebraic, exe^x is Exponential. Thus u=xu = x.
    2. Then dv=exdxdv = e^x dx. Compute: du=dxdu = dx, v=exv = e^x.
    3. Apply udv=uvvdu\int u\, dv = uv - \int v\, du: xexexdxxe^x - \int e^x dx.
    4. Solve the remaining integral: exdx=ex\int e^x dx = e^x.
    5. Result: xexex+C=ex(x1)+Cxe^x - e^x + C = e^x(x-1) + C. Tip: always verify by differentiating the result.
  2. Ex. 85.2Application

    Compute xsinxdx\int x \sin x\, dx.

    Show solution
    u=xu = x, dv=sinxdxdv = \sin x\, dx, du=dxdu = dx, v=cosxv = -\cos x. Result: xcosx+cosxdx=xcosx+sinx+C-x\cos x + \int \cos x\, dx = -x\cos x + \sin x + C.
  3. Ex. 85.3Application

    Compute xcosxdx\int x \cos x\, dx.

    Show solution
    u=xu = x, dv=cosxdxdv = \cos x\, dx, v=sinxv = \sin x. Result: xsinxsinxdx=xsinx+cosx+Cx\sin x - \int \sin x\, dx = x\sin x + \cos x + C.
  4. Ex. 85.4Application

    Compute lnxdx\int \ln x\, dx.

    Show solution
    LIATE: u=lnxu = \ln x, dv=dxdv = dx. Then du=dx/xdu = dx/x, v=xv = x. Result: xlnx1dx=xlnxx+Cx\ln x - \int 1\, dx = x\ln x - x + C.
    Show step-by-step (with the why)
    1. lnx\ln x has no accompanying factor. Use the trick: dv=dxdv = dx (trivially integrates to v=xv = x).
    2. u=lnxu = \ln x, du=dx/xdu = dx/x.
    3. Apply the formula: xlnxx(1/x)dx=xlnx1dxx\ln x - \int x \cdot (1/x)\, dx = x\ln x - \int 1\, dx.
    4. Result: xlnxx+Cx\ln x - x + C. Tip: whenever the integrand is just a logarithm or inverse trig, use dv = dx.
  5. Ex. 85.5Application

    Compute x2exdx\int x^2 e^x\, dx. Apply parts twice or use the tabular method.

    Show solution
    Apply parts twice or use DI table. u=x2u = x^2, dv=exdxdv = e^x dx. After two cycles: x2ex2xex+2ex+C=ex(x22x+2)+Cx^2 e^x - 2xe^x + 2e^x + C = e^x(x^2 - 2x + 2) + C.
  6. Ex. 85.6Application

    Compute x2sinxdx\int x^2 \sin x\, dx.

    Show solution
    DI table with D=x2D = x^2, I=sinxI = \sin x: x2cosx+2xsinx+2cosx+C-x^2\cos x + 2x\sin x + 2\cos x + C.
  7. Ex. 85.7ApplicationAnswer key

    Compute x2cosxdx\int x^2 \cos x\, dx.

    Show solution
    DI table: x2sinx+2xcosx2sinx+Cx^2 \sin x + 2x\cos x - 2\sin x + C.
  8. Ex. 85.8ApplicationAnswer key

    Compute xlnxdx\int x \ln x\, dx.

    Show solution
    u=lnxu = \ln x, dv=xdxdv = x\, dx, v=x2/2v = x^2/2. Result: x22lnxx24+C\frac{x^2}{2}\ln x - \frac{x^2}{4} + C.
    Show step-by-step (with the why)
    1. LIATE: lnx\ln x is Log, xx is Algebraic. Thus u=lnxu = \ln x.
    2. dv=xdxdv = x\, dx, hence v=x2/2v = x^2/2; du=dx/xdu = dx/x.
    3. Apply: x22lnxx221xdx=x22lnx12xdx\frac{x^2}{2}\ln x - \int \frac{x^2}{2} \cdot \frac{1}{x}\, dx = \frac{x^2}{2}\ln x - \frac{1}{2}\int x\, dx.
    4. Result: x22lnxx24+C\frac{x^2}{2}\ln x - \frac{x^2}{4} + C. Insight: general pattern is ∫ x^n ln x dx = x^(n+1) ln x/(n+1) − x^(n+1)/(n+1)².
  9. Ex. 85.9Application

    Compute x2lnxdx\int x^2 \ln x\, dx.

    Show solution
    u=lnxu = \ln x, dv=x2dxdv = x^2\, dx. Result: x33lnxx39+C\frac{x^3}{3}\ln x - \frac{x^3}{9} + C.
  10. Ex. 85.10ApplicationAnswer key

    Compute arctanxdx\int \arctan x\, dx.

    Show solution
    u=arctanxu = \arctan x, dv=dxdv = dx, du=dx/(1+x2)du = dx/(1+x^2), v=xv = x. Result: xarctanx12ln(1+x2)+Cx\arctan x - \frac{1}{2}\ln(1+x^2) + C.
  11. Ex. 85.11Application

    Compute arcsinxdx\int \arcsin x\, dx.

    Show solution
    u=arcsinxu = \arcsin x, dv=dxdv = dx, du=dx/1x2du = dx/\sqrt{1-x^2}, v=xv = x. Result: xarcsinx+1x2+Cx\arcsin x + \sqrt{1-x^2} + C.
  12. Ex. 85.12Application

    Compute xe2xdx\int x e^{2x}\, dx.

    Show solution
    u=xu = x, dv=e2xdxdv = e^{2x}\, dx, v=e2x/2v = e^{2x}/2. Result: xe2x2e2x4+C\frac{x e^{2x}}{2} - \frac{e^{2x}}{4} + C.
  13. Ex. 85.13Application

    Compute x2xdx\int x \cdot 2^x\, dx.

    Show solution
    u=xu = x, dv=2xdxdv = 2^x\, dx, v=2x/ln2v = 2^x/\ln 2. Result: x2xln22x(ln2)2+C\frac{x \cdot 2^x}{\ln 2} - \frac{2^x}{(\ln 2)^2} + C.
  14. Ex. 85.14Application

    Compute xexdx\int x e^{-x}\, dx.

    Show solution
    u=xu = x, dv=exdxdv = e^{-x}\, dx, v=exv = -e^{-x}. Result: xexex+C=ex(x+1)+C-xe^{-x} - e^{-x} + C = -e^{-x}(x+1) + C.
  15. Ex. 85.15ApplicationAnswer key

    Compute (lnx)2dx\int (\ln x)^2\, dx. Apply parts twice.

    Show solution
    Apply parts with u=(lnx)2u = (\ln x)^2, dv=dxdv = dx. After two cycles: x(lnx)22xlnx+2x+Cx(\ln x)^2 - 2x\ln x + 2x + C.
  16. Ex. 85.16Application

    Compute excosxdx\int e^x \cos x\, dx.

    Show solution
    Two applications with trick. Result: ex(sinx+cosx)2+C\frac{e^x(\sin x + \cos x)}{2} + C.
    Show step-by-step (with the why)
    1. Define I=excosxdxI = \int e^x \cos x\, dx. Apply parts: u=cosxu = \cos x, dv=exdxdv = e^x\, dx.
    2. Result of 1st application: I=excosx+exsinxdxI = e^x \cos x + \int e^x \sin x\, dx.
    3. Apply parts again to the new integral: u=sinxu = \sin x, dv=exdxdv = e^x\, dx. Obtain exsinxexcosxdx=exsinxIe^x \sin x - \int e^x \cos x\, dx = e^x \sin x - I.
    4. Substitute: I=excosx+exsinxII = e^x \cos x + e^x \sin x - I, hence 2I=ex(cosx+sinx)2I = e^x(\cos x + \sin x).
    5. Result: I=ex(sinx+cosx)2+CI = \frac{e^x(\sin x + \cos x)}{2} + C. Tip: when the integral returns, isolate I — it is a grave error to cancel both sides as zero.
  17. Ex. 85.17Application

    Compute exsinxdx\int e^x \sin x\, dx.

    Show solution
    Analogous trick to 85.16: exsinxdx=ex(sinxcosx)2+C\int e^x \sin x\, dx = \frac{e^x(\sin x - \cos x)}{2} + C.
  18. Ex. 85.18Application

    Compute e2xcos(3x)dx\int e^{2x} \cos(3x)\, dx.

    Show solution
    Trick with a=2a = 2, b=3b = 3. Result: e2x(2cos3x+3sin3x)13+C\frac{e^{2x}(2\cos 3x + 3\sin 3x)}{13} + C.
  19. Ex. 85.19Application

    Compute exsin(2x)dx\int e^{-x} \sin(2x)\, dx.

    Show solution
    Result: ex(sin2x2cos2x)5+C\frac{e^{-x}(-\sin 2x - 2\cos 2x)}{5} + C.
  20. Ex. 85.20Application

    Compute cosxln(sinx)dx\int \cos x \ln(\sin x)\, dx.

    Show solution
    Sub t=sinxt = \sin x first, then parts in lntdt\int \ln t\, dt. Result: sinxln(sinx)sinx+C\sin x \ln(\sin x) - \sin x + C.
  21. Ex. 85.21Application

    Compute sec3xdx\int \sec^3 x\, dx.

    Show solution
    Parts with u=secxu = \sec x, dv=sec2xdxdv = \sec^2 x\, dx plus identity sec2=1+tan2\sec^2 = 1 + \tan^2. Result: secxtanx2+12lnsecx+tanx+C\frac{\sec x \tan x}{2} + \frac{1}{2}\ln|\sec x + \tan x| + C.
  22. Ex. 85.22ApplicationAnswer key

    Compute csc3xdx\int \csc^3 x\, dx.

    Show solution
    Analogous to sec³: csc3xdx=cscxcotx212lncscx+cotx+C\int \csc^3 x\, dx = -\frac{\csc x \cot x}{2} - \frac{1}{2}\ln|\csc x + \cot x| + C.
  23. Ex. 85.23ApplicationAnswer key

    Compute 01xexdx\int_0^1 x e^x\, dx.

    Show solution
    From indefinite ex(x1)e^x(x-1), evaluate on [0,1][0,1]: [ex(x1)]01=e10e0(1)=0+1=1[e^x(x-1)]_0^1 = e^1 \cdot 0 - e^0(-1) = 0 + 1 = 1.
    Show step-by-step (with the why)
    1. Compute the antiderivative: xexdx=ex(x1)+C\int x e^x\, dx = e^x(x-1) + C (see 85.1).
    2. Evaluate at limits: [ex(x1)]01[e^x(x-1)]_0^1.
    3. At x=1x=1: e1(11)=0e^1(1-1) = 0. At x=0x=0: e0(01)=1e^0(0-1) = -1.
    4. Result: 0(1)=10 - (-1) = 1. Insight: area under xe^x on [0,1] is exactly 1, an elegant result.
  24. Ex. 85.24Application

    Compute 0πxsinxdx\int_0^\pi x \sin x\, dx.

    Show solution
    From indefinite xcosx+sinx-x\cos x + \sin x, evaluate on [0,π][0,\pi]: [xcosx+sinx]0π=π+00=π[-x\cos x + \sin x]_0^\pi = \pi + 0 - 0 = \pi.
  25. Ex. 85.25Application

    Compute 1elnxdx\int_1^e \ln x\, dx.

    Show solution
    From indefinite xlnxxx\ln x - x, evaluate on [1,e][1,e]: [xlnxx]1e=(ee)(01)=1[x\ln x - x]_1^e = (e - e) - (0 - 1) = 1.
  26. Ex. 85.26Application

    Compute 0π/2xcosxdx\int_0^{\pi/2} x \cos x\, dx.

    Show solution
    From indefinite xsinx+cosxx\sin x + \cos x, evaluate on [0,π/2][0, \pi/2]: [xsinx+cosx]0π/2=π/2+01=π/21[x\sin x + \cos x]_0^{\pi/2} = \pi/2 + 0 - 1 = \pi/2 - 1.
  27. Ex. 85.27Application

    Compute 01arctanxdx\int_0^1 \arctan x\, dx.

    Show solution
    From indefinite xarctanx12ln(1+x2)x\arctan x - \frac{1}{2}\ln(1+x^2), evaluate on [0,1][0,1]: π4ln22\frac{\pi}{4} - \frac{\ln 2}{2}.
  28. Ex. 85.28Application

    Compute 12x2lnxdx\int_1^2 x^2 \ln x\, dx.

    Show solution
    From indefinite x33lnxx39\frac{x^3}{3}\ln x - \frac{x^3}{9}, evaluate on [1,2][1,2]: 8ln2389+19=8ln2379\frac{8\ln 2}{3} - \frac{8}{9} + \frac{1}{9} = \frac{8\ln 2}{3} - \frac{7}{9}.
  29. Ex. 85.29Application

    Compute 01xexdx\int_0^1 x e^{-x}\, dx.

    Show solution
    From indefinite ex(x+1)-e^{-x}(x+1), evaluate on [0,1][0,1]: 2e1(1)=12/e-2e^{-1} - (-1) = 1 - 2/e.
  30. Ex. 85.30Application

    Compute 0π/2exsinxdx\int_0^{\pi/2} e^x \sin x\, dx.

    Show solution
    From indefinite ex(sinxcosx)2\frac{e^x(\sin x - \cos x)}{2}, evaluate on [0,π/2][0, \pi/2]: eπ/2+12\frac{e^{\pi/2} + 1}{2}.
  31. Ex. 85.31ModelingAnswer key

    Work done by force F(x)=xexF(x) = x e^{-x} N along [0,1][0, 1] m. Compute W=01F(x)dxW = \int_0^1 F(x)\, dx.

    Show solution
    Work W=01xexdx=12e10.26W = \int_0^1 x e^{-x}\, dx = 1 - 2e^{-1} \approx 0.26 J. (See 85.29.)
  32. Ex. 85.32ModelingAnswer key

    Electric charge accumulated with current i(t)=tcos(ωt)i(t) = t\cos(\omega t). Compute Q=02π/ωi(t)dtQ = \int_0^{2\pi/\omega} i(t)\, dt.

    Show solution
    02π/ωtcos(ωt)dt\int_0^{2\pi/\omega} t\cos(\omega t)\, dt. By parts: u=tu = t, dv=cos(ωt)dtdv = \cos(\omega t)\, dt. Evaluating at limits: result is 00 (cosine symmetry over full period).
  33. Ex. 85.33Modeling

    Gamma function: compute Γ(2)=0tetdt\Gamma(2) = \int_0^\infty t e^{-t}\, dt and show that the result is 11.

    Show solution
    Γ(2)=0tetdt\Gamma(2) = \int_0^\infty t e^{-t}\, dt. By parts: u=tu = t, dv=etdtdv = e^{-t}\, dt. Result: [tet]0+0etdt=0+1=1[-te^{-t}]_0^\infty + \int_0^\infty e^{-t}\, dt = 0 + 1 = 1.
    Show step-by-step (with the why)
    See the referenced source for the step-by-step walkthrough.
  34. Ex. 85.34ModelingAnswer key

    Expectation of exponential variable: compute E[X]=0xλeλxdxE[X] = \int_0^\infty x \lambda e^{-\lambda x}\, dx and show that the result is 1/λ1/\lambda.

    Show solution
    E[X]=0xλeλxdxE[X] = \int_0^\infty x\lambda e^{-\lambda x}\, dx. By parts: λ([xeλx/1]0+1λ0eλxdx)=λ1λ2=1λ\lambda\left([-xe^{-\lambda x}/1]_0^\infty + \frac{1}{\lambda}\int_0^\infty e^{-\lambda x}\, dx\right) = \lambda \cdot \frac{1}{\lambda^2} = \frac{1}{\lambda}.
  35. Ex. 85.35Modeling

    Variance of exponential: compute E[X2]=0x2λeλxdxE[X^2] = \int_0^\infty x^2 \lambda e^{-\lambda x}\, dx and determine Var(X)=E[X2](E[X])2\text{Var}(X) = E[X^2] - (E[X])^2.

    Show solution
    E[X2]=0x2λeλxdxE[X^2] = \int_0^\infty x^2 \lambda e^{-\lambda x}\, dx. DI table: result 2/λ22/\lambda^2. Hence variance =E[X2](E[X])2=2/λ21/λ2=1/λ2= E[X^2] - (E[X])^2 = 2/\lambda^2 - 1/\lambda^2 = 1/\lambda^2.
  36. Ex. 85.36Modeling

    Fourier coefficient an=(1/π)ππxcos(nx)dxa_n = (1/\pi)\int_{-\pi}^\pi x\cos(nx)\, dx. Determine ana_n for all integers n1n \geq 1.

    Show solution
    By parts: an=1πππxcos(nx)dxa_n = \frac{1}{\pi}\int_{-\pi}^\pi x\cos(nx)\, dx. Since xcos(nx)x\cos(nx) is product of odd function (xx) and even (cos(nx)\cos(nx)), it is odd. Integral of odd function over symmetric interval is 00. Hence an=0a_n = 0 for all nn.
  37. Ex. 85.37Modeling

    Laplace transform of tt: show that L{t}(s)=0testdt=1/s2\mathcal{L}\{t\}(s) = \int_0^\infty t e^{-st}\, dt = 1/s^2 for s>0s > 0.

    Show solution
    L{t}=0testdt\mathcal{L}\{t\} = \int_0^\infty t e^{-st}\, dt. By parts: u=tu = t, dv=estdtdv = e^{-st}\, dt. Result: [test/s]0+1s0estdt=0+1s2=1s2[-t e^{-st}/s]_0^\infty + \frac{1}{s}\int_0^\infty e^{-st}\, dt = 0 + \frac{1}{s^2} = \frac{1}{s^2}.
  38. Ex. 85.38Modeling

    Present value of growing income C(t)=tC(t) = t (in thousands of reais/year) with continuous discount rate rr over [0,T][0, T]. Compute VP=0TtertdtVP = \int_0^T t e^{-rt}\, dt.

    Show solution
    PV = 0Ttertdt\int_0^T t e^{-rt}\, dt. By parts: u=tu = t, result: 1r2[1erT(1+rT)]\frac{1}{r^2}[1 - e^{-rT}(1 + rT)].
  39. Ex. 85.39Challenge

    Compute x3ex2dx\int x^3 e^{-x^2}\, dx. Hint: substitute u=x2u = x^2 first, then apply parts.

    Show solution
    Sub u=x2u = x^2: x3ex2dx=12ueudu\int x^3 e^{-x^2}\, dx = \frac{1}{2}\int u e^{-u}\, du. By parts: 12ex2(x2+1)+C-\frac{1}{2}e^{-x^2}(x^2 + 1) + C.
  40. Ex. 85.40ChallengeAnswer key

    Compute exdx\int e^{\sqrt{x}}\, dx. Hint: substitute u=xu = \sqrt{x}, then apply parts.

    Show solution
    Sub u=xu = \sqrt{x}, x=u2x = u^2, dx=2ududx = 2u\, du: integral becomes 2ueudu2\int u e^u\, du. By parts: 2(u1)eu+C=2(x1)ex+C2(u-1)e^u + C = 2(\sqrt{x} - 1)e^{\sqrt{x}} + C.
  41. Ex. 85.41Challenge

    Show by induction that 0xnexdx=n!\int_0^\infty x^n e^{-x}\, dx = n! for all non-negative integer nn, using integration by parts in the inductive step.

    Show solution
    By parts: 0xnexdx=n0xn1exdx\int_0^\infty x^n e^{-x}\, dx = n \int_0^\infty x^{n-1} e^{-x}\, dx. By induction: =n(n1)10exdx=n!= n(n-1)\cdots 1 \int_0^\infty e^{-x}\, dx = n!.
  42. Ex. 85.42Challenge

    Let In=xnexdxI_n = \int x^n e^x\, dx. Show that In=xnexnIn1I_n = x^n e^x - n I_{n-1} and use the formula to compute I3I_3.

    Show solution
    By parts with u=xnu = x^n, dv=exdxdv = e^x\, dx: In=xnexnxn1exdx=xnexnIn1I_n = x^n e^x - n\int x^{n-1}e^x\, dx = x^n e^x - nI_{n-1}.
  43. Ex. 85.43ChallengeAnswer key

    Derive the reduction formula sinnxdx=sinn1xcosxn+n1nsinn2xdx\int \sin^n x\, dx = -\frac{\sin^{n-1}x\cos x}{n} + \frac{n-1}{n}\int \sin^{n-2}x\, dx and apply it to compute sin4xdx\int \sin^4 x\, dx.

    Show solution
    By parts with u=sinn1xu = \sin^{n-1}x, dv=sinxdxdv = \sin x\, dx. Result: sinnxdx=sinn1xcosxn+n1nsinn2xdx\int \sin^n x\, dx = -\frac{\sin^{n-1}x\cos x}{n} + \frac{n-1}{n}\int \sin^{n-2}x\, dx. Use for n=4n = 4: sin3xcosx4+34sin2xdx-\frac{\sin^3 x\cos x}{4} + \frac{3}{4}\int \sin^2 x\, dx.
  44. Ex. 85.44Proof

    Proof. Prove the formula udv=uvvdu\int u\, dv = uv - \int v\, du from the product rule for derivatives and the Fundamental Theorem of Calculus.

    Show solution
    By the product rule: (uv)=uv+uv(uv)' = u'v + uv'. Integrate both sides on [a,b][a,b] and apply FTC: [uv]ab=abuvdx+abuvdx[uv]_a^b = \int_a^b u'v\, dx + \int_a^b uv'\, dx. Rearranging: abuvdx=[uv]ababuvdx\int_a^b uv'\, dx = [uv]_a^b - \int_a^b u'v\, dx, which in differential notation is udv=uvvdu\int u\, dv = uv - \int v\, du.
  45. Ex. 85.45Proof

    Informal Proof. Justify why LIATE is an effective heuristic: analyze how each type of function behaves upon differentiation and explain why Log and Inv-trig are the top candidates for uu.

    Show solution
    See the referenced source for the detailed solution.

Sources

Updated on 2026-05-11 · Author(s): Clube da Matemática

Found an error? Open an issue on GitHub or submit a PR — open source forever.