Course contentsShow
← Mathematics
Lesson 1462 of 3,12133. Derivatives of Special FunctionsFree lesson

Variable Bases and Variable Exponents

Differentiate functions of the form f(x)^g(x) where both base and exponent depend on x using logarithmic differentiation.

Variable Bases and Variable Exponents

What You'll Learn

You'll learn how to differentiate functions where both the base and exponent depend on x, such as f(x) = x^x or f(x) = (sin x)^(x²).

The Challenge

Until now, you've handled cases where either the base or the exponent is constant:

  • Constant exponent: x³ → use the power rule
  • Constant base: 2^x → use d/dx[a^x] = a^x ln(a)

But what happens when both change? The function x^x doesn't fit either pattern. Neither the power rule nor exponential rules apply directly.

The Solution: Logarithmic Differentiation

Take the natural logarithm of both sides, then differentiate implicitly.

Step-by-Step Process

For y = f(x)^g(x):

  1. Start: y = f(x)^g(x)

  2. Take ln of both sides: ln(y) = ln(f(x)^g(x))

  3. Simplify using log properties: ln(y) = g(x) · ln(f(x))

  4. Differentiate implicitly:

    • Left side: (1/y) · dy/dx
    • Right side: use the product rule on g(x) · ln(f(x))
  5. Solve for dy/dx: dy/dx = y · [result from step 4]

  6. Substitute back: Replace y with the original function

Example with x^x

Let y = x^x

ln(y) = x · ln(x)

(1/y) · dy/dx = x · (1/x) + ln(x) · 1 = 1 + ln(x)

dy/dx = y(1 + ln(x)) = x^x(1 + ln(x))

Key Takeaway: When both base and exponent depend on x, use logarithmic differentiation: take ln of both sides, simplify using log properties, differentiate implicitly, then solve for dy/dx.