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

Example 9: cos⁡x\cos x⁠: decreasing on (0,π)(0,\pi)⁠, increasing on (π,2π)(\pi,2\pi)

ExamplesIncreasing and decreasing functions · Section 6.3
The question

Prove that the function given by f(x)=cos⁡xf(x) = \cos x is

(a) decreasing in (0,π)(0, \pi)
(b) increasing in (π,2π)(\pi, 2\pi)⁠, and
(c) neither increasing nor decreasing in (0,2π)(0, 2\pi)⁠.

Exam answer f′(x)=−sin⁡xf'(x) = -\sin x

(a) For x∈(0,π)x \in (0, \pi)⁠, sin⁡x>0\sin x > 0⁠, so f′(x)<0f'(x) < 0⁠.

Hence ff is decreasing in (0,π)(0, \pi)⁠.

(b) For x∈(π,2π)x \in (\pi, 2\pi)⁠, sin⁡x<0\sin x < 0⁠, so f′(x)>0f'(x) > 0⁠.

Hence ff is increasing in (π,2π)(\pi, 2\pi)⁠.

(c) π2<π\frac{\pi}{2} < \pi⁠, but f(π2)=0>−1=f(π)f\left(\frac{\pi}{2}\right) = 0 > -1 = f(\pi)⁠. So ff is not increasing in (0,2π)(0, 2\pi)⁠.

π<3π2\pi < \frac{3\pi}{2}⁠, but f(π)=−1<0=f(3π2)f(\pi) = -1 < 0 = f\left(\frac{3\pi}{2}\right)⁠. So ff is not decreasing in (0,2π)(0, 2\pi)⁠.

Hence ff is neither increasing nor decreasing in (0,2π)(0, 2\pi)⁠.

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

The one idea this problem is built on

The derivative of cos⁡x\cos x is −sin⁡x-\sin x⁠, so the direction of the cosine graph is decided by the sign of sin⁡x\sin x: on (0,π)(0, \pi) sine is positive, so f′<0f' < 0 and cosine falls; on (π,2π)(\pi, 2\pi) sine is negative, so f′>0f' > 0 and cosine rises. For (c), "neither" is disproved by two explicit pairs of points, one showing a fall and one showing a rise.

Given, to find, and the plan
Given
f(x)=cos⁡xf(x) = \cos x⁠, differentiable for every real xx⁠, with xx in radians.
To show
(a) decreasing on (0,π)(0, \pi)⁠; (b) increasing on (π,2π)(\pi, 2\pi)⁠; (c) neither increasing nor decreasing on (0,2π)(0, 2\pi)⁠.
Plan
Find f′(x)=−sin⁡xf'(x) = -\sin x⁠; read the sign of sin⁡x\sin x on each interval from the unit circle; apply Theorem 1 between any two points of the interval; for (c) exhibit one pair where ff falls and one where it rises.

Basics you need

1Definition 1 (Section 6.3)

ff is increasing on I if x1<x2x_1 < x_2 in I ⇒f(x1)≤f(x2)\Rightarrow f(x_1) \le f(x_2)⁠, and decreasing on I if x1<x2x_1 < x_2 in I ⇒f(x1)≥f(x2)\Rightarrow f(x_1) \ge f(x_2)⁠, for all x1,x2x_1, x_2 in I. The strict versions use << and >>⁠. Lesson: increasing and decreasing functions

2Theorem 1 (Section 6.3)

If ff is continuous on [a,b][a, b] and differentiable on (a,b)(a, b)⁠, then ff is increasing in [a,b][a, b] if f′(x)≥0f'(x) \ge 0⁠, and decreasing in [a,b][a, b] if f′(x)≤0f'(x) \le 0⁠, for each x∈(a,b)x \in (a, b)⁠.

3Signs of sine

On the unit circle, sin⁡x\sin x is the height of the point at angle xx⁠: positive in the first and second quadrants, 0<x<π0 < x < \pi⁠, and negative in the third and fourth, π<x<2π\pi < x < 2\pi⁠. Basics: signs of sin and cos on the unit circle

4Derivative of cosine

ddx(cos⁡x)=−sin⁡x\frac{d}{dx}(\cos x) = -\sin x (Table 5.3, Section 5.3).

