Back to homeMathematics · AP Calculus BC · Change subject
Start for free
Advanced Integration and Models (BC) · Integration Techniques (BC)

Integration by Parts and Partial Fractions

Practise this section (12)

It's the last practice AP Calculus BC exam of the year, and two integrals sit side by side: $\int 2x\,e^{x^2}\,dx$ and $\int x\,e^{x}\,dx$. They look like twins. The first one falls in ten seconds with a u-substitution. The second one doesn't: $u = x^2$ doesn't help, and neither does $u = e^x$. You need a new tool, and by the end of this page you'll know exactly when to use it.

Integration by Parts

Every differentiation rule has an integration twin. The chain rule gave you u-substitution. The product rule gives you integration by parts.

Start with the product rule for two differentiable functions $u(x)$ and $v(x)$:

$$\frac{d}{dx}\big[u\,v\big] = u\,v' + v\,u'.$$

Integrate both sides and rearrange: $\int u\,v'\,dx = uv - \int v\,u'\,dx$. Write $dv = v'\,dx$ and $du = u'\,dx$ and you get the formula in its usual form.

The idea is a trade. You swap the integral you can't do, $\int u\,dv$, for one that is hopefully easier, $\int v\,du$.

The picture below shows why the formula is true. The curve is drawn in the $uv$-plane. The two shaded regions fill the rectangle of area $uv$. The region to the left of the curve has area $\int u\,dv$, and the region under it has area $\int v\,du$. So $\int u\,dv = uv - \int v\,du$.

The rectangle of area uv, with a corner at (u, v), is split by the curve into two regions: the one on the left, ∫ u dv, and the one below, ∫ v du. Their areas add up to uv, hence ∫ u dv = uv − ∫ v du. ∫ u dv ∫ v du u v (u, v) u The rectangle of area uv, with a corner at (u, v), is split by the curve into two regions: the one on the left, ∫ u dv, and the one below, ∫ v du. Their areas add up to uv, hence ∫ u dv = uv − ∫ v du.
Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★☆☆Not started
Use integration by parts with $u = x$ and $dv = e^{2x}\,dx$ to find $\int x e^{2x}\,dx$. Write out $du$ and $v$ before you apply the formula, and include $+C$ in your…

Use integration by parts with $u = x$ and $dv = e^{2x}\,dx$ to find $\int x e^{2x}\,dx$. Write out $du$ and $v$ before you apply the formula, and include $+C$ in your answer.

Solve

Choosing u and dv

The formula is easy. The skill is in the choice. Two goals guide you:

  1. $u$ should get simpler when you differentiate it.

  2. $dv$ must be something you can integrate.

A reliable guide is the LIATE order. Pick $u$ as the factor that comes first in this list:

The LIATE order: logarithmic (ln x), inverse trig (arctan x), algebraic (x, x², √x), trig (sin x, cos x), exponential (eˣ). The higher on the list, the better the choice for u; the lower, the better for dv. L Logarithmic: ln x I Inverse trig: arctan x A Algebraic: x, x², √x T Trig: sin x, cos x E Exponential: eˣ u dv Higher on the list: better choice for u The LIATE order: logarithmic (ln x), inverse trig (arctan x), algebraic (x, x², √x), trig (sin x, cos x), exponential (eˣ). The higher on the list, the better the choice for u; the lower, the better for dv.

Why does this work? Logs and inverse trig functions have simple derivatives but awkward antiderivatives, so they make good $u$'s. Exponentials and sines and cosines integrate over and over without getting worse, so they make good $dv$'s. Powers of $x$ shrink when you differentiate them.

The same trick, $dv = dx$, is what you need when the integrand is a lone logarithm like $\ln x$.

Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★☆☆Not started
Evaluate $\int \ln x \, dx$ using integration by parts. State which factor you choose as $u$ and which as $dv$. Explain in one sentence why $dv = dx$ is a natural choice…

Evaluate $\int \ln x \, dx$ using integration by parts. State which factor you choose as $u$ and which as $dv$. Explain in one sentence why $dv = dx$ is a natural choice here.

Solve
Practice★★☆Not started
Evaluate $\int_1^e x\ln x\,dx$. Choose $u$ and $dv$ so that the new integral is simpler than the original, and give your answer in exact form.

Evaluate $\int_1^e x\ln x\,dx$. Choose $u$ and $dv$ so that the new integral is simpler than the original, and give your answer in exact form.

Solve

Repeated Parts and the Tabular Method

Sometimes one round isn't enough. In $\int x^2\cos x\,dx$, parts lowers the power of $x$ from 2 to 1, and then you need parts again.

