STEM-TutorLearn • Practice • ExcelBook Free DemoFree demo

Derivatives of exponentials and logarithms

The derivative of ln x is 1/x, and e<sup>x</sup> is its own derivative. These two facts, plus the chain rule, let you differentiate every exponential and logarithmic function you will meet in AP Calculus and A level Maths.

On this page
  1. The core results
  2. Why ex is special
  3. Why the derivative of ln x is 1/x
  4. Other bases
  5. With the chain rule
  6. Worked examples
  7. Rates of change in exponential models
  8. What the graphs show
  9. Integrals that come with these derivatives
  10. Common mistakes
  11. Practice questions
  12. Frequently asked questions
  13. Key takeaways
  14. Related guides

The core results

Why ex is special

Every exponential function ax has a derivative proportional to itself: the slope at any point is a constant multiple of the height. For a = 2 the constant is about 0.693; for a = 3 it is about 1.099. The number e ≈ 2.718 is the unique base for which the constant is exactly 1, so the slope of ex always equals its value. That is why e appears throughout calculus, and why natural growth and decay are written with e.

Why the derivative of ln x is 1/x

Let y = ln x, so x = ey. Differentiate both sides with respect to x, using implicit differentiation: 1 = ey · dy/dx. So dy/dx = 1/ey = 1/x. This short proof is worth knowing; it shows that ln x and ex are inverse functions, and that their derivatives are linked.

Other bases

Rewrite ax as ex ln a. By the chain rule, its derivative is ex ln a · ln a = ax ln a. Similarly, logb x = ln x / ln b, so its derivative is 1/(x ln b). When b = e, ln e = 1 and these reduce to the natural log results.

With the chain rule

The second rule is especially useful: the derivative of the log of anything is “derivative of the inside over the inside”.

Worked examples

Example 1: exponential with a chain

Differentiate y = e3x².

Example 2: a log of a function

Differentiate y = ln(x² + 5).

Example 3: simplify first

Differentiate y = ln(5x).

Example 4: log laws before differentiating

Differentiate y = ln(x³√(x + 1)).

Example 5: another base

Differentiate y = 2x and y = log10 x.

Example 6: with the product rule

Differentiate y = x e−x and find its maximum.

Example 7: logarithmic differentiation

Differentiate y = xx for x > 0.

Example 8: a tangent line

Find the tangent to y = ln x at x = e.

Rates of change in exponential models

Many real quantities follow N = N0ekt. Differentiating gives dN/dt = kN0ekt = kN: the rate of change is proportional to the amount present. That single fact explains compound growth, radioactive decay and cooling, and AP questions often ask you to find and interpret the rate at a particular time, with units.

Example 9: a growth rate

A bacteria culture grows as N = 500e0.04t, with t in minutes. Find the rate of growth at t = 10 and interpret it.

What the graphs show

The graph of ex is always increasing and always concave up, because its first and second derivatives are both ex, which is always positive. The graph of ln x is always increasing but concave down, because its derivative 1/x is positive and its second derivative −1/x² is negative. Their gradients mirror each other across the line y = x, as you would expect for inverse functions.

Integrals that come with these derivatives

Reversing the results gives two of the most useful integrals: ∫ ex dx = ex + C and ∫ 1/x dx = ln|x| + C. The second explains why ∫ f'(x)/f(x) dx = ln|f(x)| + C, which you can spot whenever the top of a fraction is the derivative of the bottom, such as ∫ 2x/(x² + 1) dx = ln(x² + 1) + C.

Common mistakes

Practice questions

Try each one before opening the answer.

Q1. Differentiate e5x − 2.

Show answer
5e5x − 2.

Q2. Differentiate ln(cos x).

Show answer
−sin x/cos x = −tan x.

Q3. Differentiate 3x.

Show answer
3x ln 3.

Q4. Differentiate x² ln x.

Show answer
2x ln x + x.

Q5. Differentiate ln((x + 1)/(x − 1)).

Show answer
1/(x + 1) − 1/(x − 1) = −2/(x² − 1).

Frequently asked questions

Are these derivatives on AP Calculus AB?

Yes. Derivatives of ex and ln x are in Unit 2, and they are combined with the chain rule in Unit 3. ax and logb x are also part of the course.

Are they in A level Maths?

Yes. Differentiating ekx and ln x is in the first and second years of A level Maths, along with ax using ln a.

Key takeaways