Integration by substitution There are occasions when it is possible to perform an apparently difficult piece of integration by first making a substitution. This has the effect of changing the variable and the integrand. When dealing with definite integrals, the limits of integration can also change. In this unit we will meet several examples of integrals where it is appropriate to make a substitution. In order to master the techniques explained here it is vital that you undertake plenty of practice exercises so that they become second nature. After reading this text, and/or viewing the video tutorial on this topic, you should be able to: carry out integration by making a substitution identify appropriate substitutions to make in order to evaluate an integral Contents. Introction. Integration by substituting u = ax + b. Finding f(g(x))g (x) by substituting u = g(x) 6 c mathcentre December, 008
. Introction There are occasions when it is possible to perform an apparently difficult piece of integration by first making a substitution. This has the effect of changing the variable and the integrand. When dealing with definite integrals, the limits of integration can also change. In this unit we will meet several examples of this type. The ability to carry out integration by substitution is a skill that develops with practice and experience. For this reason you should carry out all of the practice exercises. Be aware that sometimes an apparently sensible substitution does not lead to an integral you will be able to evaluate. You must then be prepared to try out alternative substitutions.. Integration by substituting u = ax + b We introce the technique through some simple examples for which a linear substitution is appropriate. Example Suppose we want to find the integral You will be familiar already with finding a similar integral (x + 4) 5 () u 5 and know that this integral is equal to u6 + c, where c is a constant of integration. This is because you know that the rule 6 for integrating powers of a variable tells you to increase the power by and then divide by the new power. In the integral given by Equation () there is still a power 5, but the integrand is more complicated e to the presence of the term x + 4. To tackle this problem we make a substitution. We let u = x + 4. The point of doing this is to change the integrand into the much simpler u 5. However, we must take care to substitute appropriately for the term too. In terms of differentials we have Now, in this example, because u = x + 4 it follows immediately that and so. So, substituting both for x + 4 and for in Equation () we have (x + 4) 5 = u 5 The resulting integral can be evaluated immediately to give u6 + c. We can revert to an 6 expression involving the original variable x by recalling that u = x + 4, giving (x + 4) 5 (x + 4)6 = + c 6 We have completed the integration by substitution. c mathcentre December, 008
Example Suppose now we wish to find the integral cos(x + 4) () Observe that if we make a substitution u = x + 4, the integrand will then contain the much simpler form cos u which we will be able to integrate. As before, and so It follows that with u = x + 4 and = = So, substituting u for x + 4, and with = in Equation () we have cos(x + 4) = cosu = sin u + c We can revert to an expression involving the original variable x by recalling that u = x + 4, giving cos(x + 4) = sin(x + 4) + c We have completed the integration by substitution. It is very easy to generalise the result of the previous example. If we want to find cos(ax+b), the substitution u = ax+b leads to cosu which equals a a sin u+c, that is a sin(ax+b)+c. A similar argument, which you should try, shows that sin(ax + b) = cos(ax + b) + c. a sin(ax + b) = cos(ax + b) + c a Key Point cos(ax + b) = sin(ax + b) + c a c mathcentre December, 008
Example Suppose we wish to find x. We make the substitution u = x in order to simplify the integrand to. Recall that the u integral of with respect to u is the natural logarithm of u, ln u. As before, u and so It follows that The integral becomes with u = x and ( ) u = = u = = ln u + c = ln x + c The result of the previous example can be generalised: if we want to find substitution u = ax + b leads to a u which equals ln ax + b + c. a This means, for example, that when faced with an integral such as we can imme- x + 7 diately write down the answer as ln x + 7 + c., the ax + b Key Point ax + b = ln ax + b + c a c mathcentre December, 008 4
A little more care must be taken with the limits of integration when dealing with definite integrals. Consider the following example. Example Suppose we wish to find We make the substitution u = 9 + x. As before, and so It follows that The integral becomes with (9 + x) u = 9 + x and = x= x= u = where we have explicitly written the variable in the limits of integration to emphasise that those limits were on the variable x and not u. We can write these as limits on u using the substitution u = 9 + x. Clearly, when x =, u = 0, and when x =, u =. So we require u= u=0 u [ u ] 0 = ( 0 ) = 78 Note that in this example there is no need to convert the answer given in terms of u back into one in terms of x because we had already converted the limits on x into limits on u. Exercises.. In each case use a substitution to find the integral: (a) (x ) (b) (x + 5) 4 (c) (x ) 7 (d) 0. In each case use a substitution to find the integral: π/ (a) sin(7x ) (b) e x (c) cos( x) (d) 0 ( x). 7x + 5. 5 c mathcentre December, 008
. Finding f(g(x))g (x) by substituting u = g(x) Example Suppose now we wish to find the integral x + x () In this example we make the substitution u = + x, in order to simplify the square-root term. We shall see that the rest of the integrand, x, will be taken care of automatically in the substitution process, and that this is because x is the derivative of that part of the integrand used in the substitution, i.e. + x. As before, and so It follows that with u = + x and = x = x So, substituting u for + x, and with x = in Equation () we have x + x = = u u / = u/ + c We can revert to an expression involving the original variable x by recalling that u = + x, giving x + x = ( + x ) / + c We have completed the integration by substitution. Let us analyse this example a little further by comparing the integrand with the general case f(g(x)) g (x). Suppose we write g(x) = + x and f(u) = u Then we note that the composition of the functions f and g is f(g(x)) = + x. when finding the composition of functions f and g it is the output from g which is used as input to f, resulting in f(g(x)) c mathcentre December, 008 6
Further, we note that if g(x) = + x then g (x) = x. So the integral x + x is of the form f(g(x)) g (x) To perform the integration we used the substitution u ( = ) + x. In the general case it will be appropriate to try substituting u = g(x). Then = g (x). u Once the substitution was made the resulting integral became. In the general case it will become f(u). Provided that this final integral can be found the problem is solved. For purposes of comparison the specific example and the general case are presented side-by-side: x + x f(g(x))g (x) let u = + x let u = g(x) ( ) ( ) = x = g (x) x u + x = f(g(x))g (x) = f(u) u/ + c ( + x ) / + c To evaluate Key Point f(g(x))g (x) substitute u = g(x), and g (x) to give f(u) Integration is then carried out with respect to u, before reverting to the original variable x. It is worth pointing out that integration by substitution is something of an art - and your skill at doing it will improve with practice. Furthermore, a substitution which at first sight might seem sensible, can lead nowhere. For example, if you were try to find + x by letting u = + x you would find yourself up a blind alley. Be prepared to persevere and try different approaches. 7 c mathcentre December, 008
Example Suppose we wish to evaluate By writing the integrand as 4x x + where f(u) = u, g(x) = x + and g (x) = 4x. x + 4x we note that it takes the form f(g(x))g (x) The substitution u = g(x) = x + transforms the integral to f(u) u This is evaluated to give u u / = u / + c Finally, using u = x + to revert to the original variable gives 4x x + = (x + ) / + c or equivalently Example Suppose we wish to find sin x x. x + + c Consider the substitution u = x. Then so that = x / = = x / x sin x = x sin u from which sin u cosu + c = cos x + c We can also make the following observations: the integrand can be written in the form sin x x. c mathcentre December, 008 8
Writing f(u) = sin u and g(x) = x then g (x) = x / = x / = x. Further, f(g(x)) = sin x. Hence we write the given integral as sin x x which is of the form f(g(x))g (x) with f and g as given above. As before the substitution u = g(x) = x proces the integral f(u) sin u from which sin u cosu + c = cos x + c Exercises. In each case the integrand can be written as f(g(x)) g (x). Identify the functions f and g and use the general result on page 7 to complete the integration. (a) xe x 5 (b) x sin( x cosx ) (c) + sin x.. In each case use the given substitution to find the integral: (a) xe x, u = x. (b) x sin(x ), u = x. (c) 5 0 x x 4 +, u = x 4 +.. In each case use a suitable substitution to find the integral. (a) 5x x (b) (c) x 4 ( + x 5 ) x( + x) x (d) x4 + 6 (e) cosx x (f) (5 + sin x) 0 x4 + (g) 5x x (h) e cos x sin x (i) e sin x cosx. 9 c mathcentre December, 008
Answers to Exercises Exercises (x ) 4 465. (a) + c (b) = 90 4 5 5 (x ) 8 (c) + c (d) 4. 6 cos(7x ). (a) + c (b) ex + c 7 (c).8 (dp) (d) ln 7x + 5 + c 7 Exercises. (a) f(u) = e u, g(x) = x 5, e x 5 + c, (b) f(u) = sin u, g(x) = x, cos( x ) + c (c) f(u) =, g(x) = + sin x, ln + sin x + c. u. (a) e x +c (b) cos(x ) + c (c) 60 (4sf). 4. (a) 5 ( x ) / + c (b) + x + c (c) 0 ( + x5 ) 4 + c (d) (x4 + 6) / + c (e) + c (f) 0.0707 5 + sin x (g) 0 9 ( x ) / + c (h) e cos x + c (i) e sin x + c. c mathcentre December, 008 0