What is the derivative of log x

Video transcript

- [Voiceover] We know from previous videos, that the derivative with respect to X of the natural log of X, is equal to 1 over X. What I want to do in this video is use that knowledge that we've seen in other videos to figure out what the derivative with respect to X is of a logarithm of an arbitrary base. So I'm just gonna call that log, base A of X. So how do we figure this out? Well, the key thing is, is what you might be familiar with from your algebra or your pre calculus classes, which is having a change of base. So if I have some, I'll do it over here, log, base A of B, and I wanted to change it to a different base, let's say I wanna change it to base C, this is the same thing as log, base C of B divided by log, base C of A. Log, base C of B, divided by log, base C of A. This is a really useful thing if you've never seen it before, you now have just seen it, this change of base, and we prove it in other videos on Khan Academy. But it's really useful because, for example, your calculator has a log button. The log on your calculator is log, base 10. So if you press 100 into your calculator and press log, you will get a 2 there. So whenever you just see log of 100, it's implicitly base 10, and you also have a button for natural log, which is log, base E. Natural log of X is equal to log, base E of X. But sometimes, you wanna find all sorts of different base logarithms and this is how you do it. So if you're using your calculator and you wanted to find what log, base 3 of 8 is, you would say, you would type in your calculator log of 8 and log of 3. Or, let me write it this way, and log of 3 where both of these are implicitly base 10, and you'd get the same value if you did natural log of 8 divided by natural log of 3. Which you might also have on your calculator. And what we're gonna do in this video is leverage the natural log because we know what the derivative of the natural log is. So this derivative is the same thing as the derivative with respect to X of. Well log, base A of X, can be rewritten as natural log of X over natural log of A. And now natural log of A, that's just a number. I could rewrite this as, let me write it this way. One over natural log of A times natural log of X. And what's the derivative of that? We could just take the constant out. One over natural log of A, that's just a number. So we're gonna get 1 over the natural log of A times the derivative with respect to X of natural log of X. Of natural log of X. Which we already know is 1 over X. So this thing right over here, is 1 over X. So what we get is 1 over natural log of A times 1 over X. Which we could write as, 1 over natural log of A times X. Which is a really useful thing to know. So now, we could take all sorts of derivatives. So if I were to tell you F of X is equal to log, base 7 of X well now we can say well F prime of X is going to be 1 over the natural log of 7 times X. If we had a constant out front, if we had for example, G of X. G of X is equal to negative 3 times log, base, I know. Log, base pi. Pi is a number. Log, base pi of X, well G prime of X would be equal to 1 over, oh. Let me be careful, I have this constant out here. So it'd be negative 3 over, it's just that negative 3, over the natural log of pi. This is the natural log of this number. Times X. So hopefully, that gives you a hang of things.

Formulas and Examples

We defined log functions as inverses of exponentials: \begin{eqnarray*} y = \ln(x) &\Longleftrightarrow & x = e^y \cr y = \log_a(x) & \Longleftrightarrow & x = a^y. \end{eqnarray*} Since we know how to differentiate exponentials, we can use implicit differentiation to find the derivatives of $\ln(x)$ and $\log_a(x)$. The videos below walk us through this process.

The end results are:

$$\frac{d}{dx} \ln(x) = \frac{1}{x}, \qquad \frac{d}{dx}\log_a(x) = \frac{1}{x \ln(a)}.$$


The derivative of $\ln(x)$:

\begin{eqnarray*} y & = & \ln(x) \cr x & = & e^y \cr 1 & = & \frac{d }{dx}\left(e^y\right) \cr 1 & = & e^y \frac{dy}{dx} \cr \frac{dy}{dx} & = & \frac{1}{e^y} \cr \frac{dy}{dx} & = & \frac{1}{x}
\end{eqnarray*}since $e^y=x$ (see above).



The derivative of $\log_a(x)$:

\begin{eqnarray*} y & = & \log_a(x) \cr x & = & a^y \cr 1 & = & \frac{d}{dx} \left( a^y\right)\cr 1 & = & a^y \ln(a) \frac{dy}{dx} \cr \frac{dy}{dx} & = & \frac{1}{a^y \ln(a)} \cr \frac{dy}{dx} & = & \frac{1}{x \ln(a)}. \end{eqnarray*} since $a^y=x$ (see above).


What is the derivative of 1 log x?

1 Answer. It is =−1xlog(x)2 .

What is the formula of log x?

The rules apply for any logarithm logbx, except that you have to replace any occurence of e with the new base b. The natural log was defined by equations (1) and (2). ... Basic rules for logarithms..

What is derivative of ln x?

The derivative of ln(x) is 1/x.

What is the derivative of log x base 10?

From change of base we have log10(x)=log10(x)=ln(x)ln(10) . 1ln(10) is just a constant multipler.