Differentiation of Exponential & Logarithmic Functions
The Calculus of Growth and Decay
The derivatives of $e^x$ and $\ln x$ are the two most elegant results in elementary calculus — and the engine behind every model of growth, decay, and optimisation in the sciences.
Why This Section Matters
The Function That Is Its Own Derivative
The Most Remarkable Fact in Calculus
Every function you have differentiated so far changes when you differentiate it. $x^3$ becomes $3x^2$. $\sin x$ becomes $\cos x$. Something always changes.
Except one. The function $f(x) = e^x$ satisfies $f'(x) = e^x = f(x)$. It is its own derivative. This is not a coincidence — it is the defining property of $e$, and it is the reason $e$ appears in every natural growth model in physics, biology, economics, and engineering.
The corresponding result for logarithms, $\frac{d}{dx}[\ln x] = \frac{1}{x}$, gives us the antiderivative of $1/x$ — the one missing case from the power rule (which fails at $n=-1$). Together, these two derivatives unlock an entirely new class of problems.
Coming back full circle: In §4.1 we computed doubling times. In §4.2 we solved exponential equations. Now we add the missing piece — the rate of change of exponential and logarithmic functions — which lets us optimise, find marginal quantities, and analyse elasticity.
💡 f'(x) = f(x) — the function IS its own derivative!
§ 2 — Chain Rule Versions
When the Exponent or Argument is a Function
Chain Rule — eᵘ
$$\frac{d}{dx}[e^{u(x)}] = e^{u(x)}\cdot u'(x)$$
Differentiate the exponent, multiply by $e^u$.
Chain Rule — ln u
$$\frac{d}{dx}[\ln u(x)] = \frac{u'(x)}{u(x)}$$
Derivative of inside over inside.
How to remember: For $e^u$ — multiply by $u'$. For $\ln u$ — divide by $u$ (and multiply by $u'$). In both cases the chain rule says: derivative of outside × derivative of inside.
Note: When $b=e$: $\frac{d}{dx}[e^x]=e^x\ln e=e^x$ ✓ and $\frac{d}{dx}[\log_e x]=\frac{1}{x\ln e}=\frac{1}{x}$ ✓. The natural base gives the cleanest formulas — no extra $\ln b$ factor.
Example 3 — Differentiate $f(x)=3^x$, $g(x)=10^{2x}$, $h(x)=\log_5(x^2+1)$
Set $f'(x)=0$: Since $2^x>0$ always, we need $1+x\ln 2=0$.
$$x=-\frac{1}{\ln 2}\approx -1.443$$
$f''(x)=2^x\ln 2(1+x\ln 2)+2^x\ln 2=2^x\ln 2(2+x\ln 2)$. At critical point: positive → local minimum.
§ 6 — Applications
Calculus with Exponential & Logarithmic Functions
Marginal Revenue with Logarithmic Demand
A commodity's demand function is often logarithmic at high quantities. The derivative gives us marginal revenue — the revenue from selling one additional unit.
Example 5
Marginal Revenue — Log Demand
The demand for a product is $p = 120 - 30\ln q$ (PKR). Find the revenue function $R(q)$ and marginal revenue $R'(q)$. At what quantity is marginal revenue zero?
At $p=10$: $q=\frac{1000}{\ln 21}\approx\frac{1000}{3.045}\approx328$, $\frac{dq}{dp}\approx\frac{-2000}{21\times9.272}\approx-10.27$.
$\eta=\frac{10}{328}\times(-10.27)\approx-0.313$. Since $|\eta|<1$: inelastic.
§ 8 — Logarithmic Differentiation
Using Logarithms to Simplify Differentiation
When a function involves complicated products, quotients, or variable exponents, taking the natural log first — then differentiating implicitly — often produces a far simpler calculation.
Logarithmic Differentiation — Procedure
Step 1Step 1: Take the natural log of both sides: $y = f(x) \Rightarrow \ln y = \ln f(x)$
The answer is already factored — far cleaner than triple product-rule expansion.
Example 15 (Comparison) — $y = \dfrac{(x+1)^3\sqrt{x^2+2}}{(3x+1)^4}$
✗ Direct (Quotient + Product)
Quotient rule gives a numerator requiring product rule, which itself requires chain rule for $\sqrt{x^2+2}$. Result is a single unsimplified fraction with multiple terms. Extremely messy.
Example 20 — Differentiate $y=\left(\dfrac{x^2+1}{x^2-1}\right)^{3/2}$ — compare direct vs log
Direct (chain + quotient): $y'=\frac{3}{2}\left(\frac{x^2+1}{x^2-1}\right)^{1/2}\cdot\frac{2x(x^2-1)-2x(x^2+1)}{(x^2-1)^2}$. The numerator simplifies to $-4x$, giving a messy expression.
Both approaches give the same answer but log differentiation avoids the messy quotient-inside-chain computation.
Coming up next — §4.4 Exponential Models — we apply everything from Ch 4 to build and analyse complete models: population growth, spread of disease, cooling laws, and compound growth with withdrawals.