Derivatives of the exponential and the logarithm

This is the story of the function that does not change under differentiation and the function whose derivative is 1x\dfrac{1}{x}. We look at y=exy = e^x and y=lnxy = \ln x.

(ex)=ex(lnx)=1x\begin{align*} \left( e^x \right)' &= e^x \\ \left( \ln x \right)' &= \frac{1}{x} \end{align*}

The slope equals the height

At every point of exe^x the slope of the tangent equals the height of the point1.

xxexe^xSlope
001111
11e2.718e \approx 2.718e2.718e \approx 2.718
22e27.389e^2 \approx 7.389e27.389e^2 \approx 7.389

The only functions with that property are those of the form CexCe^x, and the number ee is fixed by it.

The same does not happen for 2x2^x. There (2x)=2xln2\left( 2^x \right)' = 2^x \ln 2, off by the factor ln20.693\ln 2 \approx 0.693. Only with base ee does the extra coefficient disappear.

The derivative of the logarithm

The derivative of lnx\ln x is 1x\dfrac{1}{x}2.

xx(lnx)\left( \ln x \right)'
1111
2212\dfrac{1}{2}
1010110\dfrac{1}{10}

It flattens toward the right. That is why lnx\ln x increases without bound while its rate of increase falls away.

The relation between inverses

The two are inverse to each other, and their graphs are symmetric about y=xy = x. Since the derivative of an inverse is dxdy=1dy/dx\dfrac{dx}{dy} = \dfrac{1}{dy/dx}, if the slope of y=exy = e^x is yy itself then the slope of x=lnyx = \ln y is 1y\dfrac{1}{y}. Each follows from the other.

Filling a hole in integration

Integrating 1x\dfrac{1}{x} returns lnx\ln x. The integral of xnx^n is xn+1n+1\dfrac{x^{n+1}}{n+1}, which fails at n=1n = -1 because the denominator becomes 00. The logarithm is what fills that hole.

When the base is not ee

FunctionDerivative
axa^xaxlnaa^x \ln a
logax\log_a x1xlna\dfrac{1}{x \ln a}

The first follows from rewriting ax=exlnaa^x = e^{x \ln a} and applying the chain rule, the second from logax=lnxlna\log_a x = \dfrac{\ln x}{\ln a}. Whatever the base, converting to natural logarithms reduces everything to the same two formulas.

The steeply rising curve on the graph is y=exy = e^x, the gently rising one is y=lnxy = \ln x, the hyperbola is y=1xy = \dfrac{1}{x}, and the large dots are (0,1)(0, 1), (1,0)(1, 0) and (1,1)(1, 1).

  1. Exponential function, Wikipedia
  2. Natural logarithm, Wikipedia