Vertex Learn

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.
Key idea

Three questions about a point

  • Does the limit exist?
  • Is the function continuous there?
  • Is it differentiable there?
Worked example

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).
A graph in three pieces
Key idea

Open and closed dots

  • Open: not on the graph.
  • Closed: on the graph.
  • f(1) = 2, not −1.
Open dotnot on the graph
Closed dotthe value
(1, −1)open, not included
f(1)2, the closed dot
Worked example

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.
The limit as x tends to 1
Key idea

Try it: approach from both sides

Worked example

Writing the limits

  • Left −1, right 2: no limit.
  • Where it heads, not f(1).
  1. from the left: f(x) → −1as x → 1
  2. from the right: f(x) → 2as x → 1
  3. −1 ≠ 2the sides disagree
  4. lim(x→1) f(x) does not exist
  5. x → 3, both sides: f(x) → 4
  6. lim(x→3) f(x) = 4
Worked example

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.
Continuous: no break
Key idea

Graphing calculator

Worked example

Differentiable: one clear gradient

  • Continuous first.
  • Then one gradient.
  • A corner has two.
  1. x = 1: a jump, not continuous
  2. not differentiable at x = 1
  3. x = 3: lim f(x) = 4 = f(3)continuous
  4. left: (4 − 2)/(3 − 1) = 1rise over run
  5. right: (0 − 4)/(5 − 3) = −2rise over run
  6. 1 ≠ −2: a cornergradients differ
  7. not differentiable at x = 3
Key idea

Try it: a corner

Worked example

Easy marks to lose

  • The open dot is not the value.
  • A jump has no limit.
  • Not differentiable: the jump too.
MisreadRight
f(1)−12, closed dot
Limit at 12does not exist
Differentiable at 3yes, no gapno, a corner
Not differentiablex = 3 onlyx = 1 and x = 3
Worked example

The sign of the gradient

  • Rising: positive. Falling: negative.
  • Zero at the maximum, x = −1.
  • The curve is concave down.
f'(x)
−3 < x < −1positive
x = −1zero, maximum
−1 < x < 1negative
1 < x < 3positive, 1
3 < x < 5negative, −2
Key idea

Try it: read the graph

Worked example

Unknown constants

  • Pieces meet at x = 1.
  • Gradients match at x = 1.
  1. f(x) = ax² + b (x < 1), 4x (x ≥ 1)
  2. a(1)² + b = 4(1)pieces meet
  3. a + b = 4
  4. f'(x): 2ax (x < 1), 4 (x > 1)
  5. 2a(1) = 4, so a = 2gradients match
  6. b = 4 − 2 = 2substitute back
  7. a = 2, b = 2
  8. 2(1)² + 2 = 4 = 4(1)
Key idea

Where the marks are

  • Achieved: read them from a graph.
  • Merit: explain each, with the reason.
  • Excellence: combined with other calculus.
Summary

What to take away

  • Read the dots, then check both sides, then look for jumps and corners.
Open dotnot on the graph
Closed dotthe value
Limitboth sides agree
Continuouslimit equals value
Differentiableno break, corner, cusp
Gradient signrising 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

Your turn: eight questions

  • Question 3: the absolute value of x − 3.
  • Give a reason with every answer.
FunctionFind
1x+2 (x<1), 5−x (x≥1)continuous at 1?
2x² (x<2), 4x−4 (x≥2)differentiable at 2?
3|x − 3|not differentiable at
4kx+1 (x<2), x² (x≥2)k for continuity
51/(x − 2)continuous at 2?
6x² (x ≠ 2), 7 (x = 2)limit, f(2), continuous?
7x+1 (x<3), 2x−2 (x≥3)continuous, differentiable at 3?
8ax² (x<1), 4x + b (x≥1)a and b, differentiable at 1
1
2
3
4
5
6
7
8
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.

Worked example

The answers: questions 1 and 2

  1. 1. left: 1 + 2 = 3x + 2 as x → 1
  2. right: f(1) = 5 − 1 = 45 − x at x = 1
  3. 3 ≠ 4: a jump, not continuous
  4. 2. 2² = 4 and 4(2) − 4 = 4pieces meet
  5. gradients: 2x = 2(2) = 4, and 4
  6. they match: differentiable at 2
Worked example

The answers: questions 3 and 4

  1. 3. |x − 3| = 3 − x for x < 3
  2. |x − 3| = x − 3 for x ≥ 3
  3. gradients −1 and 1 at x = 3
  4. a corner: not differentiable
  5. 4. k(2) + 1 = 2²pieces meet at x = 2
  6. 2k + 1 = 4, so 2k = 3
  7. k = 3/2
