impera Open Impera

AP Calculus BC · Integration and accumulation of change

Integration by parts

1Reversing the product rule

The product rule says $\frac{d}{dx}[uv] = u\frac{dv}{dx} + v\frac{du}{dx}$. Integrating both sides and rearranging gives the integration by parts formula:

$$\int u\,dv = uv - \int v\,du$$

It turns an integral you cannot do into one you (hopefully) can. You split the integrand into two pieces:

  • $u$: the part you will differentiate (it should get simpler).
  • $dv$: the part you will integrate (you must be able to integrate it).
Worked example

$\int x e^x\,dx$

  1. $u = x$, so $du = dx$. $dv = e^x\,dx$, so $v = e^x$.
  2. $\int x e^x\,dx = x e^x - \int e^x\,dx$.
  3. $= x e^x - e^x + C = e^x(x - 1) + C$.
  4. Check: $\frac{d}{dx}[e^x(x - 1)] = e^x(x - 1) + e^x = xe^x$. ✓
Check yourself

In ∫ x cos x dx, the best choice of u is:

  • x

  • x cos x

  • cos x

  • sin x

Show the answer

x

x becomes 1 when differentiated.

2Choosing u: LIATE

A reliable order for choosing $u$ is LIATE: pick the type that comes first in the list.

  • Logarithmic: $\ln x$
  • Inverse trigonometric: $\arctan x$, $\arcsin x$
  • Algebraic: $x$, $x^2$, $3x + 1$
  • Trigonometric: $\sin x$, $\cos x$
  • Exponential: $e^x$, $2^x$

Logs and inverse trig functions are hard to integrate but have simple derivatives, so they almost always go in $u$.

Worked example

$\int \ln x\,dx$ (a "hidden" product with 1)

  1. $u = \ln x$, $du = \frac{1}{x}dx$. $dv = dx$, $v = x$.
  2. $\int \ln x\,dx = x\ln x - \int x \cdot \frac{1}{x}\,dx = x\ln x - x + C$.
Worked example

$\int x^2 \ln x\,dx$

  1. $u = \ln x$ (L beats A), $du = \frac{1}{x}dx$. $dv = x^2\,dx$, $v = \frac{x^3}{3}$.
  2. $= \frac{x^3}{3}\ln x - \int \frac{x^3}{3} \cdot \frac{1}{x}\,dx = \frac{x^3}{3}\ln x - \frac{x^3}{9} + C$.
Check yourself

For ∫ x² ln x dx, LIATE says u should be:

  • x² ln x

  • 1/x

  • x²

  • ln x

Show the answer

ln x

Logarithmic comes before algebraic.

3Repeated parts and the tabular method

If $u$ is a polynomial of degree $n$, you need parts $n$ times. The tabular method speeds this up:

  1. Column D: differentiate $u$ until you reach 0.
  2. Column I: integrate $dv$ the same number of times.
  3. Multiply diagonally with alternating signs $+, -, +, -, \dots$
Worked example

$\int x^2 e^{x}\,dx$

  1. D column: $x^2$, $2x$, $2$, $0$. I column: $e^x$, $e^x$, $e^x$, $e^x$.
  2. Diagonal products: $+x^2e^x$, $-2xe^x$, $+2e^x$.
  3. $\int x^2 e^x\,dx = e^x(x^2 - 2x + 2) + C$.

Cyclic integrals: for $\int e^x \sin x\,dx$, parts twice brings the original integral back. Call it $I$ and solve for it.

Worked example

$I = \int e^x\sin x\,dx$

  1. $u = \sin x$, $dv = e^x dx$: $I = e^x\sin x - \int e^x\cos x\,dx$.
  2. Again with $u = \cos x$: $\int e^x\cos x\,dx = e^x\cos x + \int e^x\sin x\,dx = e^x\cos x + I$.
  3. So $I = e^x\sin x - e^x\cos x - I$, giving $2I = e^x(\sin x - \cos x)$.
  4. $I = \frac{1}{2}e^x(\sin x - \cos x) + C$.
Check yourself

Using the tabular method on ∫ x³ eˣ dx, how many nonzero diagonal terms appear?

  • 5

  • 2

  • 4

  • 3

Show the answer

4

x³, 3x², 6x, 6 each give one term.

4Definite integrals by parts

Evaluate the $uv$ term at the limits as well:

$$\int_a^b u\,dv = \Big[uv\Big]_a^b - \int_a^b v\,du$$

Worked example

$\int_0^{\pi} x\sin x\,dx$

  1. $u = x$, $du = dx$; $dv = \sin x\,dx$, $v = -\cos x$.
  2. $= \big[-x\cos x\big]_0^{\pi} + \int_0^{\pi}\cos x\,dx$.
  3. $= (-\pi\cos\pi - 0) + \big[\sin x\big]_0^{\pi} = \pi + 0 = \pi$.
Check yourself

∫₀¹ x eˣ dx equals:

  • e − 1

  • e

  • 0

  • 1

Show the answer

1

[eˣ(x − 1)] from 0 to 1 = 0 − (−1).

