JEE Challenger
More from Application of Derivatives

Number of Local Extrema for Sum of Absolute Values Function

Consider the function f:R→Rf : \mathbb{R} \rightarrow \mathbb{R} defined by f(x)=∣x∣+∣x2−1∣f(x) = |x| + |x^2 - 1|. Calculate the total number of points at which ff reaches a local minimum or local maximum.

Official Numerical Answer5

Step-by-Step Solution

To find the total number of points at which the function f(x)=∣x∣+∣x2−1∣f(x) = |x| + |x^2 - 1| attains a local maximum or a local minimum, we analyze the function piecewise.

Step 1: Symmetry of the Function

Note that for any x∈Rx \in \mathbb{R}: f(−x)=∣−x∣+∣(−x)2−1∣=∣x∣+∣x2−1∣=f(x)f(-x) = |-x| + |(-x)^2 - 1| = |x| + |x^2 - 1| = f(x) Thus, f(x)f(x) is an even function, which means it is symmetric about the line x=0x = 0.


Step 2: Piecewise Analysis for x≥0x \ge 0

We divide the domain x≥0x \ge 0 into intervals based on the absolute value definitions:

  1. Interval 0≤x<10 \le x < 1: In this interval, ∣x∣=x|x| = x and ∣x2−1∣=1−x2|x^2 - 1| = 1 - x^2. f(x)=x+(1−x2)=−x2+x+1f(x) = x + (1 - x^2) = -x^2 + x + 1 Taking the first derivative: f′(x)=−2x+1f'(x) = -2x + 1 Setting f′(x)=0f'(x) = 0 gives the critical point: x=12x = \frac{1}{2}

    • For x∈(0,12)x \in \left(0, \frac{1}{2}\right), f′(x)>0f'(x) > 0, so f(x)f(x) is strictly increasing.
    • For x∈(12,1)x \in \left(\frac{1}{2}, 1\right), f′(x)<0f'(x) < 0, so f(x)f(x) is strictly decreasing.
  2. Interval x≥1x \ge 1: In this interval, ∣x∣=x|x| = x and ∣x2−1∣=x2−1|x^2 - 1| = x^2 - 1. f(x)=x+(x2−1)=x2+x−1f(x) = x + (x^2 - 1) = x^2 + x - 1 Taking the first derivative: f′(x)=2x+1f'(x) = 2x + 1 For x>1x > 1, f′(x)>0f'(x) > 0, so f(x)f(x) is strictly increasing on [1,∞)[1, \infty).


Step 3: Identification of Local Extrema for x≥0x \ge 0

  • At x=0x = 0: Since f(x)f(x) is strictly increasing on (0,12)\left(0, \frac{1}{2}\right) and symmetric about x=0x = 0, it is strictly decreasing on (−12,0)\left(-\frac{1}{2}, 0\right). Therefore, f(x)f(x) attains a local minimum at x=0x = 0. f(0)=1f(0) = 1

  • At x=12x = \frac{1}{2}: The derivative f′(x)f'(x) changes sign from positive to negative as xx increases through 12\frac{1}{2}. Therefore, f(x)f(x) attains a local maximum at x=12x = \frac{1}{2}. f(12)=54f\left(\frac{1}{2}\right) = \frac{5}{4}

  • At x=1x = 1: The function is strictly decreasing on (12,1)\left(\frac{1}{2}, 1\right) and strictly increasing on (1,∞)(1, \infty). Therefore, f(x)f(x) attains a local minimum at x=1x = 1. f(1)=1f(1) = 1


Step 4: Using Symmetry for x<0x < 0

By the even symmetry of f(x)f(x):

  • At x=−12x = -\frac{1}{2}, f(x)f(x) attains a local maximum.
  • At x=−1x = -1, f(x)f(x) attains a local minimum.

Step 5: Total Count of Local Extrema

The points of local extrema are:

  1. x=−1x = -1 (Local Minimum)
  2. x=−12x = -\frac{1}{2} (Local Maximum)
  3. x=0x = 0 (Local Minimum)
  4. x=12x = \frac{1}{2} (Local Maximum)
  5. x=1x = 1 (Local Minimum)

Thus, the total number of points at which ff attains a local minimum or local maximum is 5.