∫Yoboa Math
Home / Guides / Integration by Parts

Integration by Parts

Integration by parts is the product rule run backwards. Use it when the integrand is a product of two different kinds of functions, like \(x e^x\), \(x^2\sin x\) or \(\ln x\).

The formula

\[\int u\,dv = uv - \int v\,du\]

It comes straight from the product rule \((uv)' = u'v + uv'\). Integrate both sides and rearrange. You trade the original integral for \(\int v\,du\), which should be easier. If it isn't, you probably picked \(u\) and \(dv\) the wrong way around.

Choosing u: the LIATE rule

Pick \(u\) from whichever type comes first in this list. Everything else becomes \(dv\):

  1. Logarithms: \(\ln x\)
  2. Inverse trig: \(\arctan x\), \(\arcsin x\)
  3. Algebraic: \(x\), \(x^2\), polynomials
  4. Trig: \(\sin x\), \(\cos x\)
  5. Exponential: \(e^x\), \(2^x\)

The logic: types near the top get simpler when you differentiate them, and types near the bottom are easy to integrate. LIATE is a rule of thumb, not a law, but it's right for nearly every textbook problem.

When there's only one function

\(\int \ln x\,dx\) and \(\int \arctan x\,dx\) look like they have nothing to split. Take \(u\) to be the whole function and \(dv = dx\). The derivative of \(\ln x\) is \(1/x\), which is much easier to deal with.

Example: \(\ln{\left(x \right)}\)

Only one function, so take \(dv = dx\).

\[\int \ln{\left(x \right)}\,dx = x \ln{\left(\left|{x}\right| \right)} - x + C\]
1Integration by partstechnique▶

Use \(\int u\,dv = uv - \int v\,du\). LIATE (Log, Inverse trig, Algebraic, Trig, Exponential) says to pick u from earlier in that list, since it gets simpler when differentiated. Choose \(u = \ln{\left(x \right)}\) and \(dv = 1\,dx\), so \(du = \frac{1}{x}\,dx\).

1Find v▶

Integrate \(dv = 1\,dx\):

1Integrate a constant▶

The integral of a constant is the constant times \(x\).

\[\int 1\,dx = x\]
2Apply the formula▶
\[\int \ln{\left(x \right)}\,dx = x \ln{\left(x \right)} - \int 1\,dx\]
3Evaluate the remaining integral▶
1Integrate a constant▶

The integral of a constant is the constant times \(x\).

\[\int 1\,dx = x\]
4Combine▶
\[\int \ln{\left(x \right)}\,dx = x \ln{\left(x \right)} - x\]
Open this in the calculator →

Example: \(x^{2} e^{3 x}\)

The polynomial has degree 2, so you need parts twice. Each round lowers the power of \(x\) by one.

\[\int x^{2} e^{3 x}\,dx = \frac{x^{2} e^{3 x}}{3} - \frac{2 x e^{3 x}}{9} + \frac{2 e^{3 x}}{27} + C\]
1Integration by partstechnique▶

Use \(\int u\,dv = uv - \int v\,du\). LIATE (Log, Inverse trig, Algebraic, Trig, Exponential) says to pick u from earlier in that list, since it gets simpler when differentiated. Choose \(u = x^{2}\) and \(dv = e^{3 x}\,dx\), so \(du = 2 x\,dx\).

1Find v▶

Integrate \(dv = e^{3 x}\,dx\):

1Substitution (u-sub)technique▶

Let \(u = 3 x\). Then \(du = 3\,dx\). Rewriting the integral in terms of \(u\):

\[\int e^{3 x}\,dx = \int \frac{e^{u}}{3}\,du\]
1Pull out the constant▶

Constants factor out of an integral: move \(\frac{1}{3}\) outside.

\[\int \frac{e^{u}}{3}\,du = \frac{1}{3}\int e^{u}\,du\]
1Exponential rule▶

The exponential function is its own antiderivative.

\[\int e^{u}\,du = e^{u}\]
2Multiply back by the constant▶
\[\frac{1}{3}\cdot\left(e^{u}\right) = \frac{e^{u}}{3}\]
2Substitute back▶

Replace \(u\) with \(3 x\):

\[\frac{e^{u}}{3}\;\to\;\frac{e^{3 x}}{3}\]
2Apply the formula▶
\[\int x^{2} e^{3 x}\,dx = \frac{x^{2} e^{3 x}}{3} - \int \frac{2 x e^{3 x}}{3}\,dx\]
3Evaluate the remaining integral▶
1Integration by partstechnique▶

Use \(\int u\,dv = uv - \int v\,du\). LIATE (Log, Inverse trig, Algebraic, Trig, Exponential) says to pick u from earlier in that list, since it gets simpler when differentiated. Choose \(u = \frac{2 x}{3}\) and \(dv = e^{3 x}\,dx\), so \(du = \frac{2}{3}\,dx\).

1Find v▶

Integrate \(dv = e^{3 x}\,dx\):

1Substitution (u-sub)technique▶

Let \(w = 3 x\). Then \(dw = 3\,dx\). Rewriting the integral in terms of \(w\):

\[\int e^{3 x}\,dx = \int \frac{e^{w}}{3}\,dw\]
1Pull out the constant▶

Constants factor out of an integral: move \(\frac{1}{3}\) outside.

\[\int \frac{e^{w}}{3}\,dw = \frac{1}{3}\int e^{w}\,dw\]
1Exponential rule▶

The exponential function is its own antiderivative.

\[\int e^{w}\,dw = e^{w}\]
2Multiply back by the constant▶
\[\frac{1}{3}\cdot\left(e^{w}\right) = \frac{e^{w}}{3}\]
2Substitute back▶

Replace \(w\) with \(3 x\):

\[\frac{e^{w}}{3}\;\to\;\frac{e^{3 x}}{3}\]
2Apply the formula▶
\[\int \frac{2 x e^{3 x}}{3}\,dx = \frac{2 x e^{3 x}}{9} - \int \frac{2 e^{3 x}}{9}\,dx\]
3Evaluate the remaining integral▶
1Pull out the constant▶

Constants factor out of an integral: move \(\frac{2}{9}\) outside.

\[\int \frac{2 e^{3 x}}{9}\,dx = \frac{2}{9}\int e^{3 x}\,dx\]
1Substitution (u-sub)technique▶

Let \(v = 3 x\). Then \(dv = 3\,dx\). Rewriting the integral in terms of \(v\):

\[\int e^{3 x}\,dx = \int \frac{e^{v}}{3}\,dv\]
1Pull out the constant▶

Constants factor out of an integral: move \(\frac{1}{3}\) outside.

\[\int \frac{e^{v}}{3}\,dv = \frac{1}{3}\int e^{v}\,dv\]
1Exponential rule▶

The exponential function is its own antiderivative.

\[\int e^{v}\,dv = e^{v}\]
2Multiply back by the constant▶
\[\frac{1}{3}\cdot\left(e^{v}\right) = \frac{e^{v}}{3}\]
2Substitute back▶

Replace \(v\) with \(3 x\):

\[\frac{e^{v}}{3}\;\to\;\frac{e^{3 x}}{3}\]
2Multiply back by the constant▶
\[\frac{2}{9}\cdot\left(\frac{e^{3 x}}{3}\right) = \frac{2 e^{3 x}}{27}\]
4Combine▶
\[\int \frac{2 x e^{3 x}}{3}\,dx = \frac{2 x e^{3 x}}{9} - \frac{2 e^{3 x}}{27}\]
4Combine▶
\[\int x^{2} e^{3 x}\,dx = \frac{x^{2} e^{3 x}}{3} - \frac{2 x e^{3 x}}{9} + \frac{2 e^{3 x}}{27}\]
Open this in the calculator →

Cyclic integrals

For \(\int e^x\sin x\,dx\), neither factor ever gets simpler. Integrate by parts twice and the original integral shows up again on the right-hand side. Call it \(I\), move it to the left and solve for \(I\) algebraically.

Example: \(e^{x} \sin{\left(x \right)}\)

\[\int e^{x} \sin{\left(x \right)}\,dx = \frac{e^{x} \sin{\left(x \right)}}{2} - \frac{e^{x} \cos{\left(x \right)}}{2} + C\]
1Integration by parts (cyclic)technique▶

Integrate by parts twice. The original integral reappears, so call it \(I\) and solve for it algebraically. Round 1: \(u = \sin{\left(x \right)}\), \(dv = e^{x}\,dx\). Round 2: \(u = \cos{\left(x \right)}\), \(dv = e^{x}\,dx\).

\[I = \int e^{x} \sin{\left(x \right)}\,dx\]
\[I = \ldots - I \;\Rightarrow\; I = \frac{e^{x} \sin{\left(x \right)}}{2} - \frac{e^{x} \cos{\left(x \right)}}{2}\]
Open this in the calculator →

Common mistakes

  • Forgetting the minus sign in \(uv - \int v\,du\).
  • Choosing \(u = e^x\) for \(\int x e^x\,dx\). The new integral \(\int \tfrac{x^2}{2}e^x\,dx\) is harder than the one you started with.
  • Dropping the \(+C\) at the very end. You don't need a constant when you find \(v\).

Try your own

Paste any integral into the integral calculator to get the full step-by-step solution and a graph.

More techniques