u-Substitution

This placeholder page contains a straightforward summary of how to do u-substitution to evaluate an integral, along with examples, and then free problems for you to practice, each with a complete solution one click away.

MATHENO ESSENTIALS: u-Substitution

I. u-Substitution in Indefinite Integrals

If you were asked to evaluate the integral 𝑒 𝑑 , you would probably guess that the answer is 𝑒𝑑=𝑒+𝐶 no matter what exactly is in the box. You would be correct!

Similarly, these integrals are all correct:

cos()𝑑=sin()+𝐶sin()𝑑=cos()+𝐶()2𝑑=13()3+𝐶

What's crucial in each instance above is that the is identical in both the function you're integrating (𝑒, or cos(), ...) and the 𝑑 .

For instance, this is correct:

𝑒5𝑥𝑑(5𝑥)=𝑒5𝑥+𝐶

By constrast, if we have 𝑑(𝑥) instead of 𝑑(5𝑥), then we don't immediately know the integral:

𝑒5𝑥𝑑𝑥𝑒5𝑥+𝐶

We can check that the result on the right-hand side of the equation isn't correct because if we take its derivative, the Chain rule gives us an extra factor of 5, and so we we don't get back the integrand:

𝑑𝑑𝑥(𝑒5𝑥+𝐶)=𝑒5𝑥5+0𝑒5𝑥

We can, however, turn the integral 𝑒5𝑥𝑑𝑥 into one we can evaluate easily by making what's known as a u-substitution. The process essentially consists of guessing—yes, guessing—what would be a useful variable to integrate with respect to, and then convert the integral you have into one that's entirely in terms of that variable.

We know that probably sounds abstract. As usual, it's easiest (and best) to show you how it works by working through a few examples, and then you can work through many problems to try it out for yourself. We promise that with just a little practice, you'll get good at turning the integrals you're given into ones you already know how to evaluate.

The following example illustrates.


Example 1

Find 𝑒5𝑥 𝑑𝑥.

Solution.

You might think, "I know that 𝑒𝑢 𝑑𝑢 =𝑒𝑢 +𝐶," so let's try 𝑢 =5𝑥 and see what happens.

𝑢=5𝑥

Then

𝑑𝑢=5𝑑𝑥𝑑𝑥=15𝑑𝑢

Now let's make those substitutions into the integral:

𝑒(𝑢5𝑥)15𝑑𝑢𝑑𝑥=𝑒𝑢(15𝑑𝑢)=15𝑒𝑢𝑑𝑢 Ah, magic: we know that integral! 𝑒(𝑢5𝑥)15𝑑𝑢𝑑𝑥=15𝑒𝑢+𝐶=15𝑒5𝑥+𝐶

Notice that in the last line we merely substituted back 5𝑥 =𝑢 : since the original problem was in terms of 𝑥, our final answer also needs to be in terms of 𝑥 instead of 𝑢.

Let's check that our answer is correct:

𝑑𝑑𝑥(15𝑒5𝑥+𝐶)=15𝑑𝑑𝑥(𝑒5𝑥)+0=15(𝑒5𝑥5)=𝑒5𝑥

FAQ
Why doesn't 15𝑒𝑢 𝑑𝑢 =15(𝑒𝑢+𝐶)? That is, why is your answer "+𝐶" instead of "+15𝐶"?

Answer: The constant +𝐶 is a placeholder for some constant, and we don't know or care what it is. By convention, we thus always write +𝐶 rather than +15𝐶, or 𝐶, or 2𝐶, or anything else.

End Example 1.


Let's consider another example.


Example 2

Find cos(𝑥2) 𝑥 𝑑𝑥.

Solution.

You might think, "I know that cos(𝑢) 𝑑𝑢 =sin(𝑢) +𝐶, so let's try 𝑢 =𝑥2 and see what happens." If you were thinking something similar, you're on the right track!

That is, let

𝑢=𝑥2

Then

𝑑𝑢=2𝑥𝑑𝑥𝑥𝑑𝑥=12𝑑𝑢

Note that it's fortunate that the original integrand has that "extra" 𝑥 in it: we need that 𝑥 in order to make the substitution 𝑥 𝑑𝑥 =12𝑑𝑢. In fact if that 𝑥 weren't there, we'd be stuck and couldn't proceed. (But then you wouldn't be given the integral cos(𝑥2) 𝑑𝑥, because we can't solve it with the tools we have. We need that "extra" 𝑥 there.)

Let's make the substitution 𝑢 =𝑥2 into our original integral and see what happens:

cos(𝑢𝑥2)(12𝑑𝑢𝑥𝑑𝑥)=cos(𝑢)(12𝑑𝑢)=12cos(𝑢)𝑑𝑢Ah, again we know that integral:  cos(𝑢𝑥2)(12𝑑𝑢𝑥𝑑𝑥)=12sin(𝑢)+𝐶=12sin(𝑥2)+𝐶

Again in the last step we substituted for 𝑢 in terms of 𝑥 (𝑢=𝑥2) so our final answer is in terms of 𝑥 instead of 𝑢.

Let's check that our answer is correct:

