Example 39: Differentiate and
Differentiate w.r.t. , the following function:
(i) (ii)
(i) Let
Differentiating w.r.t. (chain rule),
.
(ii) Let , .
Differentiating w.r.t. (chain rule),
.
Want the reason behind every step, the basics and the checks?
Both parts are composites, so both are done with the chain rule, after one rewriting step that puts each function into a form whose derivative we know. In (i), roots and reciprocals become powers: and . In (ii), the unfamiliar base 7 is turned into natural logarithms by the change of base rule, . In each part we also find where the function and its derivative exist.
- Given
- (i) ; (ii) , where means the natural logarithm, as everywhere in this chapter.
- To find
- in each part, and where it is valid.
- Plan
- (i) Domain; rewrite as powers; chain rule on each term; add. (ii) Domain; change of base; chain rule on .
Basics you need
, and , for . The power rule then applies with or . Basics: derivative rules
(Theorem 4, Section 5.3.1): differentiate the outer function at the inner one, then multiply by the derivative of the inner one. Lesson: the chain rule
is the natural logarithm (base ), defined only for positive inputs, with (Theorem 5, Section 5.4). Change of base: (Section 5.4). Basics: exponentials and logarithms
A derivative is a limit of difference quotients. If that quotient grows without bound, as it does for at , the function is not differentiable there. Basics: slope at a point
Part (i):
Where is the function defined?
The square root needs , that is . The second term needs (positive, since it is under a root and in a denominator), and this always holds because gives . So
The textbook says the function is defined for . Strictly it is also defined at , where . What fails at is the derivative (Part (i), Step 5). So the book's condition is exactly the right condition for the answer, as it says at the end.A square root of a real number needs a non-negative input; a denominator must not be zero. The domain is the set of where every piece of the formula makes sense.Rewrite both terms as powers
The power rule handles for any exponent, so rewriting roots and reciprocals as powers lets one rule do all the work. The minus sign in records "one over".and (laws of exponents).Differentiate the first term (chain rule)
Inner , ; outer , with derivative . For (so that ):
The power rule lowers the exponent by one, , and the chain rule multiplies by the inner rate 3. We need , not just , because is not defined at .Power rule with ; chain rule, Theorem 4, Section 5.3.1. Lesson: the chain ruleDifferentiate the second term (chain rule)
Inner , ; outer , with derivative . For every real (here ):
Lowering the exponent: . Then . The negative exponent moves to the denominator as . This term is differentiable everywhere because its inner function never reaches .Power rule with ; by the sum, constant-multiple and power rules (Section 5.3). Basics: derivative rulesAdd the two derivatives, and check the end point
By the sum rule, for :
At there is no derivative. Only a right-hand quotient is possible there (the function is not defined to the left), and for the first term it is
The second term has a finite derivative at , so the sum's quotient also grows without bound: the graph has a vertical tangent at its starting point.
This is why the answer is stated for only. A formula with in a denominator could never be evaluated at anyway, and the difference quotient confirms that no finite slope exists there.Sum rule (1), Section 5.3; derivative as a limit of difference quotients, Section 5.3. Lesson: differentiability
Part (ii):
Where is the function defined?
The inner needs . The outer needs a positive input, so , that is . So
Logarithms of any base accept only positive numbers. Since is increasing and , "" means "". This matches the textbook's statement.Domain of a logarithm: positive reals (Section 5.4). Basics: exponentials and logarithmsChange the base to
By the change of base rule, with :
Theorem 5 gives the derivative of the natural logarithm only. Changing base turns into natural logarithms divided by the constant . A constant divisor simply stays in front when we differentiate.Differentiate by the chain rule
Inner , ; outer , with derivative . For (so ):
Each link is a natural logarithm, whose derivative is "one over its input". The outer one sees the input , so its rate is , not .Theorem 5 (2), Section 5.4: ; chain rule, Theorem 4. Lesson: exponential and logarithmic functionsPut the constant back
A constant multiple passes through the derivative unchanged. The final form multiplies the three denominators together. None of them is zero for : , , .Constant multiple rule, . Basics: derivative rules
(i) For :
The function is defined at but has no derivative there.
(ii) For : .
(These agree with the textbook's worked answers.)
(i) At : and , so the formula gives about . A difference quotient of with on each side of gives .
(ii) At : and , so the denominator is and the formula gives about . A difference quotient of at gives .
- Forgetting the inner derivatives. The factors and in Part (i), Steps 3 and 4 come from the chain rule; without them the answer is wrong by those factors.
- Exponent arithmetic. , not or .
- Treating like . , not . The factor is easy to lose.
- Evaluating the outer derivative at . In Part (ii), the outer logarithm's rate is , because its input is .
- Rewrite roots and reciprocals as powers, then one rule (power plus chain) covers everything: .
- For any base , : . Change of base is how you prove it.
- State where the answer holds. A formula with or in a denominator needs .
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| , | Part (i), Step 2 | Laws of exponents |
| Power rule ; sum and constant-multiple rules | Part (i), Steps 3–5 | Table 5.3 and rules (1), (2), Section 5.3 |
| Chain rule | Part (i), Steps 3, 4; Part (ii), Step 3 | Theorem 4, Section 5.3.1 (Lesson: the chain rule) |
| Derivative as a limit; no derivative where the quotient is unbounded | Part (i), Step 5 | Section 5.3 (Lesson: differentiability) |
| Log needs a positive input; means base | Part (ii), Step 1 | Section 5.4 |
| Change of base | Part (ii), Step 2 | Section 5.4, property (1) of logarithms |
| Part (ii), Step 3 | Theorem 5, Section 5.4 (Lesson: exponential and logarithmic functions) |
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 →