Solution

  1. Differentiate

    f′(x)=ddx(cos⁡x)=−sin⁡x.f'(x) = \frac{d}{dx}(\cos x) = -\sin x .

    So f′(x)f'(x) has the opposite sign to sin⁡x\sin x at every xx⁠.

    Theorem 1 links the direction of ff to the sign of f′f'⁠. Because of the minus sign, cosine falls exactly where sine is positive and rises exactly where sine is negative.
    Derivative of cos⁡x\cos x⁠, Section 5.3. The minus sign is easy to drop: ddxsin⁡x=cos⁡x\frac{d}{dx}\sin x = \cos x but ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x = -\sin x⁠.
  2. Part (a): decreasing on (0,π)(0, \pi)

    For every x∈(0,π)x \in (0, \pi)⁠, sin⁡x>0\sin x > 0⁠, so f′(x)=−sin⁡x<0f'(x) = -\sin x < 0⁠.

    Now take any x1<x2x_1 < x_2 in (0,π)(0, \pi)⁠. On [x1,x2][x_1, x_2] the cosine is continuous, it is differentiable on (x1,x2)(x_1, x_2)⁠, and f′(x)<0f'(x) < 0⁠, so f′(x)≤0f'(x) \le 0⁠, there (because (x1,x2)(x_1, x_2) lies inside (0,π)(0, \pi)⁠). By Theorem 1(b), ff is decreasing in [x1,x2][x_1, x_2]⁠, so f(x1)≥f(x2)f(x_1) \ge f(x_2)⁠. Hence cos⁡x\cos x is decreasing on (0,π)(0, \pi).

    Theorem 1 is stated for a closed interval, while (0,π)(0, \pi) is open. Definition 1 compares only two points at a time, and every pair x1<x2x_1 < x_2 of (0,π)(0, \pi) spans a closed interval [x1,x2][x_1, x_2] inside (0,π)(0, \pi)⁠, where the theorem applies. With f′<0f' < 0 strictly, the Mean Value Theorem argument in the book's proof of Theorem 1 even gives f(x1)>f(x2)f(x_1) > f(x_2)⁠: strictly decreasing.
    Sine is positive in the first and second quadrants. Basics: signs of sin and cos
  3. Part (b): increasing on (π,2π)(\pi, 2\pi)

    For every x∈(π,2π)x \in (\pi, 2\pi)⁠, sin⁡x<0\sin x < 0⁠, so f′(x)=−sin⁡x>0f'(x) = -\sin x > 0⁠.

    For any x1<x2x_1 < x_2 in (π,2π)(\pi, 2\pi)⁠, Theorem 1(a) on [x1,x2][x_1, x_2] gives f(x1)≤f(x2)f(x_1) \le f(x_2) (in fact <<⁠). Hence cos⁡x\cos x is increasing on (π,2π)(\pi, 2\pi).

    x y π/2 π 3π/2 2π 1 −1 rose: decreasing on (0, π) green: increasing on (π, 2π) violet dots: π/2, π, 3π/2 heights 0, −1, 0: down, then up. So on (0, 2π) cos x is neither increasing nor decreasing
    The graph of y=cos⁡xy = \cos x on [0,2π][0, 2\pi] (not to scale: the yy unit is drawn longer than the xx unit). It falls on (0,π)(0, \pi)⁠, where sin⁡x>0\sin x > 0⁠, and rises on (π,2π)(\pi, 2\pi)⁠, where sin⁡x<0\sin x < 0⁠.
    The argument is the mirror image of part (a): the sign of sine flips at π\pi⁠, so the sign of f′f' flips, and so does the direction of the graph.
    Sine is negative in the third and fourth quadrants. Basics: signs of sin and cos
  4. Part (c): neither increasing nor decreasing on (0,2π)(0, 2\pi)

    Not increasing. π2\frac{\pi}{2} and π\pi are in (0,2π)(0, 2\pi) with π2<π\frac{\pi}{2} < \pi⁠, but

    cos⁡π2=0  >  −1=cos⁡π.\cos\tfrac{\pi}{2} = 0 \;>\; -1 = \cos\pi .

    So the implication x1<x2⇒f(x1)≤f(x2)x_1 < x_2 \Rightarrow f(x_1) \le f(x_2) fails for this pair, and ff is not increasing on (0,2π)(0, 2\pi)⁠.

    Not decreasing. π\pi and 3π2\frac{3\pi}{2} are in (0,2π)(0, 2\pi) with π<3π2\pi < \frac{3\pi}{2}⁠, but

    cos⁡π=−1  <  0=cos⁡3π2.\cos\pi = -1 \;<\; 0 = \cos\tfrac{3\pi}{2} .

    So x1<x2⇒f(x1)≥f(x2)x_1 < x_2 \Rightarrow f(x_1) \ge f(x_2) fails for this pair, and ff is not decreasing on (0,2π)(0, 2\pi)⁠. Hence cos⁡x\cos x is neither increasing nor decreasing on (0,2π)(0, 2\pi).

    "Increasing on I" is a claim about every pair of points of I, so one pair in the wrong order is enough to disprove it. The book says "clearly by (a) and (b)": inside (0,π)(0, \pi) the function strictly falls, which already rules out "increasing" on the larger interval, and inside (π,2π)(\pi, 2\pi) it strictly rises, which rules out "decreasing". The two pairs above make that concrete. (Knowing only the non-strict "decreasing" of part (a) would not be enough, since a constant function is both increasing and decreasing.)
    cos⁡π2=0\cos\frac{\pi}{2} = 0⁠, cos⁡π=−1\cos\pi = -1⁠, cos⁡3π2=0\cos\frac{3\pi}{2} = 0⁠. Basics: signs of sin and cos
