AP · Calculus AB · Continuity

Continuity and Types of Discontinuity

16 min readUpdated November 30, 2026FreeAP Calculus AB, Limits and Continuity

A function ff is continuous at x=ax = a when three things hold: f(a)f(a) is defined, lim⁡x→af(x)\lim_{x \to a} f(x) exists, and the two are equal. When one of them fails, the discontinuity is removable (a hole), a jump, or infinite (a vertical asymptote), and which condition fails tells you which type it is.

Quick check

  1. For f(x)=x+1f(x) = x + 1 when x<2x < 2 and f(x)=5f(x) = 5 when x≥2x \geq 2, what are lim⁡x→2−f(x)\lim_{x \to 2^-} f(x) and lim⁡x→2+f(x)\lim_{x \to 2^+} f(x)?Show answerHide answer

    33 and 55. The left side uses x+1x + 1, and the right side uses the constant 55.

  2. Evaluate lim⁡x→3x2−9x−3\lim_{x \to 3} \dfrac{x^2 - 9}{x - 3}.Show answerHide answer

    66. The quotient equals x+3x + 3 for x≠3x \neq 3, which approaches 66.

  3. If lim⁡x→1f(x)=4\lim_{x \to 1} f(x) = 4 and f(1)=4f(1) = 4, is there a break in the graph at x=1x = 1?Show answerHide answer

    No. The curve heads for height 44 and the point at x=1x = 1 sits exactly there, so the graph joins up. That is what continuity means.

Know these already? Jump to the practice questions

What you'll be able to do

  • State the three conditions for continuity at a point and check each one.
  • Identify a discontinuity as removable, jump or infinite, and give the reason.
  • Explain where polynomial, rational, root, trig, exponential and log functions are continuous.
  • Find a constant that makes a piecewise function continuous.
  • Find the value that removes a removable discontinuity when a function is redefined at one point.

Key terms

Continuous at a point

ff is continuous at x=ax = a if f(a)f(a) is defined, lim⁡x→af(x)\lim_{x \to a} f(x) exists, and lim⁡x→af(x)=f(a)\lim_{x \to a} f(x) = f(a).

In plain English
The graph has no break at x=ax = a; you could draw through it without lifting your pencil.
Don't write
"continuous because it is defined at aa"; being defined is only the first of three conditions.

Removable discontinuity

A discontinuity where lim⁡x→af(x)\lim_{x \to a} f(x) exists, but f(a)f(a) is undefined or not equal to it.

In plain English
A hole, or a single point moved out of line, that one new value would fix.
Don't write
"removable" for a jump; a jump has no single limit to fill in.

Jump discontinuity

A discontinuity where both one-sided limits exist as finite numbers but are not equal.

In plain English
The graph steps up or down to a new height.
Don't write
"jump" when only f(a)f(a) is out of line; that is removable.

Infinite discontinuity

A discontinuity where at least one one-sided limit is ∞\infty or −∞-\infty.

In plain English
A vertical asymptote.
Don't write
"infinite" at a zero of the denominator that cancels; that is a hole.

What makes a function continuous at a point?

Learn this: ff is continuous at x=ax = a when all three conditions hold.

  1. f(a)f(a) is defined.
  2. lim⁡x→af(x)\lim_{x \to a} f(x) exists, so both one-sided limits exist and are equal.
  3. lim⁡x→af(x)=f(a)\lim_{x \to a} f(x) = f(a).

Each condition catches something the others miss. A graph with a hole fails condition 1. A graph that steps to a new height fails condition 2. A graph whose curve heads for one height while the dot at x=ax = a sits at another passes conditions 1 and 2 but fails condition 3.

On a closed interval [a,b][a, b], continuity at the endpoints uses one-sided limits: you need lim⁡x→a+f(x)=f(a)\lim_{x \to a^+} f(x) = f(a) and lim⁡x→b−f(x)=f(b)\lim_{x \to b^-} f(x) = f(b). This matters later for theorems such as the one in the note on the intermediate value theorem, which needs continuity on a closed interval.

Key idea

Continuity at aa means the limit exists and equals the value: lim⁡x→af(x)=f(a)\lim_{x \to a} f(x) = f(a).

Examiner's eye

Marks go to a justification that shows all three conditions with numbers: state f(a)f(a), show both one-sided limits, and say that they all agree.

Check yourself

If f(2)=7f(2) = 7 and lim⁡x→2f(x)=7\lim_{x \to 2} f(x) = 7, is ff continuous at x=2x = 2?
Show answerHide answer

