Chain Rule with Logarithmic Functions
What you'll learn: How to differentiate composite logarithmic functions like ln(f(x)) and log_a(g(x)) using the chain rule.
The Core Idea
When a logarithm wraps around another function—like ln(x² + 1) or log₂(sin(x))—you're dealing with a composition. The chain rule tells us to differentiate the outer function (the logarithm) first, then multiply by the derivative of the inner function.
For natural logarithms:
d/dx[ln(f(x))] = 1/f(x) · f'(x) = f'(x)/f(x)
For general base logarithms:
d/dx[log_a(g(x))] = 1/(g(x)·ln(a)) · g'(x) = g'(x)/(g(x)·ln(a))
Breaking It Down
Think of ln(f(x)) as a nested function: the logarithm is the "outside" and f(x) is the "inside."
The pattern:
- Derivative of ln(u) is 1/u
- Multiply by the derivative of u (the inside function)
Example 1: Find d/dx[ln(x² + 5)]
- Outside: ln(u) where u = x² + 5
- Derivative of ln(u) = 1/u = 1/(x² + 5)
- Derivative of inside: d/dx[x² + 5] = 2x
- Result: (2x)/(x² + 5)
Example 2: Find d/dx[log₃(cos(x))]
- Outside: log₃(u) where u = cos(x)
- Derivative: 1/(u·ln(3)) = 1/(cos(x)·ln(3))
- Derivative of inside: -sin(x)
- Result: -sin(x)/(cos(x)·ln(3))
Why This Matters
Logarithmic differentiation becomes incredibly powerful for complex products and quotients. The formula f'(x)/f(x) is also the derivative of ln|f(x)|, which appears constantly in integration and growth models.
Key Takeaway: To differentiate ln(f(x)), write f'(x)/f(x). For log_a(g(x)), write g'(x)/(g(x)·ln(a)). Always identify the inner function and multiply by its derivative.