NIMCET, GATE, CUET & CBSE test series are live — start practicing free
syllabuzAI

Differentiability: Left and Right Hand Derivatives | NIMCET

Learn the derivative from first principles, left-hand and right-hand derivatives, the link between differentiability and continuity, and how to test |x|, [x] and piecewise functions, for NIMCET.

4 min read

SP

SHIVAM PRADHAN

Updated 25 October 2026

On this page

Quick answer: f is differentiable at a if f′(a)=lim⁡h→0f(a+h)−f(a)hf'(a) = \lim_{h \to 0}\frac{f(a + h) - f(a)}{h} exists, that is, the left-hand derivative lim⁡h→0−f(a+h)−f(a)h\lim_{h \to 0^-}\frac{f(a + h) - f(a)}{h} equals the right-hand derivative lim⁡h→0+f(a+h)−f(a)h\lim_{h \to 0^+}\frac{f(a + h) - f(a)}{h}. Differentiability implies continuity, but not the other way round: ∣x∣\lvert x\rvert is continuous at 0 but has LHD = −1 and RHD = 1, so it is not differentiable there.

This continues from continuity of functions.

Derivative from first principles

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

Geometrically, f′(a) is the slope of the tangent to y = f(x) at x = a.

Left and right hand derivatives

DerivativeFormula
LHD at alim⁡h→0+f(a−h)−f(a)−h\lim_{h \to 0^+}\frac{f(a - h) - f(a)}{-h}
RHD at alim⁡h→0+f(a+h)−f(a)h\lim_{h \to 0^+}\frac{f(a + h) - f(a)}{h}
DifferentiableLHD = RHD (finite)

Differentiability and continuity

StatementTrue?
Differentiable at a ⇒ continuous at aYes
Continuous at a ⇒ differentiable at aNo
Not continuous ⇒ not differentiableYes

So when testing differentiability, check continuity first; a discontinuous function cannot be differentiable.

Where differentiability usually fails

SituationExample
Corner (sharp turn)∣x∣\lvert x\rvert at 0
Vertical tangentx13x^{\frac{1}{3}} at 0
Discontinuity[x][x] at integers
Join of a piecewise function with unequal slopesmax⁡(x,x2)\max(x, x^2) at 0 and 1

Standard cases

FunctionNot differentiable at
∣x−a∣\lvert x - a\rvertx=ax = a
∣x∣+∣x−1∣\lvert x\rvert + \lvert x - 1\rvertx=0,1x = 0, 1
x∣x∣x\lvert x\rvertNowhere (differentiable everywhere)
∣sin⁡x∣\lvert\sin x\rvertx=nπx = n\pi
[x][x]Every integer

A quick rule: ∣f(x)∣\lvert f(x)\rvert can fail to be differentiable only where f(x)=0f(x) = 0, and fails there when f′(x)≠0f'(x) \ne 0 at that point.

Worked examples

Example 1: modulus function

Check f(x)=∣x∣f(x) = \lvert x\rvert at x=0x = 0.

RHD =lim⁡h→0+hh=1= \lim_{h \to 0^+}\frac{h}{h} = 1; LHD =lim⁡h→0+h−h=−1= \lim_{h \to 0^+}\frac{h}{-h} = -1. Not differentiable.

Example 2: x|x|

Check f(x)=x∣x∣f(x) = x\lvert x\rvert at 0.

RHD =lim⁡h⋅hh=0= \lim\frac{h \cdot h}{h} = 0 and LHD =lim⁡(−h)(h)−h=0= \lim\frac{(-h)(h)}{-h} = 0. Differentiable, with f′(0)=0f'(0) = 0.

Example 3: piecewise constants

f(x)=x2f(x) = x^2 for x≤1x \le 1 and f(x)=ax+bf(x) = ax + b for x>1x > 1. Find a, b for differentiability at 1.

Step 1: Continuity: 1=a+b1 = a + b.

Step 2: Equal derivatives: 2=a2 = a.

Answer: a=2a = 2, b=−1b = -1.

Example 4: counting points

Find the points where f(x)=∣x2−3x+2∣f(x) = \lvert x^2 - 3x + 2\rvert is not differentiable.

x2−3x+2=0x^2 - 3x + 2 = 0 at x=1,2x = 1, 2, and the derivative 2x−32x - 3 is non-zero at both. So f fails at x=1x = 1 and x=2x = 2.

Example 5: first principles

Find the derivative of x2x^2 from first principles.

lim⁡h→0(x+h)2−x2h=lim⁡h→0(2x+h)=2x\lim_{h \to 0}\frac{(x + h)^2 - x^2}{h} = \lim_{h \to 0}(2x + h) = 2x

Summary table

IdeaKey result
DifferentiableLHD = RHD
Differentiable ⇒ continuousAlways
Continuous ⇒ differentiableNot always
∣x∣\lvert x\rvert at 0LHD −1, RHD 1
PiecewiseMatch values and slopes at the join

Exam tips

  • For piecewise functions, write two equations: one for continuity and one for equal slopes.
  • Sketching the graph shows corners and jumps at a glance.
  • xn∣x∣x^n\lvert x\rvert with n≥1n \ge 1 is differentiable at 0.

Next, learn the chain rule and implicit and parametric differentiation, or see the NIMCET Calculus chapter.

Common mistakes

  • Concluding differentiability from continuity.
  • Checking only the slope condition at a join and ignoring continuity.
  • Forgetting the minus sign in the LHD formula.
  • Assuming every modulus function has a corner at its zero.

Frequently Asked Questions

When is a function differentiable at a point?

When its left-hand and right-hand derivatives at that point exist and are equal.

Is every continuous function differentiable?

No. For example, |x| is continuous at 0 but not differentiable there.

Is every differentiable function continuous?

Yes. Differentiability at a point implies continuity at that point.

Why is |x| not differentiable at 0?

Its left-hand derivative is −1 and its right-hand derivative is 1, so they are unequal.

What is the derivative from first principles?

f′(x) = lim (h → 0) [f(x + h) − f(x)]/h.

Concept Check

MEDIUM

As θ\theta varies over all real numbers, the set of values of 3sin⁡2θ+4cos⁡2θ3\sin^2\theta + 4\cos^2\theta is:

Suggested for you