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