Class 12 Maths, Worked in Full Past papersGet updates
Chapter 6 · Application of Derivatives

Exercise 6.2 · Q17: log⁡∣cos⁡x∣\log|\cos x| falls on (0,π2)\left(0,\frac\pi2\right) and rises on (3π2,2π)\left(\frac{3\pi}2,2\pi\right)

Exercise 6.2Increasing and decreasing functions · Section 6.3
The question

17. Prove that the function ff given by f(x)=log⁡∣cos⁡x∣f(x) = \log|\cos x| is decreasing on (0,π2)\left(0, \frac{\pi}{2}\right) and increasing on (3π2,2π)\left(\frac{3\pi}{2}, 2\pi\right)⁠.

Exam answer

In (0,π2)\left(0, \frac{\pi}{2}\right) and (3π2,2π)\left(\frac{3\pi}{2}, 2\pi\right)⁠, cos⁡x>0\cos x > 0⁠, so f(x)=log⁡cos⁡xf(x) = \log\cos x⁠.

By the chain rule,

f′(x)=1cos⁡x⋅(−sin⁡x)=−tan⁡xf'(x) = \frac{1}{\cos x}\cdot(-\sin x) = -\tan x

In (0,π2)\left(0, \frac{\pi}{2}\right)⁠, tan⁡x>0\tan x > 0⁠, so f′(x)<0f'(x) < 0⁠.

In (3π2,2π)\left(\frac{3\pi}{2}, 2\pi\right)⁠, tan⁡x<0\tan x < 0⁠, so f′(x)>0f'(x) > 0⁠.

Hence ff is decreasing on (0,π2)\left(0, \dfrac{\pi}{2}\right) and increasing on (3π2,2π)\left(\dfrac{3\pi}{2}, 2\pi\right)⁠.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

On both intervals cos⁡x\cos x is positive (first and fourth quadrants), so the absolute value does nothing there: f(x)=log⁡cos⁡xf(x) = \log\cos x⁠. By the chain rule f′(x)=−sin⁡xcos⁡x=−tan⁡xf'(x) = \frac{-\sin x}{\cos x} = -\tan x⁠. In the first quadrant tan⁡x>0\tan x \gt 0⁠, so f′<0f' \lt 0⁠; in the fourth quadrant tan⁡x<0\tan x \lt 0⁠, so f′>0f' \gt 0⁠.

Given, to show, and the plan
Given
f(x)=log⁡∣cos⁡x∣f(x) = \log|\cos x|⁠, with log⁡\log the natural logarithm (Section 5.4).
To show
ff is decreasing on (0,π2)\left(0, \frac{\pi}{2}\right) and increasing on (3π2,2π)\left(\frac{3\pi}{2}, 2\pi\right)⁠.
Plan
(1) Domain: where ∣cos⁡x∣>0|\cos x| \gt 0⁠. (2) Remove the absolute value on the two intervals. (3) Differentiate with the chain rule. (4) Sign of f′f' on each interval. (5) Theorem 1, pair by pair.

Basics you need

1Increasing and decreasing (Definition 1, Section 6.3)

Decreasing on I: x1<x2x_1 \lt x_2 in I gives f(x1)≥f(x2)f(x_1) \ge f(x_2)⁠. Increasing: it gives f(x1)≤f(x2)f(x_1) \le f(x_2)⁠. Strict versions use >\gt and <\lt⁠. Lesson: increasing and decreasing functions

2Theorem 1 on an open interval

For any x1<x2x_1 \lt x_2 in the open interval, apply Theorem 1 on [x1,x2][x_1, x_2]⁠: the sign of f′f' between them decides the order of f(x1)f(x_1) and f(x2)f(x_2)⁠, strictly when f′f' never vanishes (Mean Value Theorem step of the proof). Lesson: increasing and decreasing functions

3Absolute value

∣u∣=u|u| = u when u≥0u \ge 0⁠, and ∣u∣=−u|u| = -u when u<0u \lt 0⁠. So where cos⁡x>0\cos x \gt 0⁠, ∣cos⁡x∣=cos⁡x|\cos x| = \cos x⁠. Basics: sign of a product

4Quadrant signs

First quadrant (0,π2)\left(0, \frac{\pi}{2}\right)⁠: sin⁡,cos⁡,tan⁡\sin, \cos, \tan all positive. Fourth quadrant (3π2,2π)\left(\frac{3\pi}{2}, 2\pi\right)⁠: cos⁡>0\cos \gt 0⁠, sin⁡<0\sin \lt 0⁠, so tan⁡<0\tan \lt 0⁠. Basics: signs of sin and cos on the unit circle

5Chain rule with log⁡\log