Yes. f(2)f(2) is defined, the limit exists, and they are equal, so all three conditions hold.

How do you tell the types of discontinuity apart?

Find which condition fails, and how.

TypeWhat failsWhat the graph shows
RemovableThe limit exists, but f(a)f(a) is missing or differentA hole, possibly with a stray dot
JumpThe one-sided limits are finite but unequalA step between two heights
InfiniteA one-sided limit is ∞\infty or −∞-\inftyA vertical asymptote

For a rational function, the denominator's zeros are the candidates. Factor and cancel. A factor that cancels completely leaves a hole, so the discontinuity is removable. A factor that stays in the denominator gives an infinite discontinuity. Jumps usually come from piecewise functions, at a point where the rule changes.

Check yourself

f(x)=x−1x2−1f(x) = \dfrac{x - 1}{x^2 - 1}. What type of discontinuity does ff have at x=1x = 1, and at x=−1x = -1?
Show answerHide answer

Removable at x=1x = 1, because x−1x - 1 cancels to leave 1x+1\frac{1}{x + 1}. Infinite at x=−1x = -1, because x+1x + 1 stays in the denominator.

Where are the standard functions continuous?

Learn this: each of these is continuous at every point of its domain.

  • Polynomials, sin⁡x\sin x, cos⁡x\cos x and exe^x: every real number.
  • Rational functions: everywhere except the zeros of the denominator.
  • x\sqrt{x}: x≥0x \geq 0, one-sided at x=0x = 0. ln⁡x\ln x: x>0x > 0.
  • tan⁡x\tan x: everywhere except x=π2+nπx = \frac{\pi}{2} + n\pi, for integers nn.

Sums, differences, products and compositions of continuous functions are continuous, and so are quotients wherever the denominator is not 00. So a formula built from these pieces is continuous wherever it is defined.

This saves work with piecewise functions. If each piece is continuous on its own interval, the only points you need to check are the joins, where the rule changes.

Check yourself

Where is f(x)=ln⁡xx−3f(x) = \dfrac{\ln x}{x - 3} continuous?
Show answerHide answer

For x>0x > 0 with x≠3x \neq 3: ln⁡x\ln x needs x>0x > 0, and the denominator is 00 at x=3x = 3.

How do you remove a removable discontinuity?

A removable discontinuity is fixed by changing one value: define, or redefine, f(a)f(a) to be lim⁡x→af(x)\lim_{x \to a} f(x). Then all three conditions hold.

For f(x)=x2−9x−3f(x) = \dfrac{x^2 - 9}{x - 3}, the limit at x=3x = 3 is 66, so the new function

