Skip to main content
Limits, Continuity & Differentiability10 min read

Differentiability at a Point: Modulus, GIF, and Min/Max Functions

After continuity, the next most asked question type in JEE Main (35–40 questions over the past six years) involves checking differentiability of piecewise, modulus, greatest integer, and min/max functions at specific points. The key distinction: a function can be continuous at a point without being...

differentiabilitymodulusgifmin-max

Differentiability at a Point: Modulus, GIF, and Min/Max Functions

Introduction

After continuity, the next most asked question type in JEE Main (35–40 questions over the past six years) involves checking differentiability of piecewise, modulus, greatest integer, and min/max functions at specific points. The key distinction: a function can be continuous at a point without being differentiable there, but differentiability always implies continuity. This article gives you the complete method—from definition to JEE-level execution.


1. Fundamental Principle

Definition of Differentiability

A function ff is differentiable at x=ax = a if the following limit exists and is finite: f(a)=limh0f(a+h)f(a)h.f'(a) = \lim_{h \to 0} \frac{f(a+h) - f(a)}{h}.

This requires: LHD=limh0f(a+h)f(a)h=limh0+f(a+h)f(a)h=RHD\boxed{\text{LHD} = \lim_{h \to 0^-} \frac{f(a+h) - f(a)}{h} = \lim_{h \to 0^+} \frac{f(a+h) - f(a)}{h} = \text{RHD}}

Key Relationships

  • Differentiable \Rightarrow Continuous (always true).
  • Continuous ⇏\not\Rightarrow Differentiable (e.g., x|x| at 0).
  • Not continuous \Rightarrow Not differentiable (contrapositive of the above).

Sharp Corner Test

If ff is continuous at x=ax = a but the graph has a "sharp corner" (abrupt change in slope), then ff is not differentiable at x=ax = a. The LHD and RHD exist but are unequal.


2. Non-Differentiable Functions: The Big Three

Type 1: Modulus Functions