Your turn

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
  1. A limit asks where f(x) is heading as x gets close to 3, from both sides.
  2. From the left, x < 3, so use 2x − 1. It heads to 2(3) − 1 = 5.
  3. From the right, x ≥ 3, so use x² − 4. It heads to 9 − 4 = 5.
  4. Both sides agree, so the limit exists and equals 5.
  5. f(3) uses the piece with x ≥ 3: f(3) = 9 − 4 = 5.
  6. 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
  1. left: 2(3) − 1 = 5x < 3 piece
  2. right: 3² − 4 = 5x ≥ 3 piece
  3. lim f(x) = 5both sides agree
  4. f(3) = 5
  5. limit 5 = f(3), so f is continuous at x = 3
Your turn

Sample questions: Merit

1

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
  1. There are two separate questions. Continuity is about values; differentiability is about gradients.
  2. Values at x = 2: the left piece gives 2² = 4, so f(2) = 4. The right piece heads to 3(2) − 2 = 4.
  3. Both sides head to 4 and f(2) = 4, so there is no jump. f is continuous at x = 2.
  4. Gradients: the left piece x² has derivative 2x, which is 4 at x = 2. The right piece 3x − 2 has gradient 3.
  5. A function is differentiable at a point only if it is continuous there and has one gradient there.
  6. 4 ≠ 3, so the graph changes direction sharply at (2, 4). That is a corner.
  7. So f is continuous but not differentiable at x = 2.
  8. The classic mistake is to say no gap means differentiable. A corner has no gap but still fails.
Full working
  1. left: 2² = 4, right: 3(2) − 2 = 4, f(2) = 4values agree
  2. continuous at x = 2
  3. left gradient: 2x = 4derivative of x²
  4. right gradient: 3derivative of 3x − 2
  5. 4 ≠ 3, a corner
  6. continuous but not differentiable at x = 2
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
  1. Putting x = 3 into the fraction gives 00, which tells us nothing. So simplify first.
  2. Factorise the top as a difference of two squares: x² − 9 = (x − 3)(x + 3).
  3. For x ≠ 3, the factor x − 3 is not zero, so it cancels: f(x) = x + 3.
  4. A limit only looks at x close to 3, never at 3 itself. So the limit is 3 + 3 = 6.
  5. The graph is the line y = x + 3 with a hole at (3, 6), and a single dot at (3, 5).
  6. Continuous needs the limit to equal the value. 6 ≠ 5, so f is not continuous at x = 3.
  7. If f(3) were 6, the dot would fill the hole, and f would be continuous.
  8. Check near 3: f(3.01) = 9.0601 − 90.01 = 6.01, which is close to 6.
Full working
  1. x² − 9 = (x − 3)(x + 3)difference of two squares
  2. f(x) = x + 3 for x ≠ 3cancel x − 3
  3. lim f(x) = 3 + 3 = 6
  4. 6 ≠ f(3) = 5, so not continuous
  5. limit 6; not continuous; f(3) = 6 would make it continuous
Your turn

Sample questions: Excellence

1

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
  1. To be differentiable, f must first be continuous at x = 1, and then the two gradients must match.
  2. Continuity: the left piece heads to ae⁰ = a, and the right piece gives b + 1. So a = b + 1.
  3. Gradients: the left piece ae^(x − 1) has derivative ae^(x − 1), which is a at x = 1.
  4. The right piece bx² + 1 has derivative 2bx, which is 2b at x = 1. So a = 2b.
  5. Solve the pair: 2b = b + 1, so b = 1 and a = 2.
  6. Second derivatives: the left piece gives 2e^(x − 1) again, which is 2 at x = 1.
  7. The right piece x² + 1 has second derivative 2.
  8. Both are 2, so the second derivatives agree too. The pieces join so smoothly that even the bending matches.
  9. 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
  1. a = b + 1pieces meet at x = 1
  2. a = 2bgradients match: ae^(x − 1) and 2bx at x = 1
  3. 2b = b + 1, so b = 1, a = 2
  4. left: 2e^(x − 1) = 2 at x = 1second derivative
  5. right: 2second derivative of x² + 1
  6. a = 2, b = 1; both second derivatives are 2
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
  1. The absolute value leaves a positive number alone and flips the sign of a negative one. Corners can appear where x² − k changes sign.
  2. Case k ≤ 0: x² is never negative, so x² − k ≥ 0 for every x.
  3. So the absolute value does nothing: f(x) = x² − k, a parabola, which is differentiable everywhere.
  4. Case k > 0: x² − k is negative between −√k and √k. There f(x) = −(x² − k) = k − x².
  5. Look at x = √k. Just to the left, f(x) = k − x², with gradient −2x, heading to −2√k.
  6. Just to the right, f(x) = x² − k, with gradient 2x, heading to 2√k.
  7. 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.
  8. So f is differentiable for every x exactly when k ≤ 0.
  9. Notice k = 0 is included: |x²| = x², which touches zero at x = 0 but has no corner there.
  10. Check k = 4: |x² − 4| has gradient −4 just left of 2 and 4 just right of 2, a corner, as expected.
