Class 12 Maths, Worked in Full Past papersGet updates
Chapter 5 · Continuity and Differentiability

Exercise 5.2 · Q10: [x][x] on (0,3)(0,3) is not differentiable at x=1x=1 and x=2x=2

Exercise 5.2Differentiability · Section 5.3
The question

Prove that the greatest integer function defined by

f(x)=[x],0<x<3f(x) = [x], \quad 0 < x < 3

is not differentiable at x=1x = 1 and x=2x = 2⁠.

Exam answer

Here f(x)=[x]f(x) = [x]⁠, 0<x<30 < x < 3⁠.

At x=1x = 1⁠: f(1)=1f(1) = 1⁠. For 0<h<10 < h < 1⁠, f(1+h)=1f(1 + h) = 1⁠; for −1<h<0-1 < h < 0⁠, f(1+h)=0f(1 + h) = 0⁠.

RHD=lim⁡h→0+f(1+h)−f(1)h=lim⁡h→0+1−1h=0LHD=lim⁡h→0−f(1+h)−f(1)h=lim⁡h→0−0−1h=lim⁡h→0−(−1h)\begin{aligned} \text{RHD} &= \lim_{h\to0^+}\frac{f(1 + h) - f(1)}{h} \\ &= \lim_{h\to0^+}\frac{1 - 1}{h} = 0 \\ \text{LHD} &= \lim_{h\to0^-}\frac{f(1 + h) - f(1)}{h} \\ &= \lim_{h\to0^-}\frac{0 - 1}{h} = \lim_{h\to0^-}\Big(-\frac1h\Big) \end{aligned}

As h→0−h \to 0^-⁠, −1h→∞-\frac1h \to \infty⁠, so the LHD does not exist. So ff is not differentiable at x=1x = 1⁠.

At x=2x = 2⁠: f(2)=2f(2) = 2⁠. For 0<h<10 < h < 1⁠, f(2+h)=2f(2 + h) = 2⁠; for −1<h<0-1 < h < 0⁠, f(2+h)=1f(2 + h) = 1⁠.

RHD=lim⁡h→0+f(2+h)−f(2)h=lim⁡h→0+2−2h=0LHD=lim⁡h→0−f(2+h)−f(2)h=lim⁡h→0−1−2h=lim⁡h→0−(−1h)\begin{aligned} \text{RHD} &= \lim_{h\to0^+}\frac{f(2 + h) - f(2)}{h} \\ &= \lim_{h\to0^+}\frac{2 - 2}{h} = 0 \\ \text{LHD} &= \lim_{h\to0^-}\frac{f(2 + h) - f(2)}{h} \\ &= \lim_{h\to0^-}\frac{1 - 2}{h} = \lim_{h\to0^-}\Big(-\frac1h\Big) \end{aligned}

As h→0−h \to 0^-⁠, −1h→∞-\frac1h \to \infty⁠, so the LHD does not exist.

So ff is not differentiable at x=2x = 2⁠. Thus f(x)=[x]f(x) = [x] is not differentiable at x=1x = 1 and x=2x = 2⁠. Hence proved.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

The graph of [x][x] is a staircase: flat steps with a jump of height 1 at each integer. Just to the right of an integer the step is flat, so the chord slopes are 00⁠. Just to the left, the chord from the point on the higher step down to the lower step has to drop by 11 over a tiny horizontal distance, so its slope blows up. A difference quotient that grows without bound has no finite limit, so there is no derivative.

Given, to find, and the plan
Given
f(x)=[x]f(x) = [x]⁠, the greatest integer ≤x\le x⁠, on the interval 0<x<30 < x < 3⁠.
To show
ff is not differentiable at x=1x = 1 and at x=2x = 2⁠.
Plan
Write ff step by step. At c=1c = 1⁠: compute the right-hand and left-hand limits of f(1+h)−f(1)h\frac{f(1+h) - f(1)}{h} separately and show that the left-hand one is not finite. Repeat at c=2c = 2⁠. Then give a second proof through Theorem 3 (differentiable implies continuous).

Basics you need

1The greatest integer function

[x][x] is the greatest integer less than or equal to xx⁠: [0.7]=0[0.7] = 0⁠, [1]=1[1] = 1⁠, [1.99]=1[1.99] = 1⁠, [2]=2[2] = 2⁠. It is constant between consecutive integers and jumps up by 11 at each integer. Basics: piecewise functions

2Differentiable at a point

ff is differentiable at cc if both lim⁡h→0−\lim_{h\to0^-} and lim⁡h→0+\lim_{h\to0^+} of f(c+h)−f(c)h\frac{f(c+h) - f(c)}{h} are finite and equal (Section 5.3). Lesson: differentiability

