TExcelTAD
Home › School Calculus: Limits, Derivatives & Integrals › Derivatives of Exponential and Logarithmic Functions

Derivatives of Exponential and Logarithmic Functions

Exponential and logarithmic functions are ubiquitous across science and economics: compound interest, population growth, radioactive decay, and acoustic decibels all obey exponential and logarithmic laws.

In this lesson, you will master the differentiation of natural and general exponential and logarithmic functions on paper, including crucial algebraic simplification techniques before differentiating.


1. Core Formulas

Let u=u(x)u = u(x) be a differentiable function, and let a>0a > 0 with a≠1a \ne 1.

Natural Exponential:ddx[ex]=exChain Rule for eu:ddx[eu(x)]=eu(x)⋅u′(x)General Exponential:ddx[ax]=axln⁡aNatural Logarithm:ddx[ln⁡x]=1x(x>0)Logarithm with Absolute Value:ddx[ln⁡∣x∣]=1x(x≠0)Chain Rule for ln⁡u:ddx[ln⁡(u(x))]=u′(x)u(x)General Logarithm:ddx[log⁡ax]=1xln⁡a\begin{aligned} \text{\bf Natural Exponential:} & \quad \frac{d}{dx}\left[ e^x \right] = e^x \\ \text{\bf Chain Rule for } e^u: & \quad \frac{d}{dx}\left[ e^{u(x)} \right] = e^{u(x)} \cdot u'(x) \\ \text{\bf General Exponential:} & \quad \frac{d}{dx}\left[ a^x \right] = a^x \ln a \\ \text{\bf Natural Logarithm:} & \quad \frac{d}{dx}\left[ \ln x \right] = \frac{1}{x} \quad (x > 0) \\ \text{\bf Logarithm with Absolute Value:} & \quad \frac{d}{dx}\left[ \ln |x| \right] = \frac{1}{x} \quad (x \ne 0) \\ \text{\bf Chain Rule for } \ln u: & \quad \frac{d}{dx}\left[ \ln\big(u(x)\big) \right] = \frac{u'(x)}{u(x)} \\ \text{\bf General Logarithm:} & \quad \frac{d}{dx}\left[ \log_a x \right] = \frac{1}{x \ln a} \end{aligned}

[!NOTE] The natural exponential function f(x)=exf(x) = e^x is the only function (up to a constant scalar multiple) whose instantaneous rate of change is identically equal to its own value at every single point: f′(x)=f(x)f'(x) = f(x).


2. Mathematical Intuition and Derivations

Why Euler's Constant ee?

Using the limit definition on f(x)=axf(x) = a^x:

f′(x)=lim⁡h→0ax+h−axh=lim⁡h→0ax(ah−1)h=ax⋅lim⁡h→0ah−1h\begin{aligned} f'(x) &= \lim_{h \to 0} \frac{a^{x+h} - a^x}{h} = \lim_{h \to 0} \frac{a^x (a^h - 1)}{h} \\ &= a^x \cdot \lim_{h \to 0} \frac{a^h - 1}{h} \end{aligned}

The limit L=lim⁡h→0ah−1hL = \lim_{h \to 0} \frac{a^h - 1}{h} is a constant number that depends solely on the base aa:

  • When a=2a = 2, L≈0.6931L \approx 0.6931.
  • When a=3a = 3, L≈1.0986L \approx 1.0986.

Euler discovered that there is a unique base between 22 and 33 where this limit equals exactly 11. That unique transcendental number is:

e=lim⁡n→∞(1+1n)n≈2.718281828…e = \lim_{n \to \infty} \left(1 + \frac{1}{n}\right)^n \approx 2.718281828\dots

Setting a=ea = e makes L=1L = 1, yielding the clean calculus formula:

ddx[ex]=ex⋅(1)=ex\frac{d}{dx}[e^x] = e^x \cdot (1) = e^x

Deriving the General Exponential via the Natural Base

Any positive base aa can be rewritten as a=eln⁡aa = e^{\ln a}. Therefore:

ax=(eln⁡a)x=e(ln⁡a)xa^x = \big(e^{\ln a}\big)^x = e^{(\ln a) x}

Applying the Chain Rule with inner function u=(ln⁡a)xu = (\ln a)x (where ln⁡a\ln a is a constant number):

ddx[ax]=ddx[e(ln⁡a)x]=e(ln⁡a)x⋅(ln⁡a)=axln⁡a\frac{d}{dx}[a^x] = \frac{d}{dx}\left[ e^{(\ln a) x} \right] = e^{(\ln a) x} \cdot (\ln a) = a^x \ln a

