Educerie

Educerie · AP · Calculus AB and BC

AP Calculus AB and BC 6.9

Integrating Using Substitution

How do we integrate a function that has another function inside it?

What you will learn

  • Understand substitution as the chain rule in reverse.
  • Know that a definite integral needs the limits changed to u-values or the antiderivative returned to x.
  • Understand that only a constant factor may be moved across du.

You must be able to

  1. Choose u and write du for an integral with an inner function.
  2. Adjust for a missing constant factor.
  3. Change the limits of a definite integral with u.
  4. Handle a leftover x by solving for it in terms of u.
  5. Check by differentiating.

In the exam. Section I multiple choice, Part A: an indefinite integral such as ∫xex2 dx\int x e^{x^2}\,dx or ∫12x+3 dx\int \frac{1}{2x + 3}\,dx, and definite integrals where the limits must change. Section II free response: an accumulated amount or area often needs a substitution when the rate has an inner function, and the no-calculator parts expect you to carry it out cleanly. A wrong limit after substituting is one of the most common slips.

1The method

Substitution = replacing u=g(x)u = g(x) and du=g′(x) dxdu = g'(x)\,dx so that the integral is in terms of uu alone.

  1. Choose uu. It is usually the inner function: the thing inside a power, a root, an exponent or a trig function, or the denominator.
  2. Differentiate: du=g′(x) dxdu = g'(x)\,dx.
  3. Rewrite the whole integral in uu and dudu. No xx may remain. If a constant factor is missing, adjust for it.
  4. Integrate with respect to uu.
  5. Return to xx. Replace uu by g(x)g(x) in the answer.
  6. Check by differentiating.

Example (invented): ∫2x(x2+1)4 dx\displaystyle\int 2x(x^2 + 1)^4\,dx.

  • u=x2+1u = x^2 + 1, so du=2x dxdu = 2x\,dx.
  • The integral becomes ∫u4 du=u55+C\int u^4\,du = \dfrac{u^5}{5} + C.
  • Back in xx: (x2+1)55+C\dfrac{(x^2 + 1)^5}{5} + C.

2When a constant is missing

Often the derivative of the inside function is there only up to a constant factor. Divide by that factor.

Example (invented): ∫xex2 dx\displaystyle\int x e^{x^2}\,dx.

  • u=x2u = x^2, so du=2x dxdu = 2x\,dx, and x dx=12 dux\,dx = \tfrac{1}{2}\,du.
  • ∫eu⋅12 du=12eu+C=12ex2+C\int e^{u}\cdot\tfrac{1}{2}\,du = \tfrac{1}{2}e^{u} + C = \tfrac{1}{2}e^{x^2} + C.

Example (invented): ∫xx2+1 dx\displaystyle\int \frac{x}{x^2 + 1}\,dx. With u=x2+1u = x^2 + 1, x dx=12 dux\,dx = \tfrac{1}{2}\,du, so the integral is 12∫1u du=12ln⁡∣u∣+C=12ln⁡(x2+1)+C\tfrac{1}{2}\int \tfrac{1}{u}\,du = \tfrac{1}{2}\ln\lvert u\rvert + C = \tfrac{1}{2}\ln(x^2 + 1) + C.

The missing factor must be a constant. If the leftover is a variable, the substitution has not worked, and a different uu or another method is needed.

3A linear inside function

When the inside function is ax+bax + b, the derivative is the constant aa. The answer is the basic antiderivative, divided by aa.

IntegralResult
∫(3x−1)5 dx\displaystyle\int (3x - 1)^5\,dx(3x−1)618+C\dfrac{(3x - 1)^6}{18} + C
∫cos⁡(2x) dx\displaystyle\int \cos(2x)\,dx12sin⁡(2x)+C\tfrac{1}{2}\sin(2x) + C
∫12x+3 dx\displaystyle\int \frac{1}{2x + 3}\,dx12ln⁡∣2x+3∣+C\tfrac{1}{2}\ln\lvert 2x + 3\rvert + C
∫e5x dx\displaystyle\int e^{5x}\,dx15e5x+C\tfrac{1}{5}e^{5x} + C

In the first row, u=3x−1u = 3x - 1 and du=3 dxdu = 3\,dx, so ∫u5⋅13 du=13⋅u66\int u^5 \cdot \tfrac{1}{3}\,du = \tfrac{1}{3}\cdot\tfrac{u^6}{6}.

You can do these in one step once you are confident, but write the substitution in a free-response answer so the reader sees the method.

4More patterns

These come up often enough to know.

  • A function and its derivative. ∫ln⁡xx dx\displaystyle\int \frac{\ln x}{x}\,dx: u=ln⁡xu = \ln x, du=1x dxdu = \tfrac{1}{x}\,dx, result 12(ln⁡x)2+C\tfrac{1}{2}(\ln x)^2 + C.
  • A trig power. ∫sin⁡xcos⁡2x dx\displaystyle\int \sin x\cos^2 x\,dx: u=cos⁡xu = \cos x, du=−sin⁡x dxdu = -\sin x\,dx, result −13cos⁡3x+C-\tfrac{1}{3}\cos^3 x + C.
  • Tangent. ∫tan⁡x dx=∫sin⁡xcos⁡x dx\displaystyle\int \tan x\,dx = \int \frac{\sin x}{\cos x}\,dx: u=cos⁡xu = \cos x, result −ln⁡∣cos⁡x∣+C-\ln\lvert\cos x\rvert + C.
  • A quotient with the inside function's derivative on top. ∫g′(x)g(x) dx=ln⁡∣g(x)∣+C\displaystyle\int \frac{g'(x)}{g(x)}\,dx = \ln\lvert g(x)\rvert + C.

