Limits, continuity and differentiability from a graph
What this lesson covers
- A function is continuous where its graph has no break, and differentiable where it also has no sharp corner.
- Reading these from a piecewise graph is Achieved-level work that is often left blank.
Three questions about a point
- Does the limit exist?
- Is the function continuous there?
- Is it differentiable there?
A graph in three pieces
- A curve, maximum at (−1, 3).
- Open dot at (1, −1), closed dot at (1, 2).
- Up to (3, 4), then down to (5, 0).

Open and closed dots
- Open: not on the graph.
- Closed: on the graph.
- f(1) = 2, not −1.
| Open dot | not on the graph |
| Closed dot | the value |
| (1, −1) | open, not included |
| f(1) | 2, the closed dot |
The limit as x tends to 1
- From the left: heading to −1.
- From the right: heading to 2.
- They disagree: no limit at x = 1.

Try it: approach from both sides
Writing the limits
- Left −1, right 2: no limit.
- Where it heads, not f(1).
- from the left: f(x) → −1as x → 1
- from the right: f(x) → 2as x → 1
- −1 ≠ 2the sides disagree
- lim(x→1) f(x) does not exist
- x → 3, both sides: f(x) → 4
- lim(x→3) f(x) = 4
Continuous: no break
- Draw through it without lifting the pen.
- The limit exists and equals the value.
- x = 1: a jump, not continuous.
- x = 3: continuous, with a corner.

