The exponential function eˣ has a remarkable property: it is its own derivative. That single fact makes it the natural language of growth and decay, from bank interest to bacteria to radioactive carbon. Its inverse, the natural logarithm ln x, has the equally simple derivative 1/x. In this lesson you will see why both results are true, extend them to any base such as 2ˣ and log₁₀ x, and combine them with the chain rule to model real growth problems.
In this lesson you will learn
- Why (eˣ)′ = eˣ, and what that means for the graph
- Why (ln x)′ = 1/x
- Derivatives of aˣ and logₐ x for any base a
- The chain-rule forms (e^u)′ = e^u u′ and (ln u)′ = u′/u
- Using derivatives to describe exponential growth and decay
You should know the limit (eʰ − 1)/h → 1, the chain rule and the laws of exponents and logarithms.
The Derivative of eˣ
(eˣ)′ = lim (e^(x+h) − eˣ)/h
h→0
= lim eˣ · (eʰ − 1)/h (since e^(x+h) = eˣ · eʰ)
= eˣ · 1
= eˣ
The whole proof rests on the special limit (eʰ − 1)/h → 1, which is exactly what makes e special: it is the one base whose graph has slope 1 at x = 0.
On the graph of y = eˣ, the slope at every point equals the height. At x = 0 the height is 1 and the slope is 1. At x = 1 the height is e ≈ 2.718 and so is the slope. At x = 2 both are e² ≈ 7.389. That is why the curve grows faster and faster: the higher it is, the steeper it gets.
The Derivative of ln x
ln x is the inverse of eˣ, so y = ln x means x = eʸ. Differentiate both sides with respect to x, using the chain rule on the right (this is implicit differentiation):
x = eʸ
1 = eʸ · dy/dx
dy/dx = 1/eʸ = 1/x
So (ln x)′ = 1/x for x > 0
Check with numbers: at x = 2 the slope of ln x should be 0.5. A tiny step gives (ln 2.0001 − ln 2)/0.0001 ≈ 0.49999. It works.
Why this answer is surprising
The power rule says (xⁿ)′ = nxⁿ⁻¹. To get x⁻¹ you would need n = 0, but x⁰ = 1 is a constant with derivative 0. So no power of x has 1/x as its derivative. The logarithm fills exactly that gap, which is why ln x appears so often when you integrate later in the course.
Other Bases
Any base can be rewritten with e, because a = e^(ln a). So aˣ = e^(x ln a), and the chain rule gives:
| f(x) | f′(x) | Example |
|---|---|---|
| eˣ | eˣ | — |
| aˣ | aˣ ln a | (2ˣ)′ = 2ˣ ln 2 ≈ 0.693 · 2ˣ |
| ln x | 1/x | — |
| logₐ x | 1/(x ln a) | (log₁₀ x)′ = 1/(x ln 10) |
| ln |x| | 1/x | valid for x ≠ 0, including negative x |
The extra ln a factor is a correction for using a “less natural” base. For a = e, ln e = 1 and the correction disappears.
With the Chain Rule
(e^u)′ = e^u · u′ (ln u)′ = u′ / u
d/dx e^(3x) = 3e^(3x)
d/dx e^(x²) = 2x e^(x²)
d/dx ln(x² + 1) = 2x / (x² + 1)
d/dx ln(sin x) = cos x / sin x = cot x
d/dx ln(5x) = 5/(5x) = 1/x (because ln 5x = ln 5 + ln x)
Logarithm laws can make the work much easier. Before differentiating, split products and powers inside a log:
y = ln( x³ √(x + 1) ) = 3 ln x + ½ ln(x + 1)
dy/dx = 3/x + 1/(2(x + 1))
With the Product and Quotient Rules
y = x e^(−x)
dy/dx = 1 · e^(−x) + x · (−e^(−x)) = e^(−x)(1 − x)
Zero when x = 1, so the graph has a turning point at (1, 1/e).
y = ln x / x
dy/dx = ((1/x)·x − ln x · 1)/x² = (1 − ln x)/x²
Zero when ln x = 1, that is x = e.
Application: Growth and Decay
A culture of bacteria in a lab in Dhaka has P(t) = 500 e^(0.4t) cells after t hours.
dP/dt = 500 · 0.4 · e^(0.4t) = 200 e^(0.4t) = 0.4 P
After 5 hours: P = 500 e² ≈ 3,695 cells, growing at 0.4 × 3,695 ≈ 1,478 cells per hour.
The result dP/dt = 0.4P says the growth rate is always proportional to the current size. Every exponential model y = Ae^(kt) has this property, dy/dt = ky. When k is negative the quantity decays, as with radioactive atoms or a cooling cup of tea. You will solve this kind of equation in reverse in first-order differential equations.
Common Mistakes
- Using the power rule on eˣ. (eˣ)′ is not x eˣ⁻¹; the variable is in the exponent.
- Forgetting the chain factor. (e^(3x))′ = 3e^(3x).
- Forgetting ln a for other bases. (2ˣ)′ = 2ˣ ln 2, not 2ˣ.
- Writing (ln u)′ = 1/u. It is u′/u.
- Differentiating ln x at x ≤ 0. ln x only exists for x > 0; use ln |x| when x can be negative.
Practice Exercises
Exercise 1. Differentiate y = e^(2x) sin x.
Show answer
dy/dx = 2e^(2x) sin x + e^(2x) cos x = e^(2x)(2 sin x + cos x).
Exercise 2. Differentiate y = ln(x² + 3x).
Show answer
dy/dx = (2x + 3)/(x² + 3x).
Exercise 3. Find the slope of y = 3ˣ at x = 2, to 3 decimal places.
Show answer
dy/dx = 3ˣ ln 3. At x = 2: 9 × 1.098612 ≈ 9.888.
Frequently Asked Questions
Why is the derivative of e to the x equal to e to the x?
From the definition, the derivative of e to the x is e to the x times the limit of (e to the h minus 1) over h. The number e is chosen so that this limit is exactly 1, so the derivative is e to the x itself. On the graph, the slope at every point equals the height.
What is the derivative of ln x?
The derivative of ln x is 1 over x, for x greater than 0. With the chain rule, the derivative of ln of u is u prime over u, so for example the derivative of ln(x squared plus 1) is 2x over (x squared plus 1).
Summary
- (eˣ)′ = eˣ: the slope equals the height.
- (ln x)′ = 1/x, proved by differentiating x = eʸ.
- (aˣ)′ = aˣ ln a and (logₐ x)′ = 1/(x ln a).
- Chain rule forms: (e^u)′ = e^u u′ and (ln u)′ = u′/u.
- y = Ae^(kt) satisfies dy/dt = ky: the rate is proportional to the amount.
