HOME/NOTES/CONCEPT

Continuity and Differentiability for JEE: Corners, Counts and Constants

Ritesh Raj · 3 Nov 2026
Aa
42 min read19 sectionsConcept

A function is continuous at a point when its graph can be drawn through that point without lifting the pen. It is differentiable at a point when, in addition, the graph has a single, non-vertical tangent there: no break, no sharp corner, no pointed tip. Both ideas rest on the left hand and right hand limits of the Limits chapter, so every test in this note is a comparison of a left side with a right side.

This note follows the order in which JEE uses the chapter: continuity at a point, the types of discontinuity, sums, products and composites, constants in piecewise functions, greatest integer and fractional part functions, continuity on an interval and the intermediate value theorem, differentiability and its geometric meaning, constants for differentiability, modulus, maximum and minimum by the graph method, the product rule for differentiability, functional equations, and functions defined by integrals. Every worked example is a JEE Main 2025 or 2026 or JEE Advanced 2026 question unless it says otherwise, and every answer was re-derived from scratch.

Continuity at a point

A function ff is continuous at x=ax=a when three things hold together:

  1. f(a)f(a) is defined,
  2. the limit of f(x)f(x) as x→ax\to a exists, that is, LHL == RHL and both are finite,
  3. the limit equals the value.

In one line,

lim⁡x→a−f(x)=lim⁡x→a+f(x)=f(a)\lim_{x\to a^-}f(x)=\lim_{x\to a^+}f(x)=f(a)

If any one of the three fails, ff is discontinuous at aa. The three pictures below show each failure in turn: the value is missing, the two sides do not meet, and the two sides meet at a height different from f(a)f(a).

Three graphs side by side, each with a dashed vertical guide at x equals a: the first is a smooth curve with a hollow dot at x equals a and no filled dot anywhere above it; the second has a lower line ending in a hollow dot and an upper line starting with a filled dot at x equals a; the third is a smooth curve with a hollow dot marked L and a separate filled dot higher up marked f of a

For a function given by one formula, continuity at a point inside its domain is usually automatic: polynomials, sin⁡x\sin x, cos⁡x\cos x, exe^x, axa^x, ∣x∣\lvert x\rvert are continuous everywhere, and ln⁡x\ln x, x\sqrt x, tan⁡x\tan x are continuous at every point of their domains. The real work is at points where the formula changes, where a denominator is zero, or where [ ⋅ ][\,\cdot\,], { ⋅ }\{\,\cdot\,\} or sgn appear.

Order of work

Always find f(a)f(a) first, then LHL, then RHL. When the question has unknown constants, write one equation for each equality you need.

Example 1 (IITianForum). Find kk so that the function below is continuous at x=2x=2.

f(x)=x2−4x−2 (x≠2),f(2)=kf(x)=\frac{x^2-4}{x-2}\ (x\ne2),\qquad f(2)=k
▸ SHOW SOLUTION

Step 1. Limit

For x≠2x\ne2, cancel the common factor:

x2−4x−2=x+2\frac{x^2-4}{x-2}=x+2lim⁡x→2f(x)=4\lim_{x\to2}f(x)=4

Step 2. Match the value

Continuity needs f(2)=4f(2)=4.

Answer: k=4k=4

Example 2 (JEE Main 2026, 24 January Shift 1). If the function

f(x)=N(x)tan⁡x−x, wheref(x)=\frac{N(x)}{\tan x-x},\ \text{where} N(x)=ex(etan⁡x−x−1)N(x)=e^x\left(e^{\tan x-x}-1\right) +ln⁡(sec⁡x+tan⁡x)−x\qquad+\ln(\sec x+\tan x)-x

is continuous at x=0x=0, then f(0)f(0) is

Tap an option to check your answer
(1)22
(2)23\dfrac23
(3)12\dfrac12
(4)32\dfrac32
▸ SHOW SOLUTION

Step 1. Split into two fractions

Put u=tan⁡x−xu=\tan x-x, so u→0u\to0 as x→0x\to0.

f=ex⋅eu−1u+ln⁡(sec⁡x+tan⁡x)−xuf=e^x\cdot\frac{e^u-1}{u}+\frac{\ln(\sec x+\tan x)-x}{u}

The first part tends to 1⋅1=11\cdot1=1.

Step 2. Second part by expansions

ln⁡(sec⁡x+tan⁡x)=x+x36+⋯\ln(\sec x+\tan x)=x+\frac{x^3}{6}+\cdotstan⁡x−x=x33+⋯\tan x-x=\frac{x^3}{3}+\cdotsx3/6x3/3=12\frac{x^3/6}{x^3/3}=\frac12

Step 3. Value

f(0)f(0) must equal the limit 1+121+\dfrac12.

Answer: (4) 32\dfrac32

Example 3 (JEE Main 2025, 7 April Shift 2). If

f(x)=tan⁡(tan⁡x)−sin⁡(sin⁡x)tan⁡x−sin⁡xf(x)=\frac{\tan(\tan x)-\sin(\sin x)}{\tan x-\sin x}

is continuous at x=0x=0, then f(0)f(0) is ______.

▸ SHOW SOLUTION

Step 1. Expand each composite to x3x^3

tan⁡x=x+x33\tan x=x+\dfrac{x^3}{3} and tan⁡t=t+t33\tan t=t+\dfrac{t^3}{3}, so

tan⁡(tan⁡x)=x+2x33+⋯\tan(\tan x)=x+\frac{2x^3}{3}+\cdots

sin⁡x=x−x36\sin x=x-\dfrac{x^3}{6} and sin⁡s=s−s36\sin s=s-\dfrac{s^3}{6}, so

sin⁡(sin⁡x)=x−x33+⋯\sin(\sin x)=x-\frac{x^3}{3}+\cdots

Step 2. Numerator and denominator

tan⁡(tan⁡x)−sin⁡(sin⁡x)=x3+⋯\tan(\tan x)-\sin(\sin x)=x^3+\cdotstan⁡x−sin⁡x=x32+⋯\tan x-\sin x=\frac{x^3}{2}+\cdots

Step 3. Limit

f(0)=11/2=2f(0)=\frac{1}{1/2}=2

Answer: 22

Example 4 (JEE Main 2025, 3 April Shift 1). The function

f(x)=(1+ax)1/x  (x<0)f(x)=(1+ax)^{1/x}\ \ (x<0) f(0)=1+bf(0)=1+b f(x)=(x+4)1/2−2(x+c)1/3−2  (x>0)f(x)=\frac{(x+4)^{1/2}-2}{(x+c)^{1/3}-2}\ \ (x>0)

is continuous at x=0x=0. Then eabce^abc is equal to

Tap an option to check your answer
(1)6464
(2)7272
(3)4848
(4)3636
▸ SHOW SOLUTION

Step 1. Left side

1∞1^\infty form:

lim⁡x→0−(1+ax)1/x=ea\lim_{x\to0^-}(1+ax)^{1/x}=e^a

Step 2. Right side forces c

The numerator tends to 00. If c≠8c\ne8 the denominator tends to c1/3−2≠0c^{1/3}-2\ne0 and RHL =0=0, but ea≠0e^a\ne0. So c=8c=8, and the RHL is a 00\dfrac00 form.

Step 3. RHL with c = 8

Divide the top and the bottom by xx and use (a+x)n−anx→nan−1\dfrac{(a+x)^n-a^n}{x}\to na^{n-1}:

(4+x)1/2−2x→14\frac{(4+x)^{1/2}-2}{x}\to\frac14(8+x)1/3−2x→112\frac{(8+x)^{1/3}-2}{x}\to\frac1{12}RHL=1/41/12=3\text{RHL}=\frac{1/4}{1/12}=3

Step 4. Constants

ea=3e^a=3 and 1+b=31+b=3, so b=2b=2.

eabc=3⋅2⋅8=48e^abc=3\cdot2\cdot8=48

Answer: (3) 4848

Types of discontinuity

Once a function fails to be continuous at aa, JEE asks what kind of failure it is.

TypeLHL and RHLPicture
Removableboth finite and equal; f(a)f(a) missing or differenta hole, perhaps with a stray dot
Jump (finite)both finite, unequala step; jump =∣RHL−LHL∣=\lvert\text{RHL}-\text{LHL}\rvert
Infiniteat least one is ±∞\pm\inftythe graph runs off along a vertical line
Oscillatingat least one side has no limitthe graph swings between two values

A removable discontinuity can be cured by defining (or redefining) f(a)f(a) as the common limit. The other three cannot be cured by changing one value, so they are called non-removable.

Two graphs side by side: the left is a bell shaped curve with a hollow dot at its top on the y axis at height 1 and a separate filled dot lower down on the y axis; the right has a left branch rising towards a hollow dot at minus 1 and a right branch falling from a hollow dot at 1, with a filled dot at the origin
Two graphs side by side: the left is the hyperbola y equals 1 over x, with its two branches running up and down along the y axis; the right is y equals sin of 1 over x, whose waves crowd together between the dashed lines y equals 1 and y equals minus 1 as x approaches 0

Example 5 (IITianForum). Classify the discontinuity at x=0x=0 of each function, with f(0)f(0) as stated.

(i) f(x)=e1/x−1e1/x+1f(x)=\dfrac{e^{1/x}-1}{e^{1/x}+1}, f(0)=0f(0)=0

(ii) f(x)=e1/xf(x)=e^{1/x}, f(0)=1f(0)=1

(iii) f(x)=1−cos⁡xx2f(x)=\dfrac{1-\cos x}{x^2}, f(0)=1f(0)=1

▸ SHOW SOLUTION

Step 1. Function (i)

As x→0+x\to0^+, e1/x→∞e^{1/x}\to\infty; divide by e1/xe^{1/x} and RHL =1=1. As x→0−x\to0^-, e1/x→0e^{1/x}\to0 and LHL =−1=-1. Both finite, unequal: a jump of 22.

Step 2. Function (ii)

LHL =0=0 and RHL =∞=\infty: an infinite discontinuity.

Step 3. Function (iii)

lim⁡x→01−cos⁡xx2=12≠f(0)\lim_{x\to0}\frac{1-\cos x}{x^2}=\frac12\ne f(0)

The limit exists, so this is removable. Redefining f(0)=12f(0)=\dfrac12 makes ff continuous.

Answer: (i) jump, (ii) infinite, (iii) removable

Example 6 (IITianForum). The function

f(x)=2+x2 (0≤x≤1)f(x)=2+x^2\ (0\le x\le1) f(x)=−x (−2<x<0)f(x)=-x\ (-2<x<0)

is one-one, and gg is its inverse. Find the jump of gg at x=2x=2.

▸ SHOW SOLUTION

Step 1. Ranges of the two pieces

On [0,1][0,1], 2+x22+x^2 increases and takes the values [2,3][2,3]. On (−2,0)(-2,0), −x-x takes the values (0,2)(0,2). The two ranges do not overlap, so gg is defined on (0,3](0,3].

Step 2. Formula for g

For 0<y<20<y<2: y=−xy=-x, so g(y)=−yg(y)=-y.

For 2≤y≤32\le y\le3: y=2+x2y=2+x^2 with x≥0x\ge0, so g(y)=y−2g(y)=\sqrt{y-2}.

Step 3. One-sided limits at y = 2

