← Return to lesson

Class materials · 6.9

Integrating Using Substitution

Lecture transcript

0:00

Here's an integral: two x times cosine of x squared, d x. Check the basic rules from last time. None of them fits this. But someone built this with the chain rule. So here's today's question: can we undo the chain rule? Yes. You'll learn how to pick u on the first line, and why, on a definite integral, you change the ends too. Same integral, pieces moved around: cosine of x squared, times two x d x.

0:34

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.

1:06

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. 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. Next, try e to the x squared, times x d x.

1:38

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. 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.

2:14

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. Now a fraction: two x over x squared plus five.

2:47

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. Back to x: the log of x squared plus five, plus C. That's always positive, so no bars needed.

3:18

So whenever the top is the derivative of the bottom, the integral is the log of the absolute value of the bottom, plus C. 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.

3:51

Now everything is in u: u plus one, times u to the one half. 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. Now a definite integral: from zero to one, two x times x squared plus one, cubed.

4:24

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.

4:59

Sixteen fourths minus one fourth: fifteen fourths. 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 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.

5:33

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.

6:06

So the answer is A. Problem four in your workbook changes the ends, too. Try it before the solution. 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.

6:38

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. Now an exponent fact: e to the two x is e to the x, squared.

7:08

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.

7:39

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.

8:11

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.

8:44

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. So, back to today's question. Can we undo the chain rule? Yes. Look first for a function inside a function, and make the inside u. If the top is the derivative of the bottom, let u be the bottom, and you get a log.

9:18

And on a definite integral, change the ends. Never mix u with the old ends. But sometimes no inside fits, and the fraction just sits there. Next time, a little algebra first: six point ten.