Derivatives of Exponential Expressions with Variable Bases
What you'll learn: How to differentiate functions where both the base and exponent are variable, like f(x)^g(x), using logarithmic differentiation.
The Challenge
So far you've handled exponential functions with constant bases (like 2^x) and power functions with constant exponents (like x^3). But what happens when both the base and exponent contain variables? Think of something like x^(sin(x)) or (x² + 1)^(ln(x)). Neither the power rule nor exponential differentiation rules apply directly here!
The Solution: Logarithmic Differentiation
The key insight is to use logarithms to transform the problem into something manageable. Here's the technique:
- Start with y = f(x)^g(x)
- Take the natural logarithm of both sides: ln(y) = ln(f(x)^g(x))
- Use the log power rule: ln(y) = g(x) · ln(f(x))
- Differentiate both sides implicitly with respect to x:
- Left side: (1/y) · dy/dx
- Right side: Use the product rule on g(x) · ln(f(x))
- Solve for dy/dx: dy/dx = y · [result from step 4]
- Substitute back y = f(x)^g(x)
Example Walkthrough
For y = x^x:
- ln(y) = x · ln(x)
- Differentiate: (1/y) · dy/dx = 1 · ln(x) + x · (1/x) = ln(x) + 1
- Solve: dy/dx = y · (ln(x) + 1) = x^x · (ln(x) + 1)
Notice how we combined everything we know: implicit differentiation, the product rule, chain rule, and derivatives of logarithms.
Key Takeaway: To differentiate f(x)^g(x), use logarithmic differentiation: take ln of both sides, differentiate implicitly, then multiply by the original function to isolate dy/dx.