lim⁡y→2−g(y)=−2\lim_{y\to2^-}g(y)=-2lim⁡y→2+g(y)=0=g(2)\lim_{y\to2^+}g(y)=0=g(2)

Answer: a jump of 22

Example 7 (JEE Main 2026, 23 January Shift 1). Let

f(x)=ax2+2ax+34x2+4x−3,x≠−32, 12f(x)=\frac{ax^2+2ax+3}{4x^2+4x-3},\quad x\ne-\frac32,\ \frac12

and f(x)=bf(x)=b at x=−32, 12x=-\dfrac32,\ \dfrac12. If ff is continuous at x=−32x=-\dfrac32 and f∘f(x)=75f\circ f(x)=\dfrac75, then xx is

Tap an option to check your answer
(1)22
(2)11
(3)00
(4)1.41.4
▸ SHOW SOLUTION

Step 1. The numerator must vanish at x = -3/2

4x2+4x−3=(2x+3)(2x−1)4x^2+4x-3=(2x+3)(2x-1) is zero at −32-\dfrac32. A finite limit there needs the numerator zero too:

9a4−3a+3=0⇒a=4\frac{9a}{4}-3a+3=0\Rightarrow a=4

Step 2. Cancel

4x2+8x+3=(2x+1)(2x+3)4x^2+8x+3=(2x+1)(2x+3), so for x≠−32,12x\ne-\dfrac32,\dfrac12,

f(x)=2x+12x−1f(x)=\frac{2x+1}{2x-1}

The limit at −32-\dfrac32 is −2−4=12\dfrac{-2}{-4}=\dfrac12, so b=12b=\dfrac12.

Step 3. Solve f(y) = 7/5

b=12≠75b=\dfrac12\ne\dfrac75, so yy is not a special point:

2y+12y−1=75⇒y=3\frac{2y+1}{2y-1}=\frac75\Rightarrow y=3

Step 4. Solve f(x) = 3

2x+12x−1=3⇒x=1\frac{2x+1}{2x-1}=3\Rightarrow x=1

Answer: (2) 11

Sums, products and composite functions

If ff and gg are continuous at aa, then so are

f±gf\pm g fgfg cfcf fg  (g(a)≠0)\frac fg\ \ (g(a)\ne0)

For a composite: if ff is continuous at aa and gg is continuous at f(a)f(a), then g∘fg\circ f is continuous at aa.

These results only go one way. Two discontinuous functions can combine into a continuous one: [x]+{x}=x[x]+\{x\}=x everywhere. And a composite can be continuous even when the outer function breaks at the inner value, because the inner function may stay on one side of the break.

Common mistake

"ff continuous and gg discontinuous at aa" decides the sum, not the product. f+gf+g is surely discontinuous, since g=(f+g)−fg=(f+g)-f would otherwise be continuous. But fgfg can be continuous, because f(a)=0f(a)=0 can cancel the break in gg.

Example 8 (IITianForum). Let f(x)=xf(x)=x and g(x)=sgn⁡xg(x)=\operatorname{sgn}x. Check the continuity at x=0x=0 of f+gf+g and of fgfg.

▸ SHOW SOLUTION

Step 1. The sum

f+gf+g has LHL =0−1=−1=0-1=-1 and RHL =0+1=1=0+1=1. It is discontinuous at 00, as the result above says.

Step 2. The product

xsgn⁡x=∣x∣x\operatorname{sgn}x=\lvert x\rvert

∣x∣\lvert x\rvert is continuous at 00.

Answer: f+gf+g is discontinuous at 00, fgfg is continuous at 00

Example 9 (IITianForum). Let f(x)=[x]f(x)=[x] and g(x)=x2g(x)=x^2. Check the continuity of f∘gf\circ g and of g∘fg\circ f at x=0x=0.

▸ SHOW SOLUTION

Step 1. f∘g(x) = [x²]

For 0<∣x∣<10<\lvert x\rvert<1, 0<x2<10<x^2<1, so [x2]=0[x^2]=0 on both sides, and [0]=0[0]=0. Continuous at 00, even though [ ⋅ ][\,\cdot\,] breaks at g(0)=0g(0)=0: the inner value x2x^2 never goes below 00.

Step 2. g∘f(x) = [x]²

LHL =(−1)2=1=(-1)^2=1, RHL =02=0=0^2=0. Discontinuous at 00.

Answer: f∘gf\circ g is continuous at 00, g∘fg\circ f is not

Example 10 (JEE Main 2026, 6 April Shift 2). Let

f(x)=x3+8 (x<0)f(x)=x^3+8\ (x<0) f(x)=x2−4 (x≥0)f(x)=x^2-4\ (x\ge0) g(x)=(x−8)1/3 (x<0)g(x)=(x-8)^{1/3}\ (x<0) g(x)=(x+4)1/2 (x≥0)g(x)=(x+4)^{1/2}\ (x\ge0)

Then the number of points where g∘fg\circ f is discontinuous is ______.

▸ SHOW SOLUTION

Step 1. Where f changes sign

For x<0x<0, f(x)=x3+8f(x)=x^3+8 is negative when x<−2x<-2. For x≥0x\ge0, f(x)=x2−4f(x)=x^2-4 is negative when 0≤x<20\le x<2.

Step 2. Formula on each interval

Intervalf(x)f(x)g(f(x))g(f(x))
x<−2x<-2negative(x3)1/3=x(x^3)^{1/3}=x
−2≤x<0-2\le x<0≥0\ge0x3+12\sqrt{x^3+12}
0≤x<20\le x<2negative(x2−12)1/3(x^2-12)^{1/3}
x≥2x\ge2≥0\ge0x2=x\sqrt{x^2}=x

Step 3. Check the joins

At x=−2x=-2: left −2-2, right 4=2\sqrt4=2. Break.

At x=0x=0: left 12\sqrt{12}, right (−12)1/3(-12)^{1/3}. Break.

At x=2x=2: left (−8)1/3=−2(-8)^{1/3}=-2, right 22. Break.

Answer: 33

Piecewise functions: constants for continuity

When a function changes formula at aa, compute LHL from the left formula and RHL from the right formula. Each equality gives one equation in the unknowns.

Example 11 (JEE Main 2026, 23 January Shift 2). If

f(x)=a∣x∣+x2−2sin⁡∣x∣cos⁡∣x∣xf(x)=\frac{a\lvert x\rvert+x^2-2\sin\lvert x\rvert\cos\lvert x\rvert}{x}

for x≠0x\ne0, and f(0)=bf(0)=b, is continuous at x=0x=0, then a+ba+b is

Tap an option to check your answer
(1)11
(2)22
(3)00
(4)44
▸ SHOW SOLUTION

Step 1. Right side, |x| = x

2sin⁡xcos⁡x=sin⁡2x2\sin x\cos x=\sin2x:

RHL=lim⁡x→0+ax+x2−sin⁡2xx=a−2\text{RHL}=\lim_{x\to0^+}\frac{ax+x^2-\sin2x}{x}=a-2

Step 2. Left side, |x| = -x

2sin⁡∣x∣cos⁡∣x∣=sin⁡(−2x)=−sin⁡2x2\sin\lvert x\rvert\cos\lvert x\rvert=\sin(-2x)=-\sin2x:

LHL=lim⁡x→0−−ax+x2+sin⁡2xx\text{LHL}=\lim_{x\to0^-}\frac{-ax+x^2+\sin2x}{x}LHL=−a+2\text{LHL}=-a+2

Step 3. Equate

a−2=2−aa-2=2-a gives a=2a=2, and then b=f(0)=0b=f(0)=0.

Answer: (2) 22

Example 12 (JEE Main 2025, 23 January Shift 1). The function ff with

f(x)=2x{sin⁡(k1+1)x+sin⁡(k2−1)x}f(x)=\frac2x\left\{\sin(k_1+1)x+\sin(k_2-1)x\right\}

for x<0x<0,

f(x)=2xln⁡(2+k1x2+k2x)  (x>0)f(x)=\frac2x\ln\left(\frac{2+k_1x}{2+k_2x}\right)\ \ (x>0)

and f(0)=4f(0)=4 is continuous at x=0x=0. Then k12+k22k_1^2+k_2^2 is

Tap an option to check your answer
(1)88
(2)2020
(3)55
(4)1010
▸ SHOW SOLUTION

Step 1. LHL

sin⁡mxx→m\dfrac{\sin mx}{x}\to m:

LHL=2(k1+1+k2−1)=2(k1+k2)\text{LHL}=2\left(k_1+1+k_2-1\right)=2(k_1+k_2)

Step 2. RHL

ln⁡(2+kx)=ln⁡2+ln⁡(1+kx2)\ln(2+kx)=\ln2+\ln\left(1+\dfrac{kx}{2}\right) and ln⁡(1+t)t→1\dfrac{\ln(1+t)}{t}\to1:

RHL=2(k12−k22)=k1−k2\text{RHL}=2\left(\frac{k_1}{2}-\frac{k_2}{2}\right)=k_1-k_2

Step 3. Solve

2(k1+k2)=42(k_1+k_2)=4 and k1−k2=4k_1-k_2=4 give k1=3k_1=3, k2=−1k_2=-1.

k12+k22=9+1=10k_1^2+k_2^2=9+1=10

Answer: (4) 1010

Example 13 (IITianForum). A function f:R→Rf:\mathbb{R}\to\mathbb{R} is continuous and

f(x)=sin⁡(p+1)x+2sin⁡xx  (x<0)f(x)=\frac{\sin(p+1)x+2\sin x}{x}\ \ (x<0) f(0)=qf(0)=q f(x)=x+x2−xxx  (x>0)f(x)=\frac{\sqrt{x+x^2}-\sqrt x}{x\sqrt x}\ \ (x>0)

Find p+qp+q.

▸ SHOW SOLUTION

Step 1. RHL

Take x\sqrt x common from the numerator:

x(1+x−1)xx=1+x−1x\frac{\sqrt x\left(\sqrt{1+x}-1\right)}{x\sqrt x}=\frac{\sqrt{1+x}-1}{x}=11+x+1=\frac{1}{\sqrt{1+x}+1}

As x→0+x\to0^+ this tends to 12\dfrac12. So q=12q=\dfrac12.

Step 2. LHL

LHL=(p+1)+2=p+3\text{LHL}=(p+1)+2=p+3

Step 3. Equate

p+3=12p+3=\dfrac12, so p=−52p=-\dfrac52.

p+q=−52+12=−2p+q=-\frac52+\frac12=-2

Answer: −2-2

Example 14 (JEE Main 2026, 24 January Shift 2). Let [t][t] be the greatest integer ≤t\le t. Let f(x)=b2sin⁡(π2 u)f(x)=b^2\sin\left(\dfrac\pi2\,u\right) for x<0x<0, where

u=[π2(cos⁡x+sin⁡x)cos⁡x]u=\left[\frac\pi2(\cos x+\sin x)\cos x\right]

and let

f(x)=sin⁡x−12sin⁡2xx3  (x>0)f(x)=\frac{\sin x-\frac12\sin2x}{x^3}\ \ (x>0)

with f(0)=af(0)=a. If ff is continuous at x=0x=0, then a2+b2a^2+b^2 is

