AP · Calculus AB · Defining the Derivative

Differentiability and Continuity

16 min readUpdated November 30, 2026FreeAP Calculus AB, Derivatives: Definition and Basic Rules

If ff is differentiable at x=ax = a, then ff is continuous at x=ax = a; the reverse is false, because a continuous graph can still have a sharp point. A derivative fails to exist at a corner, a cusp, a vertical tangent or any discontinuity. On the AP® Calculus AB exam you test a piecewise function at its join in two steps: the values must match, and then the one-sided slopes must match.

Quick check

  1. Is g(x)={x+1,x<25−x,x≥2g(x) = \begin{cases} x + 1, & x < 2 \\ 5 - x, & x \ge 2 \end{cases} continuous at x=2x = 2?Show answerHide answer

    Yes. Both pieces give 33 at x=2x = 2, so lim⁡x→2g(x)=3=g(2)\displaystyle\lim_{x \to 2} g(x) = 3 = g(2).

  2. What is f′(a)f'(a) for the straight line f(x)=3x−1f(x) = 3x - 1, at any aa?Show answerHide answer

    33. The difference quotient is 3(a+h)−1−(3a−1)h=3\dfrac{3(a + h) - 1 - (3a - 1)}{h} = 3 for every h≠0h \neq 0, so the limit is 33.

  3. Does f(x)=∣x∣f(x) = |x| have a derivative at x=0x = 0?Show answerHide answer

    No. The graph has slope −1-1 just to the left of 00 and slope 11 just to the right, so there is no single tangent slope there.

Know these already? Jump to the practice questions

What you'll be able to do

  • Explain why a function that is differentiable at a point must be continuous there.
  • Identify corners, cusps, vertical tangents and discontinuities as places where a derivative does not exist.
  • Determine whether a piecewise function is differentiable at its join by checking values and one-sided slopes.
  • Find the constants that make a piecewise function differentiable.

Key terms

Differentiable at x=ax = a

f′(a)=lim⁡h→0f(a+h)−f(a)hf'(a) = \displaystyle\lim_{h \to 0} \frac{f(a + h) - f(a)}{h} exists as a finite number.

In plain English
The graph has one clear, non-vertical tangent line at that point.
Don't write
"differentiable because it is continuous"; continuity alone never proves differentiability.

One-sided slopes

The limits of the difference quotient as h→0−h \to 0^- (the slope from the left) and as h→0+h \to 0^+ (the slope from the right).

In plain English
The slope the graph has as you arrive at the point from each side.
Don't write
"the slopes match, so it is differentiable" before checking that the function is continuous there.

Corner, cusp and vertical tangent

A corner has two different finite one-sided slopes. A cusp has slopes that head to +∞+\infty on one side and −∞-\infty on the other. A vertical tangent has slopes that head to +∞+\infty (or to −∞-\infty) on both sides.

In plain English
A sharp bend, a sharp spike, and a point where the curve stands straight up.
Don't write
"the derivative is infinity" at a vertical tangent; the derivative does not exist there.

Why does differentiable imply continuous?

Suppose f′(a)f'(a) exists. For x≠ax \neq a you can write

f(x)−f(a)=f(x)−f(a)x−a⋅(x−a)f(x) - f(a) = \frac{f(x) - f(a)}{x - a} \cdot (x - a)

As x→ax \to a, the fraction tends to f′(a)f'(a), a finite number, and (x−a)(x - a) tends to 00. So f(x)−f(a)→f′(a)⋅0=0f(x) - f(a) \to f'(a) \cdot 0 = 0, which means lim⁡x→af(x)=f(a)\displaystyle\lim_{x \to a} f(x) = f(a). That is continuity.

Learn this: if ff is differentiable at x=ax = a, then ff is continuous at x=ax = a.

Read it in the useful direction: if ff is not continuous at aa, then ff is not differentiable at aa. A jump, a hole or an asymptote kills the derivative straight away.

The reverse statement is false. f(x)=∣x∣f(x) = |x| is continuous at 00, but the slopes from the left and right are −1-1 and 11, so f′(0)f'(0) does not exist.

Key idea

Differentiable forces continuous, but continuous does not force differentiable.

Check yourself

ff is continuous at x=4x = 4. Can you conclude that f′(4)f'(4) exists?
Show answerHide answer

No. Continuity is necessary for a derivative but not enough; ff could have a corner, cusp or vertical tangent at x=4x = 4.

Where can a derivative fail to exist?

There are four situations, and you can spot each on a graph.

FeatureExample at x=0x = 0What the slopes do
Discontinuitya jump or a holethe function is not even continuous
Corner∣x∣\lvert x \rvertfinite, but different on each side
Cuspx2/3x^{2/3}−∞-\infty from the left, +∞+\infty from the right
Vertical tangentx1/3x^{1/3}+∞+\infty from both sides

On a graph, look for a break, a sharp point, or a place where the curve becomes vertical. A smooth curve that you can trace without a sharp turn and without standing up straight has a derivative at every point.

Polynomials, sin⁡x\sin x, cos⁡x\cos x and exe^x have no such points, so they are differentiable everywhere. Absolute values, roots and piecewise definitions are where to look for trouble.

Check yourself

f(x)=∣x−5∣f(x) = |x - 5|. Where does f′(x)f'(x) fail to exist, and what kind of point is it?
Show answerHide answer

At x=5x = 5, where the graph has a corner: the slope is −1-1 to the left and 11 to the right.

How do you check a piecewise function at its join?

At the join x=ax = a, work in this order.

  1. Values match. Find f(a)f(a) and the limits from each piece. If they are not all equal, ff is not continuous at aa, so it is not differentiable. Stop.
  2. Slopes match. Differentiate each piece and evaluate both derivatives at x=ax = a. If the two numbers are equal, ff is differentiable at aa and f′(a)f'(a) is that number. If they differ, the graph has a corner.

You need the derivative of each piece. For a line mx+cmx + c it is mm; for x2x^2 it is 2x2x, which you can get from the limit definition and which the note on The Power Rule, Sums and Constant Multiples turns into a one-line rule.

Step 1 is not optional. If the slopes agree but the values do not, the graph has a jump and f′(a)f'(a) does not exist.

Examiner's eye

Marks go to a justification that names both checks: the left and right values equal f(a)f(a), and the left and right derivatives are equal.

Check yourself

Two pieces meet at x=1x = 1 with left value 44 and right value 44, left slope 22 and right slope 55. Is the function differentiable at x=1x = 1?
Show answerHide answer

No. It is continuous at x=1x = 1 because the values match, but the slopes 22 and 55 differ, so there is a corner.

Which method fits the question?

What the question showsWhat to do
A graph and "where is ff not differentiable?"Look for breaks, sharp points and vertical tangents
A formula with ∣⋅∣\lvert \cdot \rvert or a rootCheck where the inside is 00 for a corner, cusp or vertical tangent
A piecewise function and "is ff differentiable at the join?"Check values first, then one-sided slopes
"Find the constants so that ff is differentiable"Write one equation for the values and one for the slopes, then solve

Worked example 1: An absolute value function

Question: Let f(x)=∣x−3∣+1f(x) = |x - 3| + 1. Determine whether ff is continuous at x=3x = 3 and whether it is differentiable at x=3x = 3.

What tells you the method

The absolute value is 00 at x=3x = 3, which is where a corner can appear, so check continuity and then the slopes on each side.

  1. Step 1: Check continuity.

    For xx near 33 from either side, ∣x−3∣+1→0+1=1|x - 3| + 1 \to 0 + 1 = 1, and f(3)=1f(3) = 1.

    Why

    A derivative cannot exist where the function is not continuous.

  2. Step 2: Find the slope on each side.

    For x<3x < 3, f(x)=−(x−3)+1=−x+4f(x) = -(x - 3) + 1 = -x + 4, with slope −1-1. For x>3x > 3, f(x)=x−3+1=x−2f(x) = x - 3 + 1 = x - 2, with slope 11.

    Why

    Removing the absolute value on each side turns ff into two lines.

  3. Step 3: Compare.

    The one-sided slopes are −1-1 and 11, which are different.

    Why

    A derivative needs one slope from both sides.

Check it

f(2.9)=1.1f(2.9) = 1.1 and f(3.1)=1.1f(3.1) = 1.1, so the graph rises on both sides of the lowest point (3,1)(3, 1): a V shape with a corner.

Answer

ff is continuous at x=3x = 3 but not differentiable there, because the slopes from the left and right are −1-1 and 11.

Worked example 2: A smooth join

Question: Let g(x)={x2+1,x≤12x,x>1g(x) = \begin{cases} x^2 + 1, & x \le 1 \\ 2x, & x > 1 \end{cases}. Is gg differentiable at x=1x = 1? If so, find g′(1)g'(1).

What tells you the method

A piecewise function and a question about the join means you check values, then slopes.

  1. Step 1: Values.

    The left piece gives g(1)=1+1=2g(1) = 1 + 1 = 2, and the right piece tends to 2(1)=22(1) = 2.

    Why

    The left value, right limit and g(1)g(1) all equal 22, so gg is continuous at 11.

  2. Step 2: Slopes.

    The left piece has derivative 2x2x, which is 22 at x=1x = 1. The right piece has derivative 22.

    Why

    Both one-sided slopes come from differentiating each piece and evaluating at the join.

  3. Step 3: Conclude.

    Values match and slopes match, so gg is differentiable at x=1x = 1.

    Why

    Both conditions hold.

Check it

The line y=2xy = 2x is the tangent line to y=x2+1y = x^2 + 1 at (1,2)(1, 2), which is why the two pieces join without a corner.

Answer

Yes, gg is differentiable at x=1x = 1, and g′(1)=2g'(1) = 2.

Worked example 3: Finding the constants

Question: Let f(x)={kx2+3,x≤2mx−1,x>2f(x) = \begin{cases} kx^2 + 3, & x \le 2 \\ mx - 1, & x > 2 \end{cases}, where kk and mm are constants. Find kk and mm so that ff is differentiable at x=2x = 2.

What tells you the method

Two unknowns and "differentiable at the join" means two equations: one from the values and one from the slopes.

  1. Step 1: Match the values.

    k(2)2+3=m(2)−1k(2)^2 + 3 = m(2) - 1, so 4k+3=2m−14k + 3 = 2m - 1.

    Why

    Differentiable means continuous, so the pieces must meet.

  2. Step 2: Match the slopes.

    The left derivative is 2kx2kx, which is 4k4k at x=2x = 2; the right derivative is mm. So 4k=m4k = m.

    Why

    A single tangent slope at the join needs equal one-sided slopes.

  3. Step 3: Solve.

    Substitute m=4km = 4k: 4k+3=8k−14k + 3 = 8k - 1, so 4k=44k = 4, giving k=1k = 1 and m=4m = 4.

    Why

    Two equations fix the two constants.

Check it

With k=1k = 1 and m=4m = 4, both pieces give 77 at x=2x = 2, and both slopes are 44.

Answer

k=1k = 1 and m=4m = 4.

Your turn

Question: Let h(x)={3x−2,x<2x2,x≥2h(x) = \begin{cases} 3x - 2, & x < 2 \\ x^2, & x \ge 2 \end{cases}. Is hh differentiable at x=2x = 2?

  1. Step 1:

    Values: the left piece tends to 3(2)−2=43(2) - 2 = 4, and h(2)=22=4h(2) = 2^2 = 4, so hh is continuous at x=2x = 2.

  2. Step 2: Your go: compare the slopes.

    Differentiate each piece, evaluate at x=2x = 2, and decide before you open the solution.

Show the full solutionHide the solution

The left piece has slope 33. The right piece has derivative 2x2x, which is 44 at x=2x = 2. The slopes 33 and 44 differ, so the graph has a corner at x=2x = 2.

Answer: No. hh is continuous at x=2x = 2, but the left slope is 33 and the right slope is 44, so hh is not differentiable at x=2x = 2.

Traps

Trap

Thinking a continuous function must be differentiable.

It seems right because the two ideas are linked, and every differentiable function is continuous. But the link runs one way only. ∣x∣|x| is continuous at 00 and still has no derivative there, because its graph has a corner.

Check yourself

Which of these is true: "continuous at aa implies differentiable at aa" or "differentiable at aa implies continuous at aa"?
Show answerHide answer

"Differentiable at aa implies continuous at aa". The other statement fails for ∣x∣|x| at 00.

Trap

Checking only the slopes at a piecewise join.

It seems right because the derivative is about slopes. But if the pieces do not meet, the graph jumps and there is no derivative at all. Take x2x^2 for x<1x < 1 and 2x2x for x≥1x \ge 1: both slopes are 22 at x=1x = 1, but the values are 11 and 22, so the function is not even continuous there.

Check yourself

Two pieces have equal slopes at x=ax = a, but their values there are 55 and 77. Is the function differentiable at x=ax = a?
Show answerHide answer

No. The values differ, so the function is not continuous at aa, and a function that is not continuous cannot be differentiable.

What's examined

Differentiability and continuity belong to Unit 2 (Derivatives: Definition and Basic Rules) of the AP® Calculus AB exam. Multiple-choice questions show a graph or a piecewise function and ask where ff is not differentiable, or which statement must be true. Free-response parts use "Justify" or "Give a reason for your answer", and the credit is for checking continuity and the one-sided slopes out loud. No graphing calculator is needed.

Practice questions

  1. Recall Which statement is always true?
    • A) If ff is continuous at x=ax = a, then ff is differentiable at x=ax = a.
    • B) If ff is differentiable at x=ax = a, then ff is continuous at x=ax = a.
    • C) If ff is not differentiable at x=ax = a, then ff is not continuous at x=ax = a.
    • D) If f(a)f(a) is defined, then f′(a)f'(a) exists.
