Logarithmic differentiation finds derivatives by taking of both sides first, then differentiating implicitly. It is the standard route for functions with a variable exponent, like , and for products or quotients that would be messy to expand term by term.
When to use it
Reach for logarithmic differentiation when at least one of these is true:
- The function is a variable power, such as or .
- The function is a long product or quotient that repeated product and quotient rules would make tedious.
- Taking logs makes the structure easier to read before differentiating.
If you searched for how to differentiate , this is the method — the ordinary power rule does not apply because it assumes a constant exponent. For real-valued calculus the domain matters: the log step needs the expression inside the logarithm to be positive on the interval you are using. Many textbook examples are chosen so this already holds.
The procedure, step by step
- Set up the function. Write as the thing to differentiate.
- Take the natural log of both sides: .
- Apply log rules to simplify before differentiating:
- Differentiate both sides. Remember the left side gives , not just .
- Solve for by multiplying both sides by , then replace with the original expression.
The third rule is the key one: it drops an exponent down into a factor, which is usually far easier to differentiate.
Why the method helps
Without logs, fits no standard rule, because the power rule needs a constant exponent. After taking logs, the exponent becomes part of the product , and ordinary differentiation rules apply again. That is the whole idea: logarithms reorganize the expression into a form your existing tools can handle.
Full worked example: differentiate
Assume , since is only defined for positive in real-valued calculus. Start with
Take the natural log of both sides:
Apply the power rule for logs:
Differentiate both sides with respect to :
The right side needs the product rule:
so
Multiply both sides by :
Replace with the original function:
So for ,
Where each step traps people, plus a self-check
The setup and log step trap people who skip the domain check — for real-valued work, needs a positive input. The differentiation step traps those who forget that , not , and those who mis-differentiate by missing the product rule. The final step traps anyone who stops at and forgets to multiply by . And sometimes the trap is using this method at all when a simpler rule would be faster.
For your own pass, try
The base stays positive for every real , so the log step is valid everywhere. If you can turn into and differentiate that cleanly, the method has clicked. You will keep meeting it whenever expressions mix powers, products, and quotients in ways ordinary rules make messy, and it often tidies a formula before optimization or related-rates work.
Frequently Asked Questions
- When is logarithmic differentiation useful?
- It is most useful when a function is a product, quotient, or variable power that becomes simpler after taking logarithms, such as $x^x$ or $(x^2+1)^x$.
- Do I always take $\ln$ of both sides?
- In standard calculus examples, yes. The key advantage is that $\ln$ turns powers into factors and products into sums, but the logarithm step must be valid on the domain you are using.
Need help with a problem?
Upload your question and get a verified, step-by-step solution in seconds.
Open GPAI Solver →