QlarIITy

MathematicsJEE Main 2021 · 27 JulySingle correct

Let f:[0,∞)→[0,3]f : [0, \infty) \to [0, 3] be a function defined byf(x)={max⁡{sin⁡t:0≤t≤x},x∈[0,π]2+cos⁡x,x>πf(x) = \begin{cases} \max\{\sin t : 0 \leq t \leq x\}, & x \in [0, \pi] \\ 2 + \cos x, & x > \pi \end{cases}. Then which of the following is true ?

  1. Option A: ff is continuous everywhere but not differentiable exactly at one point in (0,∞)(0, \infty)
  2. Option B: ff is differentiable everywhere in (0,∞)(0, \infty)
  3. Option C: ff is not continuous exactly at two points in (0,∞)(0, \infty)
  4. Option D: ff is continuous everywhere but not differentiable exactly at two points in (0,∞)(0, \infty)
Try it before you look.The full solution is on this page, below the options, the moment you check. No sign-in needed.

Solution

Core idea. A running maximum leaves a smooth peak without a corner, and a curve leaves its lowest point flat.

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. On [0,π2]\left[0, \dfrac{\pi}{2}\right] the sine is rising, so the running maximum is sin⁡x\sin x. On [π2,π]\left[\dfrac{\pi}{2}, \pi\right] the sine is below its peak value 1, so the running maximum stays 1.

Graph of the function: the sine curve rising to the point (π/2, 1), a horizontal line at height 1 to the point (π, 1), then the curve 2 + cos x rising smoothly to height 3 at x = 2π. The falling part of the sine between π/2 and π is dashed.

Approach. Compare values and slopes at the two joins.

  1. Step 1: The first join

    At π2\dfrac{\pi}{2} both formulas give 1, and the slopes are cos⁡π2=0\cos\dfrac{\pi}{2} = 0 and 0. The join is smooth.

  2. Step 2: The second join

    At π\pi the values are 1 and 2+cos⁡π=12 + \cos\pi = 1, and the slopes are 0 and −sin⁡π=0-\sin\pi = 0. This join is smooth too, so ff is differentiable everywhere in (0,∞)(0, \infty).

Answer. (B) ff is differentiable everywhere in (0,∞)(0, \infty)

Sanity check. The curve 2+cos⁡x2 + \cos x has its lowest point at x=πx = \pi, where it is flat, so it leaves the flat part without a corner.

Why the other options are wrong

  • (A) There is no corner at all: at π2\dfrac{\pi}{2} and at π\pi the slopes on both sides are 0.
  • (C) The function is continuous: the formulas agree in value at both joins.
  • (D) Neither join is a corner, because every one-sided slope at π2\dfrac{\pi}{2} and at π\pi equals 0.

Key takeaway

The trap. A change of formula is not a corner when both value and slope agree.

How toppers think. They check the slope of each formula at the joins, expecting zeros at peaks and troughs.

Remember. Slopes at π2\dfrac{\pi}{2} and at π\pi: all 0

More on Differentiability