The math optional, made finite. Daily Practice

Differentiability

At a Glance

Why This Chapter Matters

Differentiability questions span two distinct archetypes — testing differentiability at a specific point using one-sided derivatives or first principles, and deriving a derivative from a functional equation. Both types appear in Section A or early Section B and carry 10–15 marks. The methods are clean and repeatable: master the first-principles difference-quotient argument and the squeeze theorem trick for oscillating functions, and you can handle every past variant. The functional-equation archetype also tests ODE fluency, giving it double value.

Minimum Theory

Differentiability. ff is differentiable at x=ax=a if f(a)=limh0f(a+h)f(a)h\displaystyle f'(a)=\lim_{h\to0}\frac{f(a+h)-f(a)}{h} exists. Equivalently, the left-hand derivative f(a)=limh0f(a+h)f(a)hf'_-(a)=\lim_{h\to0^-}\frac{f(a+h)-f(a)}{h} and right-hand derivative f+(a)=limh0+f(a+h)f(a)hf'_+(a)=\lim_{h\to0^+}\frac{f(a+h)-f(a)}{h} both exist and are equal. Differentiability implies continuity; the converse is false.

Key techniques. (i) First-principles at a corner/patch point: write g(0)=limh0g(h)/hg'(0)=\lim_{h\to0}g(h)/h and bound using hsin(1/h)h|h\sin(1/h)|\le|h| (squeeze theorem). (ii) Piecewise absolute-value functions: remove |\cdot| separately for x>ax>a and x<ax<a (where the sign of the expression is determined), differentiate each branch, and compare the one-sided derivatives. (iii) Functional equations: write f(x)f'(x) using the definition, apply the functional equation to factor out f(x)f(x), and recognise the remaining limit as f(0)f'(0).

Differentiable extension. To extend f:(0,)Rf:(0,\infty)\to\mathbb R to a differentiable g:RRg:\mathbb R\to\mathbb R, set g(x)=f(x)g(x)=f(x) for x>0x>0 and choose g(0)g(0) and gx<0g|_{x<0} to make both continuity and the first-principles derivative work at 00. For x2sin(1/x)x^2\sin(1/x) the choice g(0)=0g(0)=0 works; the formula g(x)=2xsin(1/x)cos(1/x)g'(x)=2x\sin(1/x)-\cos(1/x) is valid for x0x\ne 0 but oscillates at 00g(0)g'(0) must be computed separately from the definition.

Question Archetypes

ArchetypeYou are seeing this when…
differentiability-testTest differentiability at a specific point using first-principles or one-sided derivatives
functional-equation-derivativeDerive f(x)f'(x) from a multiplicative or additive functional equation f(x+y)=f(x+y)=\ldots

differentiability-test (2 question(s); 2016, 2019)

Recognition Cues

Solution Template

  1. Identify the special point. Determine where differentiability might fail (patch point, zero of the inner function, etc.).
  2. Handle xx\ne special point. Show differentiability away from the special point using the product/chain/sum rules.
  3. One-sided derivatives at the special point. Compute ff'_- and f+f'_+ separately, either via the relevant branch formula or directly from the limit definition.
  4. First-principles at the special point (if formulas diverge). Write limh0f(a+h)f(a)h\lim_{h\to 0}\frac{f(a+h)-f(a)}{h} explicitly; apply the squeeze theorem or algebra.
  5. Compare and conclude. If f=f+f'_-=f'_+, ff is differentiable (state the value); if not, ff is not differentiable (state the one-sided values).

Worked Example

2016 Paper 2, 2016-P2-Q1b (10 marks)

For f(x)=x2sin1xf(x)=x^2\sin\dfrac{1}{x}, x>0x>0, show that there is a differentiable function g:RRg:\mathbb R\to\mathbb R extending ff.

Step 1 — Define the extension. Set