ddxlog⁡g(x)=g′(x)g(x)\frac{d}{dx}\log g(x) = \frac{g'(x)}{g(x)} where g(x)>0g(x) \gt 0 (Theorem 4, Section 5.3.1, with Theorem 5, Section 5.4). Basics: the chain rule

Solution

  1. Where is ff defined?

    log⁡∣cos⁡x∣\log|\cos x| needs ∣cos⁡x∣>0|\cos x| \gt 0⁠, that is, cos⁡x≠0\cos x \ne 0⁠. Cosine is zero only at odd multiples of π2\frac{\pi}{2}⁠; between 00 and 2π2\pi these are π2\frac{\pi}{2} and 3π2\frac{3\pi}{2}⁠. Neither lies inside (0,π2)\left(0, \frac{\pi}{2}\right) or (3π2,2π)\left(\frac{3\pi}{2}, 2\pi\right) (the intervals are open), so ff is defined on both intervals.

    The absolute value lets the logarithm accept negative values of cos⁡x\cos x too, so the domain is larger than for log⁡cos⁡x\log\cos x⁠. Only the zeros of cos⁡x\cos x are excluded.
    cos⁡x=0\cos x = 0 exactly when xx is an odd multiple of π2\frac{\pi}{2}⁠. Basics: signs of sin and cos
  2. Remove the absolute value on the two intervals

    For 0<x<π20 \lt x \lt \frac{\pi}{2} (first quadrant) and for 3π2<x<2π\frac{3\pi}{2} \lt x \lt 2\pi (fourth quadrant), cos⁡x>0\cos x \gt 0⁠. So on both intervals

    ∣cos⁡x∣=cos⁡x,f(x)=log⁡cos⁡x.|\cos x| = \cos x, \qquad f(x) = \log\cos x.
    An absolute value is awkward to differentiate directly. On each interval we only need the formula that holds there, and on these two intervals cos⁡x\cos x never changes sign.
    ∣u∣=u|u| = u for u>0u \gt 0⁠. Basics: sign of a product
  3. Differentiate with the chain rule

    Inner function u=cos⁡xu = \cos x (dudx=−sin⁡x\frac{du}{dx} = -\sin x⁠), outer function log⁡u\log u (derivative 1u\frac1u⁠), valid since u>0u \gt 0 here:

    f′(x)=1cos⁡x⋅(−sin⁡x)=−sin⁡xcos⁡x=−tan⁡x.\begin{aligned} f'(x) &= \frac{1}{\cos x}\cdot(-\sin x)\\ &= -\frac{\sin x}{\cos x} = -\tan x. \end{aligned}
    This formula holds on both intervals. (In fact ddxlog⁡∣u∣=u′u\frac{d}{dx}\log|u| = \frac{u'}{u} wherever u≠0u \ne 0⁠, so f′(x)=−tan⁡xf'(x) = -\tan x on the whole domain of ff⁠; we do not need that here.)
    Chain rule (Theorem 4, Section 5.3.1); ddxlog⁡x=1x\frac{d}{dx}\log x = \frac1x (Theorem 5, Section 5.4); ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x = -\sin x⁠. Basics: the chain rule
  4. Sign of f′=−tan⁡xf' = -\tan x on each interval

    • 0<x<π20 \lt x \lt \frac{\pi}{2}⁠: sin⁡x>0\sin x \gt 0⁠, cos⁡x>0\cos x \gt 0⁠, so tan⁡x>0\tan x \gt 0 and f′(x)=−tan⁡x<0f'(x) = -\tan x \lt 0⁠.
    • 3π2<x<2π\frac{3\pi}{2} \lt x \lt 2\pi⁠: sin⁡x<0\sin x \lt 0⁠, cos⁡x>0\cos x \gt 0⁠, so tan⁡x<0\tan x \lt 0 and f′(x)=−tan⁡x>0f'(x) = -\tan x \gt 0⁠.
    0 π/2 π 3π/2 2π sin x + + − − 0 cos x + − − + 0 0 f′(x) − + − + × 0 × f decreasing increasing decreasing increasing × ×
    Sign chart of f′(x)=−sin⁡xcos⁡xf'(x) = -\frac{\sin x}{\cos x} on (0,2π)(0, 2\pi)⁠, drawn to scale. The two intervals of the question are the first and last pieces. At π2\frac{\pi}{2} and 3π2\frac{3\pi}{2}⁠, ff is not defined (×).
    The minus sign in front of tan⁡x\tan x is the whole point: log⁡cos⁡x\log\cos x falls where cos⁡x\cos x falls (first quadrant) and rises where cos⁡x\cos x rises (fourth quadrant).
    tan⁡x=sin⁡xcos⁡x\tan x = \frac{\sin x}{\cos x}⁠; read the signs of top and bottom. Basics: signs of sin and cos
  5. Apply Theorem 1 on each interval

    On (0,π2)\left(0, \frac{\pi}{2}\right)⁠. For any x1<x2x_1 \lt x_2 in it, ff is continuous on [x1,x2][x_1, x_2]⁠, differentiable inside, and f′<0f' \lt 0 there. Theorem 1 (b) gives f(x1)≥f(x2)f(x_1) \ge f(x_2)⁠, and the proof gives f(x1)>f(x2)f(x_1) \gt f(x_2)⁠. So ff is decreasing (strictly) on (0,π2)\left(0, \frac{\pi}{2}\right).

    On (3π2,2π)\left(\frac{3\pi}{2}, 2\pi\right)⁠. For any x1<x2x_1 \lt x_2 in it, f′>0f' \gt 0 between them, so Theorem 1 (a) and its proof give f(x1)<f(x2)f(x_1) \lt f(x_2)⁠. So ff is increasing (strictly) on (3π2,2π)\left(\frac{3\pi}{2}, 2\pi\right).

    x y π/2 π 3π/2 2π −1 −2 −3 decreasing increasing
    y=log⁡∣cos⁡x∣y = \log|\cos x| on (0,2π)(0, 2\pi) (cut off at height −3-3⁠; the axes use different scales). The two pieces asked about are drawn in blue: falling from near 00 on (0,π2)\left(0, \frac{\pi}{2}\right)⁠, rising back towards 00 on (3π2,2π)\left(\frac{3\pi}{2}, 2\pi\right)⁠. Dashed lines: x=π2x = \frac{\pi}{2} and x=3π2x = \frac{3\pi}{2}⁠, where cos⁡x=0\cos x = 0⁠.
    Theorem 1 is applied on a closed interval [x1,x2][x_1, x_2] that sits inside the open interval, so the excluded points π2\frac{\pi}{2} and 3π2\frac{3\pi}{2} (where ff is undefined) are never involved.
    Theorem 1 (a), (b), Section 6.3. Lesson: increasing and decreasing functions
Result

On both intervals cos⁡x>0\cos x \gt 0⁠, so f(x)=log⁡cos⁡xf(x) = \log\cos x and f′(x)=−tan⁡xf'(x) = -\tan x⁠. This is negative on (0,π2)\left(0, \frac{\pi}{2}\right) and positive on (3π2,2π)\left(\frac{3\pi}{2}, 2\pi\right)⁠, so log⁡∣cos⁡x∣\log|\cos x| is decreasing on (0,π2)\left(0, \frac{\pi}{2}\right) and increasing on (3π2,2π)\left(\frac{3\pi}{2}, 2\pi\right), strictly in both cases. (The answer key has no entry for this proof question.)

Check it with numbers

f(π6)=log⁡32≈−0.143841f\left(\frac{\pi}{6}\right) = \log\frac{\sqrt3}{2} \approx -0.143841 and f(π3)=log⁡12≈−0.693147f\left(\frac{\pi}{3}\right) = \log\frac12 \approx -0.693147⁠: falling. ✓
f(5π3)=log⁡12≈−0.693147f\left(\frac{5\pi}{3}\right) = \log\frac12 \approx -0.693147 and f(11π6)=log⁡32≈−0.143841f\left(\frac{11\pi}{6}\right) = \log\frac{\sqrt3}{2} \approx -0.143841⁠: rising. ✓
Derivative: −tan⁡π4=−1<0-\tan\frac{\pi}{4} = -1 \lt 0 and −tan⁡7π4=1>0-\tan\frac{7\pi}{4} = 1 \gt 0⁠. ✓

Common mistakes
  1. Dropping the minus sign from ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x = -\sin x⁠. That gives f′=tan⁡xf' = \tan x and exactly the wrong conclusions.
  2. Getting the fourth-quadrant signs wrong. There cos⁡x>0\cos x \gt 0 but sin⁡x<0\sin x \lt 0⁠, so tan⁡x<0\tan x \lt 0⁠.
  3. Keeping the absolute value and not knowing how to differentiate it. Decide the sign of cos⁡x\cos x on each interval first; then ∣cos⁡x∣|\cos x| is just cos⁡x\cos x⁠.
What to take away
  1. On an interval where the inside of ∣ ⋅ ∣|\,\cdot\,| keeps one sign, replace the absolute value by ++ or −- that expression.
  2. log⁡g\log g increases exactly where g>0g \gt 0 increases, because g′g\frac{g'}{g} has the sign of g′g'⁠.
  3. Read signs of tan⁡\tan⁠, cot⁡\cot from the signs of sin⁡\sin and cos⁡\cos in the right quadrant.

Every fact used, and where it comes from

FactUsed inSource
Increasing and decreasing on an intervalStep 5Definition 1, Section 6.3 (Lesson: increasing and decreasing functions)
Sign of f′f' decides increasing or decreasingStep 5Theorem 1, Section 6.3, and the Mean Value Theorem step of its proof
log⁡\log means log⁡e\log_e⁠, defined for positive numbersSteps 1, 3Section 5.4
ddxlog⁡x=1x\frac{d}{dx}\log x = \frac1x⁠; chain ruleStep 3Theorem 5 (2), Section 5.4; Theorem 4, Section 5.3.1
ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x = -\sin x⁠; zeros and quadrant signs of sin⁡\sin⁠, cos⁡\cosSteps 1–4Class XI, Limits and Derivatives; Trigonometric Functions
Similar reasoning for cos⁡x\cos x itselfStep 4Example 9, Section 6.3
Found an error, or want more?

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 →