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.
4.2 Derivatives of Exponential & Logarithmic Functions
Quick Answer: The derivative of the natural exponential function is , and by the Chain Rule, . For base $a > 0$, . The derivative of the natural logarithm is , and for composites, . 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)$:
Applying the limit definition of the derivative:
The Chain Rule for Natural Exponentials
When the exponent is a differentiable function $u = 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}$.
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:
General Chain Rule Formula for Base $a$
| Function Type | General Formula | Concrete Example | Derivative |
|---|---|---|---|
| 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$:
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}$.
The Chain Rule for Logarithms ("Derivative Over Function")
When differentiating the logarithm of a composite function $u = g(x)$:
General Base Logarithms ($\log_a x$)
Using the change-of-base formula $\log_a x = \frac{\ln 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
- Product Law: $\ln(u \cdot v) = \ln u + \ln v$
- Quotient Law: $\ln\left(\frac{u}{v}\right) = \ln u - \ln v$
- 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):
- Expand using log properties:
- Differentiate term-by-term instantly:
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
- Take the natural logarithm of both sides: $\ln y = \ln\left([u(x)]^{v(x)}\right) = v(x) \ln(u(x))$.
- Differentiate implicitly with respect to $x$:
- Isolate $\frac{dy}{dx}$ by multiplying by $y$:
- 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$
- Take natural logs: $\ln y = \ln(x^x) = x \ln x$.
- Differentiate implicitly using Product Rule:
- Multiply by $y$:
- Back-substitute $y = x^x$:
Example 2: Differentiating $y = (\sin x)^x$ on $(0, \pi)$
- $\ln y = x \ln(\sin x)$
- $\frac{y'}{y} = (1)\ln(\sin x) + x \cdot \frac{\cos x}{\sin x} = \ln(\sin x) + x \cot 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 $\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$.
What is the derivative of the function f(x) = e^(cos(2x))?
What is the derivative of g(x) = log_3(x^4 + 1)?
Using logarithmic differentiation, what is the derivative of y = x^(sin x) for x > 0?
By expanding using logarithm properties first, what is the derivative of f(x) = ln[(x^2 + 1) / sqrt(3x - 2)] for x > 2/3?