NDA Maths · Differentiation

Differentiability — When the Derivative Exists

A function is differentiable at a point only if its left-hand and right-hand derivatives both exist and are equal — corners, jumps, and steps are where this fails.

Why this matters

NDA loves to test the gap between continuity and differentiability. The modulus, piecewise, and greatest-integer functions are the standard counter-examples, and parameter problems ('find a, b so f is differentiable') hinge entirely on matching one-sided derivatives.

Concept 1 of 6

Differentiable implies continuous (not the converse)

Intuition

Differentiability is the stronger condition. If a function has a derivative at a point, it must be continuous there — but a continuous function can still fail to be differentiable (a sharp corner). So 'differentiable \Rightarrow continuous' is a one-way street.

Definition

  • If ff is differentiable at x=cx=c, then ff is continuous at cc.
  • The converse is false: x|x| is continuous at 00 but not differentiable there.
  • Contrapositive (useful): if ff is discontinuous at cc, it cannot be differentiable at cc.

Worked example

A function has a jump discontinuity at x=2x=2. Can it be differentiable at x=2x=2?
  1. Differentiability requires continuity first (differentiable \Rightarrow continuous).
  2. The function is discontinuous at x=2x=2, so the necessary condition already fails.
Answer:No — a discontinuous point can never be a differentiable point.
Practice this conceptself-check · 4 quick reps

Try it yourself

True or false: every continuous function is differentiable.

Practice — Level 1 (4 reps)

Quick reps to lock in the method. Try each, then check.

  1. 1.
    Differentiable at cc \Rightarrow ?
  2. 2.
    Continuous at cc \Rightarrow differentiable at cc?
  3. 3.
    If ff is discontinuous at cc, is it differentiable there?
  4. 4.
    Canonical continuous-but-not-differentiable function?

The implication only runs one way

'Differentiable \Rightarrow continuous' is true; 'continuous \Rightarrow differentiable' is FALSE. NDA statement-questions plant the reversed (false) version to catch you.

Concept 2 of 6

The left-hand = right-hand derivative test

Intuition

At a join point of a piecewise function, compute the derivative from the left and from the right separately. The function is differentiable there only if both exist and are equal. This is the workhorse for every piecewise differentiability question.

Definition

ff is differentiable at x=cx=c iff the one-sided derivatives match:

  • LHD =limh0f(c+h)f(c)h= \lim_{h\to 0^-}\dfrac{f(c+h)-f(c)}{h}
  • RHD =limh0+f(c+h)f(c)h= \lim_{h\to 0^+}\dfrac{f(c+h)-f(c)}{h}

Differentiable at cc     \iff LHD == RHD (and both finite). In practice: differentiate each piece, then equate the two pieces' derivatives at the join (after first checking continuity there).

One-sided derivative test

f(c)=f(c+)    f differentiable at cf'(c^-) = f'(c^+) \iff f \text{ differentiable at } c
LHD = RHDsmooth join → differentiableLHD ≠ RHDcorner → not differentiable

Worked example

