Skip to content
Miscellaneous Exercise · Q3

Q.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.
Punjab PsebTextbookSubjective· 3mImportance★★★★★
56% · 105/188 Questions
✓ Free question

The function is increasing in intervals where cos⁡x>0\cos x > 0 and decreasing where cos⁡x<0\cos x < 0, with critical points at x=π2+nπx = \frac{\pi}{2} + n\pi. The final result: ff is increasing on (−π2+2nπ, π2+2nπ)\left( -\frac{\pi}{2} + 2n\pi,\ \frac{\pi}{2} + 2n\pi \right) and decreasing on (π2+2nπ, 3π2+2nπ)\left( \frac{\pi}{2} + 2n\pi,\ \frac{3\pi}{2} + 2n\pi \right) for n∈Zn \in \mathbb{Z}.


To decide where a function increases or decreases, we look at its derivative. If f′(x)>0f'(x) > 0, the function is rising; if f′(x)<0f'(x) < 0, it is falling. The trick here is that f(x)f(x) looks messy, but its derivative simplifies beautifully — a classic sign of a well-designed exam problem.

The denominator 2+cos⁡x2 + \cos x is always positive (since cos⁡x≥−1\cos x \geq -1, so 2+cos⁡x≥1>02 + \cos x \geq 1 > 0). That means the sign of f′(x)f'(x) depends only on the numerator after differentiation. Let’s work through it.


  1. Differentiate f(x)f(x) using the quotient rule.

    Let u=4sin⁡x−2x−xcos⁡xu = 4\sin x - 2x - x\cos x and v=2+cos⁡xv = 2 + \cos x. Then f′(x)=u′v−uv′v2f'(x) = \frac{u'v - uv'}{v^2}.

    First, u′u':

    • Derivative of 4sin⁡x4\sin x is 4cos⁡x4\cos x.
    • Derivative of −2x-2x is −2-2.
    • Derivative of −xcos⁡x-x\cos x: use product rule — (−1)(cos⁡x)+(−x)(−sin⁡x)=−cos⁡x+xsin⁡x(-1)(\cos x) + (-x)(-\sin x) = -\cos x + x\sin x. So u′=4cos⁡x−2−cos⁡x+xsin⁡x=3cos⁡x−2+xsin⁡xu' = 4\cos x - 2 - \cos x + x\sin x = 3\cos x - 2 + x\sin x.

    Next, v′=−sin⁡xv' = -\sin x.

    Now compute u′v−uv′u'v - uv':

u′v=(3cos⁡x−2+xsin⁡x)(2+cos⁡x)u'v = (3\cos x - 2 + x\sin x)(2 + \cos x)

uv′=(4sin⁡x−2x−xcos⁡x)(−sin⁡x)=−(4sin⁡x−2x−xcos⁡x)sin⁡xuv' = (4\sin x - 2x - x\cos x)(-\sin x) = -(4\sin x - 2x - x\cos x)\sin x

So the numerator NN of f′(x)f'(x) is:

N=(3cos⁡x−2+xsin⁡x)(2+cos⁡x)+(4sin⁡x−2x−xcos⁡x)sin⁡xN = (3\cos x - 2 + x\sin x)(2 + \cos x) + (4\sin x - 2x - x\cos x)\sin x

  1. Expand and simplify NN. Expand the first product:

(3cos⁡x−2)(2+cos⁡x)+xsin⁡x(2+cos⁡x)(3\cos x - 2)(2 + \cos x) + x\sin x (2 + \cos x)

=(6cos⁡x+3cos⁡2x−4−2cos⁡x)+2xsin⁡x+xsin⁡xcos⁡x= (6\cos x + 3\cos^2 x - 4 - 2\cos x) + 2x\sin x + x\sin x \cos x

=(4cos⁡x+3cos⁡2x−4)+2xsin⁡x+xsin⁡xcos⁡x= (4\cos x + 3\cos^2 x - 4) + 2x\sin x + x\sin x \cos x

Now add the second part: (4sin⁡x−2x−xcos⁡x)sin⁡x=4sin⁡2x−2xsin⁡x−xsin⁡xcos⁡x(4\sin x - 2x - x\cos x)\sin x = 4\sin^2 x - 2x\sin x - x\sin x \cos x.

