QlarIITy

MathematicsJEE Main 2025 · 4 AprilInteger

Let mm and nn be the number of points at which the function f(x)=max⁡{x,x3,x5,…,x21},x∈Rf(x) = \max\{x, x^3, x^5, \ldots, x^{21}\}, x \in \mathbb{R}, is not differentiable and not continuous, respectively. Then m+nm + n 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. A maximum of smooth functions can have corners only where the largest function changes.

Concept refresher. The function

f(x)=max⁡{g(x),h(x)}f(x) = \max\{g(x), h(x)\}

is continuous wherever gg and hh are, and it can lose its derivative only at a point where g(x)=h(x)g(x) = h(x) and the two slopes differ.

Picture the situation. For x>1x > 1 the powers increase with the exponent, so the largest is x21x^{21}; for 0<x<10 < x < 1 they decrease, so the largest is xx. For negative xx every power is negative and the largest is the one of smallest size: x21x^{21} for −1<x<0-1 < x < 0 and xx for x<−1x < -1.

Graph of the maximum of the odd powers: the line y = x up to the point (−1, −1), then the flat curve y = x^21 to the origin, then the line y = x to the point (1, 1), then the steep curve y = x^21. Dots mark the three corners at x = −1, 0 and 1.

Approach. Write the maximum piece by piece, then compare values and slopes at the three joins.

  1. Step 1: Continuity

    At x=−1x = -1, 0 and 1 the two pieces xx and x21x^{21} take the same value, so the function is continuous everywhere and n=0n = 0.

  2. Step 2: Differentiability

    The slopes of xx and x21x^{21} are 1 and 21x2021x^{20}. At x=±1x = \pm 1 these are 1 and 21, and at x=0x = 0 they are 1 and 0, so the slopes differ at all three joins and m=3m = 3.

  3. Step 3: The value

    Adding the two counts found above gives m+n=3+0=3m + n = 3 + 0 = 3.

Answer. 3

Sanity check. A maximum of continuous functions is always continuous, so n=0n = 0 needs no calculation.

Common wrong answers

  • 2: Treating the join at 0 as smooth, because both pieces vanish there, gives m=2m = 2 and the value 2.
  • 6: Counting the three joins as discontinuities as well gives n=3n = 3 and the value 6.

Key takeaway

The trap. Equal values at a join do not make the slopes equal.

How toppers think. They compare only the lowest and the highest power, since every other power lies between them.

Remember. Slopes at the joins: 1 and 21 at ±1\pm 1, 1 and 0 at 0

More on Differentiability