Skip to content

Derivatives of Exponential and Logarithmic Functions

In this lesson you’ll learn the derivatives of exponential functions (especially e to the x) and logarithmic functions (especially ln x), and how to combine them with the chain rule.

The derivative of e to the x is itself:

ddx[ex]=ex\frac{d}{dx}[e^x] = e^x

This is the single most remarkable fact in calculus. No other function has this property. It’s the reason e shows up everywhere in math, science, and engineering. The function e to the x grows at a rate exactly equal to its current value.

At x = 1, the y-value is e (about 2.718). The slope of the green tangent line at that point is also e. That’s the whole idea: wherever you are on the curve, the slope equals the height. The function’s rate of growth is always equal to its current value.

For a general base a (where a is positive and not 1):

ddx[ax]=axlna\frac{d}{dx}[a^x] = a^x \ln a

The extra ln(a) factor accounts for the base not being e. When a = e, ln(e) = 1, so the formula reduces to the first one.

ddx[lnx]=1x\frac{d}{dx}[\ln x] = \frac{1}{x}

The derivative of ln(x) is 1/x. Simple and clean. For a general base:

ddx[logax]=1xlna\frac{d}{dx}[\log_a x] = \frac{1}{x \ln a}

Again, when a = e, ln(e) = 1 and you get 1/x.

Both of these show up constantly with the chain rule. When the argument isn’t just x, you differentiate the outside and multiply by the derivative of the inside, same as always.

Example 1: Exponential with chain rule

Find the derivative of f(x) = e to the 4x.

f(x)=e4x4=4e4xf'(x) = e^{4x} \cdot 4 = 4e^{4x}

The outside is e to the u, whose derivative is e to the u. The inside is 4x, whose derivative is 4.

Example 2: Natural log with chain rule

Differentiate y = ln(3x² + 7x).

y=13x2+7x(6x+7)=6x+73x2+7xy' = \frac{1}{3x^2 + 7x} \cdot (6x + 7) = \frac{6x + 7}{3x^2 + 7x}

The outside is ln(u), derivative is 1/u. The inside is 3x² + 7x, derivative is 6x + 7.

Example 3: Product rule with exponential

Find the derivative of y = x² times e to the negative 2x.

Let u = x², so u’ = 2x. Let v = e to the negative 2x, so v’ = -2e to the negative 2x (chain rule).

y=2xe2x+x2(2e2x)y' = 2x \cdot e^{-2x} + x^2 \cdot (-2e^{-2x})

Factor out common terms:

=2xe2x2x2e2x=2x(1x)e2x= 2xe^{-2x} - 2x^2 e^{-2x} = 2x(1 - x)e^{-2x}

Exponential and logarithmic derivatives model anything that grows or decays continuously:

  • Finance: continuous compound interest uses e to the rt. The derivative gives the instantaneous rate of return.
  • Biology: population growth P(t) = P₀ e to the kt. The derivative P’(t) = kP₀ e to the kt tells you the growth rate at any moment.
  • Physics: radioactive decay follows N(t) = N₀ e to the negative lambda t. The derivative gives the decay rate.
  • Medicine: drug concentration in the bloodstream often follows exponential decay. The derivative tells doctors how fast the drug is wearing off.
  • Machine learning: the gradient of the loss function often involves exponentials and logs.
The derivative of e to the x is:
The derivative of ln(x) is:
The derivative of e to the 5x is:
The derivative of 2 to the x is:
Why is e special in calculus?