Tap an option to check your answer
(1)58\dfrac58
(2)916\dfrac9{16}
(3)34\dfrac34
(4)12\dfrac12
▸ SHOW SOLUTION

Step 1. RHL

sin⁡x−sin⁡xcos⁡x=sin⁡x(1−cos⁡x)\sin x-\sin x\cos x=\sin x(1-\cos x):

sin⁡x(1−cos⁡x)x3→1⋅12=12\frac{\sin x(1-\cos x)}{x^3}\to1\cdot\frac12=\frac12

So a=12a=\dfrac12.

Step 2. The bracket for x slightly less than 0

(cos⁡x+sin⁡x)cos⁡x≈1+x<1(\cos x+\sin x)\cos x\approx1+x<1, so

π2(cos⁡x+sin⁡x)cos⁡x→(π2)−≈1.57\frac\pi2(\cos x+\sin x)\cos x\to\left(\frac\pi2\right)^-\approx1.57

Its greatest integer is 11, and the left formula tends to b2sin⁡π2=b2b^2\sin\dfrac\pi2=b^2.

Step 3. Equate

b2=12b^2=\dfrac12.

a2+b2=14+12=34a^2+b^2=\frac14+\frac12=\frac34

Answer: (3) 34\dfrac34

Example 15 (JEE Main 2026, 8 April Shift 2). Let

f(x)=13 (x≤π2)f(x)=\frac13\ \left(x\le\frac\pi2\right) f(x)=b(1−sin⁡x)(π−2x)2 (x>π2)f(x)=\frac{b(1-\sin x)}{(\pi-2x)^2}\ \left(x>\frac\pi2\right)

If ff is continuous at x=π2x=\dfrac\pi2, then the value of

∫03b−6∣x2+2x−3∣ dx\int_0^{3b-6}\left\lvert x^2+2x-3\right\rvert\,dx

is

Tap an option to check your answer
(1)55
(2)22
(3)33
(4)44
▸ SHOW SOLUTION

Step 1. RHL

Put x=π2+hx=\dfrac\pi2+h. Then 1−sin⁡x=1−cos⁡h1-\sin x=1-\cos h and π−2x=−2h\pi-2x=-2h:

1−cos⁡h4h2→18\frac{1-\cos h}{4h^2}\to\frac18

So RHL =b8=\dfrac b8.

Step 2. b

b8=13\dfrac b8=\dfrac13 gives b=83b=\dfrac83 and 3b−6=23b-6=2.

Step 3. The integral

x2+2x−3=(x+3)(x−1)x^2+2x-3=(x+3)(x-1) is negative on (0,1)(0,1) and positive on (1,2)(1,2):

∫01(3−2x−x2) dx=53\int_0^1(3-2x-x^2)\,dx=\frac53∫12(x2+2x−3) dx=73\int_1^2(x^2+2x-3)\,dx=\frac7353+73=4\frac53+\frac73=4

Answer: (4) 44

Greatest integer, fractional part and sgn

[x][x] and {x}=x−[x]\{x\}=x-[x] break at every integer, and sgn⁡x\operatorname{sgn}x breaks at 00. At an integer nn,

lim⁡x→n−[x]=n−1,lim⁡x→n+[x]=n=[n]\lim_{x\to n^-}[x]=n-1,\qquad\lim_{x\to n^+}[x]=n=[n] Two step graphs side by side: on the left y equals the greatest integer of x, a staircase of unit steps, each step starting with a filled dot and ending with a hollow dot; on the right y equals the greatest integer of x squared on minus 2 to 2, symmetric about the y axis, with steps changing at plus or minus 1, root 2 and root 3

For [g(x)][g(x)] with gg continuous, use this rule.

  1. A break is possible only where g(x)g(x) is an integer.
  2. If gg crosses the integer there, [g][g] breaks.
  3. If gg only touches the integer from above (a local minimum equal to the integer), [g][g] does not break. If it touches from below (a local maximum equal to the integer), [g][g] breaks, since the value at the point is one more than the values beside it.
  4. If [g(x)][g(x)] is multiplied by a continuous factor that is 00 at the point, the product can still be continuous there. Check the one-sided limits.

Example 16 (JEE Main 2026, 2 April Shift 2). The number of points in [2,4][2,4] at which f(x)=[x2−x−12]f(x)=\left[x^2-x-\dfrac12\right] is discontinuous is ______.

▸ SHOW SOLUTION

Step 1. Range of the inside

g(x)=x2−x−12g(x)=x^2-x-\dfrac12 increases on [2,4][2,4] (its vertex is at x=12x=\dfrac12), with

g(2)=1.5,g(4)=11.5g(2)=1.5,\qquad g(4)=11.5

Step 2. Integers crossed

gg crosses each of 2,3,…,112,3,\ldots,11 exactly once inside (2,4)(2,4). The end values 1.51.5 and 11.511.5 are not integers, so the end points are fine.

Answer: 1010

Example 17 (JEE Main 2025, 7 April Shift 1). The number of points of discontinuity of

f(x)=[x22]−[x],x∈[0,4]f(x)=\left[\frac{x^2}{2}\right]-\left[\sqrt x\right],\qquad x\in[0,4]

is ______.

▸ SHOW SOLUTION

Step 1. Where each bracket changes

[x22]\left[\dfrac{x^2}{2}\right] changes where x2=2kx^2=2k:

x=2, 2, 6, 22x=\sqrt2,\ 2,\ \sqrt6,\ 2\sqrt2x=10, 23, 14, 4x=\sqrt{10},\ 2\sqrt3,\ \sqrt{14},\ 4

[x][\sqrt x] changes where x\sqrt x is an integer: x=1x=1 and x=4x=4.

Step 2. The common point x = 4

Both brackets rise by 11 at x=4x=4, so the difference does not change:

f(4−)=7−1=6f(4^-)=7-1=6f(4)=8−2=6f(4)=8-2=6

ff is continuous at 44.

Step 3. Count

The seven points 2, 2, 6, 22, 10, 23, 14\sqrt2,\,2,\,\sqrt6,\,2\sqrt2,\,\sqrt{10},\,2\sqrt3,\,\sqrt{14}, and x=1x=1. At x=0x=0, both brackets are 00 just to the right, so ff is continuous there.

Answer: 88

Example 18 (JEE Main 2026, 22 January Shift 2). Let f(x)=min⁡{2 x, x2}f(x)=\min\{\sqrt2\,x,\ x^2\} and

g(x)=∣x∣ [x2]g(x)=\lvert x\rvert\,[x^2] S={x∈(−2,2): g breaks at x}S=\{x\in(-2,2):\ g\text{ breaks at }x\}

Then the sum of f(x)f(x) over x∈Sx\in S equals

Tap an option to check your answer
(1)2−22-\sqrt2
(2)26−322\sqrt6-3\sqrt2
(3)1−21-\sqrt2
(4)6−22\sqrt6-2\sqrt2
▸ SHOW SOLUTION

Step 1. Breaks of [x²]

On (−2,2)(-2,2), x2∈[0,4)x^2\in[0,4), and it crosses 1,2,31,2,3 at

x=±1, ±2, ±3x=\pm1,\ \pm\sqrt2,\ \pm\sqrt3

At x=0x=0, x2x^2 only touches 00 from above, so no break.

Step 2. The factor |x|

∣x∣≠0\lvert x\rvert\ne0 at all six points, so each break of [x2][x^2] is a break of gg. SS has six points.

Step 3. Values of f

xx2x\sqrt2xx2x^2f(x)f(x)
112\sqrt21111
−1-1−2-\sqrt211−2-\sqrt2
2\sqrt2222222
−2-\sqrt2−2-222−2-2
3\sqrt36\sqrt6336\sqrt6
−3-\sqrt3−6-\sqrt633−6-\sqrt6
1−2+2−2+6−6=1−21-\sqrt2+2-2+\sqrt6-\sqrt6=1-\sqrt2

Answer: (3) 1−21-\sqrt2

Example 19 (IITianForum). Find the number of points in (−2,2)(-2,2) at which f(x)=[x]3−[x3]f(x)=[x]^3-[x^3] is discontinuous.

▸ SHOW SOLUTION

Step 1. At an integer n

f(n)=n3−n3=0f(n)=n^3-n^3=0. Just right of nn: [x]=n[x]=n and [x3]=n3[x^3]=n^3, so the RHL is 00. Just left of nn: [x]=n−1[x]=n-1 and [x3]=n3−1[x^3]=n^3-1, so

LHL=(n−1)3−(n3−1)=3n(1−n)\text{LHL}=(n-1)^3-(n^3-1)=3n(1-n)

This is 00 only for n=0,1n=0,1. In (−2,2)(-2,2) the integers are −1,0,1-1,0,1, so only x=−1x=-1 is a break.

Step 2. At a non-integer with x³ an integer

Here [x][x] does not change but [x3][x^3] jumps by 11, so ff breaks. On (−2,2)(-2,2), x3∈(−8,8)x^3\in(-8,8), which contains the 1515 integers −7,…,7-7,\ldots,7. Leave out −1,0,1-1,0,1, which come from integer xx:

15−3=1215-3=12

Step 3. Total

12+1=1312+1=13

Answer: 1313

Example 20 (JEE Advanced 2026, Paper 2). Consider f,g:(−3,3)→Rf,g:(-3,3)\to\mathbb{R},

f(x)=[x3]ln⁡(1+sin⁡2(π(x−[x])))f(x)=[x^3]\ln\left(1+\sin^2(\pi(x-[x]))\right) g(x)=x3sin⁡2(πln⁡(1+x−[x]))g(x)=x^3\sin^2\left(\pi\ln(1+x-[x])\right)

Let AA and BB be the sets of points of (−3,3)(-3,3) where ff and gg are discontinuous. Then ∣A∣+2∣B∣−∣A∩B∣\lvert A\rvert+2\lvert B\rvert-\lvert A\cap B\rvert is ______.

▸ SHOW SOLUTION

Step 1. The factor in f

L(x)=ln⁡(1+sin⁡2(π{x}))L(x)=\ln\left(1+\sin^2(\pi\{x\})\right) is continuous everywhere: at an integer, {x}→1−\{x\}\to1^- from the left and 0+0^+ from the right, and sin⁡π=sin⁡0=0\sin\pi=\sin0=0. Also L(x)=0L(x)=0 only at integers.

Step 2. Breaks of [x³]

x3∈(−27,27)x^3\in(-27,27) crosses the integers −26,…,26-26,\ldots,26: 5353 points x=n1/3x=n^{1/3}.

Step 3. Which of these are breaks of f

If x=n1/3x=n^{1/3} is itself an integer, L=0L=0 there and the product is 00 on both sides: no break. The cubes in (−27,27)(-27,27) are −8,−1,0,1,8-8,-1,0,1,8, giving 55 such points. At the other 4848, L≠0L\ne0, so ff breaks.

∣A∣=48\lvert A\rvert=48

Step 4. g

M(x)=sin⁡2(πln⁡(1+{x}))M(x)=\sin^2\left(\pi\ln(1+\{x\})\right) tends to sin⁡2(πln⁡2)≠0\sin^2(\pi\ln2)\ne0 from the left of an integer nn and to 00 from the right, with M(n)=0M(n)=0. So gg breaks at nn exactly when n3≠0n^3\ne0: n=±1,±2n=\pm1,\pm2.