Graphing calculator
Differentiable: one clear gradient
- Continuous first.
- Then one gradient.
- A corner has two.
- x = 1: a jump, not continuous
- not differentiable at x = 1
- x = 3: lim f(x) = 4 = f(3)continuous
- left: (4 − 2)/(3 − 1) = 1rise over run
- right: (0 − 4)/(5 − 3) = −2rise over run
- 1 ≠ −2: a cornergradients differ
- not differentiable at x = 3
Try it: a corner
Easy marks to lose
- The open dot is not the value.
- A jump has no limit.
- Not differentiable: the jump too.
| Misread | Right | |
|---|---|---|
| f(1) | −1 | 2, closed dot |
| Limit at 1 | 2 | does not exist |
| Differentiable at 3 | yes, no gap | no, a corner |
| Not differentiable | x = 3 only | x = 1 and x = 3 |
The sign of the gradient
- Rising: positive. Falling: negative.
- Zero at the maximum, x = −1.
- The curve is concave down.
| f'(x) | |
|---|---|
| −3 < x < −1 | positive |
| x = −1 | zero, maximum |
| −1 < x < 1 | negative |
| 1 < x < 3 | positive, 1 |
| 3 < x < 5 | negative, −2 |
Try it: read the graph
Unknown constants
- Pieces meet at x = 1.
- Gradients match at x = 1.
- f(x) = ax² + b (x < 1), 4x (x ≥ 1)
- a(1)² + b = 4(1)pieces meet
- a + b = 4
- f'(x): 2ax (x < 1), 4 (x > 1)
- 2a(1) = 4, so a = 2gradients match
- b = 4 − 2 = 2substitute back
- a = 2, b = 2
- 2(1)² + 2 = 4 = 4(1)
Where the marks are
- Achieved: read them from a graph.
- Merit: explain each, with the reason.
- Excellence: combined with other calculus.
What to take away
- Read the dots, then check both sides, then look for jumps and corners.
| Open dot | not on the graph |
| Closed dot | the value |
| Limit | both sides agree |
| Continuous | limit equals value |
| Differentiable | no break, corner, cusp |
| Gradient sign | rising or falling |
Common mistakes
- There is a dot at (1, −1), so f(1) = −1.That dot is open, so it is not on the graph; the closed dot gives f(1) = 2.
- f(1) = 2, so the limit as x tends to 1 is 2.The limit is where f heads from each side: −1 from the left and 2 from the right disagree, so the limit does not exist.
- The graph joins up at x = 3, so it is differentiable there.It is continuous, but the gradient is 1 on the left and −2 on the right: a corner, so not differentiable.
- The pieces meet at x = 1, a + b = 4, so f is differentiable there.Meeting gives continuity only; the gradients must match too (2a = 4), which gives a = 2 and b = 2.
Your turn: eight questions
- Question 3: the absolute value of x − 3.
- Give a reason with every answer.
| Function | Find | |
|---|---|---|
| 1 | x+2 (x<1), 5−x (x≥1) | continuous at 1? |
| 2 | x² (x<2), 4x−4 (x≥2) | differentiable at 2? |
| 3 | |x − 3| | not differentiable at |
| 4 | kx+1 (x<2), x² (x≥2) | k for continuity |
| 5 | 1/(x − 2) | continuous at 2? |
| 6 | x² (x ≠ 2), 7 (x = 2) | limit, f(2), continuous? |
| 7 | x+1 (x<3), 2x−2 (x≥3) | continuous, differentiable at 3? |
| 8 | ax² (x<1), 4x + b (x≥1) | a and b, differentiable at 1 |
Show answer
1. Left limit 3, right limit 4: a jump, so not continuous at x = 1. 2. Both pieces give 4 and both gradients are 4: differentiable at x = 2. 3. x = 3: a corner, gradient −1 on the left and 1 on the right. 4. 2k + 1 = 4, so k = 3/2. 5. No: f(2) is undefined, a vertical asymptote. Putting x = 2 divides by zero, and the graph shoots off to ±∞. 6. Limit 4, f(2) = 7: not continuous. Both sides head to 2² = 4, but the value is 7, so the limit does not equal the value. 7. Continuous, not differentiable: gradients 1 and 2. Both pieces give 4 at x = 3, but the gradients differ, so a corner. 8. a = 2, b = −2. Gradients match: 2a = 4, so a = 2; values match: a = 4 + b, so b = −2.
The answers: questions 1 and 2
- 1. left: 1 + 2 = 3x + 2 as x → 1
- right: f(1) = 5 − 1 = 45 − x at x = 1
- 3 ≠ 4: a jump, not continuous
- 2. 2² = 4 and 4(2) − 4 = 4pieces meet
- gradients: 2x = 2(2) = 4, and 4
- they match: differentiable at 2
The answers: questions 3 and 4
- 3. |x − 3| = 3 − x for x < 3
- |x − 3| = x − 3 for x ≥ 3
- gradients −1 and 1 at x = 3
- a corner: not differentiable
- 4. k(2) + 1 = 2²pieces meet at x = 2
- 2k + 1 = 4, so 2k = 3
- k = 3/2
Sample question: Achieved
f(x) = 2x − 1 for x < 3, and f(x) = x² − 4 for x ≥ 3. Find the limit of f(x) as x tends to 3, and f(3). Is f continuous at x = 3?
Hint
Find where each piece heads as x gets close to 3. If both sides agree and match f(3), the function is continuous.
Answer
The limit is 5 and f(3) = 5, so f is continuous at x = 3.
Step by step
- A limit asks where f(x) is heading as x gets close to 3, from both sides.
- From the left, x < 3, so use 2x − 1. It heads to 2(3) − 1 = 5.
- From the right, x ≥ 3, so use x² − 4. It heads to 9 − 4 = 5.
- Both sides agree, so the limit exists and equals 5.
- f(3) uses the piece with x ≥ 3: f(3) = 9 − 4 = 5.
- Continuous means the limit exists and equals the value. 5 = 5, so f is continuous at x = 3: the two pieces join with no gap.
Full working
- left: 2(3) − 1 = 5x < 3 piece
- right: 3² − 4 = 5x ≥ 3 piece
- lim f(x) = 5both sides agree
- f(3) = 5
- limit 5 = f(3), so f is continuous at x = 3
Sample questions: Merit
f(x) = x² for x ≤ 2, and f(x) = 3x − 2 for x > 2. Is f continuous at x = 2? Is it differentiable at x = 2? Give a reason for each answer.
Hint
Continuity: compare where the two pieces go at x = 2. Differentiability: also compare the gradients of the two pieces at x = 2.
Answer
Continuous, because both pieces give 4 and f(2) = 4. Not differentiable, because the gradient is 4 from the left and 3 from the right: a corner.
Step by step
- There are two separate questions. Continuity is about values; differentiability is about gradients.
- Values at x = 2: the left piece gives 2² = 4, so f(2) = 4. The right piece heads to 3(2) − 2 = 4.
- Both sides head to 4 and f(2) = 4, so there is no jump. f is continuous at x = 2.
- Gradients: the left piece x² has derivative 2x, which is 4 at x = 2. The right piece 3x − 2 has gradient 3.
- A function is differentiable at a point only if it is continuous there and has one gradient there.
- 4 ≠ 3, so the graph changes direction sharply at (2, 4). That is a corner.
- So f is continuous but not differentiable at x = 2.
- The classic mistake is to say no gap means differentiable. A corner has no gap but still fails.
Full working
- left: 2² = 4, right: 3(2) − 2 = 4, f(2) = 4values agree
- continuous at x = 2
- left gradient: 2x = 4derivative of x²
- right gradient: 3derivative of 3x − 2
- 4 ≠ 3, a corner
- continuous but not differentiable at x = 2
f(x) = x² − 9x − 3 for x ≠ 3, and f(3) = 5. Find the limit of f(x) as x tends to 3. Is f continuous at x = 3? What value of f(3) would make it continuous?
Hint
Factorise the top. For x ≠ 3 you can cancel x − 3, and the limit only uses values near 3, never at 3.
Answer
The limit is 6. f is not continuous at x = 3, because 6 ≠ 5. Setting f(3) = 6 would make it continuous.
Step by step
- Putting x = 3 into the fraction gives 00, which tells us nothing. So simplify first.
- Factorise the top as a difference of two squares: x² − 9 = (x − 3)(x + 3).
- For x ≠ 3, the factor x − 3 is not zero, so it cancels: f(x) = x + 3.
- A limit only looks at x close to 3, never at 3 itself. So the limit is 3 + 3 = 6.
- The graph is the line y = x + 3 with a hole at (3, 6), and a single dot at (3, 5).
- Continuous needs the limit to equal the value. 6 ≠ 5, so f is not continuous at x = 3.
- If f(3) were 6, the dot would fill the hole, and f would be continuous.
- Check near 3: f(3.01) = 9.0601 − 90.01 = 6.01, which is close to 6.
Full working
- x² − 9 = (x − 3)(x + 3)difference of two squares
- f(x) = x + 3 for x ≠ 3cancel x − 3
- lim f(x) = 3 + 3 = 6
- 6 ≠ f(3) = 5, so not continuous
- limit 6; not continuous; f(3) = 6 would make it continuous
Sample questions: Excellence
f(x) = ae^(x − 1) for x < 1, and f(x) = bx² + 1 for x ≥ 1, where a and b are constants. Find a and b so that f is differentiable at x = 1. Then decide whether the second derivative from each side also agrees at x = 1.
Hint
Differentiable needs two things: the pieces meet (continuity), and the gradients match. That gives two equations in a and b.
Answer
a = 2 and b = 1. The second derivatives agree: both are 2 at x = 1.
Step by step
- To be differentiable, f must first be continuous at x = 1, and then the two gradients must match.
- Continuity: the left piece heads to ae⁰ = a, and the right piece gives b + 1. So a = b + 1.
- Gradients: the left piece ae^(x − 1) has derivative ae^(x − 1), which is a at x = 1.
- The right piece bx² + 1 has derivative 2bx, which is 2b at x = 1. So a = 2b.
- Solve the pair: 2b = b + 1, so b = 1 and a = 2.
- Second derivatives: the left piece gives 2e^(x − 1) again, which is 2 at x = 1.
- The right piece x² + 1 has second derivative 2.
- Both are 2, so the second derivatives agree too. The pieces join so smoothly that even the bending matches.
- Check: f(1) = 1 + 1 = 2 and the left piece heads to 2e⁰ = 2. Gradients 2e⁰ = 2 and 2(1)(1) = 2. Correct.
Full working
- a = b + 1pieces meet at x = 1
- a = 2bgradients match: ae^(x − 1) and 2bx at x = 1
- 2b = b + 1, so b = 1, a = 2
- left: 2e^(x − 1) = 2 at x = 1second derivative
- right: 2second derivative of x² + 1
- a = 2, b = 1; both second derivatives are 2
f(x) = |x² − k|, where k is a real constant. Find all values of k for which f is differentiable for every x. Justify your answer.
Hint
The absolute value only changes anything where x² − k is negative. Split into the cases k ≤ 0 and k > 0, and compare the gradients either side of x = √k.
Answer
k ≤ 0. Then x² − k ≥ 0 for all x, so f(x) = x² − k, a smooth curve. For k > 0 there are corners at x = ±√k, where the gradients are −2√k and 2√k.
Step by step
- The absolute value leaves a positive number alone and flips the sign of a negative one. Corners can appear where x² − k changes sign.
- Case k ≤ 0: x² is never negative, so x² − k ≥ 0 for every x.
- So the absolute value does nothing: f(x) = x² − k, a parabola, which is differentiable everywhere.
- Case k > 0: x² − k is negative between −√k and √k. There f(x) = −(x² − k) = k − x².
- Look at x = √k. Just to the left, f(x) = k − x², with gradient −2x, heading to −2√k.
- Just to the right, f(x) = x² − k, with gradient 2x, heading to 2√k.
- Since k > 0, √k > 0, so −2√k ≠ 2√k. The gradients differ: a corner. f is not differentiable at x = √k, and the same happens at x = −√k.
- So f is differentiable for every x exactly when k ≤ 0.
- Notice k = 0 is included: |x²| = x², which touches zero at x = 0 but has no corner there.
- Check k = 4: |x² − 4| has gradient −4 just left of 2 and 4 just right of 2, a corner, as expected.
Full working
- k ≤ 0: x² − k ≥ 0, so f(x) = x² − kdifferentiable everywhere
- k > 0: f(x) = k − x² for −√k < x < √k
- left of √k: gradient −2x → −2√k
- right of √k: gradient 2x → 2√k
- −2√k ≠ 2√k for k > 0corners at x = ±√k
- differentiable everywhere exactly when k ≤ 0
Challenge
f(x) = |x − 1| + |x − 3|. (a) Write f(x) without absolute value signs for x < 1, for 1 ≤ x ≤ 3 and for x > 3. (b) Where is f continuous, and where is it not differentiable? (c) Find every x where f′(x) = 0, and explain why f has a least value but no single minimum point. (d) Solve f(x) = 6.
Hint
On each interval, decide whether x − 1 and x − 3 are positive or negative. Then check that the pieces meet, and compare the gradients either side of each join.
Answer
(a) f(x) = 4 − 2x for x < 1, f(x) = 2 for 1 ≤ x ≤ 3, f(x) = 2x − 4 for x > 3. (b) Continuous for every x; not differentiable at x = 1 and x = 3, which are corners. (c) f′(x) = 0 for every x with 1 < x < 3; the least value 2 is taken all along 1 ≤ x ≤ 3, not at one point. (d) x = −1 or x = 5.
Step by step
- |x − a| is x − a when x ≥ a and a − x when x < a. Use that on each interval.
- The pieces meet at x = 1 and x = 3, so there are no jumps: f is continuous everywhere.
- The gradient changes from −2 to 0 at x = 1 and from 0 to 2 at x = 3, so both joins are corners.
- The graph has a flat bottom at height 2 between 1 and 3: every point there is lowest, so there is no single minimum point.
- f(x) = 6 can only happen on the two sloping pieces.
Full working
- x < 1: f(x) = (1 − x) + (3 − x) = 4 − 2xboth insides negative
- 1 ≤ x ≤ 3: f(x) = (x − 1) + (3 − x) = 2first positive, second not
- x > 3: f(x) = (x − 1) + (x − 3) = 2x − 4both positive
- x = 1: 4 − 2 = 2 and 2; x = 3: 2 and 6 − 4 = 2the pieces meet: continuous
- gradient −2 then 0 at x = 1; 0 then 2 at x = 3corners: not differentiable
- f′(x) = 0 for 1 < x < 3, and f(x) ≥ 2 for every xa flat bottom
- 4 − 2x = 6 gives x = −1; 2x − 4 = 6 gives x = 5the middle piece is only ever 2
- x = −1 or x = 5
f(x) = x² + a for x < 1, f(x) = bx for 1 ≤ x ≤ 3, and f(x) = cx for x > 3, where a, b and c are constants. (a) Find a, b and c so that f is continuous for every x and differentiable at x = 1. (b) Show that f is then not differentiable at x = 3. (c) Show that no choice of a, b and c makes f differentiable at both x = 1 and x = 3.
Hint
Differentiable at a join needs two things: the pieces meet there, and the gradients from each side match. At x = 3, write both conditions in terms of b and c.
Answer
(a) a = 1, b = 2, c = 18. (b) At x = 3 the gradient is 2 from the left and −189 = −2 from the right: a corner. (c) Differentiable at x = 1 forces b = 2. At x = 3, meeting needs c = 9b and matching gradients needs c = −9b, so b = 0, which contradicts b = 2.
Step by step
- At x = 1, the pieces meet when 1 + a = b, and the gradients match when 2 = b.
- At x = 3, the pieces meet when 3b = c3.
- With these values, the gradient of cx at x = 3 is −c9 = −2, but the middle piece has gradient 2.
- For differentiability at x = 3 you would need both c = 9b and b = −c9.
- Those two only agree when b = 0, but x = 1 needs b = 2, so both joins can never be smooth together.
Full working
- x = 1: 1² + a = b(1), so a + 1 = bpieces meet
- x = 1: left gradient 2x = 2, right gradient b, so b = 2gradients match
- a = 1substitute
- x = 3: 3b = c3, so c = 9b = 18pieces meet
- x = 3: left gradient b = 2, right gradient −cx² = −189 = −22 ≠ −2: a corner
- differentiable at 3 needs c = 9b and b = −c9, that is c = −9bboth conditions
- 9b = −9b gives b = 0, but differentiable at 1 needs b = 2contradiction
- a = 1, b = 2, c = 18; f can never be differentiable at both x = 1 and x = 3
f(x) = (∛x)²(x − 5) for every real x. (a) Show that f′(x) = 5(x − 2)3∛x for x ≠ 0. (b) Explain why f is continuous but not differentiable at x = 0, and describe the graph there. (c) Find and classify every local maximum and minimum of f, giving exact coordinates.
Hint
Expand: f(x) = x⁵ᐟ³ − 5x²ᐟ³, then use the power rule and take out a common factor. Near x = 0, look at the sign and size of f′(x) on each side. A local maximum can be at a point where f′ does not exist.
Answer
(a) f′(x) = (53)x²ᐟ³ − (103)x⁻¹ᐟ³ = (53)x⁻¹ᐟ³(x − 2) = 5(x − 2)3∛x. (b) f(x) tends to 0 = f(0) from both sides, so f is continuous, but f′(x) tends to +∞ from the left and −∞ from the right, so there is no single gradient: the graph has a sharp point (a cusp) at the origin. (c) A local maximum at the cusp (0, 0) and a local minimum at (2, −3∛4).
Step by step
- Write the root as a power and expand, so the power rule works term by term.
- Taking out (53)x⁻¹ᐟ³ leaves x − 2, and x⁻¹ᐟ³ is 1 over ∛x.
- Near 0 the top of f′ is close to −10 while the bottom is close to 0: the gradient blows up, positive on the left and negative on the right.
- So f rises steeply into the origin and falls steeply out of it: a cusp, which is a local maximum even though f′(0) does not exist.
- f′ changes from negative to positive at x = 2, so that is a local minimum.
Full working
- f(x) = x⁵ᐟ³ − 5x²ᐟ³expand
- f′(x) = (53)x²ᐟ³ − (103)x⁻¹ᐟ³power rule
- = (53)x⁻¹ᐟ³(x − 2) = 5(x − 2)3∛xtake out (53)x⁻¹ᐟ³
- f(x) → 0 = f(0) as x → 0 from either sidecontinuous at 0
- x → 0 from the left: top → −10, bottom → 0 through negatives, f′ → +∞rising steeply
- x → 0 from the right: top → −10, bottom → 0 through positives, f′ → −∞falling steeply
- no single gradient at x = 0: a cuspnot differentiable
- f′ > 0 for x < 0, f′ < 0 for 0 < x < 2, f′ > 0 for x > 2signs of x − 2 and ∛x
- f(2) = (∛2)²(2 − 5) = −3∛4 ≈ −4.76the minimum
- local maximum (0, 0), local minimum (2, −3∛4)
Practise this
Report a mistake
More in AS 91578
The derivative toolkit: chain, product and quotient rules11 min
Stationary points, concavity and points of inflection11 min
Tangents and normals: from gradient to finished equation11 min
Parametric differentiation, and the second derivative11 min
Related rates of change: spheres, cones and the chain rule10 min
Optimisation: building the model and finding the max or min11 min
Limits, continuity and differentiability from a graph8 min
Derivative toolkit: 7 exam questions solved step by step11 min
Stationary points: 7 exam questions solved step by step12 min
Tangents and normals: 7 exam questions solved step by step12 min
Parametric curves: 7 exam questions solved step by step11 min
Related rates of change: 7 exam questions solved step by step11 min
Optimisation: 7 exam questions solved step by step11 min
Limits and continuity: 7 exam questions solved step by step11 min