Skip to main content
Mathematics LibreTexts

Integration by Parts

  • Page ID
    218539
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\dsum}{\displaystyle\sum\limits} \)

    \( \newcommand{\dint}{\displaystyle\int\limits} \)

    \( \newcommand{\dlim}{\displaystyle\lim\limits} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \(\newcommand{\longvect}{\overrightarrow}\)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    Integration by Parts

     Derivation of Integration by Parts

    Recall the product rule:

            (uv)' = u' v + uv' 

    or

            uv' = (uv)' - u' v

    Integrating both sides, we have that

           \( \int uv' dx     =   \int (uv)' dx  -   \int u' v dx \)

            \( =    uv   -   \int u' v dx \)

     

     

    Theorem:  Integration by Parts

    Let u and v be differentiable functions, then

              \( \int uv' dx     =   uv  -   \int u' v dx \)

     


     

    Examples

    Integrate

              \( \int x e^{3x} dx \)

     

    Solution

    We use integration by parts.  Notice that we need to use substitution to find the integral of ex.

     

    u = x dv= e3x dx
    du = dx v = 1/3 e3x

    Hence we have

             \( \int x e^{3x} dx  = x(\frac{1}{3} e^{3x}) - \int \frac{1}{3} e^{3x}dx \)

           \( = \frac{x e^{3x}}{3} - \frac{1}{9}e^{3x} + C \)

            


    Exercise

    Evaluate

           \( \int x ln x dx \)        

     


     

    Integration By Parts Twice

    Example 

    Evaluate

             \( \int x^2 e^x dx \)

    We use integration by parts

     

    u = x2   dv = ex dx
    du = 2x dx v = ex

    We have

            \( x^2 e^x - \int 2x e^x dx = x^2 e^x - 2 \int x e^x dx \)

    Have we gone nowhere?  Now we now use integration by parts a second time to find this integral

     

    u = x   dv = ex dx
    du = dx v = ex

    We get

             \( x^2 e^x - 2x e^x + 2\int e^x dx \)

            =     x2ex   -   2xex  +   2ex + C

     


    Other By Parts

    Occasionally there is not an obvious pair of u and dv.  This is where we get creative.

     

    Example:  

    Find

             \( \int ln x dx \)

    What should we let u and dv be?  Try

     

    u = ln x dv = dx
    du =  1/x dx v =  x

    We get

            \( x lnx   -   \int dx      =    x lnx  -  x  +  C \)


     

    When to Use Integration By Parts

    1. When u-substitution does not work

       
    2. When there is a mix of two types of functions such as an exponential and polynomial, polynomial and log, etc.

       
    3. With  ln x.

       
    4. When all else fails.

     


    Evaluating a Definite Integral

    We can use integration by parts to evaluate definite integrals.  We just have to remember that all terms receive the limits.

     

    Example

    Evaluate

            \( \int_1^2 x^2 ln x dx \)

     

    Solution

    Use integration by parts

     

    u = ln x dv = x2 dx
    du =  1/x dx v =  1/3 x3

    We get

            \( \frac{1}{3}x^3 ln(x)|_1^e - \frac{1}{3}\int_1^e x^3 (\frac{1}{x}) dx = [\frac{1}{3}x^3 ln(x) - \frac{1}{9}x^3]_1^e \)

           \( = (\frac{1}{3} e^3 ln(e) - \frac{1}{9} e^3) - (\frac{1}{3} 1^3 ln(1) - \frac{1}{9} 1^3) = \frac{2}{9}e^3 + \frac{1}{9} \)

     


    Application:  Present Value

    Your patent brings you a annual income of 3,000 t dollars where t is the number of years since the the patent begins.  The patent will expire in 20 years.  A business has offered to purchase the patent from you.  How much should you ask for it?  Assume an inflation rate of 5%.

    This question is a present value problem.  Since there is inflation, your later earnings will be worth less than this year's earnings.  The formula to determine this is given by

     

            

    Present Value Formula

    If c(t) is the continuous annual income over t1 years with an inflation rate r, then the present value can by found by 

                        \( \int_0^{t_1} c(t) e^{-rt} dt \)

     

    For our example, we have

            c(t)  =  2000 t        r  =  0.05        t1  =  20

    We integrate

            \( \int_0^{20} 2000t e^{-0.05t} \)

    Use integration by parts and note that with the substitution

            u  =  -0.05t        du  =  -0.05dt

    or

            -20du  =  dt

    we get

              \( \int 2000 e^{-0.05t} = -20 \int e^u du \)

           \( = -20 e^u = -20 e^{-0.05t} \)

    so that

     

    u = 2000t dv = e-0.05t dt
    du =  2000 dt v =  -20e-0.05t

    This gives us

            \( = [-40000t e^{-0.05t}]_0^{20 }+ 20000 \int_0^{20} e^{-0.05t} dt \)

    We have already found the antiderivative for this last integral.  We have

            \( = [-40000t e^{-0.05t}]_0^{20} - 800000 e^{-0.05t} ]_0^{20} = 211,393 \)

    You should ask for $211,393.

     


    Back to the Techniques of Integration Page

     

            

     

    Integration by Parts is shared under a not declared license and was authored, remixed, and/or curated by LibreTexts.

    • Was this article helpful?