Example 28: Derivative of is
Differentiate w.r.t. , where is a positive constant.
Let , where , so . Taking log on both sides,
Differentiating both sides w.r.t. ,
.
Want the reason behind every step, the basics and the checks?
In the variable is in the exponent, so the power rule (which needs a fixed exponent) does not apply. Taking logs brings the exponent down: , which is just a constant times . Differentiating gives . Equivalently, , and the chain rule gives the same result.
- Given
- , with a constant and any real number.
- To find
- .
- Plan
- Method 1: logarithmic differentiation. Method 2: rewrite as a power of and use the chain rule. Then interpret the factor .
Basics you need
for and any real (Section 5.4 proves it for positive integers and states, without proof, that it holds for every real ). Basics: exponentials and logarithms
This is Example 25 with . Raising both sides to the power : . Basics: exponentials and logarithms
, (Theorem 5); a constant times differentiates to that constant. Basics: derivative rules
Solution
is positive, so we may take its logarithm
Let . Since , for every real . So exists, and by the power law for logs
Logarithmic differentiation needs the function to be positive (Section 5.5), and here it is, for every . Note that is a fixed number (for example ): the right side is a constant multiple of , the simplest thing to differentiate.Differentiate both sides with respect to
Left: chain rule with outer , inner . Right: is a constant.
for a constant ; here . The common slip is to treat as if it depended on . It does not: is a constant.(Theorem 5 and the chain rule). Lesson: logarithmic differentiationSolve for
Multiply both sides by (allowed, as ) and substitute back.Rearranging an equation. Basics: solving for dy/dxMethod 2: write as a power of
Since (Example 25, valid as ), we have . Now use the chain rule with inner (so ) and outer :
This is the book's "Alternatively". It shows that every exponential function is really with a stretched input: . The stretch factor comes out as the inner derivative. Both methods agree, as they must.What the factor tells us
- : , so , which is Theorem 5 again.
- : , so the derivative is . Indeed is constant.
- : , so is increasing. : , so is decreasing.
(blue) and (gold), equal scales. Both pass through . There the slopes are and (dashed tangents). At , , so the slope there is exactly . Everywhere else the slope is times the height : an exponential function grows (or shrinks) at a rate proportional to its own size.
for every real , where is a constant. (This is the book's result, by both of its methods.)
Take , : . The central difference quotient gives , agreeing to 7 decimal places. The tempting wrong answer is far off.
- Using the power rule: is wrong. The power rule is for with a fixed exponent .
- Forgetting the factor , i.e. treating every exponential like .
- Differentiating as if it were . is a constant, so is a constant.
- (); compare . Variable in the exponent and variable in the base need different rules.
- With the chain rule: .
- Any can be written ; this is the trick behind logarithmic differentiation of in Example 29.
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| for real | Step 1 | Section 5.4 |
| Logarithmic differentiation needs a positive function | Steps 1–3 | Section 5.5 (Lesson: logarithmic differentiation) |
| ; | Steps 2, 4 | Theorem 5, Section 5.4 |
| Chain rule | Steps 2, 4 | Theorem 4, Section 5.3.1 |
| for | Step 4 | Example 25 |
| , , increasing | Step 5 | Section 5.4 |
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 →