# Tricks of the Trade

(with Professor Glesser)

My all-time favorite differentiation technique is logarithmic differentiation. The implementation is right there in the name: take a logarithm and then differentiate. If you are a pro with your log rules, you will understand why this would be useful.

There are two canonical types of functions where this technique is often used in standard calculus courses. The first is where you have a product and/or quotient of functions, potentially raised to a rational power. For example:

If you apply the natural log to both sides—we choose base so as to avoid unnecessary constants when differentiating (recall that when is a function of that —then we can deconstruct the right hand side using the log rules to get:

.

Differentiating both sides is now a snap:

.

Multiplying both sides by —which is the orignal function—gives us the derivative.

The second example is one that gives students no trouble at all, but gives teachers fits. The simplest such example is

.

Three-quarters of the class knows that you use the power rule to get

.

The remaining group of students will point out that the power rule only works with a constant exponent, so instead you need to use the exponential rule which gives

.

Of course, the teacher is squirming right now because they know the exponential rule only works you have a constant base. In fact, neither rule is correct! However, in a way, they are both half-right. Applying the natural log to our orginal equation gives

.

Differentiating—using the product rule on the right—gives

.

Multiplying both sides by now gives

, the sum of the two incorrect answers.

**SWEET**

Using logarithmic differentiation on functions of the form , we can get a general rule which is not particularly well-known:

## SPEC (Super Power Exponential Chain) Rule

If is differentiable, then , i.e., evaluate the derivative using the power and chain rules, then with the exponential and chain rules, and finally add the two incorrect answers together.

In short,

**An Example**

On my midterm, I asked the students to compute the derivative of . The SPEC rule makes this a piece of cake: the power rule gives and the exponential rule gives . Adding them together gives:

.

**The title**

When coming up with this, I thought that the perfect title would be “Two Wrongs Make a Right.” Unfortunately, this was already taken by the authors of the paper of nearly the same name (which has to be the most obvious title for a paper—ever). They don’t give a name to this rule, so in honor of my anime loving friends, I stick with SPEC rule for the moniker.

**What about logarithmic differentiation?**

One of the faculty asked me if students will avoid logarithmic differentiation now. For the first type of problem: absolutely not—the SPEC rule doesn’t really apply. For the second type: I hope so—logarithmic differentiation is useful because it simplifies calculations; why not use a trick to simplify it even more?

Beautiful. I think I didn’t understand this when I first learned it, and never learned it again after that. Now… it’s so elegant!

Comment by Riley — March 23, 2011 @ 9:48 am |

[...] readers derided these tricks or mnemonics surprised me. For instance, my post on a shortcut for logarithmic differentiation ended up being the topic of a Facebook debate on sound pedagogy. One of the participants claimed [...]

Pingback by In Defense of Shrtcts « GL(s,R) — July 6, 2012 @ 10:41 pm |

[...] Professor Glesser) As I mentioned in this much-maligned post, “my all-time favorite differentiation technique is logarithmic differentiation.” In [...]

Pingback by The Usual Way Is Just Fine, Man. « GL(s,R) — July 7, 2012 @ 11:29 pm |