When one factor is a polynomial and the other can be integrated repeatedly, there's a shortcut called the tabular method. Make two columns. In the left column, differentiate the polynomial until you reach $0$. In the right column, integrate the other factor the same number of times. Then multiply along the diagonals, with signs that alternate starting with $+$.

Table for the tabular method for ∫ x³ e²ˣ dx: x³ is differentiated down to 0 ("Differentiate" column) and e²ˣ is integrated as many times ("Integrate" column). Each derivative is multiplied by the antiderivative in the next row, with signs +, −, +, −. Differentiate Integrate x³ 3x² 6x 6 0 e²ˣ e²ˣ/2 e²ˣ/4 e²ˣ/8 e²ˣ/16 + − + − Table for the tabular method for ∫ x³ e²ˣ dx: x³ is differentiated down to 0 ("Differentiate" column) and e²ˣ is integrated as many times ("Integrate" column). Each derivative is multiplied by the antiderivative in the next row, with signs +, −, +, −.

For a definite integral, use the same table, then put the limits into the whole antiderivative.

Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★★☆Not started
Find $\int x^2 e^x\,dx$ by applying integration by parts twice. Then differentiate your answer to check that you get back $x^2e^x$.

Find $\int x^2 e^x\,dx$ by applying integration by parts twice. Then differentiate your answer to check that you get back $x^2e^x$.

Solve
Practice★★☆Not started
Use the tabular method (repeated differentiation of $x^2$ and repeated integration of $\sin x$) to evaluate $\int_0^{\pi} x^2\sin x\,dx$. Display your table with the…

Use the tabular method (repeated differentiation of $x^2$ and repeated integration of $\sin x$) to evaluate $\int_0^{\pi} x^2\sin x\,dx$. Display your table with the alternating signs.

Solve

When the Integral Comes Back

Now consider $\int e^x\cos x\,dx$. Neither factor ever becomes simpler: $e^x$ stays $e^x$, and $\cos x$ cycles through $\sin x, -\cos x, \ldots$. Nothing ever hits $0$. What happens is that, after two rounds of parts, the original integral comes back. Then you solve for it, like an equation.

Each round of integration by parts transforms I = ∫ eˣ cos x dx: the first gives eˣ cos x + ∫ eˣ sin x dx and the second brings the original integral back with a minus sign (… − I), which lets us solve for it. I = ∫ eˣ cos x dx I = eˣ cos x + ∫ eˣ sin x dx I = eˣ cos x + eˣ sin x − I parts #1 parts #2 Original integral is back, with a minus Each round of integration by parts transforms I = ∫ eˣ cos x dx: the first gives eˣ cos x + ∫ eˣ sin x dx and the second brings the original integral back with a minus sign (… − I), which lets us solve for it.
Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★★★Not started
Let $I = \int e^x \sin x\,dx$. (a) Apply integration by parts twice and show that the original integral reappears. Solve algebraically for $I$. (b) Use your result to…

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

(a) Apply integration by parts twice and show that the original integral reappears. Solve algebraically for $I$.

(b) Use your result to evaluate $\int_0^{\pi} e^x\sin x\,dx$.

(c) Explain why it does not matter which factor you choose as $u$, as long as you make the same type of choice in both applications.

Solve

Partial Fractions

A different kind of integral: $\int \dfrac{x+5}{(x-3)(x+1)}\,dx$. Parts doesn't help here, and neither does a u-substitution. But if you could write the fraction as a sum of two simple fractions, each would integrate to a logarithm. That's what partial fractions does. Slide $a$ and $b$ until the orange curve covers the blue one.

You just found the partial fraction decomposition. Here is how to find it without sliders.

If the numerator's degree is greater than or equal to the denominator's, divide first (polynomial long division). Then decompose the remainder fraction.

The reason this works: adding $\tfrac{A}{x-a} + \tfrac{B}{x-b}$ puts everything over the common denominator $(x-a)(x-b)$, so the decomposition is just that addition run in reverse.

Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★☆☆Not started
Find constants $A$ and $B$ such that $$\frac{1}{(x-1)(x+3)} = \frac{A}{x-1} + \frac{B}{x+3}.$$ Then use your result to evaluate $\int \frac{1}{(x-1)(x+3)}\,dx$ for…

Find constants $A$ and $B$ such that

$$\frac{1}{(x-1)(x+3)} = \frac{A}{x-1} + \frac{B}{x+3}.$$

Then use your result to evaluate $\int \frac{1}{(x-1)(x+3)}\,dx$ for $x > 1$.

Solve
Practice★★☆Not started
Use partial fractions to find $\int \dfrac{5x+1}{(x-1)(x+2)}\,dx$ for $x > 1$. Show the system or the substitutions you use to find the constants, and write the final…

