Free for students · Ad-free · WCAG 2.1 AA Compliant · Accessibility

Connecting Differentiability and Continuity: Determining When Derivatives Do and Do Not Exist

Lesson ~10 min read

In simple terms: In simple terms, this lesson explains the relationship between a function being "smooth" (differentiable) and "unbroken" (continuous). A function must be unbroken to be smooth, but just being unbroken isn't enough to guarantee smoothness.

Why this matters

Imagine you're on a cross-country road trip from Boston to Seattle. For most of the trip, the highway is smooth and easy to drive. We could describe the "slope" of the road at any given point. But what happens if you hit a snag?

Maybe you come to a river where the bridge is out. The road just stops, and there's a huge gap. You can't drive across it. The road isn't continuous.

Or, maybe the road is fully connected, but you get to a part in downtown Chicago with an impossibly sharp, 90-degree turn. You can't drive through it without stopping and turning the wheel completely. The road is connected, but it's not smooth.

In calculus, we call a "connected" road continuity and a "smooth" road differentiability. Today, we're going to explore their exact relationship. You'll learn why you can't have a smooth road with a gap in it, but you can have a connected road that’s too sharp to be called smooth.

Concept overview

flowchart TD
    A[Start with a function f(x) at point x=c] --> B{Is f(x) continuous at x=c?};
    B -- No --> C[Not Differentiable];
    B -- Yes --> D{Is the graph smooth at x=c?};
    D -- No (Corner, Cusp, or Vertical Tangent) --> C;
    D -- Yes --> E[Differentiable];
This flowchart shows the two-step process for determining if a function is differentiable at a point. It illustrates that continuity is a necessary first condition, and if met, the function must also be smooth (free of corners, cusps, or vertical tangents).

Core explanation

Hello there! I'm Saavi, and I'm excited to walk you through one of the most fundamental ideas in calculus. Let's clear up the connection between being differentiable and being continuous.

At its heart, the derivative tells you the instantaneous rate of change, or the slope of the tangent line at a single point. For a derivative to exist at a point x = c, we must be able to zoom in on that point and have the function look like a straight line.

Differentiability Implies Continuity

Let's start with the golden rule of this topic: If a function is differentiable at a point, it must be continuous at that point.

Think back to our road trip. If a road is "differentiable" at a certain spot—meaning it's smooth enough to have a well-defined slope—it must, by definition, exist at that spot. You can't talk about the smoothness of a piece of highway if there's a giant chasm where the highway should be.

In mathematical terms, for a derivative f'(c) to exist, the function f(c) has to be there. No holes, no jumps, no vertical asymptotes at that point. The function must be continuous at c.

This also means that if a point isn't even in the domain of a function, you can't even begin to ask if it's differentiable there. If f(5) is undefined, f'(5) is also certainly undefined.

So, the big takeaway is: Differentiability is a stronger condition than continuity. It demands more from the function. It's like saying that to be an eligible voter in the US, you must be a citizen. But not all citizens are eligible voters (some are too young). Differentiability is the "eligible voter," and continuity is the "citizen." All differentiable functions are continuous, but not all continuous functions are differentiable.

Continuity Does NOT Imply Differentiability

Our road can be fully connected, but still have features that make it impossible to define a single, unique slope at a point. There are three classic ways this happens:

1. A Corner or Cusp

Imagine you're walking along the graph of f(x) = |x|. The graph looks like a perfect "V" with its point at the origin. The function is clearly continuous at x = 0—you can draw the whole graph without lifting your pencil.

But what's the slope at x = 0?

  • If you approach from the left, the slope is a constant -1.
  • If you approach from the right, the slope is a constant +1.

Since the slope from the left (-1) does not equal the slope from the right (+1), we can't agree on a single tangent line at the origin. Therefore, the derivative does not exist at x = 0. This sharp point is called a corner. A cusp is similar but more pinched, like the point on a bird's beak.

   f(x) = |x|
      ^
      |     /
      |    /
      |   /
      |  /
<-----+----->
      |

At x=0, the function is continuous but not differentiable.

2. A Vertical Tangent Line

Consider the function f(x) = x^(1/3) (the cube root of x). This graph is continuous everywhere. But look at what happens at x = 0. The graph goes almost vertical for a moment.

If you try to draw a tangent line at x = 0, it would be a perfectly vertical line. What's the slope of a vertical line? It's undefined! Since the slope is undefined, the derivative does not exist at x = 0.

This is like our road trip hitting a section that goes straight up a cliff face. The road is "connected," but its slope is infinite, which we treat as undefined.

3. Oscillation (Less Common, but Good to Know)

This is a wild one. Some functions, like f(x) = x * sin(1/x) near x=0, wiggle so rapidly as they approach a point that you can't pin down a single slope. The function is continuous, but the slope bounces around infinitely fast, so a derivative can't be defined. You likely won't see this on an exam, but it's another way a continuous function can fail to be differentiable.

Summary of the Relationship

  • Is the function continuous at the point?
    • No?
      Then it's not differentiable. Stop here.
    • Yes?
      Proceed to the next question.
  • Is the function smooth at the point (no corner, no cusp, no vertical tangent)?
    • No?
      Then it's not differentiable.
    • Yes?
      Then it is differentiable.

Remembering this two-step check will save you a lot of points. Always check for continuity first!

Worked examples

Let's put this theory into practice with a few examples you're likely to see.

Example 1

The Piecewise Function Corner

Problem: Consider the function f(x) defined as: f(x) = { x^2 + 1, if x <= 1 { 2x, if x > 1

Is the function f(x) differentiable at x = 1?

Solution:

This is a two-part test. First, we must check for continuity. Then, if it's continuous, we check if the slopes match.

Step 1: Check for Continuity at x = 1 For a function to be continuous at a point, the limit from the left, the limit from the right, and the function's value must all be equal.

  • Function value
    f(1) uses the top rule (x <= 1), so f(1) = (1)^2 + 1 = 2.
  • Limit from the left
    lim (x->1⁻) f(x) also uses the top rule. lim (x->1⁻) (x^2 + 1) = 2.
  • Limit from the right
    lim (x->1⁺) f(x) uses the bottom rule. lim (x->1⁺) (2x) = 2(1) = 2.

Since the left limit, right limit, and function value are all 2, the function is continuous at x = 1. We can proceed to the next step.

Step 2: Check for Differentiability at x = 1 Now, we need to see if the slopes from the left and right match up. We do this by finding the derivative of each piece.

  • Derivative of each piece
    • For x < 1, the derivative is d/dx (x^2 + 1) = 2x.
    • For x > 1, the derivative is d/dx (2x) = 2.
  • Slope from the left (at x = 1)
    We plug x=1 into the first derivative: 2(1) = 2.
  • Slope from the right (at x = 1)
    The derivative is a constant 2.

The slope from the left is 2, and the slope from the right is 2. Since they are equal, the function is differentiable at x = 1.

Wait, what? This is a great example of why you must do the math. It might look like a corner, but the parabola x^2+1 and the line 2x meet so perfectly at x=1 that their slopes match exactly at that point, creating a smooth transition.

Let's tweak it slightly to see a failure. If the second piece was 3x - 1, it would still be continuous at x=1 (since 3(1)-1 = 2), but the derivative from the right would be 3. Since 2 != 3, that function would have a corner and not be differentiable at x=1.

Example 2

The Absolute Value Corner

Problem: Show that g(x) = |x - 4| is not differentiable at x = 4.

Solution:

Step 1: Check for Continuity at x = 4 The absolute value function is continuous everywhere. You can plug in x=4 to get g(4) = |4 - 4| = 0. The limits from the left and right also approach 0. So, it's continuous.

Step 2: Check for Differentiability at x = 4 Let's rewrite g(x) as a piecewise function, which is the key to working with absolute values.

g(x) = { -(x - 4), if x < 4 { (x - 4), if x >= 4

This simplifies to: g(x) = { 4 - x, if x < 4 { x - 4, if x >= 4

Now, find the derivative of each piece:

  • Slope from the left (x &lt; 4)
    d/dx (4 - x) = -1.
  • Slope from the right (x &gt; 4)
    d/dx (x - 4) = 1.

The slope approaching from the left is -1, and the slope approaching from the right is 1.

Try it yourself

Ready to try a couple on your own? Take your time and apply the two-step process.

Problem 1: Find the values of a and b that make the function h(x) differentiable for all real numbers.

h(x) = { ax^2, if x <= 2 { 2x + b, if x > 2

  1. Set the two function pieces equal to each other at x = 2 to ensure continuity.
  2. Set the derivatives of the two pieces equal to each other at x = 2 to ensure smoothness.

Problem 2: The graph of a function k(x) is shown below. It has a sharp corner at x = -3 and a removable discontinuity (a hole) at x = 5. List all x-values where k(x) is not differentiable and explain why for each.

(Imagine a graph with a "V" shape at x=-3 and a smooth curve with an open circle at x=5).