Show answer

Answer: B) If ff is differentiable at x=ax = a, then ff is continuous at x=ax = a.

Marking points:

  • B is the theorem: a derivative forces continuity.
  • A is the converse, which fails for ∣x∣|x| at 00.
  • C is the same false converse in another form; ∣x∣|x| is a counterexample again.
  • D fails at any corner, such as ∣x∣|x| at 00, where f(0)=0f(0) = 0 is defined.
  1. Recall What happens on the graph of f(x)=x1/3f(x) = x^{1/3} at x=0x = 0?
    • A) A corner
    • B) A cusp
    • C) A vertical tangent
    • D) A jump discontinuity
Show answer

Answer: C) A vertical tangent.

Marking points:

  • x1/3x^{1/3} is continuous at 00, and its slopes head to +∞+\infty from both sides, so the tangent line is vertical.
  • A needs two different finite slopes.
  • B needs slopes of opposite infinite signs, as for x2/3x^{2/3}.
  • D is wrong: x1/3x^{1/3} is continuous at 00.
  1. Apply Which function is continuous at x=1x = 1 but not differentiable there?
    • A) f(x)=∣x−1∣f(x) = |x - 1|
    • B) f(x)=(x−1)2f(x) = (x - 1)^2
    • C) f(x)=1x−1f(x) = \dfrac{1}{x - 1}
    • D) f(x)=x3f(x) = x^3
