Problem 41: Integrating the modulus function ( ) 2000 Paper I
Show that
and hence evaluate the integral.
Evaluate the following integrals:
- (i)
- (ii)
Comments
The very first part shows you how to do this sort of integral (with mod signs in the integrand) by splitting up the range of integration at the points where the integrand changes sign. In parts (i) and (ii) you have to use the technique on different examples.
Solution to problem 41
For the first part, note that if . Then integrate by parts to evaluate the integrals:
For the next parts, we have to find out where the integrand is positive and where it is negative.
(i) (spotting the factors), so the integrand is positive for , negative for and positive for (a quick sketch will help with this). Splitting the range of integration into these ranges and integrating gives
(ii) changes sign when , i.e. when and . Splitting the range of integration into these ranges and integrating gives
Alternatively, start by writing which makes the changes of sign easier to spot and the integrals easier to do.
Post-mortem
If you give a bit more thought to part (ii), you will see easier ways of doing it. Since the trigonometric functions are periodic with period the integrand is also periodic. Write the integrand in the form . Integrating this over any interval gives the same result. Indeed, we may as well integrate from to ; or from to and double the answer.
After the first edition of this book appeared, a correspondent e-mailed to suggest that we should integrate () by writing it in the form
Yes, that’s quite a good idea; it would have saved a bit of writing and reduced the risk of arithmetical errors.