Deriving the Natural Logarithm Derivative

Let y=ln⁡xy = \ln x. By definition, this means ey=xe^y = x. Differentiate both sides with respect to xx using implicit/chain rule:

ey⋅y′=1  ⟹  y′=1eye^y \cdot y' = 1 \implies y' = \frac{1}{e^y}

Since ey=xe^y = x, we obtain:

y′=1xy' = \frac{1}{x}

3. Power Rule vs. Exponential Rule: The Paper Distinction

A frequent source of student confusion is distinguishing between powers and exponentials:

Power Rule: ddx[xn]=nxn−1(Variable in base, constant in exponent)Exponential Rule: ddx[ax]=axln⁡a(Constant in base, variable in exponent)\begin{aligned} \text{\bf Power Rule: } & \quad \frac{d}{dx}[x^n] = n x^{n-1} \quad &(\text{Variable in base, constant in exponent}) \\ \text{\bf Exponential Rule: } & \quad \frac{d}{dx}[a^x] = a^x \ln a \quad &(\text{Constant in base, variable in exponent}) \end{aligned}

For instance:

  • ddx[x5]=5x4\frac{d}{dx}[x^5] = 5x^4 (Power Rule)
  • ddx[5x]=5xln⁡5\frac{d}{dx}[5^x] = 5^x \ln 5 (Exponential Rule)
  • ddx[xe]=exe−1\frac{d}{dx}[x^e] = e x^{e-1} (Power Rule, since ee is a constant number)
  • ddx[e5]=0\frac{d}{dx}[e^5] = 0 (Constant Rule, since e5e^5 has no variable at all!)

4. The Logarithmic Expansion Shortcut on Paper

Before differentiating a complicated logarithm on paper, always expand it using logarithm laws:

ln⁡(A⋅B)=ln⁡A+ln⁡Bln⁡(AB)=ln⁡A−ln⁡Bln⁡(Ak)=kln⁡A\begin{aligned} \ln(A \cdot B) &= \ln A + \ln B \\ \ln\left(\frac{A}{B}\right) &= \ln A - \ln B \\ \ln(A^k) &= k \ln A \end{aligned}

Expanding a quotient or product turns an exhausting Quotient Rule problem into elementary term-by-term derivatives:

ln⁡(x+2x−5)→Rewriteln⁡(x+2)−ln⁡(x−5)→Differentiate1x+2−1x−5\ln\left( \frac{x+2}{x-5} \right) \xrightarrow{\text{Rewrite}} \ln(x+2) - \ln(x-5) \xrightarrow{\text{Differentiate}} \frac{1}{x+2} - \frac{1}{x-5}

5. Worked Examples

Example 1: Product Rule with Exponential Decay

Problem: Calculate f′(x)f'(x) on paper for:

f(x)=x2e−3xf(x) = x^2 e^{-3x}

Step 1: Set up the side margin

u(x)=x2  ⟹  u′(x)=2xv(x)=e−3x  ⟹  v′(x)=e−3x⋅(−3)=−3e−3x\begin{aligned} u(x) &= x^2 &\implies u'(x) &= 2x \\ v(x) &= e^{-3x} &\implies v'(x) &= e^{-3x} \cdot (-3) = -3e^{-3x} \end{aligned}

Step 2: Apply the Product Rule

f′(x)=u′v+uv′=(2x)(e−3x)+(x2)(−3e−3x)f'(x) = u'v + uv' = (2x)(e^{-3x}) + (x^2)(-3e^{-3x})

Step 3: Factor out the greatest common factor Notice that both terms share xe−3xx e^{-3x}:

f′(x)=2xe−3x−3x2e−3x=xe−3x(2−3x)\begin{aligned} f'(x) &= 2x e^{-3x} - 3x^2 e^{-3x} \\ &= x e^{-3x}(2 - 3x) \end{aligned}

Final Answer:

f′(x)=xe−3x(2−3x)f'(x) = x e^{-3x}(2 - 3x)

Example 2: Logarithm of a Rational Function

Problem: Find dydx\frac{dy}{dx} on paper for:

y=ln⁡(x2+42x−1)(x>12)y = \ln\left( \frac{x^2 + 4}{2x - 1} \right) \quad \left(x > \frac{1}{2}\right)

Step 1: Expand using logarithm properties before differentiating