g(x)={x2−9x−3x≠36x=3g(x) = \begin{cases} \dfrac{x^2 - 9}{x - 3} & x \neq 3 \\ 6 & x = 3 \end{cases}

is continuous at x=3x = 3, and in fact everywhere, since g(x)=x+3g(x) = x + 3.

A jump or an infinite discontinuity cannot be fixed this way. Changing one value never makes unequal one-sided limits agree, and no number can equal an infinite limit.

Check yourself

Can you redefine f(1)f(1) to make ff continuous at x=1x = 1 if lim⁡x→1−f(x)=2\lim_{x \to 1^-} f(x) = 2 and lim⁡x→1+f(x)=4\lim_{x \to 1^+} f(x) = 4?
Show answerHide answer

No. That is a jump: the two-sided limit does not exist, so no single value of f(1)f(1) can equal it.

Worked example 1: Classifying and removing

Question: Let f(x)=x2−x−2x2−4f(x) = \dfrac{x^2 - x - 2}{x^2 - 4}. Find each value of xx at which ff is discontinuous, classify each discontinuity, and give the value f(2)f(2) should be given to remove any removable discontinuity.

What tells you the method

A rational function is discontinuous only where its denominator is 00; factoring tells you which type each one is.

  1. Step 1: Find the candidates.

    x2−4=0x^2 - 4 = 0 at x=2x = 2 and x=−2x = -2.

    Why

    A rational function is continuous everywhere else.

  2. Step 2: Factor and cancel.

    f(x)=(x−2)(x+1)(x−2)(x+2)=x+1x+2f(x) = \dfrac{(x - 2)(x + 1)}{(x - 2)(x + 2)} = \dfrac{x + 1}{x + 2} for x≠2x \neq 2.

    Why

    A canceled factor marks a hole; a remaining factor marks an asymptote.

  3. Step 3: Classify x=2x = 2.

    lim⁡x→2f(x)=34\lim_{x \to 2} f(x) = \frac{3}{4}, but f(2)f(2) is undefined, so the discontinuity is removable.

    Why

    The limit exists, so only condition 1 fails.

  4. Step 4: Classify x=−2x = -2.

    The top approaches −1-1 and the bottom approaches 00, so ff is unbounded there: an infinite discontinuity.

    Why

    Nonzero over zero means a vertical asymptote.

Check it

f(1.999)≈0.7499f(1.999) \approx 0.7499 and f(2.001)≈0.7501f(2.001) \approx 0.7501, both close to 34\frac{3}{4}.

Answer

Removable at x=2x = 2, removed by defining f(2)=34f(2) = \frac{3}{4}; infinite at x=−2x = -2.

Worked example 2: Justifying a jump

Question: Let g(x)={2x+1x≤2x2−1x>2g(x) = \begin{cases} 2x + 1 & x \leq 2 \\ x^2 - 1 & x > 2 \end{cases}. Determine whether gg is continuous at x=2x = 2. Justify your answer.

What tells you the method

"Justify" at the join of a piecewise function means you work through the three conditions with numbers.

  1. Step 1: Condition 1.

    g(2)=2(2)+1=5g(2) = 2(2) + 1 = 5, so g(2)g(2) is defined.

    Why

    x=2x = 2 belongs to the rule x≤2x \leq 2.

  2. Step 2: Condition 2.

    lim⁡x→2−g(x)=5\lim_{x \to 2^-} g(x) = 5 and lim⁡x→2+g(x)=4−1=3\lim_{x \to 2^+} g(x) = 4 - 1 = 3.

    Why

    Each side uses its own rule.

  3. Step 3: Conclude.

    5≠35 \neq 3, so lim⁡x→2g(x)\lim_{x \to 2} g(x) does not exist, and gg is not continuous at x=2x = 2. Both one-sided limits are finite, so this is a jump discontinuity.

    Why

    Condition 2 fails, and a failure with finite, unequal sides is a jump.

Check it

g(1.99)=4.98g(1.99) = 4.98 and g(2.01)=3.0401g(2.01) = 3.0401, which sit near 55 and 33, with a gap of about 22.

Answer

gg is not continuous at x=2x = 2: lim⁡x→2−g(x)=5\lim_{x \to 2^-} g(x) = 5 and lim⁡x→2+g(x)=3\lim_{x \to 2^+} g(x) = 3 are not equal, so it is a jump discontinuity.

Worked example 3: Two constants, two joins

Question: Let f(x)={ax+2x<1x2+b1≤x≤34x−ax>3f(x) = \begin{cases} ax + 2 & x < 1 \\ x^2 + b & 1 \leq x \leq 3 \\ 4x - a & x > 3 \end{cases}, where aa and bb are constants. Find the values of aa and bb that make ff continuous for all real xx.

What tells you the method

Every piece is a polynomial, so only the joins x=1x = 1 and x=3x = 3 need checking, and each gives one equation.

  1. Step 1: Match at x=1x = 1.

    Left: a+2a + 2. Right and f(1)f(1): 1+b1 + b. So a+2=1+ba + 2 = 1 + b, which gives a−b=−1a - b = -1.

    Why

    Continuity at the join needs the one-sided limits and the value to agree.

  2. Step 2: Match at x=3x = 3.

    Left and f(3)f(3): 9+b9 + b. Right: 12−a12 - a. So 9+b=12−a9 + b = 12 - a, which gives a+b=3a + b = 3.

    Why

    The same condition at the second join.

  3. Step 3: Solve the pair.

    Adding the equations gives 2a=22a = 2, so a=1a = 1, and then b=2b = 2.

    Why

    Two equations fix two unknowns.

Check it

At x=1x = 1, 1+2=31 + 2 = 3 and 1+2=31 + 2 = 3; at x=3x = 3, 9+2=119 + 2 = 11 and 12−1=1112 - 1 = 11. Both joins match.

Answer

a=1a = 1 and b=2b = 2.

Your turn

Question: Let f(x)={x2−16x−4x≠4kx=4f(x) = \begin{cases} \dfrac{x^2 - 16}{x - 4} & x \neq 4 \\ k & x = 4 \end{cases}. Find the value of kk that makes ff continuous at x=4x = 4.

  1. Step 1:

    For x≠4x \neq 4, x2−16x−4=(x−4)(x+4)x−4=x+4\dfrac{x^2 - 16}{x - 4} = \dfrac{(x - 4)(x + 4)}{x - 4} = x + 4.

  2. Step 2: Your go: find lim⁡x→4f(x)\lim_{x \to 4} f(x) and set kk equal to it.

Show the full solutionHide the solution

lim⁡x→4(x+4)=8\lim_{x \to 4} (x + 4) = 8. Continuity needs f(4)=lim⁡x→4f(x)f(4) = \lim_{x \to 4} f(x), so k=8k = 8.

Answer: k=8k = 8.

Traps

Trap

Thinking ff is continuous at aa because lim⁡x→af(x)\lim_{x \to a} f(x) exists.

It seems right because the graph looks joined up from both sides. But condition 3 also needs f(a)f(a) to equal that limit: a stray dot at a different height breaks continuity.

Check yourself

lim⁡x→0f(x)=2\lim_{x \to 0} f(x) = 2 and f(0)=5f(0) = 5. Is ff continuous at x=0x = 0?
Show answerHide answer

No. The limit exists, but it does not equal f(0)f(0), so this is a removable discontinuity.

Trap

Calling every zero of the denominator an infinite discontinuity.

It seems right because dividing by zero usually means an asymptote. But if the factor cancels, the limit exists and the discontinuity is removable.

Check yourself

What type of discontinuity does x2+2xx\dfrac{x^2 + 2x}{x} have at x=0x = 0?
Show answerHide answer

Removable. The quotient is x+2x + 2 for x≠0x \neq 0, so the limit is 22, but the function is undefined at 00.

Trap

Checking only that the two pieces give the same value at the join, and forgetting f(a)f(a).

It seems right because matching the pieces usually settles it. But if the join point is defined separately, as in "f(2)=4f(2) = 4", that value must match too.

Check yourself

Both pieces approach 66 at x=1x = 1, but f(1)=0f(1) = 0. Is ff continuous at x=1x = 1?
Show answerHide answer

No. The limit is 66 but f(1)=0f(1) = 0, so condition 3 fails.

What's examined

Continuity is part of Unit 1 (Limits and Continuity) of the AP® Calculus AB exam. Expect to classify discontinuities from a graph or a formula, find constants that make a piecewise function continuous, and justify continuity or discontinuity at a point using the three conditions with numbers. Continuity is also a condition you check before using theorems later in the course, starting with the intermediate value theorem. Command words include Determine, Find and Justify.

Practice questions

  1. Recall Which of these is not one of the three conditions for ff to be continuous at x=ax = a?
    • A) f(a)f(a) is defined.
    • B) lim⁡x→af(x)\lim_{x \to a} f(x) exists.
    • C) lim⁡x→af(x)=f(a)\lim_{x \to a} f(x) = f(a).
    • D) The graph of ff has no sharp corner at x=ax = a.