Full working
  1. k ≤ 0: x² − k ≥ 0, so f(x) = x² − kdifferentiable everywhere
  2. k > 0: f(x) = k − x² for −√k < x < √k
  3. left of √k: gradient −2x → −2√k
  4. right of √k: gradient 2x → 2√k
  5. −2√k ≠ 2√k for k > 0corners at x = ±√k
  6. differentiable everywhere exactly when k ≤ 0

Challenge

1

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
  1. |x − a| is x − a when x ≥ a and a − x when x < a. Use that on each interval.
  2. The pieces meet at x = 1 and x = 3, so there are no jumps: f is continuous everywhere.
  3. The gradient changes from −2 to 0 at x = 1 and from 0 to 2 at x = 3, so both joins are corners.
  4. 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.
  5. f(x) = 6 can only happen on the two sloping pieces.
Full working
  1. x < 1: f(x) = (1 − x) + (3 − x) = 4 − 2xboth insides negative
  2. 1 ≤ x ≤ 3: f(x) = (x − 1) + (3 − x) = 2first positive, second not
  3. x > 3: f(x) = (x − 1) + (x − 3) = 2x − 4both positive
  4. x = 1: 4 − 2 = 2 and 2; x = 3: 2 and 6 − 4 = 2the pieces meet: continuous
  5. gradient −2 then 0 at x = 1; 0 then 2 at x = 3corners: not differentiable
  6. f′(x) = 0 for 1 < x < 3, and f(x) ≥ 2 for every xa flat bottom
  7. 4 − 2x = 6 gives x = −1; 2x − 4 = 6 gives x = 5the middle piece is only ever 2
  8. x = −1 or x = 5
2

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
  1. At x = 1, the pieces meet when 1 + a = b, and the gradients match when 2 = b.
  2. At x = 3, the pieces meet when 3b = c3.
  3. With these values, the gradient of cx at x = 3 is −c9 = −2, but the middle piece has gradient 2.
  4. For differentiability at x = 3 you would need both c = 9b and b = −c9.
  5. Those two only agree when b = 0, but x = 1 needs b = 2, so both joins can never be smooth together.
Full working
  1. x = 1: 1² + a = b(1), so a + 1 = bpieces meet
  2. x = 1: left gradient 2x = 2, right gradient b, so b = 2gradients match
  3. a = 1substitute
  4. x = 3: 3b = c3, so c = 9b = 18pieces meet
  5. x = 3: left gradient b = 2, right gradient −cx² = −189 = −22 ≠ −2: a corner
  6. differentiable at 3 needs c = 9b and b = −c9, that is c = −9bboth conditions
  7. 9b = −9b gives b = 0, but differentiable at 1 needs b = 2contradiction
  8. a = 1, b = 2, c = 18; f can never be differentiable at both x = 1 and x = 3
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
  1. Write the root as a power and expand, so the power rule works term by term.
  2. Taking out (53)x⁻¹ᐟ³ leaves x − 2, and x⁻¹ᐟ³ is 1 over ∛x.
  3. 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.
  4. 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.
  5. f′ changes from negative to positive at x = 2, so that is a local minimum.
Full working
  1. f(x) = x⁵ᐟ³ − 5x²ᐟ³expand
  2. f′(x) = (53)x²ᐟ³ − (103)x⁻¹ᐟ³power rule
  3. = (53)x⁻¹ᐟ³(x − 2) = 5(x − 2)3∛xtake out (53)x⁻¹ᐟ³
  4. f(x) → 0 = f(0) as x → 0 from either sidecontinuous at 0
  5. x → 0 from the left: top → −10, bottom → 0 through negatives, f′ → +∞rising steeply
  6. x → 0 from the right: top → −10, bottom → 0 through positives, f′ → −∞falling steeply
  7. no single gradient at x = 0: a cuspnot differentiable
  8. f′ > 0 for x < 0, f′ < 0 for 0 < x < 2, f′ > 0 for x > 2signs of x − 2 and ∛x
  9. f(2) = (∛2)²(2 − 5) = −3∛4 ≈ −4.76the minimum
  10. local maximum (0, 0), local minimum (2, −3∛4)

More challenge problems

Practice

Practise this

Worksheet with answersWithout answersDownload PDF
2026 practice paper with worked answersOpen the paper
Report a mistake

More in AS 91578

Is your child on track?

Take the free placement test