Watch the sign of dudu when the derivative of the inside function is negative, as for cos⁡x\cos x.

5Definite integrals: change the limits

For a definite integral, there are two correct methods.

Method 1: change the limits to uu-values and never return to xx.

Method 2: find the antiderivative in xx (return to xx), then use the original xx limits.

A definite integral with uu in the integrand and xx limits is wrong. That mix is the most common error. The new limits work because u=g(x)u = g(x) moves from g(a)g(a) to g(b)g(b) as xx moves from aa to bb. The uu-integral then adds up the same strips over the matching stretch.

Example (invented): ∫02x(x2+1)3 dx\displaystyle\int_0^2 x(x^2 + 1)^3\,dx.

  • u=x2+1u = x^2 + 1, so x dx=12 dux\,dx = \tfrac{1}{2}\,du.
  • When x=0x = 0, u=1u = 1. When x=2x = 2, u=5u = 5.
  • The integral is 12∫15u3 du=12[u44]15=12⋅625−14=78\displaystyle\tfrac{1}{2}\int_1^5 u^3\,du = \tfrac{1}{2}\left[\frac{u^4}{4}\right]_1^5 = \tfrac{1}{2}\cdot\frac{625 - 1}{4} = 78.

With Method 2, the antiderivative is 18(x2+1)4\tfrac{1}{8}(x^2 + 1)^4, and 18(625)−18(1)=78\tfrac{1}{8}(625) - \tfrac{1}{8}(1) = 78. Same answer.

When the new limits are in reverse order, keep them: the integral then has a minus sign that comes out in the arithmetic.

Example (invented): ∫0π/2sin⁡xcos⁡2x dx\displaystyle\int_0^{\pi/2} \sin x\cos^2 x\,dx. With u=cos⁡xu = \cos x and du=−sin⁡x dxdu = -\sin x\,dx, x=0x = 0 gives u=1u = 1 and x=π2x = \tfrac{\pi}{2} gives u=0u = 0. So the integral is ∫10−u2 du=∫01u2 du=13\displaystyle\int_1^0 -u^2\,du = \int_0^1 u^2\,du = \tfrac{1}{3}.

6When xx does not cancel

Sometimes the integrand has a leftover xx that is not just a constant factor. If the substitution is linear, solve for xx in terms of uu.

Example (invented): ∫03xx+1 dx\displaystyle\int_0^3 x\sqrt{x + 1}\,dx.

  • u=x+1u = x + 1, so x=u−1x = u - 1 and dx=dudx = du. The limits become u=1u = 1 to u=4u = 4.
  • The integral is ∫14(u−1)u du=∫14(u3/2−u1/2)du\displaystyle\int_1^4 (u - 1)\sqrt{u}\,du = \int_1^4 \left(u^{3/2} - u^{1/2}\right)du.
  • That is [25u5/2−23u3/2]14=(645−163)−(25−23)=11615\left[\tfrac{2}{5}u^{5/2} - \tfrac{2}{3}u^{3/2}\right]_1^4 = \left(\tfrac{64}{5} - \tfrac{16}{3}\right) - \left(\tfrac{2}{5} - \tfrac{2}{3}\right) = \tfrac{116}{15}.

This is the "rearrangement into an equivalent form" idea the CED names: you rewrite the integrand so a basic rule fits.

7Substitution in a context

Rates often have an inner function, and the amount is the integral of the rate.

Example (invented): water flows into a tank at a rate r(t)=3tt2+16r(t) = 3t\sqrt{t^2 + 16} liters per minute, for 0≤t≤30 \le t \le 3. The amount that flows in is ∫033tt2+16 dt\int_0^3 3t\sqrt{t^2 + 16}\,dt.

  • u=t2+16u = t^2 + 16, so t dt=12 dut\,dt = \tfrac{1}{2}\,du. The limits become u=16u = 16 and u=25u = 25.
  • The integral is 32∫1625u1/2 du=32⋅23[u3/2]1625=125−64=61\tfrac{3}{2}\int_{16}^{25} u^{1/2}\,du = \tfrac{3}{2}\cdot\tfrac{2}{3}\left[u^{3/2}\right]_{16}^{25} = 125 - 64 = 61.

So 61 liters of water flow into the tank in the first 3 minutes. The unit is liters, the unit of the rate times minutes.

8Choosing uu

Try these in order.

  1. The inside of a power, root or exponent: x2+1x^2 + 1 in (x2+1)4(x^2 + 1)^4, or the exponent in ex2e^{x^2}.
  2. The inside of a trig function, or the denominator of a fraction.
  3. A function whose derivative also appears, perhaps up to a constant.

If your first choice leaves an xx you cannot remove, try another. After a few tries, if nothing works, the integral may need another method: rewriting first (6.10), or parts or partial fractions (6.11, 6.12, BC only).

Practice questions

30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.