Logarithmic functions to other bases
Changing log_a x to base e and differentiating logarithmic functions to any base, including with the chain rule.
Decibels and pH use $\log_{10}$, and computer science uses $\log_2$. Calculus only has a clean rule for $\ln x$. As in 4F, the trick is to rewrite the base as $e$ and then use what we already know.
Change to base $e$
From 5A, $\log_a x = \dfrac{\ln x}{\ln a}$. Since $\ln a$ is a constant, $\log_a x$ is just a constant multiple of $\ln x$. Every log curve is a vertical stretch of $y = \ln x$.
The derivative follows straight away: a constant multiple of $\ln x$ has the same constant multiple of $\dfrac1x$ as its derivative.
The dashed line is the tangent at (1, 0).
Slide $a$ until the tangent at $(1, 0)$ has gradient $1$. Which base is it? Then find the base that gives gradient $2$, and check it against the last exam question in the quiz.
Differentiate (a) $y = \log_2 x$ (b) $y = \log_{10} x$, and find each gradient at $x = 1$.
With the chain rule
Pull out the constant $\dfrac{1}{\ln a}$ first. Then it is just "derivative of the inside over the inside", as in 5B.
Differentiate (a) $y = \log_3 x^2$ (b) $y = \log_2(3x + 1)$.
Your turn
Find the gradient of $y = \log_3(2x - 1)$ at $x = 2$.
Show the working
$y = \dfrac{\ln(2x - 1)}{\ln 3}$, so $y' = \dfrac{2}{(2x - 1)\ln 3}$. At $x = 2$: $\dfrac{2}{3\ln 3} \approx 0.61$.
$\log_2 x$ equals:
If $y = \log_2 x$ then $2^y = x$, so $y\ln 2 = \ln x$ and $y = \dfrac{\ln x}{\ln 2}$.
Find the gradient of $y = \log_2 x$ at $x = 1$, to two decimal places.
$y' = \dfrac{1}{x\ln 2}$, so the gradient is $\dfrac{1}{\ln 2} \approx 1.44$.
Find the gradient of $y = \log_{10} x$ at $x = 1$, to two decimal places.
$\dfrac{1}{\ln 10} \approx \dfrac{1}{2.3026} \approx 0.43$.
Find the gradient of $y = \log_2 x$ at $x = 2$, to two decimal places.
$\dfrac{1}{2\ln 2} \approx 0.72$.
$\dfrac{d}{dx}\log_3 x^2 =$ (for $x \gt 0$)
$\log_3 x^2 = \dfrac{2\ln x}{\ln 3}$, with derivative $\dfrac{2}{x\ln 3}$.
Evaluate $\log_5 20$, to two decimal places.
$\dfrac{\ln 20}{\ln 5} \approx \dfrac{2.9957}{1.6094} \approx 1.86$.
Find the derivative of $\log_2(3x + 1)$ at $x = 1$, to two decimal places.
$\dfrac{3}{(3x + 1)\ln 2}$ at $x = 1$ is $\dfrac{3}{4\ln 2} \approx 1.08$.
The gradient of $y = \log_a x$ at $x = 1$ is:
$y' = \dfrac{1}{x\ln a}$, and at $x = 1$ this is $\dfrac{1}{\ln a}$. It equals $1$ only when $a = e$.
Exam style: the tangent to $y = \log_{10} x$ at $x = 10$ meets the $y$-axis at $y = c$. Find $c$, to two decimal places.
At $x = 10$, $y = 1$ and $y' = \dfrac{1}{10\ln 10}$. The tangent is $y - 1 = \dfrac{1}{10\ln 10}(x - 10)$. At $x = 0$: $c = 1 - \dfrac{1}{\ln 10} \approx 0.57$.
Exam style: the tangent to $y = \log_a x$ at $(1, 0)$ has gradient $2$. Find $a$, to two decimal places.
$\dfrac{1}{\ln a} = 2$, so $\ln a = \tfrac12$ and $a = e^{1/2} \approx 1.65$.
Coaching Centre