Use partial fractions to find $\int \dfrac{5x+1}{(x-1)(x+2)}\,dx$ for $x > 1$. Show the system or the substitutions you use to find the constants, and write the final answer using natural logarithms.

Solve
Practice★★★Not started
Consider $\int_0^1 \dfrac{x+4}{(x+1)(x+2)}\,dx$. (a) Explain why a single u-substitution does not work directly on this integral. (b) Evaluate the integral using partial…

Consider $\int_0^1 \dfrac{x+4}{(x+1)(x+2)}\,dx$.

(a) Explain why a single u-substitution does not work directly on this integral.

(b) Evaluate the integral using partial fractions and write the result in the form $a\ln 2 + b\ln 3$.

Solve

Choosing the Right Technique

Now you have three tools, and the hardest part is picking one. Look for these clues in the integrand:

Decision table matching each clue in the integrand with its technique: g(x) and g′(x) → u-substitution; product or ln x → parts; rational with a factorable denominator → partial fractions; product after u-sub → u-sub, then parts. g(x) and g′(x) both appear Product: x·eˣ, x·sin x, ln x Rational, denominator factors u-sub leaves a product u-substitution Parts Partial fractions u-sub, then parts Decision table matching each clue in the integrand with its technique: g(x) and g′(x) → u-substitution; product or ln x → parts; rational with a factorable denominator → partial fractions; product after u-sub → u-sub, then parts.

Always try u-substitution first, since it's the quickest. If the integrand has a function and its derivative (up to a constant), substitute. Even a rational function like $\dfrac{2x}{x^2+1}$ is a u-substitution because the numerator is the derivative of the denominator.

Parts in motion problems

Calculus applications use the same ideas. If a particle has velocity $v(t)$, then displacement on $[a,b]$ is $\int_a^b v(t)\,dt$. Total distance is $\int_a^b |v(t)|\,dt$. Average velocity is $\dfrac{1}{b-a}\int_a^b v(t)\,dt$.

Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★☆☆Not started
For each integral, name the most efficient technique (u-substitution, integration by parts, or partial fractions) and give a one-sentence reason. You do not need to…

For each integral, name the most efficient technique (u-substitution, integration by parts, or partial fractions) and give a one-sentence reason. You do not need to evaluate them.

(a) $\int x\cos x\,dx$ (b) $\int \dfrac{2x}{x^2+1}\,dx$ (c) $\int \dfrac{5}{(x-2)(x+1)}\,dx$ (d) $\int x e^{x^2}\,dx$

Solve
Practice★★★Not started
Evaluate $\int x^3 e^{x^2}\,dx$. Begin with a u-substitution and then use integration by parts. Describe in one or two sentences why neither technique alone is enough.…

Evaluate $\int x^3 e^{x^2}\,dx$. Begin with a u-substitution and then use integration by parts. Describe in one or two sentences why neither technique alone is enough. Check your answer by differentiating.

Solve
Practice★★★Not started
A particle moves along the $x$-axis with velocity $v(t) = t e^{-t/2}$ feet per second for $t \ge 0$ seconds. (a) Find the particle's displacement from $t=0$ to $t=4$ in…

A particle moves along the $x$-axis with velocity $v(t) = t e^{-t/2}$ feet per second for $t \ge 0$ seconds.

(a) Find the particle's displacement from $t=0$ to $t=4$ in exact form.

(b) Explain why the total distance traveled on $[0, 4]$ equals the displacement.

(c) Find the average velocity of the particle on $[0, 4]$.

Solve

Summary

  • Integration by parts: $\int u\,dv = uv - \int v\,du$, or with limits $\big[uv\big]_a^b - \int_a^b v\,du$. Differentiate $u$, integrate $dv$.

  • Choose $u$ by LIATE (log, inverse trig, algebraic, trig, exponential). Use $dv = dx$ for a lone $\ln x$ or $\arctan x$.

  • Repeated parts: use the tabular method when a polynomial reaches $0$. If the integral comes back (like $e^x\sin x$), solve for it, staying consistent with your choice of $u$.

  • Partial fractions: write $\tfrac{A}{x-a}+\tfrac{B}{x-b}$, clear denominators, find $A$ and $B$ by substituting roots, then integrate to $A\ln|x-a| + B\ln|x-b|$. Divide first if the degree of the numerator is at least the degree of the denominator.

  • Pick the technique: u-sub if $g'(x)$ is present, parts for products of different types, partial fractions for factorable rational functions. Some integrals need u-sub first and parts second.

Can't find your problem here?

The AI checks one of your exercises: paste the problem with your answer or take a photo of it.

See all the exercises in this section