Section 5.4 : More Substitution Rule
In order to allow these pages to be displayed on the web we’ve broken the substitution rule examples into two sections. The previous section contains the introduction to the substitution rule and some fairly basic examples. The examples in this section tend towards the slightly more difficult side. Also, we’ll not be putting quite as much explanation into the solutions here as we did in the previous section.
In the first couple of sets of problems in this section the difficulty is not with the actual integration itself, but with the set up for the integration. Most of the integrals are fairly simple and most of the substitutions are fairly simple. The problems arise in getting the integral set up properly for the substitution(s) to be done. Once you see how these are done it’s easy to see what you have to do, but the first time through these can cause problems if you aren’t on the lookout for potential problems.
- ∫e2t+sec(2t)tan(2t)dt
- ∫sin(t)(4cos3(t)+6cos2(t)−8)dt
- ∫xcos(x2+1)+xx2+1dx
This first integral has two terms in it and both will require the same substitution. This means that we won’t have to do anything special to the integral. One of the more common “mistakes” here is to break the integral up and do a separate substitution on each part. This isn’t really mistake but will definitely increase the amount of work we’ll need to do. So, since both terms in the integral use the same substitution we’ll just do everything as a single integral using the following substitution.
u=2tdu=2dt⇒dt=12duThe integral is then,
∫e2t+sec(2t)tan(2t)dt=12∫eu+sec(u)tan(u)du=12(eu+sec(u))+c=12(e2t+sec(2t))+cOften a substitution can be used multiple times in an integral so don’t get excited about that if it happens. Also note that since there was a 12 in front of the whole integral there must also be a 12 in front of the answer from the integral.
b ∫sin(t)(4cos3(t)+6cos2(t)−8)dt Show Solution
This integral is similar to the previous one, but it might not look like it at first glance. Here is the substitution for this problem,
u=cos(t)du=−sin(t)dt⇒sin(t)dt=−duWe’ll plug the substitution into the problem twice (since there are two cosines) and will only work because there is a sine multiplying everything. Without that sine in front we would not be able to use this substitution.
The integral in this case is,
∫sin(t)(4cos3(t)+6cos2(t)−8)dt=−∫4u3+6u2−8du=−(u4+2u3−8u)+c=−(cos4(t)+2cos3(t)−8cos(t))+cAgain, be careful with the minus sign in front of the whole integral.
c ∫xcos(x2+1)+xx2+1dx Show Solution
It should be fairly clear that each term in this integral will use the same substitution, but let’s rewrite things a little to make things really clear.
∫xcos(x2+1)+xx2+1dx=∫x(cos(x2+1)+1x2+1)dxSince each term had an x in it and we’ll need that for the differential we factored that out of both terms to get it into the front. This integral is now very similar to the previous one. Here’s the substitution.
u=x2+1du=2xdx⇒xdx=12duThe integral is,
∫xcos(x2+1)+xx2+1dx=12∫cos(u)+1udu=12(sin(u)+ln|u|)+c=12(sin(x2+1)+ln|x2+1|)+cSo, as we’ve seen in the previous set of examples sometimes we can use the same substitution more than once in an integral and doing so will simplify the work.
- ∫x2+e1−xdx
- ∫xcos(x2+1)+1x2+1dx
In this integral the first term does not need any substitution while the second term does need a substitution. So, to deal with that we’ll need to split the integral up as follows,
∫x2+e1−xdx=∫x2dx+∫e1−xdxThe substitution for the second integral is then,
u=1−xdu=−dx⇒dx=−duThe integral is,
∫x2+e1−xdx=∫x2dx−∫eudu=13x3−eu+c=13x3−e1−x+cBe careful with this kind of integral. One of the more common mistakes here is do the following “shortcut”.
∫x2+e1−xdx=−∫x2+euduIn other words, some students will try do the substitution just the second term without breaking up the integral. There are two issues with this. First, there is a “-” in front of the whole integral that shouldn’t be there. It should only be on the second term because that is the term getting the substitution. Secondly, and probably more importantly, there are x’s in the integral and we have a du for the differential. We can’t mix variables like this. When we do integrals all the variables in the integrand must match the variable in the differential.
b ∫xcos(x2+1)+1x2+1dx Show Solution
This integral looks very similar to Example 1c above, but it is different. In this integral we no longer have the x in the numerator of the second term and that means that the substitution we’ll use for the first term will no longer work for the second term. In fact, the second term doesn’t need a substitution at all since it is just an inverse tangent.
The substitution for the first term is then,
u=x2+1du=2xdx⇒xdx=12duNow let’s do the integral. Remember to first break it up into two terms before using the substitution.
∫xcos(x2+1)+1x2+1dx=∫xcos(x2+1)dx+∫1x2+1dx=12∫cos(u)du+∫1x2+1dx=12sin(u)+tan−1(x)+c=12sin(x2+1)+tan−1(x)+cIn this set of examples we saw that sometimes one (or potentially more than one) term in the integrand will not require a substitution. In these cases we’ll need to break up the integral into two integrals, one involving the terms that don’t need a substitution and another with the term(s) that do need a substitution.
- ∫e−z+sec2(z10)dz
- ∫sinw√1−2cosw+17w+2dw
- ∫10x+3x2+16dx
In this integral, unlike any integrals that we’ve yet done, there are two terms and each will require a different substitution. So, to do this integral we’ll first need to split up the integral as follows,
∫e−z+sec2(z10)dz=∫e−zdz+∫sec2(z10)dzHere are the substitutions for each integral.
u=−zdu=−dz⇒dz=−duv=z10dv=110dz⇒dz=10dvNotice that we used different letters for each substitution to avoid confusion when we go to plug back in for u and v.
Here is the integral.
∫e−z+sec2(z10)dz=−∫eudu+10∫sec2(v)dv=−eu+10tan(v)+c=−e−z+10tan(z10)+cb ∫sinw√1−2cosw+17w+2dw Show Solution
As with the last problem this integral will require two separate substitutions. Let’s first break up the integral.
∫sinw√1−2cosw+17w+2dw=∫sinw(1−2cosw)12dw+∫17w+2dwHere are the substitutions for this integral.
u=1−2cos(w)du=2sin(w)dw⇒sin(w)dw=12duv=7w+2dv=7dw⇒dw=17dvThe integral is then,
∫sinw√1−2cosw+17w+2dw=12∫u12du+17∫1vdv=12(23)u32+17ln|v|+c=13(1−2cosw)32+17ln|7w+2|+cc ∫10x+3x2+16dx Show Solution
The last problem in this set can be tricky. If there was just an x in the numerator we could do a quick substitution to get a natural logarithm. Likewise, if there wasn’t an x in the numerator we would get an inverse tangent after a quick substitution.
To get this integral into a form that we can work with we will first need to break it up as follows.
∫10x+3x2+16dx=∫10xx2+16dx+∫3x2+16dx=∫10xx2+16dx+116∫3x216+1dxWe now have two integrals each requiring a different substitution. The substitutions for each of the integrals above are,
u=x2+16du=2xdx⇒xdx=12duv=x4dv=14dx⇒dx=4dvThe integral is then,
∫10x+3x2+16dx=5∫1udu+34∫1v2+1dv=5ln|u|+34tan−1(v)+c=5ln|x2+16|+34tan−1(x4)+cWe’ve now seen a set of integrals in which we need to do more than one substitution. In these cases we will need to break up the integral into separate integrals and do separate substitutions for each.
We now need to move onto a different set of examples that can be a little tricky. Once you’ve seen how to do these they aren’t too bad but doing them for the first time can be difficult if you aren’t ready for them.
- ∫tanxdx
- ∫secydy
- ∫cos(√x)√xdx
- ∫et+etdt
- ∫2x3√x2+1dx
The first question about this problem is probably why is it here? Substitution rule problems generally require more than a single function. The key to this problem is to realize that there really are two functions here. All we need to do is remember the definition of tangent and we can write the integral as,
∫tanxdx=∫sinxcosxdxWritten in this way we can see that the following substitution will work for us,
u=cosxdu=−sinxdx⇒sinxdx=−duThe integral is then,
∫tanxdx=−∫1udu=−ln|u|+c=−ln|cosx|+cNow, while this is a perfectly serviceable answer that minus sign in front is liable to cause problems if we aren’t careful. So, let’s rewrite things a little. Recalling a property of logarithms we can move the minus sign in front to an exponent on the cosine and then do a little simplification.
∫tanxdx=−ln|cosx|+c=ln|cosx|−1+c=ln1|cosx|+c=ln|secx|+cThis is the formula that is typically given for the integral of tangent.
Note that we could integrate cotangent in a similar manner.
b ∫secydy Show Solution
This problem also at first appears to not belong in the substitution rule problems. This is even more of a problem upon noticing that we can’t just use the definition of the secant function to write this in a form that will allow the use of the substitution rule.
This problem is going to require a technique that isn’t used terribly often at this level but is a useful technique to be aware of. Sometimes we can make an integral doable by multiplying the top and bottom by a common term. This will not always work and even when it does it is not always clear what we should multiply by but when it works it is very useful.
Here is how we’ll use this idea for this problem.
∫secydy=∫secy1(secy+tany)(secy+tany)dyFirst, we will think of the secant as a fraction and then multiply the top and bottom of the fraction by the same term. It is probably not clear why one would want to do this here but doing this will actually allow us to use the substitution rule. To see how this will work let’s simplify the integrand somewhat.
∫secydy=∫sec2y+tanysecysecy+tanydyWe can now use the following substitution.
u=secy+tanydu=(secytany+sec2y)dyThe integral is then,
∫secydy=∫1udu=ln|u|+c=ln|secy+tany|+cSometimes multiplying the top and bottom of a fraction by a carefully chosen term will allow us to work a problem. It does however take some thought sometimes to determine just what the term should be.
We can use a similar process for integrating cosecant.
c ∫cos(√x)√xdx Show Solution
This next problem has a subtlety to it that can get us in trouble if we aren’t paying attention. Because of the root in the cosine it makes some sense to use the following substitution.
u=x12du=12x−12dxThis is where we need to be careful. Upon rewriting the differential we get,
2du=1√xdxThe root that is in the denominator will not become a u as we might have been tempted to do. Instead it will get taken care of in the differential.
The integral is,
∫cos(√x)√xdx=2∫cos(u)du=2sin(u)+c=2sin(√x)+cd ∫et+etdt Show Solution
With this problem we need to very carefully pick our substitution. As the problem is written we might be tempted to use the following substitution,
u=t+etdu=(1+et)dtHowever, this won’t work as you can probably see. The differential doesn’t show up anywhere in the integrand and we just wouldn’t be able to eliminate all the t’s with this substitution.
In order to work this problem we will need to rewrite the integrand as follows,
∫et+etdt=∫eteetdtWe will now use the substitution,
u=etdu=etdtThe integral is,
∫et+etdt=∫eudu=eu+c=eet+cSome substitutions can be really tricky to see and it’s not unusual that you’ll need to do some simplification and/or rewriting to get a substitution to work.
e ∫2x3√x2+1dx Show Solution
This last problem in this set is different from all the other substitution problems that we’ve worked to this point. Given the fact that we’ve got more than an x under the root it makes sense that the substitution pretty much has to be,
u=x2+1du=2xdxAt first glance it looks like this might not work for the substitution because we have an x3 in front of the root. However, if we first rewrite 2x3=x2(2x) we could then move the 2x to the end of the integral so at least the du will show up explicitly in the integral. Doing this gives the following,
∫2x3√x2+1dx=∫x2√x2+1(2x)dx=∫x2u12duThis is a real problem. Our integrals can’t have two variables in them. Normally this would mean that we chose our substitution incorrectly. However, in this case we can rewrite the substitution as follows,
x2=u−1and now, we can eliminate the remaining x’s from our integral. Doing this gives,
∫2x3√x2+1dx=∫(u−1)u12du=∫u32−u12du=25u52−23u32+c=25(x2+1)52−23(x2+1)32+cSometimes, we will need to use a substitution more than once.
This kind of problem doesn’t arise all that often and when it does there will sometimes be alternate methods of doing the integral. However, it will often work out that the easiest method of doing the integral is to do what we just did here.
This final set of examples isn’t too bad once you see the substitutions and that is the point with this set of problems. These all involve substitutions that we’ve not seen prior to this and so we need to see some of these kinds of problems.
- ∫1xlnxdx
- ∫e2t1+e2tdt
- ∫e2t1+e4tdt
- ∫sin−1x√1−x2dx
In this case we know that we can’t integrate a logarithm by itself and so it makes some sense (hopefully) that the logarithm will need to be in the substitution. Here is the substitution for this problem.
u=lnxdu=1xdxSo, the x in the denominator of the integrand will get substituted away with the differential. Here is the integral for this problem.
∫1xlnxdx=∫1udu=ln|u|+c=ln|lnx|+cb ∫e2t1+e2tdt Show Solution
Again, the substitution here may seem a little tricky. In this case the substitution is,
u=1+e2tdu=2e2tdt⇒e2tdt=12duThe integral is then,
∫e2t1+e2tdt=12∫1udu=12ln|1+e2t|+cc ∫e2t1+e4tdt Show Solution
In this case we can’t use the same type of substitution that we used in the previous problem. In order to use the substitution in the previous example the exponential in the numerator and the denominator need to be the same and in this case they aren’t.
To see the correct substitution for this problem note that,
e4t=(e2t)2Using this, the integral can be written as follows,
∫e2t1+e4tdt=∫e2t1+(e2t)2dtWe can now use the following substitution.
u=e2tdu=2e2tdt⇒e2tdt=12duThe integral is then,
∫e2t1+e4tdt=12∫11+u2du=12tan−1(u)+c=12tan−1(e2t)+cd ∫sin−1x√1−x2dx Show Solution
This integral is similar to the first problem in this set. Since we don’t know how to integrate inverse sine functions it seems likely that this will be our substitution. If we use this as our substitution we get,
u=sin−1(x)du=1√1−x2dxSo, the root in the integral will get taken care of in the substitution process and this will eliminate all the x’s from the integral. Therefore, this was the correct substitution.
The integral is,
∫sin−1x√1−x2dx=∫udu=12u2+c=12(sin−1x)2+cOver the last couple of sections we’ve seen a lot of substitution rule examples. There are a couple of general rules that we will need to remember when doing these problems. First, when doing a substitution remember that when the substitution is done all the x’s in the integral (or whatever variable is being used for that particular integral) should all be substituted away. This includes the x in the dx. After the substitution only u’s should be left in the integral. Also, sometimes the correct substitution is a little tricky to find and more often than not there will need to be some manipulation of the differential or integrand in order to actually do the substitution.
Also, many integrals will require us to break them up so we can do multiple substitutions so be on the lookout for those kinds of integrals/substitutions.