Add them:

N=(4cos⁡x+3cos⁡2x−4)+2xsin⁡x+xsin⁡xcos⁡x+4sin⁡2x−2xsin⁡x−xsin⁡xcos⁡xN = (4\cos x + 3\cos^2 x - 4) + 2x\sin x + x\sin x \cos x + 4\sin^2 x - 2x\sin x - x\sin x \cos x

Notice 2xsin⁡x2x\sin x cancels with −2xsin⁡x-2x\sin x, and xsin⁡xcos⁡xx\sin x \cos x cancels with −xsin⁡xcos⁡x-x\sin x \cos x. So all xx-terms vanish!

N=4cos⁡x+3cos⁡2x−4+4sin⁡2xN = 4\cos x + 3\cos^2 x - 4 + 4\sin^2 x

Use sin⁡2x=1−cos⁡2x\sin^2 x = 1 - \cos^2 x:

N=4cos⁡x+3cos⁡2x−4+4(1−cos⁡2x)N = 4\cos x + 3\cos^2 x - 4 + 4(1 - \cos^2 x)

=4cos⁡x+3cos⁡2x−4+4−4cos⁡2x= 4\cos x + 3\cos^2 x - 4 + 4 - 4\cos^2 x

=4cos⁡x−cos⁡2x= 4\cos x - \cos^2 x

=cos⁡x(4−cos⁡x)= \cos x (4 - \cos x)

So f′(x)=cos⁡x(4−cos⁡x)(2+cos⁡x)2f'(x) = \frac{\cos x (4 - \cos x)}{(2 + \cos x)^2}.

Tip

The cancellation of xx-terms is the key insight — it means the derivative’s sign is independent of xx itself, depending only on cos⁡x\cos x. This is why the problem is solvable cleanly.

  1. Analyze the sign of f′(x)f'(x).

    Denominator: (2+cos⁡x)2>0(2 + \cos x)^2 > 0 always (since 2+cos⁡x≥12 + \cos x \geq 1).

    Factor (4−cos⁡x)(4 - \cos x): since cos⁡x≤1\cos x \leq 1, we have 4−cos⁡x≥3>04 - \cos x \geq 3 > 0. So this factor is always positive.

    Therefore, the sign of f′(x)f'(x) is exactly the sign of cos⁡x\cos x.

    • f′(x)>0f'(x) > 0 when cos⁡x>0\cos x > 0 → function is increasing.
    • f′(x)<0f'(x) < 0 when cos⁡x<0\cos x < 0 → function is decreasing.
    • f′(x)=0f'(x) = 0 when cos⁡x=0\cos x = 0 → at x=π2+nπx = \frac{\pi}{2} + n\pi, these are critical points (where monotonicity may change).
  2. Write the intervals.

    cos⁡x>0\cos x > 0 on intervals (−π2+2nπ, π2+2nπ)\left( -\frac{\pi}{2} + 2n\pi,\ \frac{\pi}{2} + 2n\pi \right) for n∈Zn \in \mathbb{Z}.

    cos⁡x<0\cos x < 0 on intervals (π2+2nπ, 3π2+2nπ)\left( \frac{\pi}{2} + 2n\pi,\ \frac{3\pi}{2} + 2n\pi \right) for n∈Zn \in \mathbb{Z}.

    The function is defined for all real xx (denominator never zero), so these intervals cover the entire domain.

Watch out

A common mistake is to forget that cos⁡x\cos x changes sign periodically. Do not restrict to [0,2π][0, 2\pi] unless the problem specifies a domain — here, the domain is all real numbers, so the answer must include the general n∈Zn \in \mathbb{Z}.

✓Final answer

The function ff is increasing on (−π2+2nπ, π2+2nπ)\left( -\frac{\pi}{2} + 2n\pi,\ \frac{\pi}{2} + 2n\pi \right) and decreasing on (π2+2nπ, 3π2+2nπ)\left( \frac{\pi}{2} + 2n\pi,\ \frac{3\pi}{2} + 2n\pi \right) for all integers nn.

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.