Kim’s Math NotesCourse index

Differentiability and Continuity

Can a function be continuous at a point and still have no derivative there?

Decide where a function is or is not differentiable, use “differentiable, so continuous” as a reason, and show it with the h form.

xy-112123slope $-1slope $2
Continuous, but not differentiable · At x=1 the graph has no break: f is continuous. The slope from the left is −1 and from the right is 2, so the difference quotient has no single limit: f′(1) does not exist.
Continuous is not enough

Common mistake f(x)=|x2−4| has no break at x=2, so f is differentiable at x=2.

Correction The one-sided limits of the difference quotient are −4 and 4: a corner. Continuous, but not differentiable.

Matching slopes is not enough

Common mistake x2 and 2x both have slope 2 at x=1, so f is differentiable at x=1.

Correction First check continuity: the left side heads to 1 but f(1)=2. Not continuous, so not differentiable.

A smooth turning point is differentiable

Common mistake The graph turns at x=0, so f′(0) does not exist.

Correction A smooth top or bottom has a flat tangent line: f′(0)=0. Only corners, cusps, vertical tangents, and breaks fail.

Idea 1: a derivative forces continuity

Last time ended on a promise: where a derivative does not exist. Let's start light, with something you already know. We learned this as the derivative: f prime of x is the limit, as h goes to zero, of f of x plus h, minus f of x, all over h. Here's today's question. If this limit really is a real number, what does that tell us about f itself?

One way, the answer is clean.

Watch this part of the concept lesson

Read the rest of this scene

The other way around, there's a trap. We'll see both. Suppose f prime of x exists. That means the limit is a real number. The bottom, h, heads to zero. Could the top head to something else, say five?

Then we'd have something near five over something near zero. Its size grows without bound. No real limit. So because the limit exists and the bottom goes to zero, the top has to go to zero too. Not every fraction does that. This one does, because its limit exists.

The limit, as h goes to zero, of f of x plus h, minus f of x, is zero. In other words, the limit of f of x plus h, as h goes to zero, is f of x. Here is why that means continuity. Call the input x plus h by one letter, t. As h goes to zero, t goes to x.

So the limit of f, as t goes to x, is f of x. Limit equals value: that's continuous at x. If f is differentiable at every x, it is continuous at every x. That's a continuous function. So to be differentiable, f must be continuous first.

Differentiable implies continuous. On the AP, state it at the point: f is differentiable at c, so f is continuous at c.

Idea 2: continuous, but no slope

Let's test it. Draw y equals the absolute value of x minus a. A V, with its tip at a. We want the rate of change right at x equals a. An instant means a limit. A rate of change means a slope.

So x goes to a, and we look at f of x minus f of a, over x minus a. That's because f of a is the absolute value of a minus a, which is zero. So it's the limit of the absolute value of x minus a, over x minus a.

Watch this part of the concept lesson

Read the rest of this scene

Come in from the right. x is bigger than a, so x minus a is positive, and the absolute value changes nothing. x minus a over x minus a cancels, since x is not a. One. Now from the left. x is smaller than a, so x minus a is negative, and the absolute value flips its sign: negative the quantity x minus a. That cancels too. Negative one.

Idea 2: the tip of the V, continuous but no slope

One and negative one. The two sides disagree, so there's no limit. At x equals a, f is not differentiable. But look at the height. The limit of the absolute value of x minus a, as x goes to a, is zero, and that equals f of a.

So f is continuous at a, by the definition from our continuity lectures. Hmm. It's continuous, and still not differentiable? So the arrow does not flip. Continuous does not mean differentiable.

Watch this part of the concept lesson

Read the rest of this scene

First, a break in the graph. If f is not continuous at a point, it is not differentiable there. That's the contrapositive of idea one: flip the arrow and negate both sides. That stays true. Flipping alone was the trap. And if a is not in the domain of f, there's no f of a.

Then we can't even write f of a plus h, minus f of a. So there's no f prime of a.