y=ln⁡(x2+4)−ln⁡(2x−1)y = \ln(x^2 + 4) - \ln(2x - 1)

Step 2: Differentiate term-by-term using ddx[ln⁡u]=u′u\frac{d}{dx}[\ln u] = \frac{u'}{u}

  • For ln⁡(x2+4)\ln(x^2 + 4): u=x2+4  ⟹  u′=2xu = x^2 + 4 \implies u' = 2x. Derivative is 2xx2+4\frac{2x}{x^2 + 4}.
  • For ln⁡(2x−1)\ln(2x - 1): u=2x−1  ⟹  u′=2u = 2x - 1 \implies u' = 2. Derivative is 22x−1\frac{2}{2x - 1}.
dydx=2xx2+4−22x−1\frac{dy}{dx} = \frac{2x}{x^2 + 4} - \frac{2}{2x - 1}

Step 3: Combine over a common denominator

dydx=2x(2x−1)−2(x2+4)(x2+4)(2x−1)=4x2−2x−2x2−8(x2+4)(2x−1)=2x2−2x−8(x2+4)(2x−1)=2(x2−x−4)(x2+4)(2x−1)\begin{aligned} \frac{dy}{dx} &= \frac{2x(2x - 1) - 2(x^2 + 4)}{(x^2 + 4)(2x - 1)} \\ &= \frac{4x^2 - 2x - 2x^2 - 8}{(x^2 + 4)(2x - 1)} \\ &= \frac{2x^2 - 2x - 8}{(x^2 + 4)(2x - 1)} \\ &= \frac{2(x^2 - x - 4)}{(x^2 + 4)(2x - 1)} \end{aligned}

Final Answer:

dydx=2(x2−x−4)(x2+4)(2x−1)\frac{dy}{dx} = \frac{2(x^2 - x - 4)}{(x^2 + 4)(2x - 1)}

Example 3: General Base Exponential and Tangent Line

Problem: Find the equation of the tangent line to the curve y=23x−1y = 2^{3x - 1} at x=1x = 1.

Step 1: Find the coordinates of the point of tangency (x0,y0)(x_0, y_0) At x0=1x_0 = 1:

y0=23(1)−1=22=4y_0 = 2^{3(1) - 1} = 2^2 = 4

Point of tangency: (1,4)(1, 4).

Step 2: Find the derivative using the General Exponential Chain Rule Formula: ddx[au]=auln⁡a⋅u′\frac{d}{dx}[a^u] = a^u \ln a \cdot u'. Here a=2a = 2 and u=3x−1  ⟹  u′=3u = 3x - 1 \implies u' = 3:

y′=23x−1⋅(ln⁡2)⋅3=3(ln⁡2)⋅23x−1y' = 2^{3x - 1} \cdot (\ln 2) \cdot 3 = 3(\ln 2) \cdot 2^{3x - 1}

Step 3: Evaluate the slope mm at x=1x = 1

m=y′(1)=3(ln⁡2)⋅23(1)−1=3(ln⁡2)⋅4=12ln⁡2m = y'(1) = 3(\ln 2) \cdot 2^{3(1) - 1} = 3(\ln 2) \cdot 4 = 12 \ln 2

Step 4: Write the tangent line in point-slope form

y−y0=m(x−x0)y−4=(12ln⁡2)(x−1)y=(12ln⁡2)x−12ln⁡2+4\begin{aligned} y - y_0 &= m(x - x_0) \\ y - 4 &= (12 \ln 2)(x - 1) \\ y &= (12 \ln 2)x - 12 \ln 2 + 4 \end{aligned}

Final Answer:

y=(12ln⁡2)x+(4−12ln⁡2)y = (12 \ln 2)x + (4 - 12 \ln 2)

6. Common Paper Traps & Exam Pitfalls

Common Mistake Why It Fails Correct Paper Method
ddx[e4x]=4xe4x−1\frac{d}{dx}[e^{4x}] = 4x e^{4x - 1} Applying the Power Rule to an exponential base! ddx[e4x]=e4x⋅4=4e4x\frac{d}{dx}[e^{4x}] = e^{4x} \cdot 4 = 4e^{4x}
ddx[ln⁡(5x)]=15x\frac{d}{dx}[\ln(5x)] = \frac{1}{5x} Missing the inner derivative 55 from the numerator u′u\frac{u'}{u}. ddx[ln⁡(5x)]=55x=1x\frac{d}{dx}[\ln(5x)] = \frac{5}{5x} = \frac{1}{x}
ddx[2x]=x2x−1\frac{d}{dx}[2^x] = x 2^{x-1} Constant base with variable exponent requires ln⁡2\ln 2. ddx[2x]=2xln⁡2\frac{d}{dx}[2^x] = 2^x \ln 2
Differentiating ln⁡(x3x+1)\ln(x^3 \sqrt{x+1}) directly with massive product/chain rules Prone to huge algebraic errors. Expand to 3ln⁡x+12ln⁡(x+1)3\ln x + \frac{1}{2}\ln(x+1) first!

7. Pencil & Paper Practice

Grab your pencil and notebook. Work out these three problems step by step.

  1. Practice 1: Differentiate g(x)=ex3−6xg(x) = e^{x^3 - 6x}.
  2. Practice 2: Differentiate h(x)=ln⁡(x4+1)h(x) = \ln(\sqrt{x^4 + 1}) by simplifying the radical first.
  3. Practice 3: Find f′(x)f'(x) for f(x)=ln⁡xx2f(x) = \frac{\ln x}{x^2}.
Click to view step-by-step solutions

Solution to Practice 1

Let u=x3−6x  ⟹  u′=3x2−6u = x^3 - 6x \implies u' = 3x^2 - 6. By the Chain Rule:

g′(x)=eu⋅u′=ex3−6x⋅(3x2−6)=3(x2−2)ex3−6x\begin{aligned} g'(x) &= e^{u} \cdot u' \\ &= e^{x^3 - 6x} \cdot (3x^2 - 6) \\ &= 3(x^2 - 2)e^{x^3 - 6x} \end{aligned}
  • Final Answer: g′(x)=3(x2−2)ex3−6xg'(x) = 3(x^2 - 2)e^{x^3 - 6x}

Solution to Practice 2

First rewrite the radical using logarithm exponent rules:

h(x)=ln⁡((x4+1)1/2)=12ln⁡(x4+1)h(x) = \ln\big((x^4 + 1)^{1/2}\big) = \frac{1}{2} \ln(x^4 + 1)

Now differentiate:

h′(x)=12⋅ddx[x4+1]x4+1=12⋅4x3x4+1=2x3x4+1h'(x) = \frac{1}{2} \cdot \frac{\frac{d}{dx}[x^4 + 1]}{x^4 + 1} = \frac{1}{2} \cdot \frac{4x^3}{x^4 + 1} = \frac{2x^3}{x^4 + 1}
  • Final Answer: h′(x)=2x3x4+1h'(x) = \frac{2x^3}{x^4 + 1}

Solution to Practice 3

Use the Quotient Rule with u=ln⁡x  ⟹  u′=1xu = \ln x \implies u' = \frac{1}{x} and v=x2  ⟹  v′=2xv = x^2 \implies v' = 2x:

f′(x)=u′v−uv′v2=(1x)(x2)−(ln⁡x)(2x)(x2)2=x−2xln⁡xx4\begin{aligned} f'(x) &= \frac{u'v - uv'}{v^2} = \frac{\left(\frac{1}{x}\right)(x^2) - (\ln x)(2x)}{(x^2)^2} \\ &= \frac{x - 2x \ln x}{x^4} \end{aligned}

Factor out xx from the numerator and cancel with one xx in x4x^4:

f′(x)=x(1−2ln⁡x)x4=1−2ln⁡xx3f'(x) = \frac{x(1 - 2\ln x)}{x^4} = \frac{1 - 2\ln x}{x^3}
  • Final Answer: f′(x)=1−2ln⁡xx3f'(x) = \frac{1 - 2\ln x}{x^3}

Test yourself

What is the derivative of f(x)=e5x2f(x) = e^{5x^2}?

  1. 10xe5x210x e^{5x^2}
  2. 5x2e5x2−15x^2 e^{5x^2 - 1}
  3. 10e5x210 e^{5x^2}
  4. e10xe^{10x}

What is ddx[ln⁡(7x)]\frac{d}{dx}[\ln(7x)] for x>0x > 0?

  1. 7x\frac{7}{x}
  2. 17x\frac{1}{7x}
  3. 1x\frac{1}{x}
  4. 77x2\frac{7}{7x^2}

What is the derivative of y=3xy = 3^x?

  1. x⋅3x−1x \cdot 3^{x-1}
  2. 3xln⁡33^x \ln 3
  3. 3xln⁡3\frac{3^x}{\ln 3}
  4. 3x3^x