Show answer

Answer: D) The graph has no sharp corner at x=ax = a.

Marking points:

  • Continuity needs only A, B and C.
  • A corner does not break continuity: ∣x∣|x| has a corner at x=0x = 0, yet lim⁡x→0∣x∣=0=∣0∣\lim_{x \to 0} |x| = 0 = |0|.
  1. Recall Let f(x)=x+3x2+2x−3f(x) = \dfrac{x + 3}{x^2 + 2x - 3}. What type of discontinuity does ff have at x=−3x = -3?
    • A) Removable
    • B) Jump
    • C) Infinite
    • D) None: ff is continuous at x=−3x = -3.
Show answer

Answer: A) Removable.

Marking points:

  • x+3(x+3)(x−1)=1x−1\dfrac{x + 3}{(x + 3)(x - 1)} = \dfrac{1}{x - 1} for x≠−3x \neq -3, so the limit at −3-3 is −14-\frac{1}{4}.
  • f(−3)f(-3) is undefined, so the discontinuity is removable.
  • B needs a piecewise step. C confuses a canceled factor with an asymptote. D forgets that f(−3)f(-3) is still undefined after canceling.
  1. Apply Let f(x)={x2−2x<32x+cx≥3f(x) = \begin{cases} x^2 - 2 & x < 3 \\ 2x + c & x \geq 3 \end{cases}. Find the value of cc that makes ff continuous at x=3x = 3.
Show answer

Answer: c=1c = 1.

Marking points:

  • Left-hand limit: 9−2=79 - 2 = 7.
  • Right-hand limit and f(3)f(3): 6+c6 + c.
  • 6+c=76 + c = 7, so c=1c = 1.
  1. Apply On which set is f(x)=x−2x−5f(x) = \dfrac{\sqrt{x - 2}}{x - 5} continuous?
    • A) (−∞,5)∪(5,∞)(-\infty, 5) \cup (5, \infty)
    • B) [2,∞)[2, \infty)
    • C) [2,5)∪(5,∞)[2, 5) \cup (5, \infty)
    • D) (2,5)∪(5,∞)(2, 5) \cup (5, \infty)
