Kim’s Math NotesCourse index

Integrating Using Substitution

When I substitute u in a definite integral, what happens to the limits?

Integrate a composite by substitution: u= the inside first, du with the missing constant fixed, back to x, and new ends for a definite integral.

Old ends, or no du

Common mistake Keep the old ends 1 and e after u=lnx; or write du with no 1x.

Correction New ends u=0 to 1, and du=1xdx.

Inside a function: pick u

Same integral, pieces moved around: cosine of x squared, times two x d x. When you integrate, look first for a function inside a function: inside parentheses, in an exponent, under a root. Here, x squared sits inside the cosine. So let u equal x squared. Now take the differential of both sides: d u equals d of x squared, which is two x d x.

So where did the two x go? Look up top. Two x d x is exactly d u. So the whole integral turns into the integral of cosine u, d u: sine u, plus C. Put x squared back in for u: sine of x squared, plus C.

Watch this part of the concept lesson

Read the rest of this scene

Check by differentiating. The chain rule gives cosine of x squared, times two x. Exactly what we started with. That's the chain rule run backward, and it has a name: u-substitution.

Short a constant: fix it

Next, try e to the x squared, times x d x. The inside is x squared, up in the exponent. Let u equal x squared, so d u equals two x d x. But up top we have only x d x. A two is missing.

No problem. Divide both sides by two: x d x equals one half d u.

Watch this part of the concept lesson

Read the rest of this scene

Swap it in: the integral of e to the u, times one half d u. That's one half e to the u, plus C. Then put x squared back in for u: one half e to the x squared, plus C. Even a simple inside counts. In cosine of three x, the inside is three x.

Let u equal three x. d u equals three d x, so d x equals one third d u. One third sine u, plus C, so one third sine three x, plus C. You don't need a separate formula for that one third. Substitution makes it for you.

Top = derivative of bottom: ln

Now a fraction: two x over x squared plus five. No function sits inside another one here. So the next thing to try: let u be the bottom. u equals x squared plus five. d u equals two x d x, and that's exactly the top.

So we get the integral of d u over u: the natural log of the absolute value of u, plus C.

Watch this part of the concept lesson

Read the rest of this scene

Back to x: the log of x squared plus five, plus C. That's always positive, so no bars needed. So whenever the top is the derivative of the bottom, the integral is the log of the absolute value of the bottom, plus C.

An extra x left over

One more: x times the square root of x minus one. The inside is under the root. Let u equal x minus one, so d u equals d x. But there's still an x out front. Don't panic. Solve u equals x minus one for x: x equals u plus one.

Now everything is in u: u plus one, times u to the one half.

Watch this part of the concept lesson

Read the rest of this scene

Multiply it out: u to the three halves, plus u to the one half. Power rule on each term gives two fifths u to the five halves, plus two thirds u to the three halves, plus C. Put x minus one back in for u, and that's the answer. Differentiate it if you want to check.

Definite integral: change the ends

Now a definite integral: from zero to one, two x times x squared plus one, cubed. The inside is x squared plus one. So u equals x squared plus one, and d u equals two x d x. Stop before you write the new integral. The zero and the one are values of x, not u.

So change the ends too. When x is zero, u is one. When x is one, u is two. So the integral equals the integral from one to two of u cubed, d u: u to the fourth over four, from one to two. Sixteen fourths minus one fourth: fifteen fourths.

Watch this part of the concept lesson

Read the rest of this scene

Two ways work. With new ends, stay in u all the way. Or go back to x first, and use the old ends. Just never mix them: u with the old ends is a false equals sign.

Example 1: change the ends

Example one, A. P. style. Find the integral from one to e of natural log x, squared, over x. There are four choices. The plan: find the inside, pick u, then change the ends. Natural log x sits inside the square.

And its derivative, one over x, is right there in the fraction. So u equals natural log x, and d u equals one over x, d x. New ends: when x is one, u is log one, zero. When x is e, u is log e, one. Now it's the integral from zero to one of u squared: u cubed over three, from zero to one. One third.

So the answer is A. Problem four in your workbook changes the ends, too.

Watch this part of the concept lesson

Read the rest of this scene

Try it before the solution.

Common mistake: old ends on u

Here's the mistake that choice B is waiting for. Switch to u, but keep the ends one and e. Plug them into u cubed over three, and you get e cubed minus one, over three. That's choice B. The fix: u gets u's ends, zero and one.

New variable, new ends.

Watch this part of the concept lesson

Example 2: a basic rule in disguise

Example two. Find the integral of e to the x, over one plus e to the two x. The plan: try the bottom as u first. If it fails, look for an inside. If u is one plus e to the two x, then d u needs two e to the two x on top.

We only have e to the x. Dead end.

Watch this part of the concept lesson

Read the rest of this scene

Now an exponent fact: e to the two x is e to the x, squared. There's the inside. Let u equal e to the x. Then d u equals e to the x d x: exactly the top. So we get the integral of d u over one plus u squared.

