Skip to main content

Differentiability and continuity: the derivative at a point as a two-sided limit, why differentiable implies continuous but not the reverse, and corners, cusps and vertical tangents, with piecewise functions (new explicit content in the 2024 Mathematics Advanced syllabus)

Syllabus dot point

“Define differentiability at a point, recognise that a differentiable function is continuous, and identify points where a continuous function is not differentiable (corners, cusps and vertical tangents)”

HSCMaths AdvancedYear 12: Calculus12 min read

Quick answer

A function is differentiable at a point when the limit lim⁡h→0f(a+h)−f(a)h\lim_{h \to 0} \frac{f(a+h) - f(a)}{h} exists, so the left and right gradients agree. Differentiable implies continuous, but a continuous function can fail to be differentiable at a corner, cusp or vertical tangent. To test a piecewise function at a join, check the values match and then the one-sided gradients match. New explicit content in the 2024 Mathematics Advanced syllabus.

Jump to a section
  1. What this dot point is asking
  2. The answer
  3. Exam-style questions
  4. Practice questions

What this dot point is asking

The Mathematics Advanced 11-12 Syllabus (2024) puts a short, explicit piece on differentiability at the start of Year 12 Applications of calculus. In the 2017 course, students were told to differentiate and find tangents, but the idea of when a derivative fails to exist was left informal. NESA now expects you to define differentiability at a point, to know that differentiable functions are continuous, and to recognise continuous functions that are not differentiable.

The skill examined is practical: given a function (usually a modulus or a piecewise function), decide whether it has a derivative at a particular point and justify the answer using one-sided gradients.

Note

A derivative at a point is the gradient of the curve there. For a smooth curve you can zoom in until it looks like a straight line, and that line's gradient is the derivative. At a sharp corner, zooming in never straightens the picture: the two arms keep meeting at an angle, so there is no single gradient. At a vertical tangent the gradient is "infinite", which is not a number. Those are the places where the derivative fails to exist.

The answer

Key fact

ff is differentiable at x=ax = a when

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

exists as a finite number, which means the limits from the left and right agree.

Differentiable implies continuous. The converse is false: a function can be continuous at a point but not differentiable there.

Why differentiable implies continuous

If the limit above exists, then f(a+h)−f(a)=h⋅f(a+h)−f(a)hf(a + h) - f(a) = h \cdot \frac{f(a+h) - f(a)}{h} tends to 0×f′(a)=00 \times f^\prime(a) = 0 as h→0h \to 0. So f(a+h)→f(a)f(a + h) \to f(a), which is the definition of continuity. Consequently a function with a break, a hole or a jump at x=ax = a cannot have a derivative there.

The three ways continuity can fail to give a derivative

Feature What the graph looks like Test Example
Corner Two arms meet at an angle One-sided gradients are finite but unequal y=∣x∣y = \lvert x \rvert at 00
Cusp Both arms become vertical, in opposite directions One-sided gradients tend to +∞+\infty and −∞-\infty y=x2/3y = x^{2/3} at 00
Vertical tangent The curve passes through the point steeply, with a vertical tangent The gradient tends to +∞+\infty (or −∞-\infty) on both sides y=x1/3y = x^{1/3} at 00

A point of discontinuity is a fourth, simpler reason: no derivative exists because the function is not continuous there.

Testing a piecewise function at a join