∣B∣=4\lvert B\rvert=4

Step 5. Intersection

BB contains only integers, where ff is continuous, so A∩BA\cap B is empty.

48+8−0=5648+8-0=56

Answer: 5656

Continuity on an interval and the intermediate value theorem

ff is continuous on an open interval (a,b)(a,b) when it is continuous at every point of it. It is continuous on [a,b][a,b] when, in addition, it is right continuous at aa and left continuous at bb:

lim⁡x→a+f(x)=f(a),lim⁡x→b−f(x)=f(b)\lim_{x\to a^+}f(x)=f(a),\qquad\lim_{x\to b^-}f(x)=f(b)

Intermediate value theorem (IVT). If ff is continuous on [a,b][a,b] and kk is any number between f(a)f(a) and f(b)f(b), then f(c)=kf(c)=k for at least one cc in (a,b)(a,b).

A continuous curve from a filled dot at height f of a over x equals a, rising and falling, to a filled dot at height f of b over x equals b; a dashed horizontal line at height k meets the curve at three points, the first of which is marked c on the x axis

The most used case: if f(a)f(a) and f(b)f(b) have opposite signs, f(x)=0f(x)=0 has a root in (a,b)(a,b). The theorem promises at least one point; the picture shows that there may be more.

Continuity is essential

f(x)=1xf(x)=\dfrac1x has f(−1)<0<f(1)f(-1)<0<f(1) but no root in (−1,1)(-1,1). The theorem does not apply because ff is not continuous at 00.

Example 21 (IITianForum). Show that x3−3x+1=0x^3-3x+1=0 has three real roots in (−2,2)(-2,2), and locate each between consecutive integers.

▸ SHOW SOLUTION

Step 1. Values at integers

Let p(x)=x3−3x+1p(x)=x^3-3x+1, a polynomial, so continuous everywhere.

xx−2-2−1-1001122
p(x)p(x)−1-13311−1-133

Step 2. Sign changes

The sign changes on (−2,−1)(-2,-1), (0,1)(0,1) and (1,2)(1,2). By the IVT there is a root in each.

Step 3. No more roots

A cubic has at most three real roots.

Answer: one root in each of (−2,−1)(-2,-1), (0,1)(0,1), (1,2)(1,2)

Example 22 (IITianForum). ff is continuous on [0,1][0,1] and f(0)=f(1)f(0)=f(1). Prove that f(c)=f(c+12)f(c)=f\left(c+\dfrac12\right) for some c∈[0,12]c\in\left[0,\dfrac12\right].

▸ SHOW SOLUTION

Step 1. A helper function

h(x)=f(x+12)−f(x)h(x)=f\left(x+\frac12\right)-f(x)0≤x≤120\le x\le\frac12

hh is continuous on [0,12]\left[0,\dfrac12\right].

Step 2. Add the end values

h(0)=f(12)−f(0)h(0)=f\left(\frac12\right)-f(0)h(12)=f(1)−f(12)h\left(\frac12\right)=f(1)-f\left(\frac12\right)h(0)+h(12)=f(1)−f(0)=0h(0)+h\left(\frac12\right)=f(1)-f(0)=0

Step 3. IVT

Either one end value is 00, or h(0)h(0) and h(12)h\left(\dfrac12\right) have opposite signs and hh has a zero between them. In both cases h(c)=0h(c)=0 for some cc, which is the required equality.

Answer: proved

Differentiability at a point

The derivative of ff at aa is

f′(a)=lim⁡h→0f(a+h)−f(a)hf'(a)=\lim_{h\to0}\frac{f(a+h)-f(a)}{h}

when this limit exists and is finite. Taking h→0−h\to0^- and h→0+h\to0^+ separately gives the left hand derivative and the right hand derivative:

LHD=lim⁡h→0−f(a+h)−f(a)h\text{LHD}=\lim_{h\to0^-}\frac{f(a+h)-f(a)}{h} RHD=lim⁡h→0+f(a+h)−f(a)h\text{RHD}=\lim_{h\to0^+}\frac{f(a+h)-f(a)}{h}

ff is differentiable at aa exactly when LHD and RHD are finite and equal.

Geometric meaning

f(a+h)−f(a)h\dfrac{f(a+h)-f(a)}{h} is the slope of the chord PQPQ. As h→0h\to0, QQ slides along the curve to PP, and the chord turns into the tangent at PP. So f′(a)f'(a) is the slope of the tangent at (a,f(a))(a,f(a)).

A rising curve with a fixed point P over x equals a and three chords from P through points further along the curve, the chords drawn lighter as they get farther from P; one of the points is labelled Q over x equals a plus h, and a dark line through P touches the curve as the tangent

The derivative fails to exist in three typical ways.

Shape at aaLHD and RHDExample at 00
Cornerfinite, unequal∣x∣\lvert x\rvert: −1-1 and 11
Cusp−∞-\infty and +∞+\inftyx2/3x^{2/3}
Vertical tangentboth +∞+\infty (or both −∞-\infty)x1/3x^{1/3}
Three graphs side by side, each through the origin: y equals mod x forming a V with a sharp corner; y equals x to the power 2 by 3 forming a pointed tip at the origin with both arms leaving vertically; y equals x to the power 1 by 3 passing through the origin with a dashed vertical tangent along the y axis

Example 23 (IITianForum). Using the definition, test differentiability of (i) ∣x−3∣\lvert x-3\rvert at x=3x=3, (ii) x2/3x^{2/3} at x=0x=0, (iii) x1/3x^{1/3} at x=0x=0.

▸ SHOW SOLUTION

Step 1. |x - 3| at 3

