Two for one
Excerpt: What do we get when we integrate ? or ? In this task, students are asked to think about when and why we use the modulus sign.
Problem
Solve the following integrals:
What’s the same and what’s different about your solutions?
Did you make any assumptions, and if so, what were they?
Sketch the following functions along with their gradient functions on the same set of axes.
What are the domains of and ?
Using your sketch to help you, write down the derivatives of and .
What do you notice about the derivatives and ?
Suggestion
Use the applet to check your sketches of , and their gradient functions.
[interactive embed (geogebra-iframe): //www.geogebratube.org/material/iframe/id/uJbx2Du6/width/614/height/400/border/888888/rc/false/ai/false/sdz/false/smb/false/stb/false/stbh/false/ld/false/sri/true/asb/false/at/html5] — not part of the text import; see the source page.
Download GeoGebra file
Solution
A good starting point is to draw a diagram.
As is an odd function, the two shaded areas that represent the integrals should be the same. However, one of the areas is below the -axis which suggests that
If we solve the first integral we get
What are the problems with this calculation to find the second integral?
The function
is only defined for
so
and
do not exist. For
we can write
which means that we could solve the second integral like this:
Does this match with our geometrical reasoning at the beginning? We thought that
and using the laws of logarithms we can show that , which is as expected.
Taking the absolute value of means that we aren’t trying to take the logarithm of a negative number. Why is it possible to do this? We explore below why the integral can be written in this form.
The domain of is and the domain of is .
The gradient function of is .
As is a reflection of in the -axis, the gradient of will be the negative of the gradient of at symmetrical points. By also looking at the sketch of the gradient function of , it seems reasonable to conclude that , when .
If you already know the chain rule, you may have calculated the gradient of
this way:
Interestingly, the two functions and , differentiate to different sections of the same function, . It seems that the function has two different antiderivatives, depending on the domain. This means we can write the integral of as a piecewise function.
But can also be written as a piecewise function
and so the integral is sometimes written as
The absolute value sign isn’t there to let us take logarithms of negative numbers, but because we are actually combining two different antiderivative functions. While writing is a way to encompass both functions, we need to be careful that we remember that it is two separate functions, one for and one for .