Where the slope fails: corner, cusp, vertical tangent

But some graphs have no break, and still no slope. Here are three. First, a sharp tip, like our V turned over. A ruler rocks back and forth on it. That's a corner. Next, two curves swooping into one sharp point. That's a cusp.

And a curve that stands straight up in the middle, like y equals the cube root of x at zero.

Watch this part of the concept lesson

Read the rest of this scene

That's a vertical tangent. Careful. The tangent line is there. It just has no slope. Check it at zero: the cube root of h, minus the cube root of zero, over h. Write h as the cube root of h, cubed, and one cube root cancels, since h is not zero: one over the cube root of h, squared.

That bottom is positive and heads to zero, so this grows to positive infinity. No finite limit, so no f prime of zero. So looking smooth is not enough. Differentiable means the quotient has a real limit.

Idea 3: check, don't guess

Does an absolute value always make a corner? Check, don't guess. First, a quick note, since h is coming up. With x equals a plus h, x going to a from the right is the same as h going to zero from the right. From the left, the same: h goes to zero from the left.

Take f of x equals x squared times the absolute value of x.

Watch this part of the concept lesson

Read the rest of this scene

f of zero is zero. f of zero plus h, minus f of zero, over h, is h squared times the absolute value of h, all over h. One h cancels, since h is not zero. That leaves h times the absolute value of h. From the right, h is positive: h times h is h squared, heading to zero.

From the left, h is negative: h times negative h is negative h squared. Zero again. Zero from both sides. One slope, zero. So f is differentiable at zero, and the tangent there is flat. The same absolute value, and no corner.

Idea 4: at a joint, height first

At a joint of two pieces, write a quotient for each side. Each side uses its own piece, and both use the same f of c. Meeting at a point checks only the height, not the slope. So height first, then a quotient for each side. For example, take eight x minus x squared, to the left of four, and a flat sixteen from four on.

f of four is sixteen.

Watch this part of the concept lesson

Read the rest of this scene

It's a hilltop that runs right into a flat road. For negative h, use the left piece. f of four plus h, minus f of four, is eight times the quantity four plus h, minus the quantity four plus h, squared, minus sixteen. Multiply it out: thirty-two plus eight h, minus sixteen, minus eight h, minus h squared, minus sixteen. Everything drops out except negative h squared.

Divide by h and cancel: negative h, heading to zero. For positive h, use the flat piece: sixteen minus sixteen. Zero. Zero over h. The top is exactly zero, and the bottom is near zero but never zero. So the quotient is zero.

From the left, zero. From the right, zero. The same number, one slope. So f is differentiable at x equals four.

Example 1: three suspects on a graph

Example one, A. P. style. Here's the graph of f. At which values of x is f not differentiable? There are four choices. The plan. There are three suspects: negative one, two, and zero.

At each one, ask two questions: a break? One slope?

Watch this part of the concept lesson

Read the rest of this scene

At negative one, the line and the parabola meet at three. So, no break there. From the left, it's the line. Rise over run, the slope is one. From the right, the parabola leaves much steeper than the line.

Two different slopes, one on each side. A ruler rocks there: a corner, like our V. So f prime of negative one does not exist. And at two. As x heads to two from both sides, f of x heads to zero. The limit is zero.

But the filled dot is at two. f of two is two, not zero. That's a break. Not continuous at two, so not differentiable at two. And zero? That's a classic trap. The graph turns there, but it turns smoothly.

A flat ruler sits right on the peak. One slope, zero. So f is differentiable at zero. So remember: a peak isn't the problem. A pointy peak is.

Choice A, negative one only, misses the break at two. Out. Choice B, two only, misses the corner at negative one. Out. Choice D adds zero, but zero is a smooth top. Out. So the answer is C: the corner at negative one, and the break at two.

Example 2: a piecewise joint

Example two has two pieces, joined at two. Show that f is continuous at two. Then find both one-sided limits of the difference quotient, and decide: is f differentiable at two? Part a. The plan: continuity at two first. We write it with h, so the same tops carry into part b.

