QlarIITy

MathematicsJEE Main 2021 · 20 JulyInteger

Let a function g:[0,4]→Rg : [0, 4] \to R be defined asg(x)={max⁡0≤t≤x{t3−6t2+9t−3},0≤x≤34−x,3<x≤4g(x) = \begin{cases} \max_{0 \leq t \leq x}\{t^3 - 6t^2 + 9t - 3\}, & 0 \leq x \leq 3 \\ 4 - x, & 3 < x \leq 4 \end{cases}then the number of points in the interval (0,4)(0, 4) where g(x)g(x) is NOT differentiable, 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. A running maximum leaves a smooth peak without a corner.

Concept refresher. For a function hh, the running maximum

M(x)=max⁡t≤xh(t)M(x) = \max_{t \leq x} h(t)

equals h(x)h(x) while hh is rising to new heights, and stays constant at the last peak value while hh is below it.

Picture the situation. With h(t)=t3−6t2+9t−3h(t) = t^3 - 6t^2 + 9t - 3, h′(t)=3(t−1)(t−3)h^{\prime}(t) = 3(t - 1)(t - 3), so hh rises on [0,1][0, 1] to h(1)=1h(1) = 1 and falls on [1,3][1, 3]. So g(x)=h(x)g(x) = h(x) on [0,1][0, 1] and g(x)=1g(x) = 1 on [1,3][1, 3].

Graph of g on the interval from 0 to 4: the cubic rising to the point (1, 1), a horizontal line at height 1 to the point (3, 1), then a line falling to the x-axis at x = 4. The falling part of the cubic between 1 and 3 is dashed.

Approach. Compare the slopes at 1 and at 3.

  1. Step 1: At 1

    The slope of the cubic at 1 is h′(1)=0h^{\prime}(1) = 0, the same as the slope of the flat part. So gg is differentiable at 1.

  2. Step 2: At 3

    The flat part gives 1 and the line 4−x4 - x also gives 1, but the slopes are 0 and −1-1. So gg is not differentiable at 3, and this is the only such point: the count is 1.

Answer. 1

Sanity check. The peak of a smooth curve is flat, which is why the running maximum leaves it without a corner.

Common wrong answers

  • 2: Counting x=1x = 1 as a corner as well gives 2, but the slope of the cubic at its peak is 0.
  • 0: Treating the join at 3 as smooth because the values agree gives 0, but the slopes there are 0 and −1-1.

Key takeaway

The trap. A flat part meeting a sloping line does make a corner.

How toppers think. They factorise the derivative to locate the peak at once.

Remember. Slopes: 0 and 0 at x=1x = 1; 0 and −1-1 at x=3x = 3

More on Differentiability