f(x)=g(x)f(x) = |g(x)| is not differentiable at points where g(x)=0g(x) = 0 (provided g(x)0g'(x) \neq 0 at that point).

Standard example: f(x)=x3f(x) = |x - 3|

  • LHD at x=3x = 3: 1-1
  • RHD at x=3x = 3: +1+1
  • Not differentiable.

Counting points of non-differentiability: For f(x)=x25x+6=(x2)(x3)f(x) = |x^2 - 5x + 6| = |(x-2)(x-3)|, the function is not differentiable at x=2x = 2 and x=3x = 3 (where the expression inside changes sign).

Type 2: Greatest Integer Function (GIF)

f(x)=g(x)f(x) = \lfloor g(x) \rfloor is discontinuous (and hence not differentiable) at every point where g(x)g(x) is an integer and gg is strictly monotone.

Example: f(x)=x2f(x) = \lfloor x^2 \rfloor on [0,2][0, 2] is not differentiable at x=1,2,3,2x = 1, \sqrt{2}, \sqrt{3}, 2 (where x2x^2 passes through integers).

Type 3: Min/Max Functions

f(x)=min(g(x),h(x))f(x) = \min(g(x), h(x)) or f(x)=max(g(x),h(x))f(x) = \max(g(x), h(x)) is not differentiable at points where g(x)=h(x)g(x) = h(x) (the "crossover" points), unless gg and hh are tangent there.


3. Worked Examples

Example 1 (Basic Modulus)

Find the number of points where f(x)=x33x2+2xf(x) = |x^3 - 3x^2 + 2x| is not differentiable.

Solution:

Factor: x33x2+2x=x(x1)(x2)x^3 - 3x^2 + 2x = x(x-1)(x-2).

The expression changes sign at x=0,1,2x = 0, 1, 2. At each of these, ff has a sharp corner (since g(x)0g'(x) \neq 0 at these points).

Answer: 3 points.


Example 2 (Piecewise Differentiability)

f(x)={x2sin(1/x),x00,x=0f(x) = \begin{cases} x^2 \sin(1/x), & x \neq 0 \\ 0, & x = 0 \end{cases} Is ff differentiable at x=0x = 0?

Solution:

Check using the definition: f(0)=limh0f(h)f(0)h=limh0h2sin(1/h)h=limh0hsin(1/h)=0.f'(0) = \lim_{h \to 0} \frac{f(h) - f(0)}{h} = \lim_{h \to 0} \frac{h^2 \sin(1/h)}{h} = \lim_{h \to 0} h \sin(1/h) = 0. (Since hsin(1/h)h0|h \sin(1/h)| \leq |h| \to 0.)

Yes, ff is differentiable at 0, with f(0)=0f'(0) = 0.

Important contrast: g(x)=xsin(1/x)g(x) = x \sin(1/x) (without the x2x^2) is continuous but not differentiable at 0, because limh0sin(1/h)\lim_{h \to 0} \sin(1/h) does not exist.


Example 3 (Max Function)

Let f(x)=max(x,x2)f(x) = \max(x, x^2) on [1,2][-1, 2]. Find the points of non-differentiability.

Solution:

Solve x=x2x = x^2: x(x1)=0x(x-1) = 0, so x=0,1x = 0, 1.

  • For x<0x < 0: x2>xx^2 > x (since xx is negative, x2x^2 is positive), so f(x)=x2f(x) = x^2.
  • For 0<x<10 < x < 1: x>x2x > x^2, so f(x)=xf(x) = x.
  • For x>1x > 1: x2>xx^2 > x, so f(x)=x2f(x) = x^2.

At x=0x = 0: LHD =2(0)=0= 2(0) = 0, RHD =1= 1. Not differentiable. At x=1x = 1: LHD =1= 1, RHD =2(1)=2= 2(1) = 2. Not differentiable.

Answer: 2 points (x=0,1x = 0, 1).


Example 4 (Modulus + Parameter)

If f(x)=xa+xbf(x) = |x - a| + |x - b| where a<ba < b, at how many points is ff not differentiable?

Solution:

Sharp corners occur at x=ax = a and x=bx = b.

At x=ax = a: LHD =1+(1)=2= -1 + (-1) = -2, RHD =1+(1)=0= 1 + (-1) = 0. Not differentiable. At x=bx = b: LHD =1+(1)=0= 1 + (-1) = 0, RHD =1+1=2= 1 + 1 = 2. Not differentiable.

Answer: 2 points.


Example 5 (Differentiability implies Continuity — Parameter Finding)

f(x)={ax+b,x1x2+3x+2,x>1f(x) = \begin{cases} ax + b, & x \leq 1 \\ x^2 + 3x + 2, & x > 1 \end{cases} Find aa and bb so that ff is differentiable at x=1x = 1.

Solution:

Continuity at x=1x = 1: a+b=1+3+2=6a + b = 1 + 3 + 2 = 6.

Differentiability at x=1x = 1:

  • LHD =a= a
  • RHD =2(1)+3=5= 2(1) + 3 = 5

So a=5a = 5, and b=65=1b = 6 - 5 = 1.


Example 6 (Counting Non-Differentiable Points)

Find the total number of points of non-differentiability of f(x)=max(sinx,cosx)f(x) = \max(\sin x, \cos x) on [0,2π][0, 2\pi].

Solution:

sinx=cosx\sin x = \cos x when tanx=1\tan x = 1, i.e., x=π4,5π4x = \frac{\pi}{4}, \frac{5\pi}{4}.

At these points, the function switches between sinx\sin x and cosx\cos x, creating sharp corners.

Answer: 2 points.


4. Previous Year JEE Problems

Problem 1 (JEE Main 2023)

Let f(x)=2x2+5x3f(x) = |2x^2 + 5|x| - 3|. The number of points of non-differentiability of f(x)f(x) in R\mathbb{R} is:

Solution:

First solve 2x2+5x3=02x^2 + 5|x| - 3 = 0. Let t=x0t = |x| \geq 0: 2t2+5t3=0t=5+494=12(taking positive root).2t^2 + 5t - 3 = 0 \Rightarrow t = \frac{-5 + \sqrt{49}}{4} = \frac{1}{2} \quad (\text{taking positive root}).

So x=12|x| = \frac{1}{2}, giving x=±12x = \pm\frac{1}{2}.

Now g(x)=2x2+5x3g(x) = 2x^2 + 5|x| - 3 changes sign at x=±12x = \pm\frac{1}{2}, creating corners in f=gf = |g|.

Also, g(x)=2x2+5x3g(x) = 2x^2 + 5|x| - 3 itself has a corner at x=0x = 0 due to x|x|. But since g(0)=3<0g(0) = -3 < 0, and g(0)=3|g(0)| = 3, we need to check if ff has a corner at 0. Since gg is negative in a neighborhood of 0, f(x)=(2x2+5x3)=2x25x+3f(x) = -(2x^2 + 5|x| - 3) = -2x^2 - 5|x| + 3, which has a corner at 0.

Points of non-differentiability: x=12,0,12x = -\frac{1}{2}, 0, \frac{1}{2}. Answer: 3.


Problem 2 (JEE Main 2021)

The number of points at which f(x)=x21+x24f(x) = |x^2 - 1| + |x^2 - 4| is not differentiable is:

Solution:

x21=0x=±1x^2 - 1 = 0 \Rightarrow x = \pm 1. x24=0x=±2x^2 - 4 = 0 \Rightarrow x = \pm 2.

Check each:

  • At x=±1x = \pm 1: x21|x^2-1| has a corner, but x24=14=3|x^2-4| = |1-4| = 3 is smooth. So ff is not differentiable.
  • At x=±2x = \pm 2: x24|x^2-4| has a corner, but x21=41=3|x^2-1| = |4-1| = 3 is smooth. So ff is not differentiable.

Answer: 4 points (x=2,1,1,2x = -2, -1, 1, 2).


Problem 3 (JEE Main 2024)

Let f(x)=min(x,1x)f(x) = \min(|x|, 1-|x|). The number of points where ff is not differentiable in [2,2][-2, 2] is:

Solution:

Find where the functions cross: x=1x2x=1x=±12|x| = 1 - |x| \Rightarrow 2|x| = 1 \Rightarrow x = \pm\frac{1}{2}.

Analyzing the graph in segments:

  1. For x[0.5,0.5]x \in [-0.5, 0.5]: x<1x|x| < 1-|x|, so f(x)=xf(x) = |x|. This has a sharp corner at x=0x = 0.
  2. For x>0.5|x| > 0.5: 1x<x1-|x| < |x|, so f(x)=1xf(x) = 1-|x|.

At the transition points x=±0.5x = \pm 0.5:

  • At x=0.5x = 0.5: LHD comes from x|x| (slope 1), RHD comes from 1x1-|x| (slope 1-1). Sharp corner.
  • At x=0.5x = -0.5: LHD comes from 1x1-|x| (slope 1), RHD comes from x|x| (slope 1-1). Sharp corner.

Note: At x=±1x = \pm 1, the function is f(x)=1xf(x) = 1-|x|, which is linear locally—it is differentiable there.

Answer: 3 points (x=0.5,0,0.5x = -0.5, 0, 0.5).


5. Key Formulas & Results

Function TypeNon-Differentiable AtCondition
g(x)\|g(x)\|Where g(x)=0g(x) = 0g(x)0g'(x) \neq 0 at that point
g(x)\lfloor g(x) \rfloorWhere g(x)Zg(x) \in \mathbb{Z}Discontinuous (hence not diff.)
max(g,h)\max(g, h)Where g(x)=h(x)g(x) = h(x)Sharp corner if ghg' \neq h'
min(g,h)\min(g, h)Where g(x)=h(x)g(x) = h(x)Sharp corner if ghg' \neq h'
xnsin(1/x)x^n \sin(1/x) at 0Not diff. if n=1n = 1Diff. if n2n \geq 2

6. Tips for JEE Aspirants

  1. Always check continuity first. If ff is not continuous at a point, it's automatically not differentiable—no further work needed.
  2. For modulus functions, find the zeros of the inner expression. Each zero (where the function crosses the x-axis) is a potential non-differentiable point.
  3. For piecewise + parameter problems, you always get 2 equations: one from continuity (LHL = RHL = f(a)) and one from differentiability (LHD = RHD).
  4. Draw a rough sketch. Even a quick mental picture of the graph immediately reveals corners and cusps.
  5. xnsin(1/x)x^n \sin(1/x) rule of thumb: differentiable at 0 if n2n \geq 2, not differentiable if n=1n = 1, not continuous if n<1n < 1.
  6. Count systematically. For "how many points" questions, list all candidate points first, then verify each one.

7. Quick-Reference Summary

StepAction
1Identify candidate points: zeros of modulus, integer values for GIF, crossover points for min/max.
2Check continuity at each candidate.
3If continuous, compute LHD and RHD.
4If LHD = RHD, differentiable. If LHD \neq RHD, not differentiable.
5Count all non-differentiable points.

Differentiability questions are a goldmine for JEE scorers—they follow predictable patterns. Learn to spot the three types (modulus, GIF, min/max) and you'll handle them effortlessly.

Ready to Apply These Techniques?

Practice with real JEE Main questions and see these methods in action.

Practice Limits, Continuity & Differentiability PYQs