MCQMediumJEE 2025Applications of Derivatives (Monotonicity, Extrema)

JEE Mathematics 2025 Question with Solution

Let f:RRf : \mathbb{R} \rightarrow \mathbb{R} be a function defined by f(x)=x+22xf(x) = ||x+2| - 2|x||. If mm is the number of points of local maxima of ff and nn is the number of points of local minima of ff, then m+nm + n is

  • A

    55

  • B

    33

  • C

    22

  • D

    44

Answer

Correct answer:B

Step-by-step solution

Standard Method

Given: f(x)=x+22xf(x) = ||x+2| - 2|x||

Find: the total number of points of local maxima and local minima, that is m+nm+n.

Break the function at the points where the inner absolute value expressions change sign, namely at x=2x=-2 and x=0x=0.

For x0x \ge 0,

f(x)=x+22x=2xf(x)=|x+2-2x|=|2-x|

For 2x<0-2 \le x < 0,

f(x)=x+22(x)=3x+2f(x)=|x+2-2(-x)|=|3x+2|

For x<2x < -2,

f(x)=x22(x)=x2=2xf(x)=|-x-2-2(-x)|=|x-2|=2-x

Now simplify each part further:

x<2:f(x)=2x2x<23:f(x)=(3x+2)=3x223x<0:f(x)=3x+20x2:f(x)=2xx>2:f(x)=x2\begin{aligned} &x<-2: &&f(x)=2-x \\ &-2\le x< -\frac{2}{3}: &&f(x)=-(3x+2)=-3x-2 \\ &-\frac{2}{3}\le x<0: &&f(x)=3x+2 \\ &0\le x\le 2: &&f(x)=2-x \\ &x>2: &&f(x)=x-2 \end{aligned}

From these linear pieces, the graph changes direction at three points:

  • At x=23x=-\frac{2}{3}, the function changes from decreasing to increasing, so this is a local minimum.
  • At x=0x=0, the function changes from increasing to decreasing, so this is a local maximum.
  • At x=2x=2, the function changes from decreasing to increasing, so this is a local minimum.

At x=2x=-2, the slope is negative on both sides, so there is no local extremum there.

Hence, number of local maxima is m=1m=1 and number of local minima is n=2n=2.

Therefore,

m+n=1+2=3m+n=1+2=3

The correct option is B.

Graph-Based Interpretation

Given: f(x)=x+22xf(x) = ||x+2| - 2|x||

Find: the number of local extrema points.

The critical points mentioned in the extracted solution are x=2,0,23x=-2, 0, -\frac{2}{3} and the graph also shows the corner at x=2x=2 where the outer absolute value changes branch.

Piecewise linear graph of the function with labeled points at minus two comma four, minus two by three comma zero, zero comma two, and a V-shape touching the x-axis again at two.

Reading the graph:

  • there is a valley at x=23x=-\frac{2}{3},
  • a peak at x=0x=0,
  • another valley at x=2x=2. So the graph has one local maximum and two local minima.

Therefore, m+n=3m+n=3 and the correct option is B.

Common mistakes

  • Treating the interval x<0x<0 as a single case is incorrect because x+2|x+2| changes sign again at x=2x=-2. Split at both x=2x=-2 and x=0x=0 before simplifying.

  • Missing the point x=23x=-\frac{2}{3} is a common error. After obtaining 3x+2|3x+2| on 2x<0-2\le x<0, set 3x+2=03x+2=0 to locate the turning point.

  • Counting x=2x=-2 as an extremum is wrong. The function is decreasing on both sides of x=2x=-2, so the direction does not reverse there.

Practice more Applications of Derivatives (Monotonicity, Extrema) questions

Get unlimited AI-adaptive practice, mastery tracking, and an AI tutor that explains every step — free to start.

Related questions