Show answer

Answer: A) f(x)=∣x−1∣f(x) = |x - 1|.

Marking points:

  • ∣x−1∣|x - 1| is continuous at 11 with slopes −1-1 and 11: a corner.
  • B and D are polynomials, so they are differentiable at 11.
  • C is not continuous at 11, so it fails the first condition.
  1. Apply Let g(x)={x2,x≤24x−4,x>2g(x) = \begin{cases} x^2, & x \le 2 \\ 4x - 4, & x > 2 \end{cases}. Which statement about gg at x=2x = 2 is true?
    • A) gg is not continuous at x=2x = 2.
    • B) gg is continuous at x=2x = 2 but not differentiable there.
    • C) gg is differentiable at x=2x = 2, and g′(2)=2g'(2) = 2.
    • D) gg is differentiable at x=2x = 2, and g′(2)=4g'(2) = 4.
Show answer

Answer: D) gg is differentiable at x=2x = 2, and g′(2)=4g'(2) = 4.

Marking points:

  • Values: 22=42^2 = 4 and 4(2)−4=44(2) - 4 = 4, so gg is continuous at 22.
  • Slopes: 2x=42x = 4 at x=2x = 2 from the left, and 44 from the right, so g′(2)=4g'(2) = 4.
  • A and B miss that both checks pass.
  • C takes the derivative of x2x^2 to be xx.
  1. Apply For f(x)=∣2x−6∣f(x) = |2x - 6|, find the slope of the graph just to the left of x=3x = 3 and just to the right of x=3x = 3, and state whether f′(3)f'(3) exists.
