QlarIITy

MathematicsJEE Main 2026 · 4 AprilInteger

Letf(x)={ex−1,x<0x2−5x+6,x≥0f(x) = \begin{cases} e^{x-1}, & x < 0 \\ x^2 - 5x + 6, & x \geq 0 \end{cases}andg(x)=f(∣x∣)+∣f(x)∣g(x) = f(|x|) + |f(x)|. If the number of points where gg is not continuous and is not differentiable are α\alpha and β\beta respectively, then α+β\alpha + \beta 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. Write each part of a function built from moduli as an explicit formula, then check its joins and zeros.

Concept refresher. A function that is not continuous at a point is not differentiable there. For a differentiable hh, the function ∣h∣|h| has a corner (is not differentiable) at a simple zero cc of hh, where

h(c)=0, h′(c)≠0h(c) = 0, \ h'(c) \neq 0

and ∣x∣|x| is not differentiable at x=0x = 0. Sums of functions that are continuous (or differentiable) at a point are continuous (or differentiable) there.

Picture the situation. The function ff jumps at x=0x = 0, from e−1e^{-1} on the left to 66 at 00. The first part f(∣x∣)f(|x|) uses only the quadratic piece, and is symmetric about the yy-axis. The second part ∣f(x)∣|f(x)| keeps the jump and folds the quadratic up between its zeros 22 and 33.

Approach. Write both parts as explicit formulas, then find where gg jumps and where it has a corner.

  1. Step 1: Write the first part

    Since ∣x∣≥0|x| \geq 0, only the second formula is used, so for every real xx

    f(∣x∣)=x2−5∣x∣+6f(|x|) = x^2 - 5|x| + 6

    This is continuous everywhere and smooth except at x=0x = 0, where the left and right slopes are 55 and −5-5.

  2. Step 2: Write the second part

    For x<0x < 0, ∣f(x)∣=ex−1|f(x)| = e^{x-1}, which is smooth. For x≥0x \geq 0,

    ∣f(x)∣=∣(x−2)(x−3)∣|f(x)| = \left|(x - 2)(x - 3)\right|

    which is continuous with corners at the simple zeros x=2x = 2 and x=3x = 3. At x=0x = 0 it jumps from e−1e^{-1} to 66.

  3. Step 3: Find where g is not continuous

    The first part is continuous everywhere, so gg is discontinuous exactly where the second part is. At x=0x = 0 the left limit of gg is 6+e−16 + e^{-1} while g(0)=12g(0) = 12, so gg is not continuous only at 00, and α=1\alpha = 1.

  4. Step 4: Find where g is not differentiable

    At x=0x = 0, gg is not continuous, so it is not differentiable. At x=2x = 2 and x=3x = 3 the first part is smooth and the second has corners, so gg is not differentiable there. Elsewhere both parts are smooth. So β=3\beta = 3 and

    α+β=1+3=4\alpha + \beta = 1 + 3 = 4

Answer. 4

Sanity check. At x=2x = 2: for xx slightly above 22, ∣f(x)∣=(x−2)(3−x)|f(x)| = (x - 2)(3 - x) with slope 11, and slightly below with slope −1-1, while f(∣x∣)f(|x|) has slope 2x−5=−12x - 5 = -1 on both sides, so gg has slopes −2-2 and 00, a corner as expected.

Common wrong answers

  • 3: Counting the corners x=2x = 2 and x=3x = 3 but not x=0x = 0 gives β=2\beta = 2 and 1+2=31 + 2 = 3; at x=0x = 0 the function gg is not continuous, so it is not differentiable there either, and β=3\beta = 3.
  • 2: Taking gg as continuous at 00 gives α=0\alpha = 0 and β=2\beta = 2; but g(0)=6+6=12g(0) = 6 + 6 = 12 while g(x)→6+e−1g(x) \to 6 + e^{-1} as x→0−x \to 0^-, so gg jumps at 00.
  • 6: Treating f(∣x∣)f(|x|) as if it also had a modulus outside adds corners at x=−2x = -2 and x=−3x = -3, giving β=5\beta = 5 and 1+5=61 + 5 = 6; but f(∣x∣)=x2+5x+6f(|x|) = x^2 + 5x + 6 for x<0x < 0 is smooth there.

Key takeaway

The trap. Leaving the point of discontinuity out of the count of points of non-differentiability.

How toppers think. They note that f(∣x∣)f(|x|) uses only the right-hand formula and is even, so it cannot inherit the jump.

Remember. ∣h∣|h| has a corner at a simple zero of a differentiable hh, and a discontinuity is always a non-differentiable point.

More on Differentiability