5Going deeper: choosing u, repeated parts and definite integrals

Integration by parts reverses the product rule:

$$\int u\,dv = uv - \int v\,du$$

Choosing u: pick the factor that becomes simpler when differentiated; dv must be something you can integrate. A helpful order of preference for u (LIATE): Logarithmic, Inverse trigonometric, Algebraic, Trigonometric, Exponential.

Worked example

$\int xe^x\,dx$.

  1. u = x, dv = $e^x$dx; du = dx, v = $e^x$.
  2. $xe^x - \int e^x\,dx = xe^x - e^x + C$.

Worked example (a logarithm alone): $\int\ln x\,dx$.

  1. u = ln x, dv = dx; du = $\frac{1}{x}$dx, v = x.
  2. $x\ln x - \int 1\,dx = x\ln x - x + C$.
Worked example

$\int x^2\ln x\,dx$.

  1. u = ln x, dv = x² dx; v = $\frac{x^3}{3}$.
  2. $\frac{x^3}{3}\ln x - \int\frac{x^2}{3}\,dx = \frac{x^3}{3}\ln x - \frac{x^3}{9} + C$.

Repeated parts: the tabular method. For a polynomial times $e^x$, sin x or cos x: list derivatives of the polynomial in one column (down to 0) and integrals of the other factor in the next; multiply diagonally with alternating signs +, −, +.

Worked example

$\int x^2\sin x\,dx$.

  1. Derivatives: x², 2x, 2, 0. Integrals: −cos x, −sin x, cos x.
  2. $-x^2\cos x + 2x\sin x + 2\cos x + C$.

The "loop": when parts brings back the original integral, solve for it.

Worked example

$I = \int e^x\sin x\,dx$.

  1. u = sin x, dv = $e^x$dx: $I = e^x\sin x - \int e^x\cos x\,dx$.
  2. Again (u = cos x): $\int e^x\cos x\,dx = e^x\cos x + \int e^x\sin x\,dx$.
  3. $I = e^x\sin x - e^x\cos x - I$.
  4. $I = \frac{e^x(\sin x - \cos x)}{2} + C$.

Definite integrals: $\int_a^b u\,dv = \left[uv\right]_a^b - \int_a^b v\,du$.

Worked example

$\int_0^1 xe^{2x}\,dx$.

  1. u = x, v = $\frac{1}{2}e^{2x}$.
  2. $\left[\frac{x}{2}e^{2x}\right]_0^1 - \int_0^1\frac{1}{2}e^{2x}\,dx = \frac{e^2}{2} - \left[\frac{1}{4}e^{2x}\right]_0^1$.
  3. $= \frac{e^2}{2} - \frac{e^2}{4} + \frac{1}{4} = \frac{e^2 + 1}{4} \approx 2.097$.

With a table of values (a frequent exam form): find $\int_0^2 xf'(x)\,dx$ given f(2) = 5 and $\int_0^2 f(x)\,dx = 7$.

  1. u = x, dv = f′(x)dx; v = f(x).
  2. $\left[xf(x)\right]_0^2 - \int_0^2 f(x)\,dx = 2(5) - 0 - 7 = 3$.

Inverse trigonometric: $\int\arctan x\,dx = x\arctan x - \frac{1}{2}\ln(1 + x^2) + C$ (u = arctan x, dv = dx).

Parts or substitution? A function and its derivative together suggest substitution ($\int xe^{x^2}dx$). A product of two unrelated kinds of function suggests parts ($\int xe^x dx$).

Check: differentiate the result.

Common mistakes

  • Choosing u so that the new integral is harder.
  • Dropping the minus sign before $\int v\,du$.
  • Forgetting to evaluate uv at both limits.
  • Sign slips in the tabular method.
  • Omitting + C.
Check yourself

For the integral of x cos(x) dx, the best choice for integration by parts is:

  • u = x and dv = cos(x) dx

  • u = cos(x) and dv = x dx

  • u = x cos(x) and dv = dx

  • Substitution with u = cos(x)

Show the answer

u = x and dv = cos(x) dx

Differentiating x gives 1, which leaves a simple integral of sin(x).

6For top marks

  • Write $u$, $du$, $dv$, $v$ explicitly before using the formula.
  • If the new integral is harder than the original, swap your choice of $u$ and $dv$.
  • Use substitution first if it works; parts is for products of different types of function.
  • Watch signs: the minus in front of $\int v\,du$ applies to the whole integral.
  • Differentiate your answer to check it.
Example

"With $u = \arctan x$ and $dv = dx$: $\int \arctan x\,dx = x\arctan x - \int \frac{x}{1 + x^2}dx = x\arctan x - \frac{1}{2}\ln(1 + x^2) + C$."

Check yourself

A student chooses u = eˣ and dv = x dx for ∫ x eˣ dx. What happens?

  • The answer is the same with fewer steps

  • The new integral ∫ (x²/2) eˣ dx is harder

  • The integral becomes zero

  • It works just as well

Show the answer

The new integral ∫ (x²/2) eˣ dx is harder

The power of x goes up instead of down.

Now test yourself

This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.

Practise in Impera