g(x)={x2sin1x,x0,0,x=0.g(x)=\begin{cases}x^2\sin\dfrac{1}{x}, & x\ne 0,\\[2mm] 0, & x=0.\end{cases}

On (0,)(0,\infty), g=fg=f. The choice g(0)=0g(0)=0 is forced by continuity: g(x)x20|g(x)|\le x^2\to 0.

Step 2 — Differentiability for x0x\ne 0. By the product and chain rules,

g(x)=2xsin1xcos1x,x0.g'(x)=2x\sin\frac{1}{x}-\cos\frac{1}{x},\qquad x\ne 0.

Step 3 — Differentiability at x=0x=0 (first principles). Since the formula for g(x)g'(x) oscillates as x0x\to 0, we must use the definition:

g(0)=limh0g(h)g(0)h=limh0h2sin(1/h)h=limh0hsin1h.g'(0)=\lim_{h\to0}\frac{g(h)-g(0)}{h}=\lim_{h\to0}\frac{h^2\sin(1/h)}{h}=\lim_{h\to0}h\sin\frac{1}{h}.

Since hsin(1/h)h0\bigl|h\sin(1/h)\bigr|\le|h|\to 0, the squeeze theorem gives g(0)=0g'(0)=0.

Conclusion. gg is differentiable at every x0x\ne 0 (Step 2) and at x=0x=0 (Step 3).

  g(x)=x2sin(1/x) (x0), g(0)=0, is differentiable on R, g(0)=0.  \boxed{\;g(x)=x^2\sin(1/x)\ (x\ne0),\ g(0)=0,\ \text{is differentiable on }\mathbb R,\ g'(0)=0.\;}

Remark. gg' is not continuous at 00 (the term cos(1/x)-\cos(1/x) oscillates), so gC1g\notin C^1. Differentiability does not require gC1g\in C^1.


2019 Paper 1, 2019-P1-Q2a (15 marks)

Is f(x)=cosx+sinxf(x)=|\cos x|+|\sin x| differentiable at x=π/2x=\pi/2? Prove your answer.

Step 1 — Resolve |\cdot| near π/2\pi/2. Near π/2\pi/2, sinx>0\sin x>0 so sinx=sinx|\sin x|=\sin x. But cosx\cos x changes sign at π/2\pi/2:

f(x)={cosx+sinx,x<π2,cosx+sinx,x>π2.f(x)=\begin{cases}\cos x+\sin x, & x<\tfrac{\pi}{2},\\ -\cos x+\sin x, & x>\tfrac{\pi}{2}.\end{cases}

Note f(π/2)=0+1=1f(\pi/2)=0+1=1.

Step 2 — Left-hand derivative.

f ⁣(π2)=limxπ2(sinx+cosx)=1+0=1.f'_-\!\left(\tfrac{\pi}{2}\right)=\lim_{x\to\frac{\pi}{2}^-}(-\sin x+\cos x)=-1+0=-1.

Step 3 — Right-hand derivative.

f+ ⁣(π2)=limxπ2+(sinx+cosx)=1+0=1.f'_+\!\left(\tfrac{\pi}{2}\right)=\lim_{x\to\frac{\pi}{2}^+}(\sin x+\cos x)=1+0=1.

(Via difference quotient with h0+h\to 0^+: sinh+cosh1h1\dfrac{|\sin h|+\cos h-1}{h}\to 1; with h0h\to 0^-: 1\to -1.)

Step 4 — Conclusion. f(π/2)=11=f+(π/2)f'_-(\pi/2)=-1\ne 1=f'_+(\pi/2), so ff is not differentiable at x=π/2x=\pi/2.

  f is NOT differentiable at x=π2;f=1,f+=+1.  \boxed{\;f\text{ is NOT differentiable at }x=\tfrac{\pi}{2};\quad f'_-=-1,\quad f'_+=+1.\;}

Common Traps


functional-equation-derivative (1 question(s); 2025)

Recognition Cues

Solution Template

  1. Find f(0)f(0). Set x=y=0x=y=0 in the functional equation to determine f(0)f(0).
  2. Derive f(x)f'(x) from first principles. Write f(x)=limh0f(x+h)f(x)hf'(x)=\lim_{h\to0}\frac{f(x+h)-f(x)}{h}; use the functional equation to factor out f(x)f(x).
  3. Identify the remaining limit as f(0)f'(0). The factor limh0f(h)f(0)h=f(0)\lim_{h\to0}\frac{f(h)-f(0)}{h}=f'(0).
  4. State the ODE f(x)=f(0)f(x)f'(x)=f'(0)\cdot f(x).
  5. Solve the ODE by separation: ff=c\frac{f'}{f}=c, so f(x)=Aecxf(x)=Ae^{cx}; apply f(0)=1f(0)=1 to get A=1A=1.

Worked Example

2025 Paper 1, 2025-P1-Q1d (10 marks)

Given f(x+y)=f(x)f(y)f(x+y)=f(x)f(y) for all real x,yx,y; f(x)0f(x)\ne 0; f(0)=2f'(0)=2. Show f(x)=2f(x)f'(x)=2f(x) for all xx, and find f(x)f(x).

Step 1 — Find f(0)f(0). Set x=y=0x=y=0: f(0)=f(0)2f(0)=f(0)^2, so f(0)(f(0)1)=0f(0)(f(0)-1)=0. Since f0f\ne 0 everywhere, f(0)0f(0)\ne 0, hence

f(0)=1.f(0)=1.

Step 2 — Derive f(x)f'(x) from first principles.

f(x)=limh0f(x+h)f(x)h=limh0f(x)f(h)f(x)h=f(x)limh0f(h)1h.f'(x)=\lim_{h\to0}\frac{f(x+h)-f(x)}{h}=\lim_{h\to0}\frac{f(x)f(h)-f(x)}{h}=f(x)\lim_{h\to0}\frac{f(h)-1}{h}.

Step 3 — Identify the remaining limit.

limh0f(h)1h=limh0f(0+h)f(0)h=f(0)=2.\lim_{h\to0}\frac{f(h)-1}{h}=\lim_{h\to0}\frac{f(0+h)-f(0)}{h}=f'(0)=2.

Therefore

f(x)=2f(x)for all x.f'(x)=2f(x)\qquad\text{for all }x.

Step 4 — Solve the ODE. Separate variables: f(x)f(x)=2\dfrac{f'(x)}{f(x)}=2, so ddxlnf(x)=2\dfrac{d}{dx}\ln|f(x)|=2, giving f(x)=Ae2xf(x)=Ae^{2x}. Apply f(0)=1f(0)=1: A=1A=1.

  f(x)=2f(x);f(x)=e2x.  \boxed{\;f'(x)=2f(x);\qquad f(x)=e^{2x}.\;}

Common Traps


Marks-Aware Writing

10-mark questions (2016, 2025): For the extension question — define gg explicitly, handle x0x\ne 0 by rules (one line), then write out the first-principles computation at 00 with the squeeze theorem step; box the conclusion. For the functional-equation question — the three steps (find f(0)f(0), derive f(x)=2f(x)f'(x)=2f(x) with the limit factored explicitly, solve the ODE) cover all marks. Omitting f(0)=1f(0)=1 or skipping the first-principles limit loses 3–4 marks.

15-mark question (2019): Removing |\cdot| on both sides (Step 1) and computing ff'_-, f+f'_+ via the branch formulas each carry 4 marks; the conclusion (not differentiable, with both values stated) carries 3 marks. A student who writes only the branch formulas without checking the two-sided derivatives earns at most 8 marks.

Practice Set

We've mapped all 13 years of this exam. Get new chapters, tools, and solutions as we release them — free.