Exercise 5.5 · Q1: Differentiate
Differentiate the function w.r.t. :
Let . Taking log on both sides (where ),
Differentiating both sides w.r.t. ,
Multiplying by ,
Want the reason behind every step, the basics and the checks?
A product of several factors becomes a sum when we take logarithms, and a sum is differentiated term by term. Each factor here is a cosine, which can be negative, so we take the logarithm of the absolute value: exists wherever , and its derivative is still . The answer comes out in terms of , , , so that form needs every cosine to be non-zero. The ordinary product rule gives a form valid for every .
- Given
- , defined for every real .
- To find
- , and where each form of the answer holds.
- Plan
- (1) See where is positive, negative or zero. (2) Show that . (3) Take , split it, differentiate, multiply by . (4) Get the same answer from the product rule, valid everywhere, and look at a point where a cosine is zero.
Basics you need
for (Section 5.4). Since , this gives whenever . Basics: exponentials and logarithms
(Section 5.3); used twice it gives . Basics: derivative rules
Solution
Where is positive, negative or zero?
Let . It is defined and differentiable for every real , being a product of differentiable functions. But it is not always positive. At , . At (radians), , and , so
which is negative.
And exactly when one of the cosines is zero:
with . Call these the excluded points. Away from them, , but may be negative, so may not exist.
The book's method takes , which needs ("as otherwise their logarithms are not defined", Section 5.5). Here changes sign, so we use instead: at every point that is not excluded.The tool: wherever
Let be differentiable with . Near such a point keeps one sign (it is continuous, Theorem 3).
- If : , so .
- If : , so .
Either way the result is . In particular, .
This is what lets logarithmic differentiation work for functions that are negative in places: the absolute value makes the logarithm exist, and the derivative formula does not change. Each case is just the chain rule with outer function and inner function or .Take and split it
At any point that is not excluded, all three cosines are non-zero, so
The absolute value of a product is the product of the absolute values, and the three numbers , , are positive, so the law applies (twice). The product has become a sum.(Section 5.4). Basics: exponentials and logarithmsDifferentiate both sides
Left side, by Step 2: . Right side, by Step 2 on each term with , :
So
The factors and are the inner derivatives: is a composite with outer and inner , so its derivative is . Forgetting them is the most common error in this question.Multiply by
This holds at every where , and are all non-zero, that is, at every that is not an odd multiple of , or .
Multiplying both sides by (non-zero here) isolates . This is exactly the textbook's answer. The restriction is real: at an excluded point one of the tangents is undefined, so this form cannot even be evaluated there.The product rule gives a form valid for every
With , , and , , :
Where no cosine is zero, this equals the answer of Step 5: for instance , since ; the other two terms match in the same way.
The product rule needs no logarithms and no sign conditions, so this form is valid for every real . Expanding the bracket of Step 5 and cancelling one cosine in each term gives exactly these three terms, which confirms the textbook answer wherever it is defined.At an excluded point the derivative still exists
Take , where , so and is undefined. The product-rule form still works: the first two terms contain , so
So the restriction in Step 5 belongs to the method (and the tan form of the answer), not to the function: is differentiable everywhere. , and a central difference quotient at gives the same.
Wherever , , are all non-zero,
(Textbook answer: ; the key does not state the condition.) For every real , including the excluded points,
At : , , , so . The bracket is , and
The central difference quotient gives , agreeing to 6 decimal places. A third route: the product-to-sum formulas give , so , which at is also .
- Taking without a sign check. is negative for some (for example ); use , or the product rule.
- Dropping the inner derivatives and : , not .
- Sign slips: , so every term carries a minus sign.
- Concluding that is not differentiable where is undefined. Only the tan form fails there; Step 7 shows the derivative exists.
- For a product, turns it into a sum, and wherever .
- The log method needs every factor to be non-zero; state where that is, and note that the answer may still extend to the other points.
- Two methods (log differentiation, product rule) agreeing is a strong check.
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| Logarithmic differentiation needs a positive function | Step 1 | Section 5.5 (Lesson: logarithmic differentiation) |
| Zeros of cosine: odd multiples of | Step 1 | Trigonometric functions (Class XI) |
| A differentiable function is continuous | Step 2 | Theorem 3, Section 5.3 |
| ; chain rule | Steps 2, 4 | Theorem 5, Section 5.4; Theorem 4, Section 5.3.1 |
| , | Steps 2, 4 | Derived in Step 2 from Theorems 4 and 5 |
| Step 3 | Section 5.4 | |
| , | Steps 4, 6 | Table 5.3, Section 5.3 |
| Product rule | Step 6 | Algebra of derivatives (2), Section 5.3 |
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 →