JEE Main 2025 · 3 April · evening · Single correct · +4 / −1

Let f: R → R be a function defined by f(x)=||x+2|-2| x ∥. If m is the number of points of local minima and n is the number of points of local maxima of f, then m+n is

  1. (a) 3
  2. (b) 4
  3. (c) 2
  4. (d) 5
Answer and solution

Answer (a) 3

Solution

Maths sir · 4 steps

Open the inner modulus first, then track where f turns from falling to rising or back.

  1. Inside expression. Let g(x) = |x+2| - 2|x|. The breakpoints are x = -2 and x = 0, so g(x) = x - 2 for x < -2, g(x) = 3x + 2 for -2 ≤ x < 0, and g(x) = 2 - x for x ≥ 0.
  2. Where g is zero. f = |g| flips sign wherever g is negative, and it gets new corners where g = 0. Here g = 0 at x = -2/3 and at x = 2. For x < -2, g < -4, so it never vanishes there.
    Intervalf(x)Behaviour
    x < -22 - xdecreasing, slope -1
    -2 < x < -2/3-(3x + 2)decreasing, slope -3, from 4 down to 0
    -2/3 < x < 03x + 2increasing, from 0 up to 2
    0 < x < 22 - xdecreasing, from 2 down to 0
    x > 2x - 2increasing
  3. Read the turns. At x = -2 the graph has a corner, but f keeps falling on both sides, so it is not an extremum. The graph turns falling to rising at x = -2/3 (minimum, f = 0) and at x = 2 (minimum, f = 0). It turns rising to falling at x = 0 (maximum, f = 2).
  4. So. m = 2 and n = 1, so m + n = 3, which is option (a).

The idea to keep. A corner is not automatically an extremum. Check the sign of the slope on both sides: only a change from falling to rising (or rising to falling) gives a local minimum (or maximum).

Answer from the NTA final answer key. Solution by PrepWiser.

Study Applications of Derivatives

Asked about 160 times in JEE Main since 2020. This question is from 2025.