4.2 Derivatives of Exponential & Logarithmic Functions

Key Takeaways

  • The natural exponential function is its own derivative: d/dx[e^x] = e^x, and with the Chain Rule, d/dx[e^(g(x))] = e^(g(x)) * g'(x).
  • General base exponential derivatives require a natural log factor: d/dx[a^x] = a^x * ln(a) and d/dx[a^(g(x))] = a^(g(x)) * ln(a) * g'(x) for a > 0, a ≠ 1.
  • The natural logarithm derivative is d/dx[ln x] = 1/x (for x > 0) and d/dx[ln|x|] = 1/x (for x ≠ 0); with the Chain Rule, d/dx[ln(g(x))] = g'(x) / g(x).
  • Expanding complex algebraic arguments using logarithm properties (product, quotient, power laws) BEFORE differentiating avoids unwieldy quotient and chain rule calculations.
  • Logarithmic differentiation is essential for variable-base variable-exponent expressions y = [u(x)]^(v(x)) and multi-factor rational products: take ln of both sides, differentiate implicitly, and multiply by y.
Last updated: August 2026

4.2 Derivatives of Exponential & Logarithmic Functions

Quick Answer: The derivative of the natural exponential function is ddx[ex]=ex\frac{d}{dx}[e^x] = e^x, and by the Chain Rule, ddx[eg(x)]=eg(x)g(x)\frac{d}{dx}[e^{g(x)}] = e^{g(x)} \cdot g'(x). For base $a > 0$, ddx[ax]=axlna\frac{d}{dx}[a^x] = a^x \ln a. The derivative of the natural logarithm is ddx[lnx]=1x\frac{d}{dx}[\ln|x|] = \frac{1}{x}, and for composites, ddx[ln(g(x))]=g(x)g(x)\frac{d}{dx}[\ln(g(x))] = \frac{g'(x)}{g(x)}. Functions with variable bases and variable exponents ($y = x^x$ or $y = [u(x)]^{v(x)}$) cannot be differentiated with the power rule or exponential rule; they require logarithmic differentiation.


1. The Natural Exponential Function

The mathematical constant $e \approx 2.71828$ is defined uniquely such that the exponential function $f(x) = e^x$ has a tangent line slope of exactly $1$ at its $y$-intercept $(0, 1)$: limh0eh1h=1\lim_{h \to 0} \frac{e^h - 1}{h} = 1

Applying the limit definition of the derivative: ddx[ex]=limh0ex+hexh=limh0ex(eh1)h=exlimh0eh1h=ex1=ex\frac{d}{dx}[e^x] = \lim_{h \to 0} \frac{e^{x+h} - e^x}{h} = \lim_{h \to 0} \frac{e^x(e^h - 1)}{h} = e^x \cdot \lim_{h \to 0} \frac{e^h - 1}{h} = e^x \cdot 1 = e^x

The Chain Rule for Natural Exponentials

When the exponent is a differentiable function $u = g(x)$:

ddx[eg(x)]=eg(x)g(x)\frac{d}{dx}\left[ e^{g(x)} \right] = e^{g(x)} \cdot g'(x)

Worked Examples

  • Example A: $\frac{d}{dx}[e^{-4x}] = e^{-4x} \cdot (-4) = -4e^{-4x}$
  • Example B: $\frac{d}{dx}[e^{x^3 - 2x}] = e^{x^3 - 2x} \cdot (3x^2 - 2) = (3x^2 - 2)e^{x^3 - 2x}$
  • Example C (Product Rule combination): Differentiate $f(x) = x^3 e^{2x}$. f(x)=ddx[x3]e2x+x3ddx[e2x]=3x2e2x+x3(2e2x)=x2e2x(3+2x)f'(x) = \frac{d}{dx}[x^3] \cdot e^{2x} + x^3 \cdot \frac{d}{dx}[e^{2x}] = 3x^2 e^{2x} + x^3(2e^{2x}) = x^2 e^{2x}(3 + 2x)

2. General Base Exponential Functions ($a^x$)

For any constant base $a > 0$ with $a \neq 1$, we convert to base $e$ using the logarithmic identity $a^x = e^{\ln(a^x)} = e^{x \ln a}$. Differentiating via the Chain Rule:

ddx[ax]=ddx[exlna]=exlnaddx[xlna]=axlna\frac{d}{dx}[a^x] = \frac{d}{dx}\left[ e^{x \ln a} \right] = e^{x \ln a} \cdot \frac{d}{dx}[x \ln a] = a^x \cdot \ln a

General Chain Rule Formula for Base $a$

ddx[ag(x)]=ag(x)(lna)g(x)\frac{d}{dx}\left[ a^{g(x)} \right] = a^{g(x)} \cdot (\ln a) \cdot g'(x)

Function TypeGeneral FormulaConcrete ExampleDerivative
Natural Exponential$\frac{d}{dx}[e^{g(x)}] = e^{g(x)} g'(x)$$y = e^{5x^2}$$y' = 10x e^{5x^2}$
General Base Exponential$\frac{d}{dx}[a^{g(x)}] = a^{g(x)} (\ln a) g'(x)$$y = 3^{4x}$$y' = 3^{4x} (\ln 3)(4) = 4(\ln 3)3^{4x}$
Composite General Base$\frac{d}{dx}[a^{g(x)}]$$y = 2^{\sin x}$$y' = 2^{\sin x} (\ln 2) \cos x$

3. The Natural Logarithm and Absolute Values

The natural logarithm $y = \ln x$ is the inverse of $x = e^y$. Differentiating implicitly with respect to $x$: eydydx=1    dydx=1ey=1xe^y \cdot \frac{dy}{dx} = 1 \implies \frac{dy}{dx} = \frac{1}{e^y} = \frac{1}{x}

The Absolute Value Extension $\ln|x|$

In calculus, logarithms often appear with absolute values to accommodate negative domain arguments ($x \neq 0$):

  • For $x > 0$: $\ln|x| = \ln(x) \implies \frac{d}{dx}[\ln x] = \frac{1}{x}$.
  • For $x < 0$: $\ln|x| = \ln(-x) \implies \frac{d}{dx}[\ln(-x)] = \frac{1}{-x} \cdot (-1) = \frac{1}{x}$.

ddx[lnx]=1x(x0)\frac{d}{dx}[\ln|x|] = \frac{1}{x} \quad (x \neq 0)

The Chain Rule for Logarithms ("Derivative Over Function")

When differentiating the logarithm of a composite function $u = g(x)$:

ddx[ln(g(x))]=g(x)g(x)\frac{d}{dx}[\ln(g(x))] = \frac{g'(x)}{g(x)}

General Base Logarithms ($\log_a x$)

Using the change-of-base formula $\log_a x = \frac{\ln x}{\ln a}$:

ddx[logax]=1xlnaandddx[loga(g(x))]=g(x)g(x)lna\frac{d}{dx}[\log_a x] = \frac{1}{x \ln a} \qquad \text{and} \qquad \frac{d}{dx}[\log_a(g(x))] = \frac{g'(x)}{g(x) \ln a}


4. Logarithmic Properties as Pre-Differentiation Tools

When faced with the derivative of a logarithm containing complicated products, quotients, or powers, always expand the logarithm using algebraic properties before differentiating.

                      Logarithmic Expansion Strategy

        Complex Logarithm: ln [ (x³ · √(x²+1)) / (2x+5)⁴ ]
                               │
                               ▼  Apply Log Laws
        3 ln(x) + (1/2) ln(x²+1) - 4 ln(2x+5)
                               │
                               ▼  Differentiate Term-by-Term (No massive quotient rule!)
        3/x + (1/2) · [2x / (x²+1)] - 4 · [2 / (2x+5)]

The Three Fundamental Log Laws

  1. Product Law: $\ln(u \cdot v) = \ln u + \ln v$
  2. Quotient Law: $\ln\left(\frac{u}{v}\right) = \ln u - \ln v$
  3. Power Law: $\ln(u^k) = k \ln u$

Worked Comparison: Expanding vs. Blind Differentiation

Problem: Find $f'(x)$ for $f(x) = \ln\left( \frac{x^4 \sqrt{3x - 1}}{(x^2 + 2)^5} \right)$.

  • Inefficient Method (Blind Chain Rule): Applying $\frac{g'(x)}{g(x)}$ directly requires applying the Quotient Rule to two composite product factors—a recipe for catastrophic algebra mistakes.
  • Efficient Method (Pre-Expansion First):
    1. Expand using log properties: f(x)=ln(x4)+ln((3x1)1/2)ln((x2+2)5)f(x) = \ln(x^4) + \ln\left((3x - 1)^{1/2}\right) - \ln\left((x^2 + 2)^5\right) f(x)=4ln(x)+12ln(3x1)5ln(x2+2)f(x) = 4\ln(x) + \frac{1}{2}\ln(3x - 1) - 5\ln(x^2 + 2)
    2. Differentiate term-by-term instantly: f(x)=4(1x)+12(33x1)5(2xx2+2)f'(x) = 4\left(\frac{1}{x}\right) + \frac{1}{2}\left(\frac{3}{3x - 1}\right) - 5\left(\frac{2x}{x^2 + 2}\right) f(x)=4x+32(3x1)10xx2+2f'(x) = \frac{4}{x} + \frac{3}{2(3x - 1)} - \frac{10x}{x^2 + 2}

5. Logarithmic Differentiation: Variable Base and Variable Exponent

Standard rules fail when BOTH the base and the exponent contain variables: $y = [u(x)]^{v(x)}$.

  • Power Rule fails because the exponent is not a constant.
  • Exponential Rule fails because the base is not a constant.

The 4-Step Logarithmic Differentiation Protocol

  1. Take the natural logarithm of both sides: $\ln y = \ln\left([u(x)]^{v(x)}\right) = v(x) \ln(u(x))$.
  2. Differentiate implicitly with respect to $x$: 1ydydx=ddx[v(x)ln(u(x))]\frac{1}{y} \frac{dy}{dx} = \frac{d}{dx}[v(x) \ln(u(x))]
  3. Isolate $\frac{dy}{dx}$ by multiplying by $y$: dydx=yddx[v(x)ln(u(x))]\frac{dy}{dx} = y \cdot \frac{d}{dx}[v(x) \ln(u(x))]
  4. Substitute the original expression back for $y$ so the final answer is purely in terms of $x$.

Classic Example: Differentiating $y = x^x$ for $x > 0$

  1. Take natural logs: $\ln y = \ln(x^x) = x \ln x$.
  2. Differentiate implicitly using Product Rule: 1ydydx=(1)(lnx)+x(1x)=lnx+1\frac{1}{y} \frac{dy}{dx} = (1)(\ln x) + x\left(\frac{1}{x}\right) = \ln x + 1
  3. Multiply by $y$: dydx=y(lnx+1)\frac{dy}{dx} = y(\ln x + 1)
  4. Back-substitute $y = x^x$: ddx[xx]=xx(lnx+1)\frac{d}{dx}[x^x] = x^x(\ln x + 1)

Example 2: Differentiating $y = (\sin x)^x$ on $(0, \pi)$

  1. $\ln y = x \ln(\sin x)$
  2. $\frac{y'}{y} = (1)\ln(\sin x) + x \cdot \frac{\cos x}{\sin x} = \ln(\sin x) + x \cot x$
  3. $y' = (\sin x)^x [\ln(\sin x) + x \cot x]$

6. CLEP Traps and Exam Strategies

  • Trap 1: Misapplying Power Rule to Exponentials. A common error is writing $\frac{d}{dx}[e^x] = x e^{x-1}$ or $\frac{d}{dx}[2^x] = x 2^{x-1}$. The Power Rule is strictly for $(\text{variable})^{\text{constant}}$, never $(\text{constant})^{\text{variable}}$.
  • Trap 2: Forgetting $\ln a$ in Base $a$ Exponential and Logarithmic Derivatives. On multiple-choice questions, options omitting $\ln a$ or putting $\ln a$ in the numerator instead of denominator for logarithms are classic distractor traps.
  • Trap 3: Forgetting to Back-Substitute $y$ in Logarithmic Differentiation. Do not leave your final answer as $\frac{y'}{y} = \dots$. Always multiply across by $y$ and replace $y$ with its original formula in terms of $x$.
Test Your Knowledge

What is the derivative of the function f(x) = e^(cos(2x))?

A
B
C
D
Test Your Knowledge

What is the derivative of g(x) = log_3(x^4 + 1)?

A
B
C
D
Test Your Knowledge

Using logarithmic differentiation, what is the derivative of y = x^(sin x) for x > 0?

A
B
C
D
Test Your Knowledge

By expanding using logarithm properties first, what is the derivative of f(x) = ln[(x^2 + 1) / sqrt(3x - 2)] for x > 2/3?

A
B
C
D