Show answer

Answer: C) [2,5)∪(5,∞)[2, 5) \cup (5, \infty).

Marking points:

  • The root needs x≥2x \geq 2, and the denominator is 00 at x=5x = 5.
  • At x=2x = 2, f(2)=0f(2) = 0 and the right-hand limit is 00, so ff is continuous there from the right.
  • A ignores the root. B ignores the denominator. D drops the endpoint 22.
  1. Exam-style Let g(x)={x2+1x<24x=23x−1x>2g(x) = \begin{cases} x^2 + 1 & x < 2 \\ 4 & x = 2 \\ 3x - 1 & x > 2 \end{cases}. Which statement is true?
    • A) gg is continuous at x=2x = 2.
    • B) gg has a removable discontinuity at x=2x = 2.
    • C) gg has a jump discontinuity at x=2x = 2.
    • D) lim⁡x→2g(x)\lim_{x \to 2} g(x) does not exist.
Show answer

Answer: B) gg has a removable discontinuity at x=2x = 2.

Marking points:

  • Left: 4+1=54 + 1 = 5. Right: 6−1=56 - 1 = 5. So lim⁡x→2g(x)=5\lim_{x \to 2} g(x) = 5, but g(2)=4g(2) = 4.
  • A ignores the third condition. C confuses a stray value with a step. D thinks the moved point destroys the limit.
  1. Exam-style The function h(x)=x+5−3x−4h(x) = \dfrac{\sqrt{x + 5} - 3}{x - 4} is undefined at x=4x = 4. Find the value that h(4)h(4) should be given so that hh is continuous at x=4x = 4.
Show answer

Answer: h(4)=16h(4) = \frac{1}{6}.

Marking points:

  • Multiply by the conjugate: x−4(x−4)(x+5+3)=1x+5+3\dfrac{x - 4}{(x - 4)(\sqrt{x + 5} + 3)} = \dfrac{1}{\sqrt{x + 5} + 3} for x≠4x \neq 4.
  • The limit at 44 is 13+3=16\frac{1}{3 + 3} = \frac{1}{6}.
  • Define h(4)h(4) as that limit.
  1. Exam-style Let f(x)={kx2x≤23x+kx>2f(x) = \begin{cases} kx^2 & x \leq 2 \\ 3x + k & x > 2 \end{cases}, where kk is a constant. (a) Find the value of kk that makes ff continuous at x=2x = 2. (b) For that kk, find f(2)f(2) and show that the three conditions hold.
Show answer

Answer: (a) k=2k = 2. (b) f(2)=8f(2) = 8, and both one-sided limits equal 88.

Marking points:

  • Left and f(2)f(2): 4k4k. Right: 6+k6 + k.
  • 4k=6+k4k = 6 + k, so 3k=63k = 6 and k=2k = 2.
  • With k=2k = 2: f(2)=8f(2) = 8, the left-hand limit is 88, the right-hand limit is 6+2=86 + 2 = 8, so the limit exists and equals f(2)f(2).

Key points

Recall, then reveal

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

Show key pointsHide key points
  • Continuity at aa needs f(a)f(a) defined, the limit to exist, and the two to be equal.
  • Removable: the limit exists but misses f(a)f(a). Jump: finite one-sided limits that differ. Infinite: a one-sided limit is ±∞\pm\infty.
  • Standard functions are continuous on their domains, so for piecewise functions you only check the joins.
  • Match each join's one-sided limits and value to find unknown constants.
  • Remove a removable discontinuity by defining f(a)f(a) as the limit; jumps and asymptotes cannot be removed.

Keep learning

Prerequisites: What a Limit Means

Explore AP Calculus AB tutoring →

View the full Calculus AB syllabus →

More in this unit

Limits and Continuity

All Continuity notes

Part of Novark's AP Calculus AB notes