QlarIITy

MathematicsJEE Main 2021 · 22 JulyInteger

Let f:R→Rf : R \to R be a function defined as f(x)={3(1−∣x∣2),if ∣x∣≤20,if ∣x∣>2f(x) = \begin{cases} 3\left(1 - \frac{|x|}{2}\right), & \text{if } |x| \leq 2 \\ 0, & \text{if } |x| > 2 \end{cases}. Let g:R→Rg : R \to R be given by g(x)=f(x+2)−f(x−2)g(x) = f(x + 2) - f(x - 2). If nn and mm denote the number of points in RR where gg is not continuous and not differentiable, respectively, then n+mn + m is equal to ______.

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. Corners of a sum or difference can cancel where the slope changes of the parts balance.

Concept refresher. Shifting a graph moves its special points: if ff has a corner at x=cx = c, then

y=f(x+a)y = f(x + a)

has a corner at x=c−ax = c - a.

Picture the situation. The function ff is a tent with feet at x=±2x = \pm 2 and peak 3 at x=0x = 0, with slopes 32\dfrac{3}{2} and −32-\dfrac{3}{2}. So f(x+2)f(x + 2) is the same tent on [−4,0][-4, 0] and f(x−2)f(x - 2) is the tent on [0,4][0, 4]. Both are continuous, so gg is continuous and n=0n = 0.

Graph of g: zero up to x = −4, rising to a peak of height 3 at x = −2, falling in one straight line through the origin to a trough of depth −3 at x = 2, rising back to zero at x = 4, and zero afterwards. Dots mark the corners at −4, −2, 2 and 4.

Approach. Find the slope of the difference on each interval and compare at the candidate points.

  1. Step 1: The slopes

    The slope of gg is 32\dfrac{3}{2} on (−4,−2)(-4, -2), −32-\dfrac{3}{2} on (−2,0)(-2, 0), −32-\dfrac{3}{2} on (0,2)(0, 2) and 32\dfrac{3}{2} on (2,4)(2, 4), and 0 outside [−4,4][-4, 4].

  2. Step 2: The corners

    The slope changes at −4-4, −2-2, 2 and 4 but not at 0, so m=4m = 4 and n+m=0+4=4n + m = 0 + 4 = 4.

Answer. 4

Sanity check. On (0,2)(0, 2) the first tent has ended and the second is rising, so g=−f(x−2)g = -f(x - 2) falls with slope −32-\dfrac{3}{2}, the same slope as just left of 0.

Common wrong answers

  • 5: Counting x=0x = 0 as a corner, although the slopes on its two sides are equal, gives 5.
  • 2: Counting only the peak at −2-2 and the trough at 2, and missing the feet at ±4\pm 4, gives 2.

Key takeaway

The trap. A point where both parts have corners is not automatically a corner of the difference.

How toppers think. They write the slope of the difference on each interval and look for changes.

Remember. Slopes of gg: 32\dfrac{3}{2}, −32-\dfrac{3}{2}, −32-\dfrac{3}{2}, 32\dfrac{3}{2}

More on Differentiability