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

Miscellaneous · Q3: Where 4sin⁡x−2x−xcos⁡x2+cos⁡x\frac{4\sin x-2x-x\cos x}{2+\cos x} increases and decreases

Miscellaneous ExerciseIncreasing and decreasing functions · Miscellaneous Exercise
The question

Find the intervals in which the function ff given by

f(x)=4sin⁡x−2x−xcos⁡x2+cos⁡xf(x) = \frac{4\sin x - 2x - x\cos x}{2 + \cos x}

is (i) increasing (ii) decreasing.

Exam answer

Here f(x)=4sin⁡x2+cos⁡x−xf(x) = \frac{4\sin x}{2 + \cos x} - x⁠. By the quotient rule,

f′(x)=4cos⁡x(2+cos⁡x)(2+cos⁡x)2+4sin⁡2x(2+cos⁡x)2−1=8cos⁡x+4(2+cos⁡x)2−1=4cos⁡x−cos⁡2x(2+cos⁡x)2=cos⁡x (4−cos⁡x)(2+cos⁡x)2\begin{aligned} f'(x) &= \frac{4\cos x(2 + \cos x)}{(2 + \cos x)^2} \\ &\quad + \frac{4\sin^2 x}{(2 + \cos x)^2} - 1 \\ &= \frac{8\cos x + 4}{(2 + \cos x)^2} - 1 \\ &= \frac{4\cos x - \cos^2 x}{(2 + \cos x)^2} \\ &= \frac{\cos x\,(4 - \cos x)}{(2 + \cos x)^2} \end{aligned}

As 4−cos⁡x>04 - \cos x > 0 and (2+cos⁡x)2>0(2 + \cos x)^2 > 0⁠, f′(x)f'(x) has the sign of cos⁡x\cos x⁠. In [0,2π][0, 2\pi]⁠, f′(x)=0f'(x) = 0 at x=π2x = \frac{\pi}{2} and x=3π2x = \frac{3\pi}{2}⁠.

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

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

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

(i) ff is increasing on [0,π2]\left[0, \frac{\pi}{2}\right] and on [3π2,2π]\left[\frac{3\pi}{2}, 2\pi\right]⁠.

(ii) ff is decreasing on [π2,3π2]\left[\dfrac{\pi}{2}, \dfrac{3\pi}{2}\right]⁠.

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

The one idea this problem is built on

Simplify before differentiating. The numerator contains −2x−xcos⁡x=−x(2+cos⁡x)-2x - x\cos x = -x(2 + \cos x)⁠, which cancels against the denominator and leaves f(x)=4sin⁡x2+cos⁡x−xf(x) = \frac{4\sin x}{2 + \cos x} - x⁠. The derivative then factorises as cos⁡x⋅4−cos⁡x(2+cos⁡x)2\cos x \cdot \frac{4 - \cos x}{(2 + \cos x)^2}⁠, and the second factor is always positive. So f′f' has exactly the sign of cos⁡x\cos x.

Given, to find, and the plan
Given
f(x)=4sin⁡x−2x−xcos⁡x2+cos⁡xf(x) = \dfrac{4\sin x - 2x - x\cos x}{2 + \cos x} for real xx⁠.
To find
The intervals on which ff is (i) increasing, (ii) decreasing.
Plan
(1) Domain. (2) Simplify. (3) Differentiate (quotient rule) and factorise. (4) Sign of each factor. (5) Sign chart on one period [0,2π][0, 2\pi] and conclusion by Theorem 1. (6) Extend to all real xx⁠. (7) Compare with the answer key.

Basics you need

1Increasing and decreasing (Definition 1, Section 6.3)

On an interval I, ff is increasing if x1<x2⇒f(x1)≤f(x2)x_1 < x_2 \Rightarrow f(x_1) \le f(x_2)⁠, and strictly increasing if x1<x2⇒f(x1)<f(x2)x_1 < x_2 \Rightarrow f(x_1) < f(x_2)⁠; decreasing and strictly decreasing likewise with ≥\ge 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 f′>0f' > 0 on (a,b)(a, b) gives ff increasing on [a,b][a, b]⁠, and f′<0f' < 0 gives decreasing. The book's proof (Mean Value step) shows the change is strict.

