If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Differentiating logarithmic functions review

Review your logarithmic function differentiation skills and use them to solve problems.

How do I differentiate logarithmic functions?

First, you should know the derivatives for the basic logarithmic functions:
ddxln(x)=1x
ddxlogb(x)=1ln(b)x
Notice that ln(x)=loge(x) is a specific case of the general form logb(x) where b=e. Since ln(e)=1 we obtain the same result.
You can actually use the derivative of ln(x) (along with the constant multiple rule) to obtain the general derivative of logb(x).
Want to learn more about differentiating logarithmic functions? Check out this video.

Practice set 1: argument is x

Problem 1.1
h(x)=7ln(x)
h(x)=?
Choose 1 answer:

Want to try more problems like this? Check out this exercise.

Practice set 2: argument is a polynomial

Problem 2.1
g(x)=ln(2x3+1)
g(x)=?
Choose 1 answer:

Want to try more problems like this? Check out this exercise.

Want to join the conversation?

  • blobby green style avatar for user ienriquez2488
    I can follow these equation but i can't follow x^x any advice? Using logarithmic differentiation.
    (0 votes)
    Default Khan Academy avatar avatar for user
    • piceratops ultimate style avatar for user Fai
      From my understanding, you'd like help with how to differentiate x^x. This is how you do it:

      y=x^x

      Take the logs of both sides:
      ln(y) = ln(x^x)

      Rule of logarithms says you can move a power to multiply the log:
      ln(y) = xln(x)

      Now, differentiate using implicit differentiation for ln(y) and product rule for xln(x):
      1/y dy/dx = 1*ln(x) + x(1/x)
      1/y dy/dx = ln(x) + 1

      Move the y to the other side:
      dy/dx = y (ln(x) + 1)

      But you already know what y is... it is x^x, your original function. So sub in:
      dy/dx = x^x(ln(x) + 1)

      And you're done.
      (17 votes)
  • blobby green style avatar for user Jan Fry
    I have a natural logarithm with e^x/1+e^x. I separated it with the log rules but then I'm stuck. Any advice?
    (2 votes)
    Default Khan Academy avatar avatar for user
    • blobby green style avatar for user be.cse.deepak
      i think you are asking about finding d/dx( ln( e^x / 1 + e^x) ). so im solving for that and here it is:
      we can write ==> ln(e^x / 1+e^x) as ln(e^x) - ln(1+e^x)

      so now when we differentiate we can differentiate them independently.
      so d/dx( ln( e^x / 1 + e^x) ) = d/dx( ln(e^x) ) - d/dx( ln(1+e^x) )
      = ( (1/e^x) *e^x ) -( ( 1/(1+e^x) ) * e^x )

      let me know if we have any confusion.
      (8 votes)
  • blobby green style avatar for user aditi.gangadharan
    can this statement be true?

    2 log y = log y^2
    (1 vote)
    Default Khan Academy avatar avatar for user
  • old spice man blue style avatar for user Kevin Shields
    Are there “rules” for when you can(not) use logarithmic differentiation (including implicit)?

    I ask because of the following KA problem: “Find dy/dx for x=√(xy+1)” For that problem I attempted to immediately use logarithmic differentiation, e.g. ln(x)=ln(√(XY+1)).

    However having now worked on it a good deal I have come to understand that logarithmic differentiation generates an incorrect result.

    Why doesn’t logarithmic differentiation work in this case? (I speculate that perhaps it is because there is a single term that has more than one variable – e.g. XY messes it up – but that is just a guess).

    Note that the following answer is not sufficient: “You shouldn’t use logarithmic differentiation on that problem.” E.g. I (now) understand it won’t work - I want to know WHY it doesn’t work - what is the rule I should use so that I don't try to do that again in the future? 😉.

    Thanks,
    kevin
    (0 votes)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user Tehilla Mammon
    What do you do if the "x" is not simply x, but is raised to a power or if the equation is log base 4 of x-2?
    (1 vote)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user 😊
    when the differentiation of logarithm is applied in real life?
    (0 votes)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user alfredkelly2030
    show a clear working for the above question
    (0 votes)
    Default Khan Academy avatar avatar for user
  • leafers sapling style avatar for user Al-Zubair Al Balushi
    my mr of calculus said for as that K.A. is not good for us and I tell him that K.A. is better than you .... Am I correct?
    (0 votes)
    Default Khan Academy avatar avatar for user
  • hopper jumping style avatar for user Ishan Khare
    How would I find d/dx [((ln(9x))^(ln(3x))]?
    (0 votes)
    Default Khan Academy avatar avatar for user