Shaun Ault

What is Logarithmic Differentiation? AP Calc Review

What is logarithmic differentiation? Basically, it’s a calculus tool that helps you to find derivatives of complicated functions involving a lot of multiplication, division, or powers. This review article walks you through the methods and provides plenty of example problems to help you succeed on the AP Calculus exams!

slide rule
Slide rules are devices for doing quick arithmetic. They work by exploiting the properties of logarithms.

Properties of Logarithms

First of all, let’s review what a logarithm is. More specifically, we need to understand how the logarithm function can be used to break down complicated expressions.

You might want to check out the following article before getting started: AP Calculus Review: Properties of Exponents and Logartithms. However, the most important properties for us will be the product, quotient, and power properties for logarithms. Here, we focus on a particular logarithm: the natural logarithm, ln x, though the properties remain true in any base.

properties_of_logarithms

In other words, logarithms change…

  1. products into sums,
  2. quotients into differences, and
  3. exponents into multiplication.

Using the Properties

I like to think of the logarithm as a powerful acid that can dissolve a complicated algebraic expression.

Chemical reaction
Be careful not to spill any of that logarithm on you. It could burn!

Let me illustrate the point with an example.

logarithm_simplification

Notice how the original expression involves a huge fraction with roots and powers all over the place. After applying the properties of logarithms, the resulting expression mostly has only plus and minus. (Of course, there is a trade-off — there are now three natural logs in the simplified expression.)

Logarithmic Differentiation

Now let’s get down to business! How can we exploit these logarithmic simplification rules to help find derivatives?

The most straightforward case is when the function already has a logarithm involved.

Example 1

Find the derivative of Logarithmic_Diff_example1_function.

Solution

First simplify using the properties of logarithms (see work above). Then you can take the derivative of each term. But be careful — the final term requires a Product Rule!

Logarithmic_Diff_example1

The General Method

In the above example, there was already a logarithm in the function. But what if we want to use logarithmic differentiation when our function has no logarithm?

Suppose f(x) is a function with a lot of products, quotients, and/or powers. Then you might use the method of logarithmic differentiation to find f ‘(x).

    1. First write y = f(x)
    2. Next, apply the (natural) logarithm function to both sides of the equation.ln y = ln f(x)
    3. Then use the product, quotient, and/or power properties to break down the expression on the right. In other words, simplify ln(f(x)) algebraically.
    4. Now apply the derivative operator to both sides.apply logarithms to both sides
    5. Use your rules of differentiation to find the derivatives. Note that the left-hand side requires implicit differentiation. (Check out: AP Calculus Review: Implicit Variation for details.)
      1/y dy/dx = ...
    6. Solve for dy/dx by multiplying both sides by y. In your answer, don’t forget to replace y by f(x).

logarithmic_diff_final_step

Example 2

Use logarithmic differentiation to find the derivative of:  Logarithmic_Diff_example2

Solution

Let’s follow the steps outlined above. The first two steps are routine.

Logarithmic_Diff_example2_solution_partA

On the other hand, Step 3 requires us to break down the logarithmic expression using the properties. The work in this step depends on the function. In our case, there is a product of two factors, so we’ll start with the product property. The power property helps to break down the radical. Finally, don’t forget the cancellation rule: ln(ex) = x.

Logarithmic_Diff_example2_solution_partB

Next, in Steps 4 and 5 apply the derivative and work out the right-hand side.

Logarithmic_Diff_example2_solution_partC

Finally, in Step 6, we solve for the unknown derivative by multiplying both sides by y. Don’t forget to substitute back the original function f(x) in place of y.

Logarithmic_Diff_example2_solution_partD

Functions Raised to a Function Power

A very famous question in Calculus class is: What is the derivative of xx ?

  • The answer is NOT x xx – 1, because the Power Rule for Derivatives cannot be used when the power includes a variable.
  • The answer is NOT xx ln x, because the Exponential Rule for Derivatives cannot be used when the base includes a variable.

So what is the derivative of xx ?

Logarithmic differentiation required - magoosh
Difficult, hmmmm very difficult…

Well, it turns out that only logarithmic differentiation can decide this one for us!

In fact any time there is a function raised to a function power (that is, neither the exponent nor the base is constant), then you will have to use logarithms to break it down before you can take a derivative.

Let’s see how it works in the simplest case: xx.

First, write y = xx.

Then, apply the logarithm to both sides:   ln y = ln xx.

Break down the right-hand side of the equation using the algebraic properties of logarithms. In this case, only the power property plays a role.

ln y = x ln x

Now you can take derivatives of the functions on both sides. But be careful… the function on the right requires a Product Rule.

(1/y)(dy/dx) = (1) ln x + x(1/x) = ln x + 1

Finally, multiply both sides by the original function (y = xx) to isolate dy/dx.

dy/dx = xx(ln x + 1)

And there you have it! The derivative of xx turns out to be trickier than you might have thought at first, but it’s not impossible.

Summary

  • Logarithmic differentiation is a method for finding derivatives of complicated functions involving products, quotients, and/or powers.
  • You can use the algebraic properties of logarithms to break down functions into simpler pieces before taking the derivative.

Author

  • Shaun Ault

    Shaun earned his Ph. D. in mathematics from The Ohio State University in 2008 (Go Bucks!!). He received his BA in Mathematics with a minor in computer science from Oberlin College in 2002. In addition, Shaun earned a B. Mus. from the Oberlin Conservatory in the same year, with a major in music composition. Shaun still loves music — almost as much as math! — and he (thinks he) can play piano, guitar, and bass. Shaun has taught and tutored students in mathematics for about a decade, and hopes his experience can help you to succeed!

More from Magoosh