Contents
1 Integrating Logs
There's a sneaky technique for integrating the natural logarithm function which involves writing as and invoking the product rule:
There are a variety of ways of explaining this, but the ones that I know don't tend to be all that enlightening on how to come up with something like this in the first place. For example, I usually say that we try it because we know how to differentiate and its derivative is considerably nicer than . But that's a bit unsatisfactory, since the reason the second integral is so nice is because of the interaction between the derivative of and the integral of rather than just the niceness of the derivative of by itself.
Also, it still feels like a justification after the fact. Without seeing it work for then I wouldn't think to try it for anything else. To put that another way, knowing it works for means I might try it for, say, , but I still can't envision coming up with it out of a vacuum.
By the way, did you know that it also works for ? Just in case not, here it is:
2 Inverses?
Both and can be thought of as inverses of more well-known functions1. So maybe this trick is about inverses?
1Though they can be defined in their own right.
This doesn't seem all that enlightening, but let's do a cunning substitution2 and see what happens.
2Where's that turnip emoji?
Let , so and "". Then:
Integrating this relies on being able to integrate , but with inverse functions this might well be a more possible prospect.
This substitution, though, has more to it than is apparent at first. Let's do the substitution throughout but also being a little choosy about when to substitute.
We have so we can write the initial integral as just:
The integrated term is . Then the last term is:
So the whole equation reads:
Or, a bit more symmetrically,
3 Wait!? What was integration again?
Integration calculates (signed) area. Given a function then calculates the area between and the –axis over the interval .
Also given a function then calculates the area between and the –axis "over" the interval . These are illustrated in the two graphs in Figure 1.
Now, what would happen if those two curves happened to be the same, as in Figure 2?
Well, then we would have:
This looks nice! When does this happen?
It happens precisely when the two functions are inverse to each other. That is, and .
Which is where we came in.
The product rule is definitely lurking there in the background, but I find that this does neatly explain the connection between the two integrations. There is a clear connection between the integral of an inverse function and the integral of the original.
The final piece is to relate the limits, but that is straightforward. Since our focus is on , it is most natural to write them as:
4 Back to Logs
Let's work it through with . We'll do the definite integral, from which we can recover the indefinite by appropriate substitution of variables, but the definite helps keep the various letters in their correct roles.
Our relationship states that:
Substituting in with limits and , we get:
Switching to indefinite integrals, we get:
as expected.
5 Sign of the Times
One should always be a bit sceptical of a "proof by pictures". Here, the underlying assumptions in my pictures were that everything was positive: my limits , , , were all positive and my function was increasing3. What if it weren't so?
3positive derivative
One thing we must have is that the function be monotonic since it has an inverse. But all bets are off on everything else.
I shan't cover all possible cases, but here's an extreme to show that this still works. Consider the diagram in Figure 3.
With being the positive area of its region, we have:
Note that since then the second integral is the negative of what one might expect.
Adding these gives:
Since, in this example, and , the positive area is equal to . Similarly, the positive area is equal to . Putting those together yields:
exactly as before.
6 Afterword
This came about from a conversation with a student about integration and . In fact, it was a misunderstanding on my part in that they meant the integration that has answer whereas I thought they were asking about integrating and it got me thinking as to how to actually do it. I'd just been teaching about inverse functions (to a different set of students) so the relationship between the graphs was at the forefront of my mind and the connection became very clear.
I'll need to think it through carefully, but this does feel like something quite teachable and might make that oNe wEiRd tRicK perhaps a little less mystifying.
Finally, everything I write on this website comes with the disclaimer that I make no claims to originality – all I require is that it catch my eye for some reason and that there be something for me to work through to make it worth recording.
I guess I'm keeping a record of the times when I was one of today's ten thousand and I publish them in case there's someone else out there in the same position.