Is f(x)={x2,x12x1,x>1f(x)=\begin{cases} x^2, & x\le 1\\ 2x-1, & x>1\end{cases} differentiable at x=1x=1?
  1. Continuity at 11: left value 12=11^2=1, right value 2(1)1=12(1)-1=1 — continuous.
  2. LHD: derivative of x2x^2 is 2x2x, at x=1x=1 gives 22.
  3. RHD: derivative of 2x12x-1 is 22, at x=1x=1 gives 22.
  4. LHD == RHD =2=2.
Answer:Yes — differentiable at x=1x=1 (the pieces meet smoothly).
Practice this conceptself-check · 4 quick reps

Try it yourself

For f(x)={x2,x1x+1,x>1f(x)=\begin{cases} x^2, & x\le 1\\ x+1, & x>1\end{cases}, is ff differentiable at x=1x=1?

Practice — Level 1 (4 reps)

Quick reps to lock in the method. Try each, then check.

  1. 1.
    Condition for differentiability at a join?
  2. 2.
    Check before computing one-sided derivatives?
  3. 3.
    RHD of 2x12x-1 at x=1x=1?
  4. 4.
    If LHD =3=3, RHD =5=5, differentiable?

From the bank · past-year question

Example 2DifferentiationMODERATE
A function is defined in (0,)(0, \infty) by f(x)={1x2for 0<x1lnxfor 1<x2ln21+0.5xfor 2<x<f(x) = \begin{cases}1 - x^2 & \text{for } 0 < x \leq 1 \\ \ln x & \text{for } 1 < x \leq 2 \\ \ln 2 - 1 + 0.5x & \text{for } 2 < x < \infty\end{cases}. Which one of the following is correct in respect of the derivative of the function, i.e., f(x)f'(x)?

[Q68 · Sep · 2017]

Continuity first, then slopes

If the pieces don't even meet (discontinuous at the join), stop — it cannot be differentiable. Only when continuous do you compare LHD and RHD.

Concept 3 of 6

Modulus corners — and the x|x| trap

Intuition

A modulus makes a corner at its split point, where the slope jumps. x|x| has slope 1-1 on the left and +1+1 on the right, so it is not differentiable at 00. But not every modulus expression has a corner: xxx|x| smooths the kink out and is differentiable at 00. Always split at the modulus's zero and test.

Definition

Split g(x)|g(x)| at the points where g(x)=0g(x)=0:

  • x|x| is continuous but not differentiable at 00 (LHD =1=-1, RHD =+1=+1).
  • xa|x-a| has its corner at x=ax=a.
  • xxx|x| equals x2-x^2 for x<0x<0 and x2x^2 for x0x\ge 0; both have derivative 00 at the join, so it is differentiable at 00 (the trap).
slope −1slope +1corner: LHD ≠ RHDcontinuous, NOT differentiable at 0

Worked example

Is f(x)=x3f(x)=|x-3| differentiable at x=3x=3?
  1. For x>3x>3: f(x)=x3f(x)=x-3, slope +1+1. For x<3x<3: f(x)=3xf(x)=3-x, slope 1-1.
  2. LHD =1=-1, RHD =+1=+1 — not equal.
Answer:No — there is a corner at x=3x=3 (continuous, not differentiable).
Practice this conceptself-check · 4 quick reps

Try it yourself

Is f(x)=xxf(x)=x|x| differentiable at x=0x=0?

Practice — Level 1 (4 reps)

Quick reps to lock in the method. Try each, then check.

  1. 1.
    Is x|x| differentiable at 00?
  2. 2.
    Where is x5|x-5| non-differentiable?
  3. 3.
    Is xxx|x| differentiable at 00?
  4. 4.
    Is x|x| continuous at 00?

From the bank · past-year question

Example 3DifferentiationMODERATE
For the following three (03) items: Consider the function f(x)=xxf(x)=x|x|.
Consider the following statements: I. The function is increasing in the interval (,)(-\infty,\infty). II. The function is differentiable at x=0x=0. Which of the statements given above is/are correct?

[Q75 · Sep · 2025]

Not every |·| means non-differentiable

x|x| has a corner, but xxx|x|, x2xx^2|x|, and ex(smoothing)e^{|x|}\cdot(\text{smoothing}) can be differentiable at the split. Always rewrite piecewise and compare one-sided derivatives — don't assume the modulus kills differentiability.

Concept 4 of 6

Greatest-integer and step functions

Intuition

The greatest-integer function x\lfloor x\rfloor is a staircase — flat between integers, with a jump at each integer. On any flat step it is constant, so its derivative is 00; at each integer it is discontinuous, hence not differentiable.

Definition

  • Between consecutive integers, x\lfloor x\rfloor is constant \Rightarrow derivative =0=0 there.
  • At every integer it jumps (discontinuous) \Rightarrow not differentiable at integers.
  • A function built from x\lfloor x\rfloor inherits these jumps unless they cancel; check each integer in the domain.

Worked example

What is ddxx\dfrac{d}{dx}\lfloor x\rfloor for 2<x<32<x<3?
  1. On (2,3)(2,3), x=2\lfloor x\rfloor = 2, a constant.
  2. The derivative of a constant is 00.
Answer:00 (and the derivative does not exist at the integers 2,32, 3).
Practice this conceptself-check · 4 quick reps

Try it yourself

Is y=x+1y=\lfloor x+1\rfloor differentiable on the open interval (4,3)(-4,-3)?

Practice — Level 1 (4 reps)

Quick reps to lock in the method. Try each, then check.

  1. 1.
    ddxx\frac{d}{dx}\lfloor x\rfloor on (1,2)(1,2)?
  2. 2.
    Is x\lfloor x\rfloor differentiable at x=3x=3?
  3. 3.
    Is x\lfloor x\rfloor continuous on (0,1)(0,1)?
  4. 4.
    Derivative of any constant function?

From the bank · past-year question

Example 4DifferentiationEASY
Let y=[x+1]y=[x+1], 4<x<3-4<x<-3 where [.][.] is the greatest integer function. What is the derivative of yy with respect to xx at x=3.5x=-3.5?

[Q71 · Apr · 2022]

Concept 5 of 6

Finding parameters so f is differentiable

Intuition

When a piecewise function carries unknown constants and is declared differentiable at the join, you get two equations: continuity (the values match) and differentiability (the one-sided derivatives match). Solve them together for the unknowns.

Definition

For a piecewise ff differentiable at x=cx=c: 1. Continuity: set the two pieces' values equal at cc. 2. Differentiability: set the two pieces' derivatives equal at cc. Two equations in the unknown constants — solve simultaneously.

Worked example

Find a,ba, b so that f(x)={x2,x1ax+b,x>1f(x)=\begin{cases} x^2, & x\le 1\\ ax+b, & x>1\end{cases} is differentiable at x=1x=1.
  1. Continuity at 11: 1=a+b1 = a+b.
  2. Differentiability at 11: LHD =2x1=2=2x\big|_{1}=2, RHD =a=a, so a=2a=2.
  3. Then b=1a=1b = 1-a = -1.
Answer:a=2, b=1a=2,\ b=-1.
Practice this conceptself-check · 4 quick reps

Try it yourself

If f(x)={ax+1,x0sinx+b,x>0f(x)=\begin{cases} ax+1, & x\le 0\\ \sin x + b, & x>0\end{cases} is differentiable at 00, find a,ba, b.

Practice — Level 1 (4 reps)

Quick reps to lock in the method. Try each, then check.

  1. 1.
    How many equations from 'differentiable at a join'?
  2. 2.
    Continuity equation gives?
  3. 3.
    Differentiability equation gives?
  4. 4.
    For x2x^2 vs ax+bax+b at x=1x=1: the slope equation?

From the bank · past-year question

Example 5DifferentiationHARD
Let f(x)=axx+1+b, x<1f(x)=\frac{ax}{x+1}+b,\ x<1 and x1, 1x2\sqrt{x-1},\ 1\leq x\leq2.
If f(x)f(x) is differentiable at x=1x=1, then what is the value of (a+b)(a+b)?

[Q63 · Sep · 2023]

Concept 6 of 6

Derivative at an awkward point via the limit definition

Intuition

When a point is special — a modulus, a lnx\ln|x|, or a value patched in by hand (f(0)=0f(0)=0) — the rule-based derivative may not apply directly. Fall back to the definition: f(c)=limh0f(c+h)f(c)hf'(c)=\lim_{h\to 0}\frac{f(c+h)-f(c)}{h} and evaluate the limit.

Definition

At a point where the usual rules are unsafe, compute f(c)=limh0f(c+h)f(c)hf'(c)=\lim_{h\to 0}\dfrac{f(c+h)-f(c)}{h} directly. If the limit exists (and is the same from both sides), that value is the derivative; if it doesn't, ff is not differentiable at cc.

Worked example

For f(x)=x2lnxf(x)=x^2\ln|x| with f(0)=0f(0)=0, find f(0)f'(0).
  1. Use the definition: f(0)=limh0h2lnh0h=limh0hlnhf'(0)=\lim_{h\to 0}\dfrac{h^2\ln|h| - 0}{h}=\lim_{h\to 0} h\ln|h|.
  2. As h0h\to 0, hlnh0h\ln|h|\to 0 (the linear factor beats the log).
Answer:f(0)=0f'(0)=0.
Practice this conceptself-check · 4 quick reps

Try it yourself

For f(x)=xxf(x)=x|x|, find f(0)f'(0) from the definition.

Practice — Level 1 (4 reps)

Quick reps to lock in the method. Try each, then check.

  1. 1.
    Definition of f(c)f'(c)?
  2. 2.
    limh0hlnh\lim_{h\to 0} h\ln|h|?
  3. 3.
    When to fall back to the definition?
  4. 4.
    If the two-sided limit fails, then?

From the bank · past-year question

Example 6DifferentiationMODERATE
For f(x)=x2lnxf(x)=x^2\ln|x| (x0x\ne0), f(0)=0f(0)=0, what is f(0)f'(0)?

[Q74 · Apr · 2018]

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (1)

  • The left-hand = right-hand derivative test

    One-sided derivative test

    f(c)=f(c+)    f differentiable at cf'(c^-) = f'(c^+) \iff f \text{ differentiable at } c

Watch out for (3)

Mastery check — 5 interleaved questions

Try each one before clicking. Questions are interleaved across the concepts above, not grouped — interleaving sharpens transfer.

Example 1DifferentiationMODERATE
Suppose the function f(x)=xnf(x)=x^n, n0n\neq0 is differentiable for all xx. Then nn can be any element of the interval

[Q99 · Apr · 2017]

Example 2DifferentiationEASY
Consider the following for the items that follow: Let f(x)=lnx,x1f(x)=|\ln x|,\, x\neq1.
What is the derivative of f(x)f(x) at x=0.5x=0.5?

[Q86 · Apr · 2023]

Example 3DifferentiationMODERATE
What is d1sin2xdx\frac{d\sqrt{1-\sin 2x}}{dx} equal to, where π4<x<π2\frac{\pi}{4}<x<\frac{\pi}{2}?

[Q96 · Sep · 2018]

Example 4DifferentiationHARD
The set of all points, where the function f(x)=1ex2f(x) = \sqrt{1 - e^{-x^2}} is differentiable, is

[Q83 · Sep · 2017]

Example 5DifferentiationEASY
For the following two (02) items: Let the function f(x)=x3+x4f(x)=|x-3|+|x-4| be defined on the interval [0,5][0,5].
What is dydx\dfrac{dy}{dx} at x=3.5x=3.5 equal to?

[Q87 · Sep · 2025]

Drill every past-year question on this subtopic

16 questions from the bank — paginated, with cart and Word-export support.

Related notes