That's a basic rule: arctangent u, plus C. Back to x: arctangent of e to the x, plus C. So when setting u equal to the whole bottom fails, look for one plus something squared.

Example 3: no formula, only a table

Example three. There's no formula for f, only a table: values of f at zero, one, two, and seven. Find the integral from zero to two of f prime of three x plus one. The plan: the inside is three x plus one, so substitute. Then change the ends, and read the table. Let u equal three x plus one.

d u equals three d x, so d x equals one third d u.

Watch this part of the concept lesson

Read the rest of this scene

New ends: x equals zero gives u equals one. x equals two gives u equals seven. So we have one third times the integral from one to seven of f prime of u. The integral of f prime is f, so that's one third times f of seven minus f of one. From the table: f of seven is negative one, and f of one is five.

One third of negative one minus five: one third of negative six, negative two. And that's why zero and two are in the table too: use the old ends, and you'd get one third of six minus three, which is one. Wrong. Problem six in your workbook gives you a table, too. Change the ends before you read it.

Worked examples

Example 1

∫1e(lnx)2xdx is
  1. 13
  2. e3−13
  3. e3
  4. 1
Hint

Plan: u=lnx; change the ends

Answer and solution

Answer A. 13

  1. u=lnx,du=1xdx
  2. Ends: x=1 gives u=0; x=e gives u=1.
  3. ∫01u2du=[u33]01=13
  4. So (A).

Example 2

Find ∫ex1+e2xdx.
Hint

Plan: e2x=(ex)2 → u=ex

Answer and solution

Answer arctan(ex)+C

  1. u=ex,du=exdx
  2. ∫11+u2du=arctanu+C=arctan(ex)+C

Example 3

f is differentiable, and f′ is continuous. The table gives values of f.
Find ∫02f′(3x+1)dx.
x0127
f(x)356-1
Hint

Plan: u= inside, new ends, f′→f

Answer and solution

Answer −2

  1. u=3x+1,du=3dx→dx=13du
  2. Ends: x=0 gives u=1; x=2 gives u=7.
  3. 13∫17f′(u)du=13(f(7)−f(1))=13(−1−5)=−2
  4. Not f(2)−f(0): the new ends pick the values.

Workbook

Problem 2

∫cos(4x)dx=
  1. 14sin(4x)+C
  2. 4sin(4x)+C
  3. −14sin(4x)+C
  4. sin(4x)+C
Hint

u=4x, so dx=14du.

Answer and solution

Answer A. 14sin(4x)+C

  1. u=4x,du=4dx→dx=14du
  2. 14∫cosudu=14sin(4x)+C
  3. Answer A. ((B) multiplies by 4, as when differentiating; (D) forgets the constant.)

Common mistake Multiplying by 4 instead of dividing.

Watch the worked solution to Problem 2

Problem 4

∫0π4sec2xtanxdx=
  1. 12
  2. 1
  3. π8
  4. π232
Hint

u=tanx, du=sec2xdx. Change the ends.

Answer and solution

Answer A. 12

  1. u=tanx,du=sec2xdx
  2. Ends: x=0→u=0, x=π4→u=1.
  3. ∫01udu=[u22]01=12
  4. Answer A.

Common mistake Keeping the ends 0 and pi/4 after substituting.

Watch the worked solution to Problem 4

Problem 5

A function f has f′(x)=xx2+16 and f(0)=2.
  1. Find ∫xx2+16dx.
  2. Find f(3).
Hint

u=x2+16. Then f(3)=f(0)+∫03f′(x)dx.

Answer and solution
  1. x2+16+C
  2. 3
  1. u=x2+16,xdx=12du→12∫u−12du=x2+16+C
  2. f(3)=2+[x2+16]03=2+5−4=3

Common mistake Using f(3) = the antiderivative alone, without f(0).

Watch the worked solution to Problem 5

Problem 6

f is differentiable, and f′ is continuous. Selected values of f are in the table. ∫01f′(2x+1)dx=
x0123
f(x)52610
  1. 4
  2. 8
  3. −32
  4. 5
Hint

Let u=2x+1, so dx=12du. Change the ends first: x=0→u=1, x=1→u=3.

Answer and solution

Answer A. 4

  1. u=2x+1,du=2dx,x=0→u=1,x=1→u=3
  2. ∫01f′(2x+1)dx=12∫13f′(u)du=12(f(3)−f(1))
  3. 12(10−2)=4. Answer A.

Common mistake Keeping the old ends 0 and 1, or forgetting the 1/2.

Watch the worked solution to Problem 6

Problem 7

Find ∫cosx1+sin2xdx.
Hint

u=sinx: the bottom becomes 1+u2.

Answer and solution

Answer arctan(sinx)+C

  1. u=sinx,du=cosxdx
  2. ∫du1+u2=arctanu+C
  3. =arctan(sinx)+C

Common mistake Answering ln(1 + sin^2 x).

Watch the worked solution to Problem 7