Then the quotient from each side, each with its own piece. Then compare.

Watch this part of the concept lesson

Read the rest of this scene

f of two uses the top piece, since two is less than or equal to two. Three times two, minus one: five. For negative h, two plus h is on the left. f of two plus h, minus f of two, is three times the quantity two plus h, minus one, minus five: six plus three h, minus six. Three h. For positive h, two plus h is on the right.

Use the right piece: the quantity two plus h, squared, minus two times the quantity two plus h, plus five, minus five. Expand it: four plus four h plus h squared, minus four, minus two h. That's two h plus h squared. From the left, the limit of three h is zero. From the right, the limit of two h plus h squared is zero too.

Both sides give zero. So the limit of f of two plus h, minus f of two, is zero. So f is continuous at x equals two. That's the height. Now the slope. Part b. Each side gets its own quotient, and the tops are already done.

From the left: the top is three h, so it's the limit of three h over h. h is not zero, so h cancels. Three. From the right: the top is two h plus h squared. Take out a factor of h, and h cancels. That leaves two plus h, heading to two plus zero. Two.

Part c. Three is not two. The one-sided limits disagree, so the quotient has no limit. So f is not differentiable at x equals two. They meet, but at an angle. The slope jumps from three to two. That's a corner.

Common mistake: continuous, so differentiable?

Back to part c. Careful here. Here's what a student writes: f is continuous at two, so f is differentiable at two. That's wrong. Continuity is the ticket in, not the whole show. It's needed, but it's not enough. The reason has to be the slopes: three from the left, two from the right.

Not equal, so f is not differentiable.

Watch this part of the concept lesson

Example 3: a table and the IVT

Last one, example three, A. P. style. The function g is differentiable for all real numbers, and we only have a table. In part a, use the limit of g of three plus h, minus g of three, to show g is continuous at three. In part b, must g of c equal six for some c between one and three? Justify. Part a. Remember idea one: differentiable gives continuous.

Here's why, at three.

Watch this part of the concept lesson

Read the rest of this scene

Write the change in g as the quotient, times h. h is never zero, so g of three plus h, minus g of three, equals the quotient, times h. Divide by h, and multiply by h. The quotient heads to g prime of three, a real number, since g is differentiable at three. And h heads to zero.

A real number times zero is zero. So the limit of g of three plus h, minus g of three, is zero. So g is continuous at x equals three. Part b. The reason comes first. g is differentiable for all real numbers.

The problem tells us so. So g is continuous on the closed interval from one to three. From the table: g of three is four, and four is less than six. Six is less than nine, which is g of one. So, by the Intermediate Value Theorem we already learned, there is a c between one and three with g of c equal to six. Yes.

Said another way: the equation g of x equals six has a solution somewhere between one and three. Give the reason first, then the theorem.

Worked examples

Example 1

The graph of f is shown for −4<x<2.5. At which values of x is f not differentiable?
xy-3-2-112-2-11234
Graph of f(x)
  1. x=−1 only
  2. x=2 only
  3. x=−1 and x=2 only
  4. x=−1, x=0, and x=2
Hint

Look for a corner, a break, a cusp, or a vertical tangent.

Answer and solution

Answer C. x=−1 and x=2 only

  1. Type: where f is not differentiable, from a graph. Method: check every corner, break, cusp, and vertical tangent; smooth turning points are fine.
  2. x = -1: no break (both pieces give 3), but the slope from the left is 1 and from the right is 2: a corner, so f'(-1) does not exist.
  3. x = 2: the curve heads to the open circle (2, 0), but f(2) = 2. f is not continuous at 2, so it is not differentiable there.
  4. x = 0: a smooth top, the tangent line is flat: f'(0) = 0 exists. Answer: x = -1 and x = 2 only. (A) misses the break; (B) thinks “no break, so differentiable”; (D) takes the smooth top as a corner.