Show answer

Answer: The slope is −2-2 to the left and 22 to the right, so f′(3)f'(3) does not exist.

Marking points:

  • For x<3x < 3, f(x)=−(2x−6)=6−2xf(x) = -(2x - 6) = 6 - 2x, with slope −2-2.
  • For x>3x > 3, f(x)=2x−6f(x) = 2x - 6, with slope 22.
  • The slopes differ, so the graph has a corner at x=3x = 3.
  1. Exam-style Let f(x)={3−x2,x≤1ax+b,x>1f(x) = \begin{cases} 3 - x^2, & x \le 1 \\ ax + b, & x > 1 \end{cases}, where aa and bb are constants. Find the values of aa and bb for which ff is differentiable at x=1x = 1.
Show answer

Answer: a=−2a = -2 and b=4b = 4.

Marking points:

  • Values: 3−12=a+b3 - 1^2 = a + b, so a+b=2a + b = 2.
  • Slopes: the left derivative is −2x=−2-2x = -2 at x=1x = 1, and the right derivative is aa, so a=−2a = -2.
  • Then b=2−a=4b = 2 - a = 4. Check: both pieces give 22 at x=1x = 1, and both slopes are −2-2.
  1. Exam-style Let g(x)={kx−1,x<2x2+1,x≥2g(x) = \begin{cases} kx - 1, & x < 2 \\ x^2 + 1, & x \ge 2 \end{cases}, where kk is a constant. (a) Find kk so that gg is continuous at x=2x = 2. (b) For that value of kk, find the slopes of gg from the left and from the right at x=2x = 2, and determine whether gg is differentiable at x=2x = 2.
Show answer

Answer: (a) k=3k = 3. (b) The left slope is 33 and the right slope is 44, so gg is not differentiable at x=2x = 2.

Marking points:

  • Continuity: 2k−1=22+1=52k - 1 = 2^2 + 1 = 5, so k=3k = 3.
  • Left slope: k=3k = 3. Right slope: 2x=42x = 4 at x=2x = 2.
  • The values match but the slopes differ, so the graph has a corner at x=2x = 2.

Key points

Recall, then reveal

Say the main points from memory first, then check them.

Show key pointsHide key points
  • A derivative at a point forces continuity there; a discontinuity rules out a derivative.
  • Continuity is not enough: corners, cusps and vertical tangents are continuous but have no derivative.
  • At a piecewise join, check that the values match first, then that the one-sided slopes match.
  • To find two constants for differentiability, write one equation for the values and one for the slopes.

Keep learning

Explore AP Calculus AB tutoring →

View the full Calculus AB syllabus →

More in this unit

Derivatives: Definition and Basic Rules

All Defining the Derivative notes

Part of Novark's AP Calculus AB notes