∣h∣h={−1,h<01,h>0\frac{\lvert h\rvert}{h}=\begin{cases}-1,&h<0\\1,&h>0\end{cases}

LHD =−1=-1, RHD =1=1: a corner, not differentiable.

Step 2. x^(2/3) at 0

h2/3h=1h1/3\frac{h^{2/3}}{h}=\frac{1}{h^{1/3}}

This tends to −∞-\infty as h→0−h\to0^- and to +∞+\infty as h→0+h\to0^+: a cusp, not differentiable.

Step 3. x^(1/3) at 0

h1/3h=1h2/3→+∞\frac{h^{1/3}}{h}=\frac{1}{h^{2/3}}\to+\infty

from both sides. The tangent is the vertical line x=0x=0, but the derivative is not finite, so ff is not differentiable.

Answer: none of the three is differentiable at the given point

Differentiable implies continuous

If f′(a)f'(a) exists, then

f(a+h)−f(a)=f(a+h)−f(a)h⋅hf(a+h)-f(a)=\frac{f(a+h)-f(a)}{h}\cdot h →f′(a)⋅0=0\to f'(a)\cdot0=0

so f(a+h)→f(a)f(a+h)\to f(a) and ff is continuous at aa. The converse is false: ∣x∣\lvert x\rvert is continuous at 00 but not differentiable. Two consequences are used in almost every counting question:

  1. At a point of discontinuity, ff is not differentiable.
  2. To prove continuity, it is enough to prove differentiability.

Example 24 (JEE Advanced 2026, Paper 1). Let f:R→Rf:\mathbb{R}\to\mathbb{R} be an arbitrary function and g(x)=xf(x)g(x)=xf(x). Which statements are TRUE?

(1) gg is always continuous at x=0x=0

(2) If ff is continuous at x=0x=0, then gg is differentiable at x=0x=0

(3) If gg is differentiable at x=0x=0, then ff is continuous at x=0x=0

(4) If gg is differentiable at x=0x=0, then the limit of f(x)f(x) as x→0x\to0 exists

▸ SHOW SOLUTION

Step 1. The difference quotient of g at 0

g(0)=0g(0)=0, so for h≠0h\ne0,

g(h)−g(0)h=hf(h)h=f(h)\frac{g(h)-g(0)}{h}=\frac{hf(h)}{h}=f(h)

So g′(0)g'(0) exists exactly when the limit of f(h)f(h) as h→0h\to0 exists.

Step 2. Statements (2) and (4)

If ff is continuous at 00, the limit of f(h)f(h) is f(0)f(0), so g′(0)=f(0)g'(0)=f(0) exists: (2) is true. If g′(0)g'(0) exists, Step 1 says the limit of ff exists: (4) is true.

Step 3. Statement (3)

Take f(x)=1f(x)=1 for x≠0x\ne0 and f(0)=5f(0)=5. Then g(x)=xg(x)=x everywhere, differentiable, but ff is not continuous at 00. False.

Step 4. Statement (1)

Take f(x)=1xf(x)=\dfrac1x for x≠0x\ne0 and f(0)=0f(0)=0. Then g=1g=1 for x≠0x\ne0 and g(0)=0g(0)=0, not continuous. False.

Answer: (2) and (4)

Example 25 (IITianForum). With f(0)=0f(0)=0 and g(0)=0g(0)=0, test continuity and differentiability at 00 of

f(x)=xsin⁡1xf(x)=x\sin\frac1x g(x)=x2sin⁡1xg(x)=x^2\sin\frac1x (x≠0)(x\ne0)
▸ SHOW SOLUTION

Step 1. Continuity

∣sin⁡1x∣≤1\left\lvert\sin\dfrac1x\right\rvert\le1, so ∣f(x)∣≤∣x∣\lvert f(x)\rvert\le\lvert x\rvert and ∣g(x)∣≤x2\lvert g(x)\rvert\le x^2. Both tend to 00, so both functions are continuous at 00.

Step 2. Derivative of f at 0

f(h)−f(0)h=sin⁡1h\frac{f(h)-f(0)}{h}=\sin\frac1h

This keeps swinging between −1-1 and 11 and has no limit. ff is not differentiable at 00.

Step 3. Derivative of g at 0

g(h)−g(0)h=hsin⁡1h→0\frac{g(h)-g(0)}{h}=h\sin\frac1h\to0

gg is differentiable at 00 with g′(0)=0g'(0)=0.

Answer: both are continuous at 00; only x2sin⁡1xx^2\sin\dfrac1x is differentiable there

Two graphs side by side: on the left y equals x sin of 1 over x, oscillating between the dashed lines y equals x and y equals minus x, the waves crowding at the origin; on the right y equals x squared sin of 1 over x, oscillating between the dashed parabolas y equals x squared and y equals minus x squared and flattening against the x axis at the origin

The picture explains the result. The chord from the origin to a point of xsin⁡1xx\sin\dfrac1x keeps swinging between slopes 11 and −1-1. For x2sin⁡1xx^2\sin\dfrac1x the curve is pressed flat between two parabolas that both touch the xx axis, so the chord slope tends to 00. In general, xnsin⁡1xx^n\sin\dfrac1x is continuous at 00 for n≥1n\ge1 and differentiable at 00 for n≥2n\ge2.

Example 26 (JEE Main 2026, 8 April Shift 2). For f(x)=esin⁡∣x∣−∣x∣f(x)=e^{\sin\lvert x\rvert}-\lvert x\rvert, consider

Statement I: ff is differentiable for all x∈Rx\in\mathbb{R}.

Statement II: ff is increasing in (−π,−π2)\left(-\pi,-\dfrac\pi2\right).

Tap an option to check your answer
(1)Both true
(2)Both false
(3)I true, II false
(4)I false, II true
▸ SHOW SOLUTION

Step 1. Only x = 0 needs checking

Away from 00, ∣x∣\lvert x\rvert is smooth and so is ff.

Step 2. One-sided derivatives at 0

For x>0x>0: f=esin⁡x−xf=e^{\sin x}-x, f′=cos⁡x esin⁡x−1→1−1=0f'=\cos x\,e^{\sin x}-1\to1-1=0.

For x<0x<0: f=e−sin⁡x+xf=e^{-\sin x}+x, f′=−cos⁡x e−sin⁡x+1→−1+1=0f'=-\cos x\,e^{-\sin x}+1\to-1+1=0.

LHD == RHD =0=0. Statement I is true.

Step 3. Statement II

On (−π,−π2)\left(-\pi,-\dfrac\pi2\right), cos⁡x<0\cos x<0, so

f′(x)=1−cos⁡x e−sin⁡x>1>0f'(x)=1-\cos x\,e^{-\sin x}>1>0

ff is increasing. Statement II is true.

Answer: (1)

Example 27 (JEE Main 2026, 24 January Shift 2). For f:(0,∞)→Rf:(0,\infty)\to\mathbb{R}, f(x)=∣ln⁡x∣−∣x−1∣f(x)=\lvert\ln x\rvert-\lvert x-1\rvert, consider

(I) ff is differentiable at all x>0x>0; (II) ff is increasing in (0,1)(0,1); (III) ff is decreasing in (1,∞)(1,\infty).

Tap an option to check your answer
(1)All three true
(2)Only (I)
(3)Only (II) and (III)
(4)Only (I) and (III)
▸ SHOW SOLUTION

Step 1. Both modulus signs change at x = 1

f(x)=−ln⁡x−1+x  (0<x<1)f(x)=-\ln x-1+x\ \ (0<x<1)f(x)=ln⁡x−x+1  (x≥1)f(x)=\ln x-x+1\ \ (x\ge1)

Step 2. Derivatives

On (0,1)(0,1): f′=1−1x<0f'=1-\dfrac1x<0. On (1,∞)(1,\infty): f′=1x−1<0f'=\dfrac1x-1<0. At x=1x=1 both formulas give slope 00, and both give f(1)=0f(1)=0.

Step 3. Read off

(I) true: LHD == RHD =0=0. (II) false: ff decreases on (0,1)(0,1). (III) true.

Answer: (4)

Piecewise functions: constants for differentiability

At a point aa where the formula changes, differentiability needs two equations:

  1. continuity: left formula at aa == right formula at aa,
  2. equal slopes: LHD == RHD.

When each formula is differentiable near aa and ff is continuous at aa, the LHD is the derivative of the left formula at aa and the RHD that of the right formula. Never skip equation 1: a step function has equal slopes on both sides but is not differentiable.

Example 28 (JEE Main 2026, 24 January Shift 1). Let

f(x)=2α(x2−2)+2βx  (x<1)f(x)=2\alpha(x^2-2)+2\beta x\ \ (x<1) f(x)=(α+3)x+(α−β)  (x≥1)f(x)=(\alpha+3)x+(\alpha-\beta)\ \ (x\ge1)

be differentiable for all xx. Then 34(α+β)34(\alpha+\beta) is

Tap an option to check your answer
(1)8484
(2)4848
(3)3636
(4)2424
▸ SHOW SOLUTION

Step 1. Continuity at 1

−2α+2β=2α+3−β⇒3β=4α+3-2\alpha+2\beta=2\alpha+3-\beta\Rightarrow3\beta=4\alpha+3

Step 2. Slopes at 1

Left: 4αx+2β4\alpha x+2\beta at 11. Right: α+3\alpha+3.

4α+2β=α+3⇒3α+2β=34\alpha+2\beta=\alpha+3\Rightarrow3\alpha+2\beta=3

Step 3. Solve

α=317,β=2117\alpha=\frac{3}{17},\qquad\beta=\frac{21}{17}34⋅2417=4834\cdot\frac{24}{17}=48

Answer: (2) 4848

Example 29 (JEE Main 2025, 22 January Shift 1). The function

f(x)=−3ax2−2  (x<1)f(x)=-3ax^2-2\ \ (x<1) f(x)=a2+bx  (x≥1)f(x)=a^2+bx\ \ (x\ge1)

is differentiable for all xx, where a>1a>1. If the area of the region enclosed by y=f(x)y=f(x) and the line y=−20y=-20 is α+β3\alpha+\beta\sqrt3 with α,β\alpha,\beta integers, then α+β\alpha+\beta is ______.

▸ SHOW SOLUTION

Step 1. Two equations

Continuity: −3a−2=a2+b-3a-2=a^2+b. Slopes: −6a=b-6a=b.

a2−3a+2=0⇒a=2  (a>1)a^2-3a+2=0\Rightarrow a=2\ \ (a>1)b=−12b=-12

Step 2. The function

f(x)=−6x2−2  (x<1)f(x)=-6x^2-2\ \ (x<1)f(x)=4−12x  (x≥1)f(x)=4-12x\ \ (x\ge1)

It meets y=−20y=-20 at x=−3x=-\sqrt3 (left piece) and x=2x=2 (right piece).

Step 3. Area

∫−31(18−6x2)dx=16+123\int_{-\sqrt3}^{1}\left(18-6x^2\right)dx=16+12\sqrt3∫12(24−12x) dx=6\int_1^2(24-12x)\,dx=6

Area =22+123=22+12\sqrt3.

Answer: 22+12=3422+12=34

Example 30 (IITianForum). Let

f(x)=∫0x(2+∣t−1∣)dt  (x>2)f(x)=\int_0^x\left(2+\lvert t-1\rvert\right)dt\ \ (x>2)

and f(x)=ax2+bxf(x)=ax^2+bx for x≤2x\le2. If ff is differentiable at x=2x=2, find 4(a+b)4(a+b).

▸ SHOW SOLUTION

Step 1. The integral for x > 2

∫0x∣t−1∣ dt=12+(x−1)22\int_0^x\lvert t-1\rvert\,dt=\frac12+\frac{(x-1)^2}{2}f(x)=2x+12+(x−1)22f(x)=2x+\frac12+\frac{(x-1)^2}{2}

Step 2. Value and slope from the right at 2

f(2+)=4+12+12=5f(2^+)=4+\dfrac12+\dfrac12=5. By the fundamental theorem, the slope is 2+∣x−1∣2+\lvert x-1\rvert, which is 33 at x=2x=2.

Step 3. Two equations

4a+2b=5,4a+b=34a+2b=5,\qquad4a+b=3b=2,a=14b=2,\qquad a=\frac14

Answer: 4(14+2)=94\left(\frac14+2\right)=9

Modulus, maximum and minimum: the graph method

The sharp corner rule for the modulus

Let ff be differentiable. ∣f∣\lvert f\rvert equals ff or −f-f near every point where f≠0f\ne0, so trouble is possible only at a zero aa of ff. There:

LHD of ∣f∣=−∣f′(a)∣\text{LHD of }\lvert f\rvert=-\lvert f'(a)\rvert RHD=∣f′(a)∣\text{RHD}=\lvert f'(a)\rvert
  1. If ff crosses the axis at aa with f′(a)≠0f'(a)\ne0, ∣f∣\lvert f\rvert has a sharp corner: not differentiable.
  2. If f′(a)=0f'(a)=0 (the graph touches the axis, or is flat as it crosses), both one-sided derivatives are 00 and ∣f∣\lvert f\rvert is differentiable.
The dashed curve y equals f of x crosses the x axis at 0 and touches it at 2; the solid curve y equals mod f of x is its reflection above the axis, with a sharp corner at 0 and a smooth touch at 2

For f(∣x∣)f(\lvert x\rvert): the graph for x≥0x\ge0 is mirrored in the yy axis. If ff is differentiable, f(∣x∣)f(\lvert x\rvert) can fail only at x=0x=0, and it is differentiable there exactly when f′(0)=0f'(0)=0.

Maximum and minimum of two functions

max⁡{f,g}\max\{f,g\} and min⁡{f,g}\min\{f,g\} follow ff or gg, and can switch only where f=gf=g. At such a point:

  1. if f′≠g′f'\ne g' there, the graph switches from one curve to the other and gets a corner;
  2. if the curves only touch with equal slopes, there is no corner.

Draw both curves, darken the upper (for max) or lower (for min) one, and count corners.

The dashed line y equals 6x and the dashed parabola y equals 2 plus 3x squared meet at x equals 1 minus 1 over root 3 and 1 plus 1 over root 3; the darker graph of their maximum follows the parabola, then the line between the two meeting points, then the parabola again, with corners at both meeting points
Counting non-differentiable points

List the candidates first: zeros of what is inside a modulus, points where two curves of a max or min meet, points where the formula changes, and every point of discontinuity. Then test only these.

Example 31 (JEE Main 2026, 2 April Shift 1). The number of critical points of

f(x)=∣sin⁡xx∣ (x≠0),f(0)=1f(x)=\left\lvert\frac{\sin x}{x}\right\rvert\ (x\ne0),\qquad f(0)=1

in (−2π,2π)(-2\pi,2\pi) is

Tap an option to check your answer
(1)11
(2)33
(3)55
(4)77
▸ SHOW SOLUTION

Step 1. Corners

sin⁡xx\dfrac{\sin x}{x} is zero at x=±πx=\pm\pi in this interval, and crosses the axis there (slope ∓1π≠0\mp\dfrac1\pi\ne0). So ∣f∣\lvert f\rvert has corners at ±π\pm\pi: two critical points where f′f' does not exist.

Step 2. f'(x) = 0

Away from ±π\pm\pi, f′=0f'=0 where the derivative of sin⁡xx\dfrac{\sin x}{x} is zero:

xcos⁡x−sin⁡xx2=0⇒tan⁡x=x  (x≠0)\frac{x\cos x-\sin x}{x^2}=0\Rightarrow\tan x=x\ \ (x\ne0)

On (0,2π)(0,2\pi), y=tan⁡xy=\tan x meets y=xy=x once, in (π,3π2)\left(\pi,\dfrac{3\pi}{2}\right), at x≈4.49x\approx4.49. By symmetry one more at x≈−4.49x\approx-4.49.

Step 3. x = 0

sin⁡xx\dfrac{\sin x}{x} is even and has its maximum 11 at 00, so f′(0)=0f'(0)=0.

Answer: (3) 55 critical points: 00, ±π\pm\pi, ±4.49\pm4.49

The curve y equals mod of sin x by x on minus 2 pi to 2 pi: a tall arch with top 1 at the origin, sharp corners touching the x axis at minus pi and pi, and two small arches whose tops lie near x equals minus 4.49 and 4.49; hollow dots at the excluded ends minus 2 pi and 2 pi

Example 32 (JEE Main 2026, 4 April Shift 2). Let

f(x)=ex−1 (x<0)f(x)=e^{x-1}\ (x<0) f(x)=x2−5x+6 (x≥0)f(x)=x^2-5x+6\ (x\ge0)

and g(x)=f(∣x∣)+∣f(x)∣g(x)=f(\lvert x\rvert)+\lvert f(x)\rvert. If gg is not continuous at α\alpha points and not differentiable at β\beta points, then α+β\alpha+\beta is ______.

▸ SHOW SOLUTION

Step 1. f(|x|)

∣x∣≥0\lvert x\rvert\ge0, so f(∣x∣)=x2−5∣x∣+6f(\lvert x\rvert)=x^2-5\lvert x\rvert+6 everywhere. Continuous, with a corner only at 00.

Step 2. |f(x)|

At 00: LHL =e−1=e^{-1}, f(0)=6f(0)=6. So ∣f∣\lvert f\rvert breaks at 00. For x>0x>0, ∣(x−2)(x−3)∣\lvert(x-2)(x-3)\rvert has corners at 22 and 33, where ff crosses with non-zero slope.

Step 3. Count

gg breaks only at x=0x=0: α=1\alpha=1. gg is not differentiable at 00 (a break), 22 and 33: β=3\beta=3.

Answer: 44

Example 33 (JEE Main 2026, 4 April Shift 1). The number of points in (−π,π)(-\pi,\pi) at which

f(x)=max⁡{6x, 2+3x2}f(x)=\max\{6x,\ 2+3x^2\} +∣x−1∣cos⁡∣x2−14∣+\lvert x-1\rvert\cos\left\lvert x^2-\frac14\right\rvert

is not differentiable is ______.

▸ SHOW SOLUTION

Step 1. The max

2+3x2=6x2+3x^2=6x when 3x2−6x+2=03x^2-6x+2=0:

x=1±13x=1\pm\frac{1}{\sqrt3}

Both lie in (−π,π)(-\pi,\pi). The slopes there are 66 and 6x≠66x\ne6, so both are corners (see the figure above).

Step 2. The modulus inside cos

cos⁡∣u∣=cos⁡u\cos\lvert u\rvert=\cos u for every uu, so the second term is ∣x−1∣cos⁡(x2−14)\lvert x-1\rvert\cos\left(x^2-\dfrac14\right).

Step 3. The factor |x - 1|

At x=1x=1, cos⁡34≠0\cos\dfrac34\ne0, so the product has a corner. At the zeros of the cosine, ∣x−1∣\lvert x-1\rvert is smooth, so no new corner.

Answer: 33

Example 34 (JEE Main 2025, 24 January Shift 2). Let mm and nn be the numbers of points where f(x)=[x]+∣x−2∣f(x)=[x]+\lvert x-2\rvert, −2<x<3-2<x<3, is not continuous and not differentiable. Then m+nm+n is

Tap an option to check your answer
(1)66
(2)99
(3)88
(4)77
▸ SHOW SOLUTION

Step 1. Breaks

[x][x] breaks at −1,0,1,2-1,0,1,2, and ∣x−2∣\lvert x-2\rvert is continuous. So m=4m=4.

Step 2. Non-differentiable points

Every break: −1,0,1,2-1,0,1,2. The corner of ∣x−2∣\lvert x-2\rvert is at x=2x=2, already counted. So n=4n=4.

Answer: (3) 88

Example 35 (JEE Main 2025, 28 January Shift 1). Let f(x)=3xf(x)=3x for x<0x<0, f(x)=5f(x)=5 for x>2x>2, and for 0≤x≤20\le x\le2,

f(x)=min⁡{1+x+[x], x+2[x]}f(x)=\min\{1+x+[x],\ x+2[x]\}

If ff is not continuous at α\alpha points and not differentiable at β\beta points, then α+β\alpha+\beta is ______.

▸ SHOW SOLUTION

Step 1. Simplify the middle piece

On [0,1)[0,1), [x]=0[x]=0: min⁡{1+x, x}=x\min\{1+x,\ x\}=x.

On [1,2)[1,2), [x]=1[x]=1: min⁡{2+x, x+2}=x+2\min\{2+x,\ x+2\}=x+2.

At x=2x=2: min⁡{5,6}=5\min\{5,6\}=5.

Step 2. Joins

At 00: 3x→03x\to0 and f(0)=0f(0)=0, continuous, but slopes 33 and 11 differ.

At 11: LHL =1=1, f(1)=3f(1)=3. Break.

At 22: LHL =4=4, f(2)=5f(2)=5. Break.

Step 3. Count

α=2\alpha=2 (at 1,21,2). β=3\beta=3 (at 0,1,20,1,2).

Answer: 55

Example 36 (JEE Main 2025, 4 April Shift 1). Let mm and nn be the numbers of points at which

f(x)=max⁡{x, x3, x5, …, x21}f(x)=\max\{x,\ x^3,\ x^5,\ \ldots,\ x^{21}\}

is not differentiable and not continuous, respectively. Then m+nm+n is ______.

▸ SHOW SOLUTION

Step 1. Which power is largest

For odd powers, compare by size of ∣x∣\lvert x\rvert and sign.

Intervallargest
x≤−1x\le-1xx
−1≤x≤0-1\le x\le0x21x^{21}
0≤x≤10\le x\le1xx
x≥1x\ge1x21x^{21}

Step 2. Joins

The pieces agree at −1,0,1-1,0,1, so ff is continuous: n=0n=0.

Slopes: at −1-1, 11 and 2121; at 00, 00 and 11; at 11, 11 and 2121. All three are corners: m=3m=3.

Answer: 33

The dashed line y equals x and the dashed curve y equals x to the 21 drawn together; the darker graph of their maximum follows the line for x up to minus 1, rises steeply along x to the 21 to lie almost flat on the x axis up to 0, follows the line from 0 to 1, then climbs steeply along x to the 21; corners at minus 1, 0 and 1

Example 37 (IITianForum). Find the number of points at which each function is not differentiable.

h1(x)=max⁡{∣x∣, x3}h_1(x)=\max\{\lvert x\rvert,\ x^3\} h2(x)=min⁡{∣x∣, x3} (x≤1)h_2(x)=\min\{\lvert x\rvert,\ x^3\}\ (x\le1) h2(x)=max⁡{∣x∣, x3} (x>1)h_2(x)=\max\{\lvert x\rvert,\ x^3\}\ (x>1)
▸ SHOW SOLUTION

Step 1. Compare |x| and x³

For x≤0x\le0: x3≤0≤∣x∣x^3\le0\le\lvert x\rvert. For 0≤x≤10\le x\le1: x3≤xx^3\le x. For x≥1x\ge1: x3≥xx^3\ge x.

Step 2. h₁

h1=∣x∣h_1=\lvert x\rvert for x≤1x\le1 and x3x^3 for x≥1x\ge1. Corners at 00 (slopes −1-1, 11) and at 11 (slopes 11, 33).

Step 3. h₂

For x≤1x\le1 the minimum is x3x^3; for x>1x>1 the maximum is x3x^3. So h2(x)=x3h_2(x)=x^3 for every xx, differentiable everywhere.

Answer: h1h_1: 22 points; h2h_2: none

Example 38 (IITianForum). Let f(x)=x2−4∣x∣f(x)=x^2-4\lvert x\rvert. For −4≤x<0-4\le x<0, let

g(x)=min⁡{f(t):−4≤t≤x}g(x)=\min\{f(t):-4\le t\le x\}

and for 0≤x≤60\le x\le6, let

g(x)=max⁡{f(t):0≤t≤x}g(x)=\max\{f(t):0\le t\le x\}

Find (number of points of discontinuity) ++ (number of points of non-differentiability) of gg in (−4,6)(-4,6).

▸ SHOW SOLUTION

Step 1. Left part

For t<0t<0, f(t)=(t+2)2−4f(t)=(t+2)^2-4: it falls from 00 to −4-4 on [−4,−2][-4,-2], then rises. So

g(x)=x2+4x (−4≤x≤−2)g(x)=x^2+4x\ (-4\le x\le-2)g(x)=−4 (−2≤x<0)g(x)=-4\ (-2\le x<0)

Step 2. Right part

For t≥0t\ge0, f(t)=t2−4t≤0f(t)=t^2-4t\le0 on [0,4][0,4] with f(0)=0f(0)=0, then ff grows. So

g(x)=0 (0≤x≤4)g(x)=0\ (0\le x\le4)g(x)=x2−4x (4≤x≤6)g(x)=x^2-4x\ (4\le x\le6)

Step 3. Test the joins

At −2-2: both pieces give −4-4, and slopes 2x+4=02x+4=0 and 00 agree. Smooth.

At 00: LHL =−4=-4, g(0)=0g(0)=0. A break, so also not differentiable.

At 44: both give 00; slopes 00 and 2x−4=42x-4=4 differ. A corner.

Answer: 1+2=31+2=3

The graph of g on minus 4 to 6 over the dashed curve y equals x squared minus 4 mod x: it follows the parabola down from minus 4 to its lowest point minus 4 at x equals minus 2, stays flat at minus 4 up to a hollow dot at x equals 0, restarts with a filled dot at the origin, stays on the x axis up to x equals 4, then rises along the parabola to x equals 6

Example 39 (IITianForum). Let

f(x)=lim⁡n→∞x2n−1x2n+1f(x)=\lim_{n\to\infty}\frac{x^{2n}-1}{x^{2n}+1} g(x)=lim⁡n→∞(1+∣x∣3n)1/ng(x)=\lim_{n\to\infty}\left(1+\lvert x\rvert^{3n}\right)^{1/n}

Find (number of points where ff is discontinuous) ++ (number of points where gg is not differentiable).

▸ SHOW SOLUTION

Step 1. f

x2n→0x^{2n}\to0 for ∣x∣<1\lvert x\rvert<1, →∞\to\infty for ∣x∣>1\lvert x\rvert>1, and equals 11 at ∣x∣=1\lvert x\rvert=1. So f=−1f=-1 for ∣x∣<1\lvert x\rvert<1, f=0f=0 at x=±1x=\pm1, f=1f=1 for ∣x∣>1\lvert x\rvert>1. Breaks at ±1\pm1: two points.

Step 2. g

The nn-th root of a sum of two nn-th powers tends to the larger base:

g(x)=max⁡{1, ∣x∣3}g(x)=\max\{1,\ \lvert x\rvert^3\}

Step 3. Corners of g

The two pieces meet at x=±1x=\pm1. At x=1x=1 the slopes are 00 and 33; at x=−1x=-1, −3-3 and 00. At x=0x=0, ∣x∣3\lvert x\rvert^3 is not in use. Two corners.

Answer: 2+2=42+2=4

The product rule for differentiability

The syllabus states this result directly, and JEE uses it in almost every paper.

Result. Let ff be differentiable at aa with f(a)=0f(a)=0, and let gg be continuous at aa (it need not be differentiable). Then fgfg is differentiable at aa and

(fg)′(a)=f′(a) g(a)(fg)'(a)=f'(a)\,g(a)

Why. Since f(a)g(a)=0f(a)g(a)=0,

f(a+h)g(a+h)h\frac{f(a+h)g(a+h)}{h} =f(a+h)−f(a)h⋅g(a+h)=\frac{f(a+h)-f(a)}{h}\cdot g(a+h) →f′(a) g(a)\to f'(a)\,g(a)

So a zero factor cancels a corner: (x−1)∣x−1∣(x-1)\lvert x-1\rvert and x∣x∣x\lvert x\rvert are differentiable at the corner. If instead f(a)≠0f(a)\ne0 and gg has a corner at aa, then fgfg has a corner too.

For twice differentiable, one zero is not enough. (x−a)∣x−a∣(x-a)\lvert x-a\rvert has derivative 2∣x−a∣2\lvert x-a\rvert, which itself has a corner. You need f(a)=f′(a)=0f(a)=f'(a)=0, as in (x−a)2∣x−a∣(x-a)^2\lvert x-a\rvert.

Common mistake

Do not count every zero of the expression inside a modulus. First check whether the factor outside the modulus is 00 at that point. If it is, the corner is gone.

Example 40 (JEE Advanced 2026, Paper 1). For f:(−π2,π2)→Rf:\left(-\dfrac\pi2,\dfrac\pi2\right)\to\mathbb{R},

f(x)=(∣x∣+∣x−1∣)sin⁡x+[xsin⁡x]f(x)=(\lvert x\rvert+\lvert x-1\rvert)\sin x+[x\sin x]

let α\alpha be the number of points where ff is not continuous and β\beta the number where it is not differentiable. Then α+β\alpha+\beta is ______.

▸ SHOW SOLUTION

Step 1. The modulus part

At x=0x=0: ∣x∣sin⁡x\lvert x\rvert\sin x has the zero factor sin⁡x\sin x, so it is differentiable at 00.

At x=1x=1: ∣x−1∣sin⁡x\lvert x-1\rvert\sin x with sin⁡1≠0\sin1\ne0. LHD =−sin⁡1=-\sin1, RHD =sin⁡1=\sin1. A corner.

Step 2. The bracket

g(x)=xsin⁡xg(x)=x\sin x is even, g(0)=0g(0)=0, and g′=sin⁡x+xcos⁡x>0g'=\sin x+x\cos x>0 on (0,π2)\left(0,\dfrac\pi2\right), so gg rises from 00 towards π2≈1.57\dfrac\pi2\approx1.57.

At x=0x=0, gg touches 00 from above: no break. gg crosses 11 at exactly two points ±x0\pm x_0, where x0sin⁡x0=1x_0\sin x_0=1. Two breaks.

Step 3. Count

α=2\alpha=2. β=2+1=3\beta=2+1=3 (the two breaks and the corner at 11).

Answer: 55

Example 41 (IITianForum). Find all points where

f(x)=(x2−1)∣x2−3x+2∣+cos⁡∣x∣f(x)=(x^2-1)\lvert x^2-3x+2\rvert+\cos\lvert x\rvert

is not differentiable.

▸ SHOW SOLUTION

Step 1. Candidates

cos⁡∣x∣=cos⁡x\cos\lvert x\rvert=\cos x is smooth. The modulus vanishes at the zeros of (x−1)(x−2)(x-1)(x-2): x=1x=1 and x=2x=2.

Step 2. At x = 1

The outside factor x2−1x^2-1 is 00 at x=1x=1. By the product rule the corner is cancelled: differentiable.

Step 3. At x = 2

The outside factor is 3≠03\ne0 and x2−3x+2x^2-3x+2 crosses 00 with slope 11. LHD and RHD of the product are −3-3 and 33, plus the same smooth part −sin⁡2-\sin2 on both sides. A corner.

Answer: only x=2x=2

Example 42 (IITianForum). Discuss continuity and differentiability of f(x)=[x]sin⁡πxf(x)=[x]\sin\pi x at every integer.

▸ SHOW SOLUTION

Step 1. Continuity at an integer n

Left of nn: f=(n−1)sin⁡πx→0f=(n-1)\sin\pi x\to0. Right of nn: f=nsin⁡πx→0f=n\sin\pi x\to0. And f(n)=0f(n)=0. The factor sin⁡πx\sin\pi x vanishes at nn, so the jump of [x][x] is cancelled. Continuous.

Step 2. Slopes at n

ddxsin⁡πx=πcos⁡πx\dfrac{d}{dx}\sin\pi x=\pi\cos\pi x, which is π(−1)n\pi(-1)^n at x=nx=n.

LHD=(n−1)π(−1)n\text{LHD}=(n-1)\pi(-1)^nRHD=nπ(−1)n\text{RHD}=n\pi(-1)^n

They differ by π\pi, so ff is not differentiable at any integer.

Answer: continuous at every integer, differentiable at none

The graph of y equals the greatest integer of x times sin pi x from minus 1 to 4: a hump on minus 1 to 0, flat on the x axis from 0 to 1, then arches of growing height alternating below and above the axis, with every integer point a corner on the x axis

The difference between Example 41 and Example 42: in Example 41 the zero factor was differentiable and the other factor continuous, so the product rule applied. In Example 42 the other factor [x][x] is not even continuous, so only continuity is rescued.

Functional equations

A functional equation such as f(x+y)=f(x)+f(y)f(x+y)=f(x)+f(y) fixes ff once we know it is differentiable. The method has three steps.

  1. Put x=y=0x=y=0 (or x=y=1x=y=1 for products) to find f(0)f(0) (or f(1)f(1)).
  2. Write f′(x)f'(x) by the definition and use the equation to replace f(x+h)f(x+h).
  3. Solve the resulting relation using the given value of f′(0)f'(0) or f(1)f(1).
Equation, ff differentiableSolution
f(x+y)=f(x)+f(y)f(x+y)=f(x)+f(y)f(x)=kxf(x)=kx
f(x+y)=f(x)f(y)f(x+y)=f(x)f(y), f≢0f\not\equiv0f(x)=ekxf(x)=e^{kx}
f(xy)=f(x)+f(y)f(xy)=f(x)+f(y), x,y>0x,y>0f(x)=kln⁡xf(x)=k\ln x
f(xy)=f(x)f(y)f(xy)=f(x)f(y), x>0x>0f(x)=xkf(x)=x^k

For the first row, for example:

f′(x)=lim⁡h→0f(x)+f(h)−f(x)hf'(x)=\lim_{h\to0}\frac{f(x)+f(h)-f(x)}{h} =lim⁡h→0f(h)−f(0)h=f′(0)=\lim_{h\to0}\frac{f(h)-f(0)}{h}=f'(0)

so f′f' is the constant k=f′(0)k=f'(0) and f(x)=kxf(x)=kx, since f(0)=0f(0)=0.

Example 43 (JEE Main 2026, 5 April Shift 1). Let f:R→Rf:\mathbb{R}\to\mathbb{R} be differentiable with

f(x+y3)=f(x)+f(y)3f\left(\frac{x+y}{3}\right)=\frac{f(x)+f(y)}{3}

for all x,yx,y, and f′(0)=3f'(0)=3. Then the minimum value of g(x)=3+exf(x)g(x)=3+e^xf(x) is

Tap an option to check your answer
(1)3(e+1e)3\left(\dfrac{e+1}{e}\right)
(2)3(e−1e)3\left(\dfrac{e-1}{e}\right)
(3)3−ee\dfrac{3-e}{e}
(4)3e3e
▸ SHOW SOLUTION

Step 1. f(0) and f(x/3)

x=y=0x=y=0: f(0)=2f(0)3f(0)=\dfrac{2f(0)}{3}, so f(0)=0f(0)=0. Then y=0y=0: f(x3)=f(x)3f\left(\dfrac x3\right)=\dfrac{f(x)}{3}.

Step 2. Additive form

So f(x)+f(y)3=f(x+y3)=f(x+y)3\dfrac{f(x)+f(y)}{3}=f\left(\dfrac{x+y}{3}\right)=\dfrac{f(x+y)}{3}, that is

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

With f′(0)=3f'(0)=3, f(x)=3xf(x)=3x.

Step 3. Minimum

g(x)=3+3xexg(x)=3+3xe^x, g′(x)=3ex(1+x)=0g'(x)=3e^x(1+x)=0 at x=−1x=-1, where g′g' changes from negative to positive.

g(−1)=3−3e=3(e−1e)g(-1)=3-\frac3e=3\left(\frac{e-1}{e}\right)

Answer: (2)

Example 44 (JEE Main 2025, 22 January Shift 1). Let ff be twice differentiable with f(x+y)=f(x)f(y)f(x+y)=f(x)f(y) for all x,yx,y. If f′(0)=4af'(0)=4a and f′′(x)−3af′(x)−f(x)=0f''(x)-3af'(x)-f(x)=0, a>0a>0, then the area of

R={(x,y):0≤y≤f(ax), 0≤x≤2}R=\{(x,y):0\le y\le f(ax),\ 0\le x\le2\}

is

Tap an option to check your answer
(1)e2−1e^2-1
(2)e4+1e^4+1
(3)e4−1e^4-1
(4)e2+1e^2+1
▸ SHOW SOLUTION

Step 1. Form of f

f′(0)=4a≠0f'(0)=4a\ne0, so f≢0f\not\equiv0 and f(x)=ekxf(x)=e^{kx} with k=f′(0)=4ak=f'(0)=4a.

Step 2. Find a

Substitute f=ekxf=e^{kx}:

k2−3ak−1=0k^2-3ak-1=016a2−12a2=1⇒a=1216a^2-12a^2=1\Rightarrow a=\frac12

Step 3. Area

f(ax)=e4a⋅ax=e4a2x=exf(ax)=e^{4a\cdot ax}=e^{4a^2x}=e^x.

∫02ex dx=e2−1\int_0^2e^x\,dx=e^2-1

Answer: (1)

Example 45 (JEE Main 2025, 22 January Shift 1). Let ff be differentiable with f(0)=1f(0)=1 and

f(x+y)=f(x)f′(y)+f′(x)f(y)f(x+y)=f(x)f'(y)+f'(x)f(y)

for all x,yx,y. Then the sum of ln⁡f(n)\ln f(n) for n=1n=1 to 100100 is

Tap an option to check your answer
(1)23842384
(2)25252525
(3)52205220
(4)24062406
▸ SHOW SOLUTION

Step 1. f'(0)

x=y=0x=y=0: 1=2f′(0)1=2f'(0), so f′(0)=12f'(0)=\dfrac12.

Step 2. Put y = 0

f(x)=12f(x)+f′(x)⇒f′(x)=12f(x)f(x)=\frac12f(x)+f'(x)\Rightarrow f'(x)=\frac12f(x)

So f(x)=ex/2f(x)=e^{x/2}, using f(0)=1f(0)=1.

Step 3. The sum

ln⁡f(n)=n2\ln f(n)=\dfrac n2:

∑n=1100n2=50502=2525\sum_{n=1}^{100}\frac n2=\frac{5050}{2}=2525

Answer: (2) 25252525

Example 46 (IITianForum). A differentiable function ff with f(x)>0f(x)>0 for all xx satisfies

f2(x)+f2(y)+2xy−3=f2(x+y)f^2(x)+f^2(y)+2xy-3=f^2(x+y)

for all x,yx,y, and f(1)=2f(1)=2. Find f(13)+4f′(1)f\left(\sqrt{13}\right)+4f'(1).

▸ SHOW SOLUTION

Step 1. F = f²

Put F=f2F=f^2: F(x)+F(y)+2xy−3=F(x+y)F(x)+F(y)+2xy-3=F(x+y). With y=0y=0: F(0)=3F(0)=3.

Step 2. Remove the 2xy term

Let H(x)=F(x)−x2−3H(x)=F(x)-x^2-3, a differentiable function. Then H(x+y)=H(x)+H(y)H(x+y)=H(x)+H(y), so H(x)=cxH(x)=cx (first row of the table) and

F(x)=x2+cx+3F(x)=x^2+cx+3

Step 3. Use f(1) = 2

F(1)=4F(1)=4: 1+c+3=41+c+3=4, so c=0c=0 and f(x)=x2+3f(x)=\sqrt{x^2+3}.

Step 4. Evaluate

f(13)=16=4f\left(\sqrt{13}\right)=\sqrt{16}=4. f′(x)=xx2+3f'(x)=\dfrac{x}{\sqrt{x^2+3}}, so f′(1)=12f'(1)=\dfrac12.

Answer: 4+2=64+2=6

Example 47 (JEE Main 2026, 24 January Shift 2). Let y=y(x)y=y(x) be differentiable on (0,∞)(0,\infty), y(1)=2y(1)=2, and for each x>0x>0

lim⁡t→xt2y(x)−x2y(t)x−t=3\lim_{t\to x}\frac{t^2y(x)-x^2y(t)}{x-t}=3

Then 2y(2)2y(2) is

Tap an option to check your answer
(1)1818
(2)2323
(3)2727
(4)1212
▸ SHOW SOLUTION

Step 1. Add and subtract x²y(x)

t2y(x)−x2y(t)t^2y(x)-x^2y(t)=(t2−x2)y(x)+x2(y(x)−y(t))=(t^2-x^2)y(x)+x^2\left(y(x)-y(t)\right)

Step 2. Divide by x - t and let t → x

t2−x2x−t→−2x\frac{t^2-x^2}{x-t}\to-2xy(x)−y(t)x−t→y′(x)\frac{y(x)-y(t)}{x-t}\to y'(x)x2y′−2xy=3x^2y'-2xy=3

Step 3. Solve

Divide by x4x^4: the left side is the derivative of yx2\dfrac{y}{x^2}.

yx2=−1x3+C\frac{y}{x^2}=-\frac{1}{x^3}+C

y(1)=2y(1)=2 gives C=3C=3, so y=3x2−1xy=3x^2-\dfrac1x.

2y(2)=2(12−12)=232y(2)=2\left(12-\frac12\right)=23

Answer: (2) 2323

Functions defined by integrals

If ff is continuous, then the function FF below is differentiable:

F(x)=∫axf(t) dtF(x)=\int_a^xf(t)\,dt

and

ddx∫axf(t) dt=f(x)\frac{d}{dx}\int_a^xf(t)\,dt=f(x)

So an equation that contains an integral from aa to xx becomes an equation in ff and f′f' after one differentiation. Put x=ax=a in the original equation to get the starting value, since the integral is then 00. A function defined by an integral is automatically continuous, and differentiable wherever the integrand is continuous.

Example 48 (JEE Main 2026, 22 January Shift 1). f:[1,∞)→Rf:[1,\infty)\to\mathbb{R} is differentiable and

6∫1xf(t) dt=3xf(x)+x3−46\int_1^xf(t)\,dt=3xf(x)+x^3-4

for all x≥1x\ge1. Then f(2)−f(3)f(2)-f(3) is

Tap an option to check your answer
(1)−4-4
(2)−3-3
(3)44
(4)33
▸ SHOW SOLUTION

Step 1. x = 1

0=3f(1)+1−40=3f(1)+1-4, so f(1)=1f(1)=1.

Step 2. Differentiate

6f=3f+3xf′+3x2⇒xf′−f=−x26f=3f+3xf'+3x^2\Rightarrow xf'-f=-x^2

Divide by x2x^2: the derivative of fx\dfrac fx is −1-1.

Step 3. Solve

fx=−x+C\dfrac fx=-x+C; f(1)=1f(1)=1 gives C=2C=2. So f(x)=2x−x2f(x)=2x-x^2.

f(2)−f(3)=0−(−3)=3f(2)-f(3)=0-(-3)=3

Answer: (4) 33

Example 49 (JEE Main 2026, 5 April Shift 2). f:[1,∞)→Rf:[1,\infty)\to\mathbb{R} is differentiable and

f(x)=∫1xf(t) dt+g(x)f(x)=\int_1^xf(t)\,dt+g(x)

where g(x)=(1−x)(ln⁡x−1)+eg(x)=(1-x)(\ln x-1)+e.

Then f(f(1))f(f(1)) is

Tap an option to check your answer
(1)1+ee1+e^e
(2)1+e1+e
(3)1+e+ee1+e+e^e
(4)1+2e1+2e
▸ SHOW SOLUTION

Step 1. x = 1

f(1)=0+0+e=ef(1)=0+0+e=e.

Step 2. Differentiate

f′=f−(ln⁡x−1)+1−xxf'=f-(\ln x-1)+\frac{1-x}{x}f′=f−ln⁡x+1xf'=f-\ln x+\frac1x

Step 3. Solve

Put f=ln⁡x+uf=\ln x+u. Then 1x+u′=ln⁡x+u−ln⁡x+1x\dfrac1x+u'=\ln x+u-\ln x+\dfrac1x, so u′=uu'=u and u=Cexu=Ce^x.

f(1)=ef(1)=e gives C=1C=1: f(x)=ln⁡x+exf(x)=\ln x+e^x.

Step 4. Evaluate

f(f(1))=f(e)=1+eef(f(1))=f(e)=1+e^e

Answer: (1)

Example 50 (JEE Main 2025, 2 April Shift 2). f:[1,∞)→[2,∞)f:[1,\infty)\to[2,\infty) is differentiable and

10∫1xf(t) dt=5xf(x)−x5−910\int_1^xf(t)\,dt=5xf(x)-x^5-9

for all x≥1x\ge1. Then f(3)f(3) is

Tap an option to check your answer
(1)1818
(2)3232
(3)2222
(4)2626
▸ SHOW SOLUTION

Step 1. x = 1

0=5f(1)−100=5f(1)-10, so f(1)=2f(1)=2.

Step 2. Differentiate

10f=5f+5xf′−5x4⇒xf′−f=x410f=5f+5xf'-5x^4\Rightarrow xf'-f=x^4

Divide by x2x^2: the derivative of fx\dfrac fx is x2x^2.

Step 3. Solve

fx=x33+C\dfrac fx=\dfrac{x^3}{3}+C; f(1)=2f(1)=2 gives C=53C=\dfrac53.

f(x)=x4+5x3f(x)=\frac{x^4+5x}{3}f(3)=81+153=32f(3)=\frac{81+15}{3}=32

Answer: (2) 3232

Which method to use

A decision chart: from what is given, arrows lead to seven situations, each paired with its method: one formula at one point, check LHL, RHL and f of a; piecewise with constants, use continuity and equal slopes; greatest integer, fractional part or sgn, look where the inside is an integer; modulus, max or min, draw and look for corners; a product with a modulus, check whether the outside factor is zero at the corner; a functional equation, put x equals y equals 0 and then find f dash; an integral equation, differentiate both sides
GivenMethod
one formula, one pointLHL, RHL, f(a)f(a); standard limits or expansions
piecewise with constantscontinuity equation, then LHD == RHD
[g(x)][g(x)], {g(x)}\{g(x)\}, sgn⁡g(x)\operatorname{sgn}g(x)points where gg is an integer (or 00); crossing or touching
composite g∘fg\circ fwhere ff changes formula and where f(x)f(x) hits a break of gg
∣f∣\lvert f\rvert, f(∣x∣)f(\lvert x\rvert)zeros of ff with f′≠0f'\ne0; x=0x=0 for f(∣x∣)f(\lvert x\rvert)
max⁡{f,g}\max\{f,g\}, min⁡{f,g}\min\{f,g\}draw; corners where f=gf=g with f′≠g′f'\ne g'
f(x)∣g(x)∣f(x)\lvert g(x)\rvertis f=0f=0 at the zero of gg? then no corner
limit defined by n→∞n\to\inftyfind ff piece by piece first, then test the joins
root in an intervalsign change and IVT
functional equationx=y=0x=y=0, then f′(x)f'(x) from the definition
integral from aa to xx in an equationput x=ax=a, then differentiate

What JEE asks

Across the 2025 and 2026 papers the chapter appears in four forms, roughly in this order of frequency.

  1. Counting the points where a function built from [ ⋅ ][\,\cdot\,], ∣ ⋅ ∣\lvert\,\cdot\,\rvert, max or min is not continuous or not differentiable (Examples 16 to 20, 31 to 40). The answer is usually a small integer.
  2. Finding constants from continuity or differentiability, followed by a short calculation (Examples 4, 11 to 15, 28 to 30).
  3. Value of a continuous function at the point where its formula is 00\dfrac00 (Examples 2 and 3).
  4. Functional and integral equations, where differentiability is the bridge to a solvable relation (Examples 43 to 50).

JEE Advanced adds statement-type questions that test the theory directly (Example 24) and counts with a zero factor that cancels a break (Examples 20 and 40).

Quick recall

ResultStatement
Continuity at aaLHL == RHL =f(a)=f(a)
Removablelimit exists, ≠f(a)\ne f(a) or f(a)f(a) missing
JumpLHL, RHL finite and unequal
Compositeff continuous at aa, gg at f(a)f(a) ⇒\Rightarrow g∘fg\circ f at aa
[x][x] at integer nnLHL n−1n-1, RHL nn
[g(x)][g(x)]breaks where gg crosses an integer
IVTff continuous, f(a)f(b)<0f(a)f(b)<0 ⇒\Rightarrow root in (a,b)(a,b)
Derivativelimit of f(a+h)−f(a)h\dfrac{f(a+h)-f(a)}{h} as h→0h\to0
DifferentiableLHD == RHD, finite
Differentiable ⇒\Rightarrow continuousconverse false: ∣x∣\lvert x\rvert
Corner, cusp, vertical tangentnot differentiable
∣f∣\lvert f\rvert at a zerocorner iff f′(a)≠0f'(a)\ne0
max⁡\max, min⁡\mincorners where curves cross with unequal slopes
Product rulef(a)=0f(a)=0, gg continuous ⇒\Rightarrow fgfg differentiable
Twice differentiableneeds f(a)=f′(a)=0f(a)=f'(a)=0
xnsin⁡1xx^n\sin\frac1x at 00continuous for n≥1n\ge1, differentiable for n≥2n\ge2
f(x+y)=f(x)+f(y)f(x+y)=f(x)+f(y)f=kxf=kx
f(x+y)=f(x)f(y)f(x+y)=f(x)f(y)f=ekxf=e^{kx}
Integral functionFF == integral of ff from aa to xx ⇒F′=f\Rightarrow F'=f
Before you leave this chapter

Without a pen, say how many points of non-differentiability each of these has: ∣x2−1∣\lvert x^2-1\rvert, (x−1)∣x2−1∣(x-1)\lvert x^2-1\rvert, max⁡{x,x2}\max\{x,x^2\}, and [x]∣sin⁡πx∣[x]\lvert\sin\pi x\rvert on (0,3)(0,3). If all four answers come instantly (22, 11, 22, 22), the chapter is yours.

Practise these methods on real exam questions in the doMath Continuity and Differentiability chapter. If the left and right limits in this note felt slow, go back to the Limits note first: every test here is built on them.

[ SHARE ] WhatsApp
[ practice these chapters ]
Reinforce this post with live problems on doMath.
FunctionsLimitsMethod of DifferentiationContinuity & Differentiability
← Back to all notes