𝑑𝑑𝑥(12sin(𝑥2)+𝐶)=12𝑑𝑑𝑥sin(𝑥2)+0=12cos(𝑥2)𝑑𝑑𝑥(𝑥2)=12cos(𝑥2)(2𝑥)=cos(𝑥2)𝑥

End Example 2.


The upshot: As you can see, making a u-substitution can quickly turn an integral you don't immediately know into one that you do. To do so, guess what a good choice for 𝑢 is, and then see what happens.

II. u-Substitution in Definite Integrals

If you're given a definite integral (with limits of integration), then it's easiest to convert those 𝑥 values into their equivalent 𝑢 values and then complete the calculation in terms of 𝑢. The following example illustrates.


Example 3

Find 10𝑒5𝑥 𝑑𝑥.

Solution.

As in Example 1 above, let 𝑢 =5𝑥 :

𝑢=5𝑥𝑑𝑢=5𝑑𝑥𝑑𝑥=15𝑑𝑢

We must also convert the limits of integration to be in terms of 𝑢 :

𝑢=5𝑥When 𝑥=0:𝑢=5(0)=0When 𝑥=1:𝑢=5(1)=5

Now let's make those substitutions into the integral, simultaneously also changing the limits of integration:

10𝑒(𝑢5𝑥)15𝑑𝑢𝑑𝑥=50𝑒𝑢(15𝑑𝑢)=1550𝑒𝑢𝑑𝑢=15[𝑒𝑢]50=15[𝑒5𝑒0]=15[𝑒51]

As you can see, with this approach we don't have to convert anything back to 𝑥: once we make the u-substitution, we do all the rest in terms of 𝑢.

End Example 3.

There are many more example problems below so you can get the hang of how to do u-substititions.

Practice Problem #1
(a)
Find (5𝑥+27)98𝑑𝑥.
(b)
Find 10(5𝑥+27)98𝑑𝑥.
Practice Problem #2
Find sin(2𝑥2)𝑑𝑥.
Practice Problem #3
(a)
Find 3𝑥+2𝑑𝑥.
(b)
Find 313𝑥+2𝑑𝑥.
Practice Problem #4
Find 𝑑𝑥36𝑥5𝑑𝑥.
Practice Problem #5
Find sec2(𝑥5)𝑑𝑥.
Practice Problem #6
Find 𝑥(𝑥2+3)9𝑑𝑥.
Practice Problem #7
Find (𝑥32𝑥2)5(3𝑥24𝑥)𝑑𝑥.
Practice Problem #8
Find cos(𝑒𝑥)𝑒𝑥𝑑𝑥.
Practice Problem #9
Find sec(𝑒𝑥)tan(𝑒𝑥)𝑒𝑥𝑑𝑥.
Practice Problem #10
Find cos𝑥𝑥𝑑𝑥.
Practice Problem #11
Find sin𝑥cos𝑥𝑑𝑥.
Practice Problem #12
Find tan𝑥sec2𝑥𝑑𝑥.
Practice Problem #13
Find cot𝑥csc2𝑥𝑑𝑥.
Practice Problem #14
(a)
Find 𝑑𝑥𝑥(ln𝑥)2 𝑑𝑥.
(b)
Evaluate 𝑒2𝑒𝑑𝑥𝑥(ln𝑥)2𝑑𝑥.
Practice Problem #15
Find csc(𝜋𝑥)cot(𝜋𝑥) 𝑑𝑥.
Practice Problem #16
Evaluate 𝜋/40𝑒tan𝑥sec2𝑥𝑑𝑥.
Practice Problem #17
Evaluate 10𝑒𝑥+2𝑥𝑒𝑥+𝑥2𝑑𝑥.

Less clear u-substitutions

The first u-substitution problems you'll encounter will probably be like the ones above, where (with practice) you'll come to recognize what u should be to turn the integral into one you know how to evaluate. For example, all of the ones above where you end up with something like 𝑒𝑢 𝑑𝑢, cos(𝑢) 𝑑𝑢, and so forth.

In other problems, though, you'll look at the integral and think, "I don't recognize what to do here." That thought itself is a clue that you should try a u-substitution. Again, you have to just guess what u is, and then proceed and see what happens; if one approach doesn't work, make a different guess for what u is and then try again.

The following problems illustrate.

Practice Problem #18
Find 𝑥𝑥3𝑑𝑥.
Practice Problem #19
Find 𝑥𝑥+5𝑑𝑥.
Practice Problem #20
Find 3(𝑥32)1/4𝑥5𝑑𝑥.
Practice Problem #21
Find 1+𝑥𝑑𝑥.
Practice Problem #22
If 𝑓 is continuous and 30𝑓(𝑥)𝑑𝑥=5, find 10𝑓(3𝑥)𝑑𝑥.
Practice Problem #23
If 𝑓 is continuous and 251𝑓(𝑥)𝑑𝑥=9, find 51𝑥𝑓(𝑥2)𝑑𝑥.
  • What questions do you have about the solutions above?
  • Which ones are giving you the most trouble?
  • What other integration problems are you trying to work through for your class?

If you post on our Forum, we'll do our best to help!