QlarIITy

MathematicsJEE Main 2026 · 4 AprilInteger

The number of points, at which the functionf(x)=max⁡{6x,2+3x2}+∣x−1∣cos⁡∣x2−14∣\begin{aligned} f(x) &= \max\left\{6x, 2 + 3x^2\right\} \\[4pt] &+ |x - 1|\cos\left|x^2 - \frac{1}{4}\right| \end{aligned}, x∈(−π,π)x \in (-\pi, \pi), 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. Corners come from a maximum switching between functions with different slopes, and from a modulus factor whose partner is non-zero there.

Concept refresher. A function is differentiable at aa when its left and right derivatives there are equal:

f′(a−)=f′(a+)f'(a^-) = f'(a^+)

The sum of a function with a corner at aa and a function differentiable at aa still has a corner at aa. Also cos⁡∣u∣=cos⁡u\cos|u| = \cos u for every real uu, since cosine is even.

Picture the situation. On (−π,π)(-\pi, \pi) the parabola y=2+3x2y = 2 + 3x^2 lies above the line y=6xy = 6x except between their meeting points 1±13≈0.421 \pm \frac{1}{\sqrt{3}} \approx 0.42 and 1.581.58; the factor ∣x−1∣|x - 1| has its V at x=1x = 1, between them.

Approach. Find the corners of the maximum, then of the second part, and check that no corner cancels.

  1. Step 1: Corners of the maximum

    The two functions are equal where

    3x2−6x+2=0⇒x=1±133x^2 - 6x + 2 = 0 \Rightarrow x = 1 \pm \frac{1}{\sqrt{3}}

    At these points the slopes are 66 for the line and 6x=6±236x = 6 \pm 2\sqrt{3} for the parabola, which differ, so the maximum has a corner at each.

  2. Step 2: The cosine factor is smooth

    Cosine is even, so the modulus inside it does nothing:

    cos⁡∣x2−14∣=cos⁡(x2−14)\cos\left|x^2 - \frac{1}{4}\right| = \cos\left(x^2 - \frac{1}{4}\right)

    which is differentiable everywhere, including x=±12x = \pm\frac{1}{2}.

  3. Step 3: Corner at one

    Near x=1x = 1 the second part is ±(x−1)cos⁡(x2−14)\pm(x - 1)\cos\left(x^2 - \frac{1}{4}\right), so its one-sided derivatives at 11 are

    −cos⁡34 and +cos⁡34-\cos\frac{3}{4} \text{ and } +\cos\frac{3}{4}

    These differ because cos⁡34≠0\cos\frac{3}{4} \neq 0, so there is a corner at x=1x = 1. Near 11 the maximum equals 6x6x, which is smooth, so the corner stays.

  4. Step 4: Count

    The three corners are at different points, and each one is added to a part that is smooth there, so none cancels. All lie in (−π,π)(-\pi, \pi), so the number of points is

    33

Answer. 3

Sanity check. At x=1−13≈0.42x = 1 - \frac{1}{\sqrt{3}} \approx 0.42 the slope of ff jumps by 6−(6−23)=23≈3.466 - (6 - 2\sqrt{3}) = 2\sqrt{3} \approx 3.46, and at x=1x = 1 it jumps by 2cos⁡34≈1.462\cos\frac{3}{4} \approx 1.46; both jumps are non-zero.

Common wrong answers

  • 2: Counting only the two corners of the maximum gives 22; at x=1x = 1 the factor ∣x−1∣|x - 1| has a corner and cos⁡34≠0\cos\frac{3}{4} \neq 0, so that point counts too.
  • 5: Adding the points x=±12x = \pm\frac{1}{2}, where x2−14=0x^2 - \frac{1}{4} = 0, gives 55; but cos⁡∣u∣=cos⁡u\cos|u| = \cos u, so the cosine factor is smooth there.
  • 1: Counting only x=1x = 1 gives 11; the maximum switches from 2+3x22 + 3x^2 to 6x6x and back at x=1±13x = 1 \pm \frac{1}{\sqrt{3}}, with different slopes, so those are corners too.

Key takeaway

The trap. Counting x=±12x = \pm\frac{1}{2}, where the modulus inside the cosine changes sign, although cos⁡∣u∣=cos⁡u\cos|u| = \cos u is smooth.

How toppers think. They check each candidate corner by comparing left and right slopes, not by the look of the formula.

Remember. ∣x−a∣g(x)|x - a|g(x) has a corner at aa exactly when g(a)≠0g(a) \neq 0 (for a differentiable gg).

More on Differentiability