Integrals: functions and by parts

Integration by parts

Integration by parts, fgdx=fgfgdx\int f g'\,dx=fg-\int f' g\,dx, is the product rule used in reverse.

f(x)g(x)dx=f(x)g(x)f(x)g(x)dx\begin{gathered} \int f(x)g'(x)\,dx \\[4pt] =f(x)g(x)-\int f'(x)g(x)\,dx \end{gathered}

Integration by parts is the product rule (fg)=fg+fg(fg)'=f'g+fg' integrated and rearranged.

fgdx=fgfgdx\int f g'\,dx=fg-\int f' g\,dx

The key decision is which factor to differentiate: choose the one that gets simpler (xx or logx\log x) as ff. For xlogxx\log x, differentiate logx\log x.

Examples

  1. 01What is f(-1)?f(x)=x2\displaystyle f(x)=x^2AnswerHide
    Answer1\displaystyle 1
  2. 02What is the uvuv part?xexdx(u=x,  v=ex    v=ex)\displaystyle \int x e^x \, dx \quad (u=x,\; v'=e^{x} \;\Rightarrow\; v=e^{x})AnswerHide
    Answerxex\displaystyle x e^x
  3. 03What is f(0)?f(x)=3x+3\displaystyle f(x)=3x+3AnswerHide
    Answer3\displaystyle 3
  4. 04What is the uvuv part?xlogexdx(u=logex,  v=x    v=x22)\displaystyle \int x \log_e x \, dx \quad (u=\log_e x,\; v'=x \;\Rightarrow\; v=\frac{x^{2}}{2})AnswerHide
    Answerx22logex\displaystyle \frac{x^{2}}{2} \log_e x
  5. 05What is the uvuv part?xsinxdx(u=x,  v=sinx    v=cosx)\displaystyle \int x \sin x \, dx \quad (u=x,\; v'=\sin x \;\Rightarrow\; v=-\cos x)AnswerHide
    Answerxcosx\displaystyle -x \cos x
  6. 06What is uvdx\int u'v\,dx? (omit CC)xlogexdx=x22logexuvdx\displaystyle \int x \log_e x \, dx = \frac{x^{2}}{2} \log_e x - \int u'v \, dxAnswerHide
    Answerx24\displaystyle \frac{x^{2}}{4}

FAQ

Q1How do I choose f and g'?Show answerHide
A
Make f the factor that gets simpler when differentiated. logx\log x and x get simpler, so they go on the f side; exe^x and sinx\sin x are easy to integrate, so they go on the gg' side.

Practice this pattern in the app, 5 problems a day.

Download on the App Store
This topic
Integration by parts
Next
Last in this chapter

Published 2026-09-03 · Updated 2026-09-05