For f(x)={p(x),x≤c,q(x),x>c,f(x) = \begin{cases} p(x), & x \leq c, \\ q(x), & x > c, \end{cases} check two things in order.

  1. Continuity at cc: p(c)=q(c)p(c) = q(c).
  2. Equal gradients at cc: p′(c)=q′(c)p^\prime(c) = q^\prime(c).

If both hold, ff is differentiable at cc. If the first fails, stop: it is neither continuous nor differentiable. If only the second fails, it is continuous with a corner. Away from the joins, a piece is differentiable wherever its own formula is.

Modulus functions

∣g(x)∣|g(x)| has a corner wherever g(x)g(x) crosses zero with a non-zero gradient, because the graph is reflected there. For ∣x2−4∣|x^2 - 4| that happens at x=±2x = \pm 2. If gg touches zero with zero gradient (such as ∣x2∣|x^2|, which is just x2x^2) there is no corner.

Worked examples

Find where a modulus function is not differentiable

Find where f(x)=∣3x−6∣f(x) = |3x - 6| is not differentiable and state the gradient on each side.

Locate the zero

3x−6=03x - 6 = 0 at x=2x = 2, and g(x)=3x−6g(x) = 3x - 6 crosses zero with gradient 3≠03 \neq 0.

Gradients

For x>2x > 2, f(x)=3x−6f(x) = 3x - 6 with gradient 33. For x<2x < 2, f(x)=−(3x−6)f(x) = -(3x - 6) with gradient −3-3. The gradients differ, so ff is not differentiable at x=2x = 2 (a corner at (2,0)(2, 0)) and is differentiable everywhere else.

Use the definition at a corner

Use f(h)−f(0)h\frac{f(h) - f(0)}{h} to show f(x)=∣x∣f(x) = |x| has no derivative at 00.

One-sided limits

For h>0h > 0, ∣h∣h=1\frac{|h|}{h} = 1. For h<0h < 0, ∣h∣h=−1\frac{|h|}{h} = -1. The limits from the right and left are 11 and −1-1.

Conclude

Because the one-sided limits are different, the limit does not exist, so f′(0)f^\prime(0) does not exist.

Marker's note: quote both one-sided limits; one of them alone proves nothing.

Common traps
Stopping at continuity
A function can be continuous and still not differentiable. For a join, check gradients as well as values.
Checking only one gradient
You need both the left and right gradients to disagree. Evaluating the derivative formula on one side tells you nothing.
Using the wrong formula on each side
At a join the left gradient uses the left piece's derivative, and the right gradient uses the right piece's.
Claiming a modulus always has a corner
∣g(x)∣|g(x)| has a corner only where gg crosses zero with a non-zero gradient.
Confusing "not differentiable" with "gradient is zero"
A horizontal tangent is a stationary point and is perfectly differentiable.
Exam technique

For a piecewise function, write the two conditions as a short checklist: "values match" then "gradients match", and tick them off with numbers. For a "show that it is not differentiable" question, always quote the two one-sided gradients, since that comparison is the proof. When you sketch a modulus graph, mark the corners clearly.

Exam-style questions

Questions in the style of NESA exam questions on this dot point, each with a worked answer. They are written by ExamExplained unless tagged "Past paper"; the year shows the paper a question is modelled on.

HSC-style3 marks
The graph of y=f(x)y = f(x) is continuous for all xx and consists of the line y=−x+1y = -x + 1 for x<0x < 0 and the curve y=exy = e^{x} for x≥0x \geq 0. Is ff differentiable at x=0x = 0? Justify your answer.
Show worked answer →

The pieces meet: −0+1=1-0 + 1 = 1 and e0=1e^0 = 1, so f(0)=1f(0) = 1 and ff is continuous. The gradient from the left is −1-1. The gradient from the right is ddxex=ex\frac{d}{dx} e^x = e^x, which is 11 at x=0x = 0. Since −1≠1-1 \neq 1, ff is not differentiable at x=0x = 0: the graph has a corner at (0,1)(0, 1).

Markers give one mark for verifying continuity, one for each one-sided gradient evaluated at x=0x = 0 and one for the conclusion.

HSC-style3 marks
A function is defined by f(x)=x2+1f(x) = x^2 + 1 for x<2x < 2 and f(x)=4x−3f(x) = 4x - 3 for x≥2x \geq 2. Is ff continuous at x=2x = 2? Is it differentiable at x=2x = 2?
Show worked answer →

Left piece at x=2x = 2: 4+1=54 + 1 = 5. Right piece: 4(2)−3=54(2) - 3 = 5. The values match, so ff is continuous at x=2x = 2. The left gradient is 2x=42x = 4 and the right gradient is 44. Both equal 44, so ff is differentiable at x=2x = 2 with f′(2)=4f^\prime(2) = 4.

Markers award one mark for each of the two conditions being checked and one for the correct conclusion.

Practice questions

Original practice questions graded from foundation to exam level, each with a full worked solution. Try them before revealing the solution.

foundation2 marks
Explain why f(x)=∣x−2∣f(x) = |x - 2| is not differentiable at x=2x = 2.
Show worked solution →

Find the gradient on each side of x=2x = 2. For x>2x > 2, f(x)=x−2f(x) = x - 2 and the gradient is +1+1. For x<2x < 2, f(x)=−(x−2)f(x) = -(x - 2) and the gradient is −1-1.

The one-sided gradients disagree (−1≠+1-1 \neq +1), so the limit of f(2+h)−f(2)h\frac{f(2+h) - f(2)}{h} as h→0h \to 0 does not exist. The graph has a sharp corner at (2,0)(2, 0) and no single tangent there.

Marker's note: one mark for the two one-sided gradients, one for the conclusion. Saying "there is a corner" without the gradients is incomplete.

foundation2 marks
The function ff is defined by f(x)=x2f(x) = x^2 for x≤1x \leq 1 and f(x)=2x−1f(x) = 2x - 1 for x>1x > 1. Show that ff is differentiable at x=1x = 1.
Show worked solution →

Continuity first. x2x^2 at x=1x = 1 gives 11, and 2x−12x - 1 at x=1x = 1 gives 11. The two pieces meet, so ff is continuous at x=1x = 1.

Compare gradients. For x<1x < 1, f′(x)=2xf^\prime(x) = 2x, which is 22 at x=1x = 1. For x>1x > 1, f′(x)=2f^\prime(x) = 2. Both one-sided gradients equal 22, so ff is differentiable at x=1x = 1 with f′(1)=2f^\prime(1) = 2.

Marker's note: one mark for checking the pieces join, one for equal gradients. A straight line y=2x−1y = 2x - 1 is the tangent to the parabola at (1,1)(1, 1), which is why the join is smooth.

core3 marks
The function ff is defined by f(x)=x2f(x) = x^2 for x≤1x \leq 1 and f(x)=3x−2f(x) = 3x - 2 for x>1x > 1. Show that ff is continuous but not differentiable at x=1x = 1.
Show worked solution →

Continuous. f(1)=1f(1) = 1 and 3(1)−2=13(1) - 2 = 1, so the pieces meet at (1,1)(1, 1).

Not differentiable. The gradient from the left is 2x=22x = 2 at x=1x = 1; the gradient from the right is 33. Since 2≠32 \neq 3, there is no single derivative at x=1x = 1: the graph has a corner.

Marker's note: one mark for continuity, one for each one-sided gradient. Do not conclude from continuity alone.

core3 marks
Find the constants aa and bb so that f(x)=x2f(x) = x^2 for x≤1x \leq 1 and f(x)=ax+bf(x) = ax + b for x>1x > 1 is differentiable at x=1x = 1.
Show worked solution →

Differentiability needs two conditions at x=1x = 1.

  1. Continuity: the values match, so 1=a+b1 = a + b.
  2. Equal gradients: the left gradient is 2x=22x = 2 and the right gradient is aa, so a=2a = 2.

Substituting, b=1−2=−1b = 1 - 2 = -1. So a=2a = 2 and b=−1b = -1, and the right-hand piece is 2x−12x - 1.

Marker's note: one mark for each condition and one for solving. Using only the gradient condition and forgetting continuity gives the wrong bb.

exam4 marks
Let f(x)=∣x2−4∣f(x) = |x^2 - 4|. (a) Write ff as a piecewise function. (b) Find the gradient of ff just to the left and just to the right of x=2x = 2. (c) State all points where ff is not differentiable and the nature of ff at x=0x = 0.
Show worked solution →

(a) Piecewise form. x2−4≥0x^2 - 4 \geq 0 when ∣x∣≥2|x| \geq 2, so

f(x)={x2−4,x≤−2 or x≥2,4−x2,−2<x<2.f(x) = \begin{cases} x^2 - 4, & x \leq -2 \text{ or } x \geq 2, \\ 4 - x^2, & -2 < x < 2. \end{cases}

(b) Gradients at x=2x = 2. Just to the left, f(x)=4−x2f(x) = 4 - x^2 with gradient −2x=−4-2x = -4. Just to the right, f(x)=x2−4f(x) = x^2 - 4 with gradient 2x=42x = 4.

(c) Points of non-differentiability. At x=2x = 2 the one-sided gradients are −4-4 and 44, which differ. At x=−2x = -2: just to the left f(x)=x2−4f(x) = x^2 - 4 with gradient 2x=−42x = -4, and just to the right f(x)=4−x2f(x) = 4 - x^2 with gradient −2x=4-2x = 4. These also differ, so ff has corners at x=−2x = -2 and x=2x = 2 and is not differentiable at either.

At x=0x = 0, f′(x)=−2x=0f^\prime(x) = -2x = 0 and the value is f(0)=4f(0) = 4. Values nearby, such as f(±1)=3f(\pm 1) = 3, are smaller, so (0,4)(0, 4) is a local maximum turning point.

Marker's note: one mark for the piecewise form, one for the one-sided gradients, one for naming both corners, one for the turning point.

exam4 marks
(a) Show that f(x)=x∣x∣f(x) = x|x| is differentiable at x=0x = 0 and find f′(0)f^\prime(0). (b) Explain why g(x)=x1/3g(x) = x^{1/3} is continuous at x=0x = 0 but not differentiable there.
Show worked solution →

(a) Use the definition. f(0)=0f(0) = 0, so

f′(0)=lim⁡h→0h∣h∣−0h=lim⁡h→0∣h∣=0.f^\prime(0) = \lim_{h \to 0} \frac{h|h| - 0}{h} = \lim_{h \to 0} |h| = 0.

Both one-sided limits equal 00, so ff is differentiable at 00 with f′(0)=0f^\prime(0) = 0. (Away from 00, f′(x)=2∣x∣f^\prime(x) = 2|x|, which tends to 00.)

(b) Continuity. x1/3x^{1/3} is defined for all real xx and g(h)→0=g(0)g(h) \to 0 = g(0) as h→0h \to 0, so it is continuous at 00.

Non-differentiability. g(h)−g(0)h=h1/3h=h−2/3=1h2/3\dfrac{g(h) - g(0)}{h} = \dfrac{h^{1/3}}{h} = h^{-2/3} = \dfrac{1}{h^{2/3}}, which grows without bound as h→0h \to 0 (from either side). The limit does not exist as a finite number; the tangent at the origin is vertical.

Marker's note: one mark for each limit setup and one for each conclusion. A vertical tangent means the gradient is undefined, so the function is not differentiable.

Practise this

Sources & how we know this

ExamExplained