Q.Find the intervals in which the function f given by f(x)=2+cosx4sinx−2x−xcosx is
Concept understanding — Monotonic Function Analysis
Monotonic Function Analysis
A function is monotonic on an interval when it moves in a single direction across that interval — either always rising or always falling, never doubling back. Derivatives give us a clean, mechanical way to detect this, which is why monotonicity is one of the first applications of the derivative.
Increasing, Decreasing, Monotonic
On an interval I, a function f is:
- increasing if x1<x2⇒f(x1)≤f(x2),
- strictly increasing if x1<x2⇒f(x1)<f(x2),
- decreasing if x1<x2⇒f(x1)≥f(x2),
- strictly decreasing if x1<x2⇒f(x1)>f(x2).
A function that is either increasing throughout I or decreasing throughout I is called monotonic on I.
The Derivative Test
The slope of the tangent tells you the direction of travel. If f is differentiable on an open interval I:
f′(x)>0 on I⟹f is strictly increasing on I
f′(x)<0 on I⟹f is strictly decreasing on I
f′(x)=0 on I⟹f is constant on I
The idea is intuitive: a positive slope means the graph climbs as you move right, a negative slope means it falls.
How to Analyse Monotonicity
- Compute f′(x).
- Solve f′(x)=0 (and note where f′ is undefined). These critical points split the domain into intervals.
- Test the sign of f′ in each interval.
- Read off where f increases (f′>0) and decreases (f′<0).
Example. For f(x)=x2−4x+1, f′(x)=2x−4. So f′(x)<0 for x<2 and f′(x)>0 for x>2: the function decreases on (−∞,2) and increases on (2,∞).
Monotonicity is always stated on an interval. A function can be increasing on one interval and decreasing on another, so we describe its behaviour piece by piece rather than with a single label.
f′(x)≥0 with equality only at isolated points is still enough for f to be strictly increasing — the derivative may touch zero at a few points without breaking the upward trend, as with f(x)=x3 at x=0.
Monotonic function analysis — using the sign of f'(x) to mark out where a function rises or falls — is a core method in the NCERT Class 12 Application of Derivatives chapter, tested every year in CBSE boards and frequently in JEE Main. Anyone searching 'monotonicity of a function class 12 important questions' or 'increasing decreasing function using derivative test' will find this critical-point-and-sign-chart method is exactly the standard approach.
Concept: Monotonic Function Analysis — we examine the sign of f′(x).
Step 1 – Simplify f(x)
Write f(x)=2+cosx4sinx−2x−xcosx.
Notice that 4sinx−x(2+cosx)=4sinx−x(2+cosx). So
f(x)=2+cosx4sinx−x.
Step 2 – Differentiate
f′(x)=(2+cosx)24cosx(2+cosx)−4sinx(−sinx)−1.
The numerator simplifies: 4cosx(2+cosx)+4sin2x=8cosx+4(cos2x+sin2x)=8cosx+4.
Thus
f′(x)=(2+cosx)24(2cosx+1)−1.
Step 3 – Combine into a single fraction
f′(x)=(2+cosx)24(2cosx+1)−(2+cosx)2.
Expand (2+cosx)2=4+4cosx+cos2x. The numerator becomes
8cosx+4−4−4cosx−cos2x=4cosx−cos2x=cosx(4−cosx).
Since 2+cosx>0 for all x, the sign of f′(x) is the sign of cosx(4−cosx).
But 4−cosx>0 always (because cosx≤1). So f′(x)≥0 exactly when cosx≥0.
Step 4 – Determine intervals
cosx≥0 on [−2π+2nπ,2π+2nπ], n∈Z.
cosx<0 on (2π+2nπ,23π+2nπ).
f is increasing on [−2π+2nπ,2π+2nπ] and decreasing on (2π+2nπ,23π+2nπ), n∈Z.
The function is increasing in intervals where cosx>0 and decreasing where cosx<0, with critical points at x=2π+nπ. The final result: f is increasing on (−2π+2nπ, 2π+2nπ) and decreasing on (2π+2nπ, 23π+2nπ) for n∈Z.
To decide where a function increases or decreases, we look at its derivative. If f′(x)>0, the function is rising; if f′(x)<0, it is falling. The trick here is that f(x) looks messy, but its derivative simplifies beautifully — a classic sign of a well-designed exam problem.
The denominator 2+cosx is always positive (since cosx≥−1, so 2+cosx≥1>0). That means the sign of f′(x) depends only on the numerator after differentiation. Let’s work through it.
-
Differentiate f(x) using the quotient rule.
Let u=4sinx−2x−xcosx and v=2+cosx. Then f′(x)=v2u′v−uv′.
First, u′:
- Derivative of 4sinx is 4cosx.
- Derivative of −2x is −2.
- Derivative of −xcosx: use product rule — (−1)(cosx)+(−x)(−sinx)=−cosx+xsinx. So u′=4cosx−2−cosx+xsinx=3cosx−2+xsinx.
Next, v′=−sinx.
Now compute u′v−uv′:
u′v=(3cosx−2+xsinx)(2+cosx)
uv′=(4sinx−2x−xcosx)(−sinx)=−(4sinx−2x−xcosx)sinx
So the numerator N of f′(x) is:
N=(3cosx−2+xsinx)(2+cosx)+(4sinx−2x−xcosx)sinx
- Expand and simplify N. Expand the first product:
(3cosx−2)(2+cosx)+xsinx(2+cosx)
=(6cosx+3cos2x−4−2cosx)+2xsinx+xsinxcosx
=(4cosx+3cos2x−4)+2xsinx+xsinxcosx
Now add the second part: (4sinx−2x−xcosx)sinx=4sin2x−2xsinx−xsinxcosx.
Add them:
N=(4cosx+3cos2x−4)+2xsinx+xsinxcosx+4sin2x−2xsinx−xsinxcosx
Notice 2xsinx cancels with −2xsinx, and xsinxcosx cancels with −xsinxcosx. So all x-terms vanish!
N=4cosx+3cos2x−4+4sin2x
Use sin2x=1−cos2x:
N=4cosx+3cos2x−4+4(1−cos2x)
=4cosx+3cos2x−4+4−4cos2x
=4cosx−cos2x
=cosx(4−cosx)
So f′(x)=(2+cosx)2cosx(4−cosx).
The cancellation of x-terms is the key insight — it means the derivative’s sign is independent of x itself, depending only on cosx. This is why the problem is solvable cleanly.
-
Analyze the sign of f′(x).
Denominator: (2+cosx)2>0 always (since 2+cosx≥1).
Factor (4−cosx): since cosx≤1, we have 4−cosx≥3>0. So this factor is always positive.
Therefore, the sign of f′(x) is exactly the sign of cosx.
- f′(x)>0 when cosx>0 → function is increasing.
- f′(x)<0 when cosx<0 → function is decreasing.
- f′(x)=0 when cosx=0 → at x=2π+nπ, these are critical points (where monotonicity may change).
-
Write the intervals.
cosx>0 on intervals (−2π+2nπ, 2π+2nπ) for n∈Z.
cosx<0 on intervals (2π+2nπ, 23π+2nπ) for n∈Z.
The function is defined for all real x (denominator never zero), so these intervals cover the entire domain.
A common mistake is to forget that cosx changes sign periodically. Do not restrict to [0,2π] unless the problem specifies a domain — here, the domain is all real numbers, so the answer must include the general n∈Z.
The function f is increasing on (−2π+2nπ, 2π+2nπ) and decreasing on (2π+2nπ, 23π+2nπ) for all integers n.
Method: Testing Monotonicity of a Function via the Sign of f′(x)
This method finds the intervals on which a function increases or decreases, and is the standard approach whenever a question asks "find the intervals in which f is increasing/decreasing."
Steps
Step 1: Differentiate f(x)
Use the appropriate rule (quotient rule, product rule, chain rule) to find f′(x). If f is a quotient, f′(x)=v2u′v−uv′.
Step 2: Simplify the derivative as far as possible, aiming to factor it
Expand the numerator and look for trigonometric identities (like sin2x+cos2x=1) that cancel terms — a "messy" derivative from a board-exam question almost always collapses into a clean product of simple factors after using such an identity.
f′(x)=denominator(often surprisingly simple) numerator
Step 3: Determine the sign of each factor separately
Check whether the denominator (or any factor) is always positive — e.g. 2+cosx≥1>0 for all x — so it can be ignored when deciding the overall sign. This narrows the sign analysis down to only the factors that can actually change sign.
Step 4: Solve f′(x)=0 and locate where f′(x) is undefined
These points are where monotonicity can switch.
Step 5: State the increasing/decreasing intervals
Match the sign of the surviving factor(s) to standard trig-sign intervals (e.g. cosx≥0 on [−π/2+2nπ, π/2+2nπ]) and write the final answer, including the general n∈Z if the domain is all real numbers.
Common Mistakes
Mistake 1: Giving up on simplifying a messy derivative and guessing the sign numerically at a few points
Why it's wrong: without simplifying, it's easy to miss cancellations (like the x-dependent terms cancelling here) and to test too few points to correctly capture a periodic sign pattern. Correct approach: always fully expand and simplify f′(x) symbolically first — a clean factorised form usually falls out, and the sign can then be read off algebraically rather than guessed.
Mistake 2: Restricting the answer to [0,2π] when the domain is all real numbers
Why it's wrong: trigonometric functions are periodic, so if no domain restriction is given in the question, the increasing/decreasing behaviour repeats every 2π and must be expressed with a general integer n. Correct approach: check the question's stated domain; if it says "for all x" or gives no restriction, express intervals using 2nπ shifts, n∈Z.
Mistake 3: Assuming a factor that can be negative (like cosx) is always positive
Why it's wrong: only genuinely sign-definite pieces (such as 2+cosx or 4−cosx, both bounded away from zero) can be dropped from the sign analysis — dropping a factor that actually changes sign gives a completely wrong set of intervals. Correct approach: check the range of each factor explicitly (e.g. cosx∈[−1,1]) before deciding it never changes sign.
- AP EAPCET 2026Set eng-2026-05-14-AN1 markMCQQ.The function f(x)=2x+Cot−1x+log(1+x2−x) (A) decreases on (0,∞) (B) decreases on (−∞,0) (C) neither increases nor decreases on (−∞,∞) (D) increases on (−∞,∞)
›Reveal solutionSolution
This tests differentiating an inverse-trig + log composite and analysing the sign of the derivative everywhere; the function turns out to be increasing on the whole real line.
Concept and Intuition
A function is increasing on an interval exactly when its derivative is ≥0 there (with equality only at isolated points). Here the three pieces of f — the linear term, the inverse cotangent, and the log term — have derivatives that partially cancel, and simplifying dxdlog(1+x2−x) is the key trick: it collapses neatly using the identity 1+x2−x and its own derivative.
Step-by-Step Solution
- Differentiate term by term. dxd(2x)=2, and dxdCot−1x=−1+x21.
- For the log term, let u=1+x2−x. Then
dxdu=1+x2x−1=1+x2x−1+x2=1+x2−u.
- So dxdlogu=u1dxdu=−1+x21.
- Combining, f′(x)=2−1+x21−1+x21.
- Let t=1+x2≥1. Then f′(x)=2−t21−t1. As t→1 (i.e. x=0), this equals 2−1−1=0. As t increases beyond 1, both t21 and t1 strictly decrease, so their sum is <2, making f′(x)>0 for every x=0.
- Hence f′(x)≥0 for all real x, with equality only at the single point x=0 — so f is (strictly) increasing on (−∞,∞).
Common Mistakes
- Forgetting the chain-rule collapse of the log term and instead expanding 1+x2−x's derivative directly without simplifying — leads to a messy expression where the sign is hard to see.
- Assuming a change of sign of f′ merely because f′(0)=0; a single zero of the derivative does not break monotonicity if it doesn't change sign around it.
✓Final answerThe correct option is (D) — increases on (−∞,∞).
ANSWER: D
- AP EAPCET 2022Set eng-2022-07-08-AN1 markMCQQ.If f(x)=3sinx−cosx−2ax+b decreases for all values of x, then (A) a≥1 (B) a=1 (C) a≤1 (D) a<1
›Reveal solutionSolution
Writing 3cosx+sinx as 2sin(x+π/3) reduces the "always decreasing" condition to 2a≥ the maximum of this term, i.e. a≥1.
Concept and Intuition
A function is decreasing everywhere exactly when its derivative is ≤0 everywhere. Here f′ mixes a bounded oscillating piece (3cosx+sinx) with a constant (−2a); the condition "always ≤0" becomes a condition purely on the constant, since the oscillating part achieves its maximum somewhere no matter what.
Step-by-Step Solution
- f(x)=3sinx−cosx−2ax+b⇒f′(x)=3cosx+sinx−2a.
- Combine using Rsin(x+ϕ) form: 3cosx+sinx=2(23cosx+21sinx)=2sin(x+3π) since sin3π=23,cos3π=21.
- So f′(x)=2sin(x+3π)−2a.
- "f decreases for all x" means f′(x)≤0 for every x, i.e. 2sin(x+3π)≤2a for every x.
- The left side attains a maximum value of 2 (when sin(⋅)=1), so the inequality holds for all x iff 2≤2a, i.e. a≥1.
Common Mistakes
- Stopping at a> some particular value of sin instead of requiring the inequality to hold at the worst case (maximum of the sine term).
- Sign errors combining 3cosx+sinx into a single sinusoid.
✓Final answerThe correct option is (A) — a≥1.
ANSWER: A
- AP EAPCET 2026Set eng-2026-05-13-AN1 markMCQQ.The function f(x)=x(x1) is (A) increasing in (1,∞) (B) decreasing in (1,∞) (C) increasing in (1,e) and decreasing in (e,∞) (D) decreasing in (1,e) and increasing in (e,∞)
›Reveal solutionSolution
Logarithmic differentiation of f(x)=x1/x shows f′ changes sign exactly at x=e, so f increases on (1,e) and decreases on (e,∞).
Concept and Intuition
For a function with a variable exponent like x1/x, direct differentiation is awkward — the trick is logarithmic differentiation: take log of both sides to turn the exponent into a product, differentiate implicitly, and multiply back by f. This is the standard tool whenever both the base and exponent depend on x.
Step-by-Step Solution
- Let f(x)=x1/x for x>0. Then logf(x)=x1logx=xlogx.
- Differentiate both sides with respect to x: f(x)f′(x)=dxd(xlogx)=x2x1⋅x−logx⋅1=x21−logx.
- So f′(x)=x1/x⋅x21−logx.
- Since x1/x>0 and x2>0 for all x>0, the sign of f′(x) equals the sign of 1−logx.
- 1−logx>0⟺logx<1⟺x<e, and 1−logx<0⟺x>e.
- Therefore f is increasing on (1,e) (since 1−logx>0 there) and decreasing on (e,∞).
Common Mistakes
- Trying to differentiate x1/x directly using the power rule (wrong, since the exponent is not constant).
- Forgetting that f(x)=x1/x>0 always, so it never flips the sign contributed by (1−logx).
✓Final answerThe correct option is (C) — increasing in (1,e) and decreasing in (e,∞).
ANSWER: C
- AP EAPCET 2023Set eng-2023-05-19-FN1 markMCQQ.In the interval (e1,e), a decreasing function among the following functions is (A) f(x)=xlogx (B) f(x)=x2logx (C) f(x)=xlogx (D) f(x)=x−x
›Reveal solutionSolution
Only x−x has a derivative of constant sign (negative) throughout (e1,e); the others turn from decreasing to increasing (or stay increasing) inside the interval.
Concept and Intuition
Differentiate each candidate and check the sign of f′ across the whole open interval (e1,e) — a function is decreasing there only if f′<0 at every point of the interval, not just part of it.
Step-by-Step Solution
- (A) f=xlogx: f′=x21−logx, zero at x=e; for x<e, logx<1 so f′>0 — increasing throughout (e1,e).
- (C) f=xlogx: f′=logx+1, zero at x=1/e; for x>1/e, f′>0 — increasing throughout.
- (B) f=x2logx: f′=x(2logx+1), zero at x=e−1/2∈(e1,e) — f′<0 before this point and f′>0 after, so not decreasing on the whole interval.
- (D) f=x−x=e−xlogx: f′=e−xlogx⋅(−(logx+1))=−x−x(logx+1).
- For all x∈(e1,e), x>e1⇒logx>−1⇒logx+1>0, and x−x>0 always, so f′(x)<0 throughout — genuinely decreasing on the entire interval.
Common Mistakes
- Stopping after finding f′<0 at one test point without checking the whole interval (as with option B, which is decreasing only on part of it).
- Sign slip differentiating x−x via logarithmic differentiation.
✓Final answerThe correct option is (D) — f(x)=x−x.
ANSWER: D
- AP EAPCET 2021Set eng-2021-08-19-FN1 markMCQQ.Which statement among the following is true?(i) The function f(x)=x∣x∣ is strictly increasing on R−{0}.(ii) The function f(x)=log(1/4)x is strictly increasing on (0,∞).(iii) A one-one function is always an increasing function.(iv) f(x)=x1/3 is strictly decreasing on R (A)(i) (B)(ii) (C)(iii) (D) (iv)
›Reveal solutionSolution
Only statement (i) is correct: f(x)=x∣x∣ is strictly increasing everywhere, including on R−{0}.
Concept and Intuition
A function is strictly increasing on an interval if larger inputs always give larger outputs there. x∣x∣ is designed so it behaves like x2 for positive x and like −x2 (a reflected, still increasing) parabola for negative x — the absolute value flips the sign of the negative branch so both halves slope the same way.
Step-by-Step Solution
- Statement (i): Write f(x)=x∣x∣={x2,−x2,x≥0x<0. For x>0: f′(x)=2x>0. For x<0: f′(x)=−2x, and since x<0, −2x>0. So f′(x)>0 everywhere except at x=0 itself (a single point), and the function is continuous there, so f is strictly increasing on all of R, in particular on R−{0}. True.
- Statement (ii): log1/4x=ln(1/4)lnx. Since ln(1/4)<0, this is −ln4lnx, a negative multiple of the increasing function lnx — hence strictly decreasing. False.
- Statement (iii): One-one just means no two distinct x give the same f(x); a function can be injective while wiggling (e.g. non-monotonic injective piecewise functions exist). So "always increasing" is false in general.
- Statement (iv): f(x)=x1/3 has f′(x)=31x−2/3≥0 for all x=0 (and it's increasing through 0 too) — it is strictly increasing, not decreasing. False.
- Hence only (i) is a true statement.
Common Mistakes
- Assuming x∣x∣ behaves like x2 (non-monotonic, decreasing then increasing) — the absolute value is exactly what fixes this.
- Confusing "one-one" with "monotonic" — they are different properties.
✓Final answerThe correct option is (A) — (i) f(x)=x∣x∣ is strictly increasing on R−{0}.
ANSWER: A
🎓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.