3One-sided limits

h→0−h \to 0^- uses only negative hh⁠; h→0+h \to 0^+ only positive hh⁠. Basics: left-hand and right-hand limits

4Theorem 3

If ff is differentiable at cc⁠, then ff is continuous at cc⁠. Equivalently: if ff is not continuous at cc⁠, it is not differentiable at cc⁠. Lesson: differentiability

Solution

  1. Write ff step by step on (0,3)(0, 3)

    f(x)=[x]={0,0<x<11,1≤x<22,2≤x<3f(x) = [x] = \begin{cases} 0, & 0 < x < 1 \\ 1, & 1 \le x < 2 \\ 2, & 2 \le x < 3 \end{cases}

    Both 11 and 22 are in the domain, with f(1)=1f(1) = 1 and f(2)=2f(2) = 2⁠.

    Differentiability is only asked at points of the domain, so we first confirm that 11 and 22 belong to (0,3)(0, 3)⁠. Each integer belongs to the step that starts at it, because [1]=1[1] = 1⁠, not 00⁠.
    [x]=n[x] = n exactly when n≤x<n+1n \le x < n + 1 (nn an integer). Basics: piecewise functions
  2. At x=1x = 1⁠: right-hand derivative

    Take 0<h<10 < h < 1⁠. Then 1<1+h<21 < 1 + h < 2⁠, so f(1+h)=1f(1 + h) = 1 and

    f(1+h)−f(1)h=1−1h=0.\frac{f(1+h) - f(1)}{h} = \frac{1 - 1}{h} = 0.

    Hence lim⁡h→0+f(1+h)−f(1)h=0\displaystyle\lim_{h\to0^+}\frac{f(1+h) - f(1)}{h} = 0⁠.

    To the right of 11 we stay on the flat step at height 11⁠, and f(1)f(1) is also 11⁠, so every chord is horizontal. Restricting to h<1h < 1 keeps 1+h1 + h on that step (and inside the domain); only small hh matter for the limit anyway.
    A quotient that equals 00 for every small h>0h > 0 has right-hand limit 00⁠. Basics: one-sided limits
  3. At x=1x = 1⁠: left-hand difference quotient

    Take −1<h<0-1 < h < 0⁠. Then 0<1+h<10 < 1 + h < 1⁠, so f(1+h)=0f(1 + h) = 0 and

    f(1+h)−f(1)h=0−1h=−1h.\frac{f(1+h) - f(1)}{h} = \frac{0 - 1}{h} = -\frac{1}{h}.

    Since h<0h < 0⁠, −1h=1∣h∣-\frac1h = \frac{1}{|h|}⁠, which is positive and grows without bound as h→0−h \to 0^-⁠:

    h=−0.1, −0.01, −0.001−1h=10, 100, 1000.\begin{aligned} h &= -0.1,\ -0.01,\ -0.001 \\ -\tfrac1h &= 10,\ 100,\ 1000. \end{aligned}

    So lim⁡h→0−f(1+h)−f(1)h\displaystyle\lim_{h\to0^-}\frac{f(1+h) - f(1)}{h} is not a finite number: the left-hand derivative at 11 does not exist.

    Just left of 11 the graph is on the lower step (height 00⁠), while f(1)=1f(1) = 1 is on the upper step. The chord from (1+h,0)(1+h, 0) to (1,1)(1, 1) rises by 11 over a horizontal distance ∣h∣|h|⁠, so its slope is 1∣h∣\frac{1}{|h|}⁠, which becomes as large as we like.
    1∣h∣\frac{1}{|h|} exceeds any number MM once ∣h∣<1M|h| < \frac1M⁠, so it has no finite limit. Basics: what a limit is
  4. Conclusion at x=1x = 1

    The definition needs both one-sided limits to be finite and equal. The left-hand one is not finite (and the right-hand one is 00⁠), so ff is not differentiable at x=1x = 1.

    One failed condition is enough. Even if we tried to call the left-hand value "+∞+\infty", it would neither be finite nor equal to the right-hand value 00⁠.
    Definition of differentiability at a point, Section 5.3. Lesson: differentiability
  5. At x=2x = 2⁠: the same two calculations

    Right. For 0<h<10 < h < 1⁠: 2<2+h<32 < 2 + h < 3⁠, so f(2+h)=2f(2 + h) = 2 and

    f(2+h)−f(2)h=2−2h=0→0.\frac{f(2+h) - f(2)}{h} = \frac{2 - 2}{h} = 0 \to 0.

    Left. For −1<h<0-1 < h < 0⁠: 1<2+h<21 < 2 + h < 2⁠, so f(2+h)=1f(2 + h) = 1 and

    f(2+h)−f(2)h=1−2h=−1h=1∣h∣,\frac{f(2+h) - f(2)}{h} = \frac{1 - 2}{h} = -\frac1h = \frac{1}{|h|},

    which grows without bound as h→0−h \to 0^-⁠. The left-hand derivative at 22 does not exist, so ff is not differentiable at x=2x = 2.

    The situation at 22 is a copy of the one at 11⁠, one step higher: flat to the right, a jump of 11 to the left. Note 2+h<32 + h < 3 keeps us inside the domain (0,3)(0, 3)⁠.
  6. A second proof, through Theorem 3

    At x=1x = 1⁠: for xx just left of 11⁠, f(x)=0f(x) = 0⁠; just right, f(x)=1f(x) = 1⁠. So

    lim⁡x→1−f(x)=0≠1=lim⁡x→1+f(x),\lim_{x\to1^-} f(x) = 0 \ne 1 = \lim_{x\to1^+} f(x),

    and ff is not continuous at 11⁠. Likewise lim⁡x→2−f(x)=1\lim_{x\to2^-} f(x) = 1 while lim⁡x→2+f(x)=2\lim_{x\to2^+} f(x) = 2⁠. If ff were differentiable at 11 or 22⁠, Theorem 3 would make it continuous there, which is false. So ff is not differentiable at 11 or 22⁠.

    This is the contrapositive of Theorem 3: "differentiable ⇒\Rightarrow continuous" is the same statement as "not continuous ⇒\Rightarrow not differentiable". The book shows in Example 15 that [x][x] is discontinuous at every integer; restricted to (0,3)(0, 3)⁠, the integers in the domain are exactly 11 and 22⁠.
    Theorem 3, Section 5.3; Example 15, Section 5.2. Lesson: differentiability
x y 1 2 3 1 2 jump 1 jump 1 O
The graph of y=[x]y = [x] for 0<x<30 < x < 3 (same scale on both axes). Filled dots belong to the graph; open dots do not. At x=1x = 1 and x=2x = 2 the graph jumps up by 11 (dashed): to the right of each jump the chords are flat, to the left they become steeper and steeper.
Result

At x=1x = 1 and at x=2x = 2 the right-hand derivative is 00⁠, but the left-hand difference quotient equals 1∣h∣\frac{1}{|h|}⁠, which has no finite limit. Hence f(x)=[x]f(x) = [x]⁠, 0<x<30 < x < 3⁠, is not differentiable at x=1x = 1 and x=2x = 2. (The answer key gives no answer for this proof question.)

Check it with numbers
hh[1+h][1+h][1+h]−1h\frac{[1+h] - 1}{h}[2+h][2+h][2+h]−2h\frac{[2+h] - 2}{h}
−0.01-0.010010010011100100
−0.001-0.00100100010001110001000
0.0010.00111002200
0.010.0111002200

On the left the quotient multiplies by 1010 each time hh shrinks by a factor of 1010⁠; on the right it stays 00⁠.

Common mistakes
  1. "The derivative of a constant is 0, so f′(1)=0f'(1) = 0⁠." ff is constant on each open step, not on an interval around 11⁠. The derivative at 11 must come from the difference quotient at 11⁠.
  2. Using f(1)=0f(1) = 0⁠. [1]=1[1] = 1⁠; the value at an integer comes from the step that starts there.
  3. Calling the left-hand derivative −∞-\infty⁠. With h<0h < 0⁠, −1h-\frac1h is positive; in any case it is not finite, which is what matters.
What to take away
  1. At a jump, the difference quotient on the side of the jump behaves like jump∣h∣\frac{\text{jump}}{|h|} and is unbounded, so there is no derivative.
  2. A quick test: a function that is not continuous at a point is never differentiable there (Theorem 3).
  3. Compare Question 9: there the function is continuous but the two one-sided derivatives differ (a corner); here the function is not even continuous (a jump).

Every fact used, and where it comes from

FactUsed inSource
[x]=n[x] = n for n≤x<n+1n \le x < n + 1Steps 1, 2, 3, 5Definition of the greatest integer function (Class XI, Relations and Functions)
Differentiable at cc iff both one-sided limits of the difference quotient are finite and equalSteps 2 to 5Section 5.3 (Lesson: differentiability)
[x][x] is discontinuous at every integerStep 6Example 15, Section 5.2
Differentiable implies continuousStep 6Theorem 3, Section 5.3
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →