Math Core

Lesson 2.1 · Advanced Integration

Integration review

Integration by parts, partial fractions and improper integrals all end the same way: you reduce a hard integral to one you already know how to do. So before you learn the new BC techniques, make sure the AB toolkit is fast and automatic. This lesson reviews the basic antiderivatives, uu-substitution, and two algebra moves (long division and completing the square) that turn unfamiliar integrands into familiar ones.

The basic antiderivatives

Every technique in this unit eventually hands you one of these. You should be able to write each one without thinking.

IntegrandAntiderivative
xnx^n, n≠−1n \ne -1xn+1n+1+C\dfrac{x^{n+1}}{n+1} + C
1x\dfrac{1}{x}ln⁡∣x∣+C\ln\lvert x\rvert + C
exe^xex+Ce^x + C
sin⁡x\sin x−cos⁡x+C-\cos x + C
cos⁡x\cos xsin⁡x+C\sin x + C
sec⁡2x\sec^2 xtan⁡x+C\tan x + C
sec⁡xtan⁡x\sec x \tan xsec⁡x+C\sec x + C
11+x2\dfrac{1}{1 + x^2}arctan⁡x+C\arctan x + C
11−x2\dfrac{1}{\sqrt{1 - x^2}}arcsin⁡x+C\arcsin x + C

When the inside is a linear expression ax+bax + b instead of plain xx, divide by aa: for example, ∫cos⁡(3x) dx=13sin⁡(3x)+C\displaystyle\int \cos(3x)\,dx = \tfrac{1}{3}\sin(3x) + C. You can always check an antiderivative by differentiating it.

u-substitution

Substitution undoes the chain rule. Look for an "inside" function whose derivative also appears (up to a constant factor) as a multiplier.

u-substitution

If u=g(x)u = g(x), then du=g′(x) dxdu = g'(x)\,dx and

∫f(g(x)) g′(x) dx=∫f(u) du.\int f\big(g(x)\big)\,g'(x)\,dx = \int f(u)\,du.

For a definite integral, change the limits too: ∫abf(g(x)) g′(x) dx=∫g(a)g(b)f(u) du\displaystyle\int_a^b f\big(g(x)\big)\,g'(x)\,dx = \int_{g(a)}^{g(b)} f(u)\,du.

Changing the limits means you never have to go back to xx. If you prefer to keep the xx-limits, you must rewrite the antiderivative in terms of xx before you plug in.

Worked example: A basic substitution

Find ∫x ex2 dx\displaystyle\int x\,e^{x^2}\,dx.

Let u=x2u = x^2, so du=2x dxdu = 2x\,dx and x dx=12 dux\,dx = \tfrac{1}{2}\,du.

∫x ex2 dx=12∫eu du=12eu+C=12ex2+C.\int x\,e^{x^2}\,dx = \frac{1}{2}\int e^u\,du = \frac{1}{2}e^u + C = \frac{1}{2}e^{x^2} + C.

Check: ddx(12ex2)=12ex2⋅2x=x ex2\dfrac{d}{dx}\left(\tfrac{1}{2}e^{x^2}\right) = \tfrac{1}{2}e^{x^2}\cdot 2x = x\,e^{x^2}.

Worked example: A definite integral with new limits

Evaluate ∫01xx2+1 dx\displaystyle\int_0^1 \frac{x}{x^2 + 1}\,dx.

Let u=x2+1u = x^2 + 1, so du=2x dxdu = 2x\,dx. When x=0x = 0, u=1u = 1; when x=1x = 1, u=2u = 2.

∫01xx2+1 dx=12∫12duu=12[ln⁡u]12=12(ln⁡2−0)=ln⁡22.\int_0^1 \frac{x}{x^2 + 1}\,dx = \frac{1}{2}\int_1^2 \frac{du}{u} = \frac{1}{2}\Big[\ln u\Big]_1^2 = \frac{1}{2}(\ln 2 - 0) = \frac{\ln 2}{2}.

Common mistake

When you substitute in a definite integral, either change the limits to uu-values or switch back to xx before evaluating. Plugging the original xx-limits into an antiderivative written in uu is the most common substitution error on the AP exam.