Result

f′(x)=−sin⁡xf'(x) = -\sin x⁠. (a) On (0,π)(0, \pi)⁠, sin⁡x>0\sin x > 0⁠, so f′<0f' < 0 and cos⁡x\cos x is decreasing (indeed strictly). (b) On (π,2π)(\pi, 2\pi)⁠, sin⁡x<0\sin x < 0⁠, so f′>0f' > 0 and cos⁡x\cos x is increasing (indeed strictly). (c) Since cos⁡π2>cos⁡π\cos\frac{\pi}{2} > \cos\pi and cos⁡π<cos⁡3π2\cos\pi < \cos\frac{3\pi}{2}⁠, cos⁡x\cos x is neither increasing nor decreasing on (0,2π)(0, 2\pi)⁠. This agrees with the book's solution.

Check it with numbers

Using radians: cos⁡1≈0.5403\cos 1 \approx 0.5403 and cos⁡2≈−0.4161\cos 2 \approx -0.4161⁠. Both 1 and 2 lie in (0,π)(0, \pi) (since π≈3.1416\pi \approx 3.1416⁠), and the value falls, as part (a) says. Next, cos⁡4≈−0.6536\cos 4 \approx -0.6536 and cos⁡5≈0.2837\cos 5 \approx 0.2837⁠; both 4 and 5 lie in (π,2π)(\pi, 2\pi) (since 2π≈6.28322\pi \approx 6.2832⁠), and the value rises, as part (b) says. Also cos⁡π3=0.5>−0.5=cos⁡2π3\cos\frac{\pi}{3} = 0.5 > -0.5 = \cos\frac{2\pi}{3}⁠, another falling pair in (0,π)(0, \pi)⁠.

Common mistakes
  1. Writing f′(x)=sin⁡xf'(x) = \sin x⁠. The derivative of cos⁡x\cos x is −sin⁡x-\sin x⁠; dropping the minus swaps every conclusion.
  2. Using degrees in the numerical check. cos⁡2\cos 2 here means 2 radians.
  3. Proving (c) by saying "it goes down then up" with no pair of points. The definition needs a specific x1<x2x_1 < x_2 where the required inequality fails, once for each property.
What to take away
  1. For trigonometric functions, the sign of the derivative comes from the quadrant: draw the unit circle.
  2. Theorem 1 applies on [x1,x2][x_1, x_2] for any two points of an open interval, so it settles open intervals too.
  3. To show "not increasing", give one pair x1<x2x_1 < x_2 with f(x1)>f(x2)f(x_1) > f(x_2)⁠.

Every fact used, and where it comes from

FactUsed inSource
ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x = -\sin xStep 1Table 5.3, Section 5.3
sin⁡x>0\sin x > 0 on (0,π)(0, \pi)⁠, sin⁡x<0\sin x < 0 on (π,2π)(\pi, 2\pi)Steps 2, 3Basics: signs of sin and cos on the unit circle
Sign of f′f' decides increasing or decreasingSteps 2, 3Theorem 1 (a), (b), Section 6.3 (Lesson)
Increasing, decreasing (and strict versions)Steps 2, 3, 4Definition 1, Section 6.3
Mean Value Theorem (for "strictly")Steps 2, 3Used without proof in the book's proof of Theorem 1, which cites it as "Theorem 8 in Chapter 5"; this reprint's Chapter 5 does not contain it (a stale reference)
cos⁡π2=0\cos\frac{\pi}{2} = 0⁠, cos⁡π=−1\cos\pi = -1⁠, cos⁡3π2=0\cos\frac{3\pi}{2} = 0Step 4Values of cosine (Class XI)
Decimal values of cos⁡1,cos⁡2,cos⁡4,cos⁡5\cos 1, \cos 2, \cos 4, \cos 5CheckComputed in the site's verification script
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 →