DerivativesTopic #7 of 32

Derivatives of Exponential and Logarithmic Functions

Derivatives of exponential functions, natural logarithm, and general logarithms.

Exponential Functions

Natural Exponential

ddx[ex]=ex\frac{d}{dx}[e^x] = e^x

The function exe^x is its own derivative!

General Exponential

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

where a>0a > 0, a≠1a \neq 1

With Chain Rule

ddx[eu]=eu⋅u′\frac{d}{dx}[e^u] = e^u \cdot u'

ddx[au]=au⋅ln⁡(a)⋅u′\frac{d}{dx}[a^u] = a^u \cdot \ln(a) \cdot u'

Logarithmic Functions

Natural Logarithm

ddx[ln⁡(x)]=1x,x>0\frac{d}{dx}[\ln(x)] = \frac{1}{x}, \quad x > 0

General Logarithm

ddx[log⁡a(x)]=1x⋅ln⁡(a),x>0\frac{d}{dx}[\log_a(x)] = \frac{1}{x \cdot \ln(a)}, \quad x > 0

With Chain Rule

ddx[ln⁡(u)]=u′u\frac{d}{dx}[\ln(u)] = \frac{u'}{u}

ddx[log⁡a(u)]=u′u⋅ln⁡(a)\frac{d}{dx}[\log_a(u)] = \frac{u'}{u \cdot \ln(a)}

Derivative Table

FunctionDerivative
exe^xexe^x
axa^xaxln⁡(a)a^x \ln(a)
ln⁡(x)\ln(x)1x\frac{1}{x}
log⁡a(x)\log_a(x)1xln⁡(a)\frac{1}{x \ln(a)}
$\lnx
eue^ueu⋅u′e^u \cdot u'
ln⁡(u)\ln(u)u′u\frac{u'}{u}

Important Property

ddx[ln⁡∣x∣]=1xfor all x≠0\frac{d}{dx}[\ln|x|] = \frac{1}{x} \quad \text{for all } x \neq 0

This extends the domain to negative xx values.

Examples

Example 1: Basic exponential

f(x)=5ex−3e−xf(x) = 5e^x - 3e^{-x}

f′(x)=5ex−3e−x⋅(−1)=5ex+3e−xf'(x) = 5e^x - 3e^{-x} \cdot (-1) = 5e^x + 3e^{-x}

Example 2: Exponential with chain rule

f(x)=ex2+3xf(x) = e^{x^2 + 3x}

f′(x)=ex2+3x⋅(2x+3)f'(x) = e^{x^2 + 3x} \cdot (2x + 3)

Example 3: General exponential

f(x)=2xf(x) = 2^x

f′(x)=2x⋅ln⁡(2)f'(x) = 2^x \cdot \ln(2)

Example 4: Natural logarithm

f(x)=ln⁡(x2+1)f(x) = \ln(x^2 + 1)

f′(x)=2xx2+1f'(x) = \frac{2x}{x^2 + 1}

Example 5: Product with logarithm

f(x)=xln⁡(x)f(x) = x \ln(x)

f′(x)=x⋅1x+ln⁡(x)⋅1=1+ln⁡(x)f'(x) = x \cdot \frac{1}{x} + \ln(x) \cdot 1 = 1 + \ln(x)

Example 6: Quotient with exponential

f(x)=ex1+exf(x) = \frac{e^x}{1 + e^x}

f′(x)=(1+ex)⋅ex−ex⋅ex(1+ex)2f'(x) = \frac{(1 + e^x) \cdot e^x - e^x \cdot e^x}{(1 + e^x)^2}

=ex+e2x−e2x(1+ex)2= \frac{e^x + e^{2x} - e^{2x}}{(1 + e^x)^2}

=ex(1+ex)2= \frac{e^x}{(1 + e^x)^2}

Example 7: Logarithm of absolute value

f(x)=ln⁡∣sin⁡(x)∣f(x) = \ln|\sin(x)|

f′(x)=cos⁡(x)sin⁡(x)=cot⁡(x)f'(x) = \frac{\cos(x)}{\sin(x)} = \cot(x)

Example 8: Change of base

f(x)=log⁡10(x)=ln⁡(x)ln⁡(10)f(x) = \log_{10}(x) = \frac{\ln(x)}{\ln(10)}

f′(x)=1xln⁡(10)f'(x) = \frac{1}{x \ln(10)}