Example 2

Let f(x)={3x−1,x≤2x2−2x+5,x>2
(a) Show that f is continuous at x=2.
(b) Find limh→0−f(2+h)−f(2)h and limh→0+f(2+h)−f(2)h.
(c) Is f differentiable at x=2? Give a reason.
Hint

Each side uses its own piece, and both use f(2).

Answer and solution
  1. f(2)=5 and both one-sided limits of f are 5, so limh→0[f(2+h)−f(2)]=0
  2. left: 3
  3. right: 2
  4. no: the one-sided limits 3 and 2 are not equal (a corner)
  1. Type: a joint of a piecewise function. Method: (i) continuity, (ii) the two one-sided limits of the difference quotient, (iii) compare.
  2. (a) f(2) = 3(2) - 1 = 5. For h < 0, f(2 + h) - f(2) = 3h -> 0; for h > 0, f(2 + h) - f(2) = 2h + h^2 -> 0. So lim [f(2 + h) - f(2)] = 0: continuous.
  3. limh→0−3hh=3,limh→0+(2+h)2−2(2+h)+5−5h=limh→0+2h+h2h=limh→0+(2+h)=2
  4. (c) 3 is not 2, so the limit of the difference quotient does not exist: f is not differentiable at x = 2, even though it is continuous there (a corner).

Example 3

g is differentiable for all real numbers. Selected values of g are in the table.
(a) Use limh→0[g(3+h)−g(3)] to show g is continuous at x=3.
(b) Must g(c)=6 for some c in (1,3)? Justify.
x135
g(x)948
Hint

Write the difference as the difference quotient times h.

Answer and solution
  1. g(3+h)−g(3)=g(3+h)−g(3)h⋅h→g′(3)⋅0=0, so g is continuous at x=3
  2. yes: g is differentiable, so g is continuous on [1,3]; g(3)=4<6<9=g(1); by the Intermediate Value Theorem there is at least one such c
  1. Type: differentiable, so continuous. Method: the h form of continuity.
  2. g(3+h)−g(3)=g(3+h)−g(3)h⋅h→g′(3)⋅0=0
  3. (a) g is differentiable at 3, so the quotient tends to the real number g'(3), and h tends to 0. The product tends to 0: g is continuous at x = 3.
  4. (b) g is differentiable, so g is continuous on [1, 3]. g(3) = 4 < 6 < 9 = g(1). By the Intermediate Value Theorem, there is at least one c in (1, 3) with g(c) = 6. The words “differentiable, so continuous” earn the point.

Workbook

Problem 1

Let f(x)=|x2−4|. (a) Find the left-hand limit limh→0−f(2+h)−f(2)h. (b) Find the right-hand limit (with h→0+). (c) Is f differentiable at x=2? (d) Is f continuous at x=2?
Hint

Write f without the absolute value on each side of 2.

Answer and solution
  1. −4
  2. 4
  3. no: the one-sided limits −4 and 4 are not equal
  4. yes: f(2+h)−f(2)=|4h+h2|→0
  1. f(2) = 0, and (2 + h)^2 - 4 = 4h + h^2. For h < 0 near 0 this is negative, so f(2 + h) = -(4h + h^2); for h > 0 it is positive.
  2. limh→0−−(4h+h2)h=−4,limh→0+4h+h2h=4
  3. (c) -4 is not 4: not differentiable at x = 2 (a corner). (d) But f(2 + h) - f(2) = |4h + h^2| -> 0, so f is continuous at x = 2.

Common mistake Saying a continuous point must be differentiable.

Watch the worked solution to Problem 1

Problem 2

The function f is differentiable at x=3, with f(3)=−2 and f′(3)=5. (a) Find limh→0f(3+h). (b) Find limh→0f(3+h)−f(3)h. (c) Why are the two answers different?
Hint

(a) asks for a height, (b) for a slope.

Answer and solution
  1. −2: differentiable at 3, so continuous at 3
  2. 5: this limit is the definition of f′(3)
  3. (a) is the height f(3) of the graph; (b) is its slope f′(3) there
  1. (a) f is differentiable at 3, so f is continuous at 3: f(3 + h) -> f(3) = -2.
  2. (b) This limit is the definition of the derivative at 3: f'(3) = 5.
  3. (c) (a) asks where the graph is at x = 3, the height. (b) asks how steep it is there, the slope. Different questions, so different numbers.

Common mistake Mixing up the limit of f(3 + h) (a height) with the derivative (a slope).

Watch the worked solution to Problem 2

Problem 3

Let f(x)={x2,x<12x,x≥1.A student says: “The left piece has slope 2 at x=1 and the right piece has slope 2, so f is differentiable at x=1.” (a) Is f continuous at x=1? (b) Find limh→0−f(1+h)−f(1)h. (c) Is the student right? Explain.
Hint

At a joint, check the heights first.

Answer and solution
  1. no: limx→1−f(x)=1 but f(1)=2
  2. limh→0−(1+h)2−2h=∞ (does not exist as a real number)
  3. no: f is not continuous at 1, so it is not differentiable there; matching slopes is not enough
  1. (a) f(1) = 2(1) = 2, but from the left x^2 -> 1. The limit from the left is 1, not 2: f is not continuous at x = 1.
  2. limh→0−(1+h)2−2h=limh→0−−1+2h+h2h=∞
  3. (b) The top tends to -1 and h < 0 tends to 0, so the quotient grows without bound. (c) No. The difference quotient uses f(1) = 2, not the left piece's height 1. f is not continuous at 1, so it cannot be differentiable there.

Common mistake Checking only the slopes of the pieces and skipping the heights.

Watch the worked solution to Problem 3

Problem 4

If f is continuous at x=3, which of the following must be true?
  1. f′(3) exists.
  2. limh→0[f(3+h)−f(3)]=0
  3. limh→0f(3+h)−f(3)h=0
  4. limh→0f(3+h)=0
Hint

Continuity is limh→0[f(3+h)−f(3)]=0. It does not give a slope.

Answer and solution

Answer B. limh→0[f(3+h)−f(3)]=0

  1. Continuity at 3: lim [f(3 + h) - f(3)] = 0, that is, f(3 + h) -> f(3). That is B.
  2. (A) “continuous, so differentiable” is false: f(x) = |x - 3| is continuous at 3 with a corner. (C) is f'(3) = 0, a statement about the slope. (D) drops f(3): f(3 + h) tends to f(3), not to 0.

Common mistake Choosing 'f'(3) exists': continuity does not give a derivative.

Watch the worked solution to Problem 4

Problem 5

Let f(x)={x2+4x+1,x<04x+1,0≤x<213−2x,x≥2.At which values of x is f not differentiable?
  1. none
  2. x=2 only
  3. x=0 and x=2 only
  4. x=−2 and x=2 only
Hint

At each joint: heights first, then the one-sided difference quotients.

Answer and solution

Answer B. x=2 only

  1. Both joints are continuous: at 0 both pieces give 1, at 2 both give 9.
  2. At 0: left (h^2 + 4h)/h -> 4, right 4h/h = 4. Equal: differentiable. At 2: left 4h/h = 4, right -2h/h = -2. Not equal: a corner. Answer: x = 2 only.
  3. (A) thinks “continuous, so differentiable”. (C) thinks every joint is a corner. (D) takes the smooth turning point of x^2 + 4x + 1 at x = -2 as a problem.

Common mistake Marking every joint as not differentiable without checking.

Watch the worked solution to Problem 5

Problem 6

Which of the following functions is continuous at x=1 but not differentiable at x=1?
  1. f(x)=x2+8x−9x−1
  2. f(x)=(x−1)|x−1|
  3. f(x)=|3x−3|+x
  4. f(x)=(x−1)2+5
Hint

Find each one-sided difference quotient at x=1.

Answer and solution

Answer C. f(x)=|3x−3|+x

  1. C: f(1) = 1 and f(1 + h) - f(1) = |3h| + h -> 0, so continuous. The quotient (|3h| + h)/h is 4 for h > 0 and -2 for h < 0: a corner. C is the answer.
  2. (A) has a hole at x = 1: not even continuous there. (B) has an absolute value, but h|h|/h = |h| -> 0 from both sides: f'(1) = 0 exists. (D) has a smooth bottom at x = 1: f'(1) = 0.

Common mistake Calling (x - 1)|x - 1| not differentiable because of the absolute value.

Watch the worked solution to Problem 6

Problem 7

Let f(x)=x−23+1.
  1. Find limh→0+[f(2+h)−f(2)]. What does this say about the continuity of f at x=2 from the right?
  2. Find limh→0+f(2+h)−f(2)h.
  3. Is f differentiable at x=2? Describe the graph of f at x=2.
Hint

Write f(2+h)−f(2) as h3.

Answer and solution
  1. h3→0; with the same from the left, f is continuous at x=2
  2. limh→0+h3h=limh→0+1h23=∞
  3. no: the difference quotient grows without bound, so f′(2) does not exist; the graph has a vertical tangent line at x=2
  1. f(2) = 1, so f(2 + h) - f(2) = cube root of h. As h -> 0 this tends to 0 (from both sides): f is continuous at x = 2.
  2. limh→0+h3h=limh→0+1h23=∞
  3. (c) No. The quotient grows without bound (also from the left, since h^2 > 0), so f'(2) is not a real number. The graph is continuous but its tangent line at x = 2 is vertical.

Common mistake Calling a vertical tangent differentiable because the graph looks smooth.

Watch the worked solution to Problem 7

Problem 8

The graph of f is shown.
xy-2-11234-1123
Graph of f(x)
  1. Find f′(−1).
  2. Is f differentiable at x=1? Give a reason.
  3. Is f differentiable at x=3? Give a reason.
Hint

A corner and a break both stop the derivative, for different reasons.

Answer and solution
  1. 1
  2. no: f is continuous at 1, but the slope from the left is 1 and from the right is −1 (a corner)
  3. no: limx→3+f(x)=2 but f(3)=0, so f is not continuous at 3, so not differentiable
  1. (a) Near x = -1 the graph is the line y = 1 + x, slope 1: f'(-1) = 1.
  2. (b) At x = 1 both pieces meet at 2 (continuous), but the slopes are 1 and -1: a corner, so f'(1) does not exist.
  3. (c) At x = 3, f(3) = 0 but from the right the graph heads to 2: not continuous. If f were differentiable at 3, it would be continuous there. So f is not differentiable at x = 3.

Common mistake Checking slopes at x = 3 when f is not even continuous there.

Watch the worked solution to Problem 8

Problem 9

The function f is differentiable for all real numbers. Selected values of f are in the table.
x025
f(x)-341
  1. Explain why f is continuous on [0,2].
  2. Must there be a value c, 0<c<2, with f(c)=0? Justify your answer.
  3. Must there be a value c, 2<c<5, with f(c)=0? Explain.
Hint

Differentiable implies continuous. Then the IVT needs 0 between the two values.

Answer and solution
  1. f is differentiable, so it is continuous
  2. yes: f(0)=−3<0<4=f(2), IVT
  3. not necessarily: 0 is not between f(2)=4 and f(5)=1
  1. (a) f is differentiable for all x, so f is continuous for all x, in particular on [0, 2].
  2. (b) f(0) = -3 < 0 < 4 = f(2). By the Intermediate Value Theorem, f(c) = 0 for some c in (0, 2). Yes.
  3. (c) f(2) = 4 and f(5) = 1 are both positive: 0 is not between them. The IVT gives no conclusion, so not necessarily.

Common mistake Using the IVT on (2, 5) when 0 is not between f(2) and f(5).

Watch the worked solution to Problem 9