3Quotient rule and trigonometric derivatives

(uv)′=u′v−uv′v2\left(\frac uv\right)' = \frac{u'v - uv'}{v^2} (Section 5.3, rule (3)); (sin⁡x)′=cos⁡x(\sin x)' = \cos x⁠, (cos⁡x)′=−sin⁡x(\cos x)' = -\sin x (Table 5.3); sin⁡2x+cos⁡2x=1\sin^2 x + \cos^2 x = 1⁠.

4Sign of cos⁡x\cos x

cos⁡x>0\cos x > 0 for −π2<x<π2-\frac\pi2 < x < \frac\pi2⁠, cos⁡x<0\cos x < 0 for π2<x<3π2\frac\pi2 < x < \frac{3\pi}2⁠, zero at odd multiples of π2\frac\pi2⁠, and it repeats every 2π2\pi⁠. Basics: signs of sin and cos

5Sign of a product

A positive factor does not change the sign of a product. Basics: sign of a product

Solution

  1. Domain: every real number

    Since −1≤cos⁡x≤1-1 \le \cos x \le 1⁠, the denominator satisfies

    2+cos⁡x≥2−1=1>0.2 + \cos x \ge 2 - 1 = 1 > 0.

    It is never zero, so ff is defined, continuous and differentiable at every real xx⁠.

    Theorem 1 needs continuity on closed intervals and differentiability inside them. Checking the denominator once settles this for every interval we will use.
  2. Simplify: f(x)=4sin⁡x2+cos⁡x−xf(x) = \frac{4\sin x}{2 + \cos x} - x

    Group the last two terms of the numerator: −2x−xcos⁡x=−x(2+cos⁡x)-2x - x\cos x = -x(2 + \cos x)⁠. So

    f(x)=4sin⁡x−x(2+cos⁡x)2+cos⁡x=4sin⁡x2+cos⁡x−x.\begin{aligned} f(x) &= \frac{4\sin x - x(2 + \cos x)}{2 + \cos x} \\ &= \frac{4\sin x}{2 + \cos x} - x. \end{aligned}
    Splitting the fraction is allowed because 2+cos⁡x≠02 + \cos x \ne 0 (Step 1). Differentiating the original fraction would also work, but it creates a long numerator; the simplification makes the derivative short and easy to factorise.
  3. Differentiate and factorise

    For 4sin⁡x2+cos⁡x\frac{4\sin x}{2 + \cos x} use the quotient rule with u=4sin⁡xu = 4\sin x⁠, u′=4cos⁡xu' = 4\cos x⁠, v=2+cos⁡xv = 2 + \cos x⁠, v′=−sin⁡xv' = -\sin x⁠:

    u′v−uv′v2=4cos⁡x(2+cos⁡x)+4sin⁡2x(2+cos⁡x)2=8cos⁡x+4(cos⁡2x+sin⁡2x)(2+cos⁡x)2=8cos⁡x+4(2+cos⁡x)2.\begin{aligned} \frac{u'v - uv'}{v^2} &= \frac{4\cos x(2 + \cos x) + 4\sin^2 x}{(2 + \cos x)^2} \\ &= \frac{8\cos x + 4(\cos^2 x + \sin^2 x)}{(2 + \cos x)^2} \\ &= \frac{8\cos x + 4}{(2 + \cos x)^2}. \end{aligned}

    The derivative of −x-x is −1-1⁠. Writing 1=(2+cos⁡x)2(2+cos⁡x)21 = \frac{(2 + \cos x)^2}{(2 + \cos x)^2} and expanding (2+cos⁡x)2=4+4cos⁡x+cos⁡2x(2 + \cos x)^2 = 4 + 4\cos x + \cos^2 x⁠:

    f′(x)=8cos⁡x+4−4−4cos⁡x−cos⁡2x(2+cos⁡x)2=4cos⁡x−cos⁡2x(2+cos⁡x)2=cos⁡x (4−cos⁡x)(2+cos⁡x)2.\begin{aligned} f'(x) &= \frac{8\cos x + 4 - 4 - 4\cos x - \cos^2 x}{(2 + \cos x)^2} \\ &= \frac{4\cos x - \cos^2 x}{(2 + \cos x)^2} \\ &= \frac{\cos x\,(4 - \cos x)}{(2 + \cos x)^2}. \end{aligned}
    −uv′=−4sin⁡x⋅(−sin⁡x)=+4sin⁡2x-uv' = -4\sin x\cdot(-\sin x) = +4\sin^2 x⁠: the two minus signs cancel. Then cos⁡2x+sin⁡2x=1\cos^2 x + \sin^2 x = 1 collapses the numerator. Putting everything over one denominator lets us take out the common factor cos⁡x\cos x⁠.
    Quotient rule, Section 5.3 rule (3); derivatives of sin⁡\sin and cos⁡\cos⁠, Table 5.3; sin⁡2x+cos⁡2x=1\sin^2 x + \cos^2 x = 1 (Basic 3).
  4. Only cos⁡x\cos x can change sign

    • 4−cos⁡x≥4−1=3>04 - \cos x \ge 4 - 1 = 3 > 0 for every xx⁠;
    • (2+cos⁡x)2≥1>0(2 + \cos x)^2 \ge 1 > 0 for every xx (Step 1).

    So f′(x)f'(x) has the same sign as cos⁡x\cos x⁠, and f′(x)=0f'(x) = 0 exactly when cos⁡x=0\cos x = 0⁠, at the odd multiples of π2\frac\pi2⁠.

    A product of a positive quantity with cos⁡x\cos x is positive, negative or zero exactly when cos⁡x\cos x is. The whole problem has become "where is cos⁡x\cos x positive?".
    Sign of a product (Basic 5). Basics: sign of a product
  5. Sign chart on one period, [0,2π][0, 2\pi]

    The question names no interval. Since f′f' depends on xx only through cos⁡x\cos x⁠, its sign pattern repeats every 2π2\pi⁠, so we first work on [0,2π][0, 2\pi] (as the answer key does). There cos⁡x=0\cos x = 0 at x=π2x = \frac\pi2 and x=3π2x = \frac{3\pi}2⁠, and

    • on (0,π2)\left(0, \frac\pi2\right)⁠: cos⁡x>0\cos x > 0 (test: f′ ⁣(π3)=12⋅72(52)2=0.28f'\!\left(\frac\pi3\right) = \frac{\frac12\cdot\frac72}{\left(\frac52\right)^2} = 0.28⁠);
    • on (π2,3π2)\left(\frac\pi2, \frac{3\pi}2\right)⁠: cos⁡x<0\cos x < 0 (test: f′(π)=(−1)(5)1=−5f'(\pi) = \frac{(-1)(5)}{1} = -5⁠);
    • on (3π2,2π)\left(\frac{3\pi}2, 2\pi\right)⁠: cos⁡x>0\cos x > 0 (test: f′ ⁣(5π3)=0.28f'\!\left(\frac{5\pi}3\right) = 0.28⁠).
    x 0 π/2 3π/2 2π cos x + − + 0 0 4 − cos x + + + (2 + cos x)² + + + f′(x) + − + 0 0 f increasing decreasing increasing
    Sign chart on [0,2π][0, 2\pi]⁠, not to scale: f′f' has the sign of cos⁡x\cos x⁠.
    The test values are a check on the factor analysis, not a replacement for it: the factor argument covers every point of each interval, a test value covers one.
    Signs of cos⁡\cos on the unit circle (Basic 4). Basics: signs of sin and cos
  6. Conclude on [0,2π][0, 2\pi] with Theorem 1

    ff is continuous everywhere (Step 1), so Theorem 1 applies on each closed piece:

    • f′>0f' > 0 on (0,π2)\left(0, \frac\pi2\right)⁠: ff is increasing on [0,π2]\left[0, \frac\pi2\right]⁠;
    • f′<0f' < 0 on (π2,3π2)\left(\frac\pi2, \frac{3\pi}2\right)⁠: ff is decreasing on [π2,3π2]\left[\frac\pi2, \frac{3\pi}2\right]⁠;
    • f′>0f' > 0 on (3π2,2π)\left(\frac{3\pi}2, 2\pi\right)⁠: ff is increasing on [3π2,2π]\left[\frac{3\pi}2, 2\pi\right]⁠.

    By the proof of Theorem 1 each of these is even strict. The endpoints may be included because ff is continuous there.

    x y π/2 π 3π/2 2π −6 −4 −2 (π/2, 2 − π/2) ≈ (1.571, 0.429) (3π/2, −2 − 3π/2) ≈ (4.712, −6.712) (2π, −2π) y = f(x)
    The graph of ff on [0,2π][0, 2\pi] (scales differ): up to π2\frac\pi2⁠, down to 3π2\frac{3\pi}2⁠, up again to 2π2\pi⁠.

    Note that ff is increasing on each of [0,π2]\left[0, \frac\pi2\right] and [3π2,2π]\left[\frac{3\pi}2, 2\pi\right] separately, not on the two together: π2<3π2\frac\pi2 < \frac{3\pi}2 but f ⁣(π2)=2−π2≈0.429f\!\left(\frac\pi2\right) = 2 - \frac\pi2 \approx 0.429 is larger than f ⁣(3π2)=−2−3π2≈−6.712f\!\left(\frac{3\pi}2\right) = -2 - \frac{3\pi}2 \approx -6.712⁠.

    Theorem 1 is a statement about one interval at a time. Joining two intervals on which ff increases does not give an increasing function, because the drop in between can bring the values down, as the graph shows.
    Theorem 1, Section 6.3 (Basic 2); Definition 1 (Basic 1). Lesson: increasing and decreasing functions
  7. All real xx

    cos⁡x>0\cos x > 0 on every interval (2nπ−π2,2nπ+π2)\left(2n\pi - \frac\pi2, 2n\pi + \frac\pi2\right) and cos⁡x<0\cos x < 0 on every interval (2nπ+π2,2nπ+3π2)\left(2n\pi + \frac\pi2, 2n\pi + \frac{3\pi}2\right)⁠, n∈Zn \in \Z⁠. By Theorem 1, for every integer nn⁠:

    increasing on [2nπ−π2, 2nπ+π2],decreasing on [2nπ+π2, 2nπ+3π2].\begin{aligned} &\text{increasing on } \left[2n\pi - \tfrac\pi2,\ 2n\pi + \tfrac\pi2\right], \\ &\text{decreasing on } \left[2n\pi + \tfrac\pi2,\ 2n\pi + \tfrac{3\pi}2\right]. \end{aligned}

    With n=0n = 0 and n=1n = 1 these, cut down to [0,2π][0, 2\pi]⁠, give exactly the intervals of Step 6.

    ff itself is not periodic (the −x-x term keeps pulling it down), but f′f' is, because it only involves cos⁡x\cos x⁠. That is why the increasing and decreasing intervals repeat with period 2π2\pi⁠.
  8. Compare with the answer key

    The key, working on [0,2π][0, 2\pi]⁠, gives (i) 0≤x≤π20 \le x \le \frac\pi2 and 3π2<x<2π\frac{3\pi}2 < x < 2\pi⁠; (ii) π2<x<3π2\frac\pi2 < x < \frac{3\pi}2⁠. These are our intervals with some endpoints left out. Both versions are correct: a function that is increasing on [3π2,2π]\left[\frac{3\pi}2, 2\pi\right] is also increasing on the smaller interval (3π2,2π)\left(\frac{3\pi}2, 2\pi\right)⁠, and similarly for the others. Our version simply records the largest intervals that Theorem 1 allows.

    Whether to include an endpoint where f′=0f' = 0 is a matter of convention in many books. With Definition 1 and Theorem 1 of this book, the closed intervals are justified, because ff is continuous at the endpoints.
Result

f′(x)=cos⁡x (4−cos⁡x)(2+cos⁡x)2f'(x) = \dfrac{\cos x\,(4 - \cos x)}{(2 + \cos x)^2}⁠, which has the sign of cos⁡x\cos x⁠. On [0,2π][0, 2\pi]⁠:

(i) ff is increasing on [0,π2]\left[0, \frac\pi2\right] and on [3π2,2π]\left[\frac{3\pi}2, 2\pi\right] (each separately);

(ii) ff is decreasing on [π2,3π2]\left[\frac\pi2, \frac{3\pi}2\right].

In general, increasing on [2nπ−π2,2nπ+π2]\left[2n\pi - \frac\pi2, 2n\pi + \frac\pi2\right] and decreasing on [2nπ+π2,2nπ+3π2]\left[2n\pi + \frac\pi2, 2n\pi + \frac{3\pi}2\right]⁠, n∈Zn \in \Z⁠. (Textbook answer: (i) 0≤x≤π20 \le x \le \frac\pi2 and 3π2<x<2π\frac{3\pi}{2} < x < 2\pi⁠; (ii) π2<x<3π2\frac\pi2 < x < \frac{3\pi}2⁠. The same intervals, with some endpoints omitted; see Step 8.)

Check it with numbers

Values of ff⁠: f(0)=0f(0) = 0⁠, f ⁣(π2)=4−π2≈0.4292f\!\left(\frac\pi2\right) = \frac{4 - \pi}{2} \approx 0.4292⁠, f(π)=−2π+π1=−π≈−3.1416f(\pi) = \frac{-2\pi + \pi}{1} = -\pi \approx -3.1416⁠, f ⁣(3π2)=−4−3π2≈−6.7124f\!\left(\frac{3\pi}2\right) = \frac{-4 - 3\pi}{2} \approx -6.7124⁠, f(2π)=−4π−2π3=−2π≈−6.2832f(2\pi) = \frac{-4\pi - 2\pi}{3} = -2\pi \approx -6.2832⁠. They go up, down, down, up, matching the chart. The derivative formula agrees with a difference quotient: at x=1x = 1⁠, f(1.0001)−f(0.9999)0.0002\frac{f(1.0001) - f(0.9999)}{0.0002} is about 0.28970.2897 and cos⁡1 (4−cos⁡1)(2+cos⁡1)2≈0.2897\frac{\cos 1\,(4 - \cos 1)}{(2 + \cos 1)^2} \approx 0.2897⁠.

Common mistakes
  1. Differentiating the original fraction without simplifying and then failing to factorise the long numerator.
  2. A sign slip in −uv′-uv': v′=−sin⁡xv' = -\sin x⁠, so −uv′=+4sin⁡2x-uv' = +4\sin^2 x⁠.
  3. Joining intervals with "∪\cup" and calling ff increasing on the union. It is increasing on each piece, not on the union.
  4. Thinking ff is periodic because it contains sin⁡\sin and cos⁡\cos⁠. The −x-x term makes f(x+2π)=f(x)−2πf(x + 2\pi) = f(x) - 2\pi⁠; only f′f' repeats.
What to take away
  1. Look for a factor of the denominator hidden in the numerator before differentiating.
  2. Factorise f′f' and discard the factors that are always positive; what is left decides the sign.
  3. When no interval is given and f′f' is periodic, solve on one period and then describe the repeating pattern.

Every fact used, and where it comes from

FactUsed inSource
−1≤cos⁡x≤1-1 \le \cos x \le 1⁠; sign of cos⁡\cos on each quarter of the circle; period 2π2\piSteps 1, 4, 5, 7Class XI, Trigonometric Functions
Quotient ruleStep 3Section 5.3, rule (3)
(sin⁡x)′=cos⁡x(\sin x)' = \cos x⁠, (cos⁡x)′=−sin⁡x(\cos x)' = -\sin xStep 3Table 5.3, Section 5.3
sin⁡2x+cos⁡2x=1\sin^2 x + \cos^2 x = 1Step 3Class XI, Trigonometric Functions
Increasing, strictly increasing, decreasingSteps 6, 8Definition 1, Section 6.3
f′>0f' > 0 (or <0< 0⁠) on (a,b)(a, b) gives increasing (decreasing) on [a,b][a, b]Steps 6, 7Theorem 1 and its proof, Section 6.3
Answer (i) 0≤x≤π20 \le x \le \frac\pi2⁠, 3π2<x<2π\frac{3\pi}2 < x < 2\pi⁠; (ii) π2<x<3π2\frac\pi2 < x < \frac{3\pi}2Step 8, ResultAnswer key, Miscellaneous Exercise on Chapter 6, Q3
All decimal valuesSteps 5, 6, CheckRecomputed 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 →