Long division for improper fractions

A rational function p(x)q(x)\dfrac{p(x)}{q(x)} is improper when the degree of the numerator is at least the degree of the denominator. Divide first. The quotient is a polynomial (easy to integrate) and the remainder is a proper fraction.

Worked example: Divide, then integrate

Find ∫x2+1x+1 dx\displaystyle\int \frac{x^2 + 1}{x + 1}\,dx.

Divide: x2+1=(x−1)(x+1)+2x^2 + 1 = (x - 1)(x + 1) + 2, so

x2+1x+1=x−1+2x+1.\frac{x^2 + 1}{x + 1} = x - 1 + \frac{2}{x + 1}.

Now integrate term by term:

∫(x−1+2x+1)dx=x22−x+2ln⁡∣x+1∣+C.\int \left(x - 1 + \frac{2}{x + 1}\right)dx = \frac{x^2}{2} - x + 2\ln\lvert x + 1\rvert + C.

You'll use this same first step in the partial fractions lesson whenever the fraction is improper.

Completing the square

A quadratic denominator that doesn't factor over the real numbers often leads to arctangent. Complete the square to get the form u2+a2u^2 + a^2, then use

∫duu2+a2=1aarctan⁡(ua)+C.\int \frac{du}{u^2 + a^2} = \frac{1}{a}\arctan\left(\frac{u}{a}\right) + C.

Worked example: An arctangent integral

Find ∫dxx2+4x+5\displaystyle\int \frac{dx}{x^2 + 4x + 5}.

Complete the square: x2+4x+5=(x2+4x+4)+1=(x+2)2+1x^2 + 4x + 5 = (x^2 + 4x + 4) + 1 = (x + 2)^2 + 1. With u=x+2u = x + 2 and du=dxdu = dx,

∫dx(x+2)2+1=∫duu2+1=arctan⁡(x+2)+C.\int \frac{dx}{(x + 2)^2 + 1} = \int \frac{du}{u^2 + 1} = \arctan(x + 2) + C.

Choosing a method

Before you start any integral, take a few seconds to classify it:

  1. Is it a basic form, possibly after simplifying or splitting a fraction? Integrate directly.
  2. Is there an inside function with its derivative nearby? Use substitution.
  3. Is it a rational function with numerator degree at least denominator degree? Divide.
  4. Is the denominator an irreducible quadratic? Complete the square.
  5. Is it a product of two different kinds of functions, such as xexx e^x or xln⁡xx \ln x? That calls for integration by parts, the next lesson.
  6. Is it a proper fraction with a denominator that factors into distinct linear factors? That calls for partial fractions, coming up after that.

Tip

On multiple-choice questions you can often skip the integration entirely: differentiate each answer choice and see which one gives back the integrand.

Practice

Practice 1

∫cos⁡(3x) dx=\displaystyle\int \cos(3x)\,dx =

Practice 2

Evaluate ∫02(3x2−2x)dx\displaystyle\int_0^2 \left(3x^2 - 2x\right)dx.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

Evaluate ∫1eln⁡xx dx\displaystyle\int_1^e \frac{\ln x}{x}\,dx.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 4

Find the antiderivative F(x)F(x) of f(x)=2xx2+1f(x) = \dfrac{2x}{x^2 + 1} that satisfies F(0)=3F(0) = 3.

Enter an expression, e.g. 3x^2 - 2x + 1

Practice 5

Evaluate ∫0ln⁡2ex1+ex dx\displaystyle\int_0^{\ln 2} \frac{e^x}{1 + e^x}\,dx. Give an exact answer.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 6

∫x2x+1 dx=\displaystyle\int \frac{x^2}{x + 1}\,dx =

Practice 7

Evaluate ∫−10dxx2+2x+2\displaystyle\int_{-1}^{0} \frac{dx}{x^2 + 2x + 2}.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 8

Evaluate ∫0π/3sin⁡xcos⁡2x dx\displaystyle\int_0^{\pi/3} \frac{\sin x}{\cos^2 x}\,dx.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.