QlarIITy

MathematicsIIT-JEE 2012 · Paper 1Integer

Let f:R→Rf:\mathbb{R}\rightarrow\mathbb{R} be defined as f(x)=∣x∣+∣x2−1∣f(x)=|x|+|x^{2}-1|. The total number of points at which ff attains either a local maximum or a local minimum is

Try it before you look.The full solution is on this page, below the answer box, the moment you check. No sign-in needed.

Solution

Core idea. Local extrema occur at stationary points and also at corners where ff is continuous but not differentiable, so the break points of each modulus must be tested.

Concept refresher. A local extremum can occur where f′(x)=0f'(x)=0 or where ff is continuous but not differentiable (a corner). At a corner, a change of the sign of the slope from −- to ++ gives a local minimum. An even function has extrema placed symmetrically about x=0x=0.

Approach. Write ff piecewise for x≥0x\ge 0, track where it increases or decreases, then reflect to x<0x<0.

  1. Step 1: Piecewise form for x≥0x\ge 0

    f(x)={1+x−x2,0≤x≤1x2+x−1,x≥1f(x)=\begin{cases}1+x-x^{2}, & 0\le x\le 1\\ x^{2}+x-1, & x\ge 1\end{cases}
  2. Step 2: Monotonic behaviour

    On [0,1][0,1]: f′(x)=1−2xf'(x)=1-2x, positive on (0,12)\left(0,\frac{1}{2}\right) and negative on (12,1)\left(\frac{1}{2},1\right). So x=12x=\frac{1}{2} is a local maximum with f=54f=\frac{5}{4}.
    On (1,∞)(1,\infty): f′(x)=2x+1>0f'(x)=2x+1>0, so ff increases.

  3. Step 3: Corner points

    At x=1x=1: ff decreases just before and increases just after, so x=1x=1 is a local minimum (f(1)=1f(1)=1).
    At x=0x=0: ff increases for small x>0x>0 and, by evenness, decreases as xx approaches 00 from the left, so x=0x=0 is a local minimum (f(0)=1f(0)=1).

  4. Step 4: Use symmetry

    Since f(−x)=f(x)f(-x)=f(x), there are also a local maximum at x=−12x=-\frac{1}{2} and a local minimum at x=−1x=-1.
    Extrema: x=−1,−12,0,12,1x=-1,-\frac{1}{2},0,\frac{1}{2},1.

Answer. 5

Common slips

  • Counting only the stationary points x=±12x=\pm\frac{1}{2} gives 2.
  • Working only on x≥0x\ge 0 and forgetting the mirror image gives 3.

Key takeaway

The trap. Students count only the stationary points x=±12x=\pm\frac{1}{2} and miss the corner minima at x=0x=0 and x=±1x=\pm 1, or forget the mirror image for x<0x<0.

How toppers think. They use that ff is even, sketch it on x≥0x\ge 0 as 1+x−x21+x-x^{2} then x2+x−1x^{2}+x-1, read off three extrema, and mirror the two non-zero ones.

Remember. A sign change of f′f' from −- to ++ at a corner is a local minimum, even where f′f' does not exist.

More on Maxima & Minima