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>0a > 0, ddx[ax]=axln⁡a\frac{d}{dx}[a^x] = a^x \ln a. The derivative of the natural logarithm is ddx[ln⁡∣x∣]=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=xxy = x^x or y=[u(x)]v(x)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≈2.71828e \approx 2.71828 is defined uniquely such that the exponential function f(x)=exf(x) = e^x has a tangent line slope of exactly 11 at its yy-intercept (0,1)(0, 1):

lim⁡h→0eh−1h=1\lim_{h \to 0} \frac{e^h - 1}{h} = 1

Applying the limit definition of the derivative:

ddx[ex]=lim⁡h→0ex+h−exh=lim⁡h→0ex(eh−1)h=ex⋅lim⁡h→0eh−1h=ex⋅1=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)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: ddx[e−4x]=e−4x⋅(−4)=−4e−4x\frac{d}{dx}[e^{-4x}] = e^{-4x} \cdot (-4) = -4e^{-4x}
  • Example B: ddx[ex3−2x]=ex3−2x⋅(3x2−2)=(3x2−2)ex3−2x\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)=x3e2xf(x) = x^3 e^{2x}. f′(x)=ddx[x3]⋅e2x+x3⋅ddx[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 (axa^x)

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

ddx[ax]=ddx[exln⁡a]=exln⁡a⋅ddx[xln⁡a]=ax⋅ln⁡a\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 aa

ddx[ag(x)]=ag(x)⋅(ln⁡a)⋅g′(x)\frac{d}{dx}\left[ a^{g(x)} \right] = a^{g(x)} \cdot (\ln a) \cdot g'(x)
Function TypeGeneral FormulaConcrete ExampleDerivative
Natural Exponentialddx[eg(x)]=eg(x)g′(x)\frac{d}{dx}[e^{g(x)}] = e^{g(x)} g'(x)y=e5x2y = e^{5x^2}y′=10xe5x2y' = 10x e^{5x^2}
General Base Exponentialddx[ag(x)]=ag(x)(ln⁡a)g′(x)\frac{d}{dx}[a^{g(x)}] = a^{g(x)} (\ln a) g'(x)y=34xy = 3^{4x}y′=34x(ln⁡3)(4)=4(ln⁡3)34xy' = 3^{4x} (\ln 3)(4) = 4(\ln 3)3^{4x}
Composite General Baseddx[ag(x)]\frac{d}{dx}[a^{g(x)}]y=2sin⁡xy = 2^{\sin x}y′=2sin⁡x(ln⁡2)cos⁡xy' = 2^{\sin x} (\ln 2) \cos x

3. The Natural Logarithm and Absolute Values

The natural logarithm y=ln⁡xy = \ln x is the inverse of x=eyx = e^y. Differentiating implicitly with respect to xx:

≠y⋅dydx=1  ⟹  dydx=1ey=1x\ne^y \cdot \frac{dy}{dx} = 1 \implies \frac{dy}{dx} = \frac{1}{e^y} = \frac{1}{x}

The Absolute Value Extension ln⁡∣x∣\ln|x|

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

  • For x>0x > 0: ln⁡∣x∣=ln⁡(x)  ⟹  ddx[ln⁡x]=1x\ln|x| = \ln(x) \implies \frac{d}{dx}[\ln x] = \frac{1}{x}.
  • For x<0x < 0: ln⁡∣x∣=ln⁡(−x)  ⟹  ddx[ln⁡(−x)]=1−x⋅(−1)=1x\ln|x| = \ln(-x) \implies \frac{d}{dx}[\ln(-x)] = \frac{1}{-x} \cdot (-1) = \frac{1}{x}.
ddx[ln⁡∣x∣]=1x(x≠0)\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)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⁡ax\log_a x)

Using the change-of-base formula log⁡ax=ln⁡xln⁡a\log_a x = \frac{\ln x}{\ln a}:

ddx[log⁡ax]=1xln⁡aandddx[log⁡a(g(x))]=g′(x)g(x)ln⁡a\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⋅v)=ln⁡u+ln⁡v\ln(u \cdot v) = \ln u + \ln v
  2. Quotient Law: ln⁡(uv)=ln⁡u−ln⁡v\ln\left(\frac{u}{v}\right) = \ln u - \ln v
  3. Power Law: ln⁡(uk)=kln⁡u\ln(u^k) = k \ln u

Worked Comparison: Expanding vs. Blind Differentiation

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

  • Inefficient Method (Blind Chain Rule): Applying g′(x)g(x)\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⁡((3x−1)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⁡(3x−1)−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(33x−1)−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(3x−1)−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)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⁡([u(x)]v(x))=v(x)ln⁡(u(x))\ln y = \ln\left([u(x)]^{v(x)}\right) = v(x) \ln(u(x)).
  2. Differentiate implicitly with respect to xx: 1ydydx=ddx[v(x)ln⁡(u(x))]\frac{1}{y} \frac{dy}{dx} = \frac{d}{dx}[v(x) \ln(u(x))]
  3. Isolate dydx\frac{dy}{dx} by multiplying by yy: dydx=y⋅ddx[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 yy so the final answer is purely in terms of xx.

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

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

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

  1. ln⁡y=xln⁡(sin⁡x)\ln y = x \ln(\sin x)
  2. y′y=(1)ln⁡(sin⁡x)+x⋅cos⁡xsin⁡x=ln⁡(sin⁡x)+xcot⁡x\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)+xcot⁡x]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 ddx[ex]=xex−1\frac{d}{dx}[e^x] = x e^{x-1} or ddx[2x]=x2x−1\frac{d}{dx}[2^x] = x 2^{x-1}. The Power Rule is strictly for (variable)constant(\text{variable})^{\text{constant}}, never (constant)variable(\text{constant})^{\text{variable}}.
  • Trap 2: Forgetting ln⁡a\ln a in Base aa Exponential and Logarithmic Derivatives. On multiple-choice questions, options omitting ln⁡a\ln a or putting ln⁡a\ln a in the numerator instead of denominator for logarithms are classic distractor traps.
  • Trap 3: Forgetting to Back-Substitute yy in Logarithmic Differentiation. Do not leave your final answer as y′y=…\frac{y'}{y} = \dots. Always multiply across by yy and replace yy with its original formula in terms of xx.
Test Your Knowledge

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

A

f'(x) = -2 sin(2x) e^(cos(2x))

B

f'(x) = -sin(2x) e^(cos(2x))

C

f'(x) = 2 cos(2x) e^(cos(2x))

D

f'(x) = -2 sin(2x) e^(-sin(2x))

Test Your Knowledge

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

A

g'(x) = 4x^3 / (x^4 + 1)

B

g'(x) = 4x^3 / ((x^4 + 1) ln 3)

C

g'(x) = (4x^3 ln 3) / (x^4 + 1)

D

g'(x) = 1 / ((x^4 + 1) ln 3)

Test Your Knowledge

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

A

y' = (sin x) x^(sin x - 1)

B

y' = x^(sin x) cos x ln x

C

y' = x^(sin x) [cos x ln x + (sin x)/x]

D

y' = x^(sin x) [sin x ln x + (cos x)/x]

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

f'(x) = 2x / (x^2 + 1) - 3 / (3x - 2)

B

f'(x) = 2x / (x^2 + 1) + 3 / [2(3x - 2)]

C

f'(x) = 1 / (x^2 + 1) - 1 / [2(3x - 2)]

D

f'(x) = 2x / (x^2 + 1) - 3 / [2(3x - 2)]

Sections you finish are checked off in the contents.