Miscellaneous · Q3: Differentiate by taking logarithms
Differentiate w.r.t. the function
Let , .
Taking log on both sides,
Differentiating both sides w.r.t. (product rule),
Want the reason behind every step, the basics and the checks?
Both the base and the exponent change with . The power rule needs a constant exponent and the rule for needs a constant base, so neither applies. Taking the logarithm turns the power into a product, , and a product is differentiated by the product rule. This is logarithmic differentiation (Section 5.5), and it needs the base to be positive, here .
- Given
- . The question states no domain; a variable real power is only defined for a positive base, so we work on .
- To find
- .
- Plan
- (1) Fix the domain. (2) Take logarithms. (3) Differentiate the left side by the chain rule. (4) Differentiate the right side by the product and chain rules. (5) Multiply by and write the answer in terms of .
Basics you need
means the natural logarithm (base ). It is defined only for positive numbers, and for and any real (Section 5.4). Basics: exponentials and logarithms
for (Theorem 5). With the chain rule, .
. Chain rule: derivative of the outer function at the inner one, times the derivative of the inner one. Basics: derivative rules
For with : take of both sides, differentiate, multiply by . Lesson: logarithmic differentiation
Solution
Fix the domain:
Let . Here the base is and the exponent is . The exponent is not a whole number in general (for example at it is about ), so the power only makes sense for a positive base:
For we also have , because a positive number raised to any real power is positive. So is defined.
The book stresses that in logarithmic differentiation " and must always be positive", since their logarithms are taken (Section 5.5). Stating the domain first is what makes every later step legal.A real power with a non-integer is defined for , and it is then positive. Basics: exponentials and logarithmsTake logarithms of both sides
The rule brings the exponent down in front. The awkward "variable power" becomes an ordinary product of two functions, and , each of which we can differentiate.Differentiate the left side:
Here is a composite: the outer function is , the inner function is (a function of ). By the chain rule,
(Theorem 5), and the chain rule multiplies by the derivative of the inner function, , which is exactly what we want to find.Chain rule, Theorem 4, Section 5.3.1. Lesson: chain ruleDifferentiate the right side by the product rule
The two factors and their derivatives:
Each line is a chain rule: in the first the inner function is (derivative 2), in the second the inner function is (derivative 5). Now the product rule:
The product rule is "derivative of the first times the second, plus the first times derivative of the second". A quick way to see : , and is a constant. The 5 cancels, which surprises many students.Equate and multiply by
Steps 3 and 4 differentiate the two sides of the same equation, so they are equal:
Multiply both sides by :
The derivative must be written in terms of , so we put back . Multiplying is allowed because is a number (non-zero, in fact positive), and nothing is divided by zero since .Logarithmic differentiation, Section 5.5 (compare Example 29, ). Lesson: logarithmic differentiationCross-check by writing the power as an exponential
For , , so . By the chain rule with outer function and inner function :
The first factor is itself and the second is the derivative of Step 4, so we get the same answer.
Logarithmic differentiation and "write it as " are the same idea seen from two sides. Getting the same result two ways guards against slips.
For ,
(Textbook answer: , the same. The key does not state , but the function is only defined there.)
At : , , , so .
The bracket is , which is about . So the formula gives , about .
Difference quotient with : and , so the quotient is about . ✓
- Using the power rule and writing . The power rule needs a constant ; here the exponent varies.
- Writing . The chain rule supplies a factor 5, giving .
- Dropping the 2 from : , not .
- Leaving the answer as without substituting .
- Variable base and variable exponent: take logarithms (base must be positive), then use the product rule.
- The result always has the shape for .
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| is defined only for positive numbers | Step 1 | Section 5.4, observation (1) on the log function |
| (any real ) | Step 2 | Section 5.4 (stated there for every real , without proof) |
| ; | Steps 3, 4, 6 | Theorem 5, Section 5.4 |
| Chain rule | Steps 3, 4, 6 | Theorem 4, Section 5.3.1 (Lesson: chain rule) |
| Product rule; | Step 4 | Rule (2) and Table 5.3, Section 5.3 |
| Logarithmic differentiation, positive base | Steps 1, 5 | Section 5.5, Example 29 (Lesson: logarithmic differentiation) |
| Answer | Result | Answers, Miscellaneous Exercise on Chapter 5, Q3 |
| Numerical values | Check | Recomputed in the site's verification script |
Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →