Achievable logoAchievable logo
AP Calculus AB
Sign in
Sign up
Purchase
Textbook
Practice exams
Support
How it works
Exam catalog
Mountain with a flag at the peak
Textbook
Introduction
1. Limits
2. Derivative basics
2.1 Definition of the derivative
2.2 Tangent lines & slopes
2.3 Power rule
2.4 Product & quotient rules
2.5 Special derivatives
2.6 Differentiability & continuity
3. Advanced differentiation
4. Contextual uses
5. Analytical uses
6. Integration
7. Differential equations
8. Applications of integrals
9. Testing details tag
Wrapping up
Achievable logoAchievable logo
2.6 Differentiability & continuity
Achievable AP Calculus AB
2. Derivative basics
Our AP Calculus AB course is currently in development and is a work-in-progress.

Differentiability & continuity

7 min read
Font
Discuss
Share
Feedback

What you’ll learn:

  • How to find where a function is not differentiable
  • The relationship between continuity and differentiability

What is differentiability?

A function f(x) is differentiable at x=a if its derivative exists at that point.

There are four common cases where a function is not differentiable at a point x=a:

  1. Discontinuities

A function must be continuous to be differentiable. If there is a removable, jump, or infinite discontinuity at x=a, then the derivative does not exist there.

  • Often seen in rational, piecewise, or logarithmic functions, which may have discontinuities and/or asymptotes
    e.g. f(x)=x1​
  1. Sharp corners

The function changes direction abruptly. The one-sided derivatives exist, but they are not equal.

  • Often seen in absolute value or piecewise functions
    e.g. f(x)=∣x∣
  1. Cusps

Cusps are like corners, but the slope becomes unbounded: one or both one-sided derivatives approach infinity, and they approach opposite infinities.

  • Often seen in power functions with fractional exponents
    e.g. f(x)=x2/3
  1. Vertical tangents

The tangent line becomes vertical. The one-sided derivatives both approach infinity with the same sign.

  • Often seen in radical functions
    e.g. f(x)=x1/3

In the last three cases, the function is continuous, but the graph is not smooth at the non-differentiable point (for a visual, graph each in Desmos).

Remember this phrase:

"If differentiable, then continuous."(D⟹C)

Consequently, the contrapositive is always true:

If not continuous at x=a, then not differentiable there (not C⟹not D).

However, the converse and inverse are not always true. A continuous function can still fail to be differentiable at certain points, e.g. ∣x∣ at x=0.

Checking for differentiability

To check if f(x) is differentiable at x=a,

  1. Continuity: First check whether f(x) is continuous by verifying the conditions stated in Section 1.6: Continuity. If it’s not continuous at x=a, then it’s not differentiable there.
  2. Differentiate: Find f′(x) and look for any x-values where f′(x) is undefined.
  3. If necessary (mostly for piecewise functions): Check that the one-sided derivatives at x=a both exist, are finite, and match. In other words, there must be a finite value L such that

x→a−lim​x−af(x)−f(a)​=L=x→a+lim​x−af(x)−f(a)​​

Examples

  1. Consider the functions:

a) a(x)=1/x
b)b(x)=∣x∣
c)c(x)=x2/3
d)d(x)=x1/3

For what x-value(s) is each non-differentiable and why?

Solutions

a) x1​ has a vertical asymptote at x=0, so it is not continuous there. Since differentiability implies continuity, the derivative does not exist at x=0.

b) b(x)=∣x∣ is continuous everywhere. Its derivative is the piecewise function:

b′(x)=⎩⎨⎧​−11​ if x<0 if x>0​

As x→0−, the derivative approaches −1, and as x→0+, it approaches 1. Because these one-sided derivatives don’t match, b′(0) does not exist. On the graph, this shows up as a sharp corner at x=0.

c) The derivative of c(x)=x2/3 is

c′(x)=32​x−1/3

=3x1/32​

This derivative is undefined when the denominator is 0, which happens at x=0.

Also notice the one-sided behavior:

  • as x→0−, c′(x)→−∞
  • as x→0+, c′(x)→∞

Since the one-sided derivatives approach opposite infinities, the graph has a cusp at x=0, and the function is not differentiable there.

d) The derivative of d(x)=x1/3 is

d′(x)=31​x−2/3

=33x2​1​

This derivative is undefined at x=0.

Because x is squared in the denominator, 3x2​ is positive for x=0. That means d′(x)→+∞ from both sides as x→0. On the graph, this appears as a vertical tangent at x=0, so the function is not differentiable there.

Consider the function f(x) defined as:

f(x)=⎩⎨⎧​3x+2ax2−bx​ if x<1 if x≥1​

Find the values of a and b such that f(x) is differentiable (everywhere).

Solution

(spoiler)

Answer: a=−2,b=−7

If a piecewise function is differentiable, then it must be continuous.

For f(x) to be continuous at x=1, both f(1) and x→1lim​f(x) must exist and be equal.

First,

f(1)​=a(1)2−b(1)=a−b​

Next, compute the one-sided limits:

  • Left:

x→1−lim​(3x+2)=5

  • Right:

x→1+lim​(ax2−bx)=a−b

Continuity requires a−b=5.

Since there are two unknowns, we need a second equation. Differentiate each piece (treating a and b as constants):

f′(x)=⎩⎨⎧​32ax−b​ if x<1 if x>1​

For differentiability at x=1, the one-sided derivatives must match:

3=2a(1)−b

Now solve the system:

a−b2a−b​=5=3​​

This gives

a=−2b=−7

Graph

f(x)=⎩⎨⎧​3x+22x2+7x​ if x<1 if x≥1​

in Desmos to confirm that the curve is unbroken and also smooth.

Identify all the points where f(x)=∣x2−x∣ is not differentiable.

Solution

(spoiler)

First, check where the expression inside the absolute value changes sign by solving x2−x=0.

Factoring,

x(x−1)=0x(x−1)=0x=0,1

These are the breakpoints for a piecewise definition.

  1. For x<0:
    A test value likex=−1 makes x2−x positive, so ∣x2−x∣=+(x2−x).

  2. For 0≤x<1:
    A test value likex=0.5 makes x2−x negative, so ∣x2−x∣=−(x2−x).

  3. For x≥1:
    A test value likex=2 makes x2−x positive, so ∣x2−x∣=+(x2−x).

Rewritten in piecewise form,

f(x)=⎩⎨⎧​x2−x−(x2−x)x2−x​ if x<0 if 0≤x<1 if x≥1​

Now check continuity at each breakpoint.

At x=0:

f(0)=0

x→0−lim​(x2−x)=0

x→0+lim​(−x2+x)=0

So the function is continuous at x=0.

At x=1:

f(1)=(1)2−1=0

x→1−lim​(−x2+x)=0

x→1+lim​(x2−x)=0

So the function is also continuous at x=1.

Next, take the derivative on each interval:

f′(x)=⎩⎨⎧​2x−1−2x+12x−1​ if x<0 if 0<x<1 if x>1​

Now compare one-sided derivatives at the breakpoints.

At x=0:

x→0−lim​(2x−1)=−1

x→0+lim​(−2x+1)=1

The one-sided derivatives don’t match, so f(x) is not differentiable at x=0.

At x=1:

x→1−lim​(−2x+1)=−1

x→1+lim​(2x−1)=1

The one-sided derivatives don’t match, so f(x) is not differentiable at x=1.

Confirm visually with the graph of f(x) to see the sharp corners at x=0 and x=1.

  • Differentiability implies continuity, but not vice versa.
  • A function that has a discontinuity, a sharp corner, a cusp, or a vertical tangent will not be differentiable there.
  • Always consider if a function is continuous before checking for differentiability.

Sign up for free to take 7 quiz questions on this topic

All rights reserved ©2016 - 2026 Achievable, Inc.

Differentiability & continuity

What you’ll learn:

  • How to find where a function is not differentiable
  • The relationship between continuity and differentiability

What is differentiability?

A function f(x) is differentiable at x=a if its derivative exists at that point.

There are four common cases where a function is not differentiable at a point x=a:

  1. Discontinuities

A function must be continuous to be differentiable. If there is a removable, jump, or infinite discontinuity at x=a, then the derivative does not exist there.

  • Often seen in rational, piecewise, or logarithmic functions, which may have discontinuities and/or asymptotes
    e.g. f(x)=x1​
  1. Sharp corners

The function changes direction abruptly. The one-sided derivatives exist, but they are not equal.

  • Often seen in absolute value or piecewise functions
    e.g. f(x)=∣x∣
  1. Cusps

Cusps are like corners, but the slope becomes unbounded: one or both one-sided derivatives approach infinity, and they approach opposite infinities.

  • Often seen in power functions with fractional exponents
    e.g. f(x)=x2/3
  1. Vertical tangents

The tangent line becomes vertical. The one-sided derivatives both approach infinity with the same sign.

  • Often seen in radical functions
    e.g. f(x)=x1/3

In the last three cases, the function is continuous, but the graph is not smooth at the non-differentiable point (for a visual, graph each in Desmos).

Remember this phrase:

"If differentiable, then continuous."(D⟹C)

Consequently, the contrapositive is always true:

If not continuous at x=a, then not differentiable there (not C⟹not D).

However, the converse and inverse are not always true. A continuous function can still fail to be differentiable at certain points, e.g. ∣x∣ at x=0.

Checking for differentiability

To check if f(x) is differentiable at x=a,

  1. Continuity: First check whether f(x) is continuous by verifying the conditions stated in Section 1.6: Continuity. If it’s not continuous at x=a, then it’s not differentiable there.
  2. Differentiate: Find f′(x) and look for any x-values where f′(x) is undefined.
  3. If necessary (mostly for piecewise functions): Check that the one-sided derivatives at x=a both exist, are finite, and match. In other words, there must be a finite value L such that

x→a−lim​x−af(x)−f(a)​=L=x→a+lim​x−af(x)−f(a)​​

Examples

  1. Consider the functions:

a) a(x)=1/x
b)b(x)=∣x∣
c)c(x)=x2/3
d)d(x)=x1/3

For what x-value(s) is each non-differentiable and why?

Solutions

a) x1​ has a vertical asymptote at x=0, so it is not continuous there. Since differentiability implies continuity, the derivative does not exist at x=0.

b) b(x)=∣x∣ is continuous everywhere. Its derivative is the piecewise function:

b′(x)=⎩⎨⎧​−11​ if x<0 if x>0​

As x→0−, the derivative approaches −1, and as x→0+, it approaches 1. Because these one-sided derivatives don’t match, b′(0) does not exist. On the graph, this shows up as a sharp corner at x=0.

c) The derivative of c(x)=x2/3 is

c′(x)=32​x−1/3

=3x1/32​

This derivative is undefined when the denominator is 0, which happens at x=0.

Also notice the one-sided behavior:

  • as x→0−, c′(x)→−∞
  • as x→0+, c′(x)→∞

Since the one-sided derivatives approach opposite infinities, the graph has a cusp at x=0, and the function is not differentiable there.

d) The derivative of d(x)=x1/3 is

d′(x)=31​x−2/3

=33x2​1​

This derivative is undefined at x=0.

Because x is squared in the denominator, 3x2​ is positive for x=0. That means d′(x)→+∞ from both sides as x→0. On the graph, this appears as a vertical tangent at x=0, so the function is not differentiable there.

Consider the function f(x) defined as:

f(x)=⎩⎨⎧​3x+2ax2−bx​ if x<1 if x≥1​

Find the values of a and b such that f(x) is differentiable (everywhere).

Solution

(spoiler)

Answer: a=−2,b=−7

If a piecewise function is differentiable, then it must be continuous.

For f(x) to be continuous at x=1, both f(1) and x→1lim​f(x) must exist and be equal.

First,

f(1)​=a(1)2−b(1)=a−b​

Next, compute the one-sided limits:

  • Left:

x→1−lim​(3x+2)=5

  • Right:

x→1+lim​(ax2−bx)=a−b

Continuity requires a−b=5.

Since there are two unknowns, we need a second equation. Differentiate each piece (treating a and b as constants):

f′(x)=⎩⎨⎧​32ax−b​ if x<1 if x>1​

For differentiability at x=1, the one-sided derivatives must match:

3=2a(1)−b

Now solve the system:

a−b2a−b​=5=3​​

This gives

a=−2b=−7

Graph

f(x)=⎩⎨⎧​3x+22x2+7x​ if x<1 if x≥1​

in Desmos to confirm that the curve is unbroken and also smooth.

Identify all the points where f(x)=∣x2−x∣ is not differentiable.

Solution

(spoiler)

First, check where the expression inside the absolute value changes sign by solving x2−x=0.

Factoring,

x(x−1)=0x(x−1)=0x=0,1

These are the breakpoints for a piecewise definition.

  1. For x<0:
    A test value likex=−1 makes x2−x positive, so ∣x2−x∣=+(x2−x).

  2. For 0≤x<1:
    A test value likex=0.5 makes x2−x negative, so ∣x2−x∣=−(x2−x).

  3. For x≥1:
    A test value likex=2 makes x2−x positive, so ∣x2−x∣=+(x2−x).

Rewritten in piecewise form,

f(x)=⎩⎨⎧​x2−x−(x2−x)x2−x​ if x<0 if 0≤x<1 if x≥1​

Now check continuity at each breakpoint.

At x=0:

f(0)=0

x→0−lim​(x2−x)=0

x→0+lim​(−x2+x)=0

So the function is continuous at x=0.

At x=1:

f(1)=(1)2−1=0

x→1−lim​(−x2+x)=0

x→1+lim​(x2−x)=0

So the function is also continuous at x=1.

Next, take the derivative on each interval:

f′(x)=⎩⎨⎧​2x−1−2x+12x−1​ if x<0 if 0<x<1 if x>1​

Now compare one-sided derivatives at the breakpoints.

At x=0:

x→0−lim​(2x−1)=−1

x→0+lim​(−2x+1)=1

The one-sided derivatives don’t match, so f(x) is not differentiable at x=0.

At x=1:

x→1−lim​(−2x+1)=−1

x→1+lim​(2x−1)=1

The one-sided derivatives don’t match, so f(x) is not differentiable at x=1.

Confirm visually with the graph of f(x) to see the sharp corners at x=0 and x=1.

Key points
  • Differentiability implies continuity, but not vice versa.
  • A function that has a discontinuity, a sharp corner, a cusp, or a vertical tangent will not be differentiable there.
  • Always consider if a function is continuous before checking for differentiability.