Specialty Digest

Global English editionLearners’ Study Dashboard — in development
The Knowledge Library for All

Calculus I: Limits, Differentiation & Integration / Module 1, Limits

Limit Laws and Continuity

Learn the limit laws, test whether a function is continuous with the three conditions, classify discontinuities in a live checker, and use the Intermediate Value Theorem, with worked examples, graded practice and full answers.

  • Calculus
  • University, first year
  • About 60 minutes
  • Continuity checker, worked examples and practice

1Learning goal: what you will be able to do

Lesson 1 gave you the idea of a limit and a few tricks for single limits. This lesson gives you rules that let you build complicated limits from simple ones, and then uses limits to define one of the most useful properties in calculus: continuity. By the end you will be able to evaluate limits quickly with the limit laws, test whether a function is continuous at a point, classify discontinuities, and use the Intermediate Value Theorem.

Time55 to 60 minutes
You needPen, paper and a calculator
AssumedIntroduction to Limits: one-sided limits, factoring and conjugates

Learning outcomes

  • FoundationState the limit laws and use them to evaluate limits of sums, products, quotients and roots when each part has a limit.
  • CoreState the three conditions for continuity at a point and test them for a given function.
  • CoreClassify a discontinuity as removable, jump or infinite, and find a constant that makes a piecewise function continuous.
  • ExtensionState the Intermediate Value Theorem, and use it to show that an equation has a solution in an interval.

Where this lesson fits

This is the second lesson of Calculus I: Limits, Differentiation & Integration. Continuity is the property that lets you evaluate a limit by simply substituting, and the derivative in the next lessons only makes sense where a function is continuous.

  1. Lesson 1: Introduction to limitsOpen
  2. Lesson 2: Limit laws and continuityThis lesson
  3. Lesson 3: The derivative as a rate of changePlanned

Where this topic appears in courses

Limit laws and continuity are part of the first unit of AP Calculus AB and BC, of IB Mathematics: Analysis and Approaches, and of every first-year university calculus course. The Intermediate Value Theorem is usually proved later, in an analysis course, but its use is standard from the start. This lesson supports, and does not replace, your own syllabus and instructor.

2A familiar example: lifting the pen

Three things change over time: the temperature during a day, the fee at a car park by minutes parked (pay 2 for the first hour, 4 for the second), and the height of a ball thrown in the air. Which graphs could you draw without lifting your pen?

Predict first: which graphs need the pen lifted, and where?

Think about whether the value can change instantly.

Only the car park fee. Temperature and the ball’s height change smoothly, with no instant jumps. The fee jumps from 2 to 4 the moment the first hour ends, so the pen must be lifted there. A function you can draw without lifting the pen over an interval is continuous on it. The idea of "no jump, no gap, no blow-up" can be made exact with limits, which is what this lesson does.

Continuity at a point a asks three questions about the point: is f(a) defined, does the limit exist, and do the two agree? A failure of any one is a discontinuity. Use the checker below to see which of the three fails in four different functions.

Try it: the continuity checker

Pick a function. The three tests are run for you, using values just left and just right of a. The second function has a gap at x = 1, and you control what happens there: tick the box to define f(1) and slide the value. Can you make it continuous?

Things to notice: an open circle marks the height the curve is heading for, a filled circle marks the actual value of f(a). They coincide only when the function is continuous. For the second function, setting f(1) = 2 closes the gap exactly. The jump and the blow-up cannot be repaired by redefining one point.

3Clear explanation

The limit laws

Suppose limx→a f(x) = L and limx→a g(x) = M both exist, and c is a constant. Then limits behave well with arithmetic:

LawStatement
Sum and differencelim (f ± g) = L ± M
Constant multiplelim cf(x) = cL
Productlim f(x)g(x) = LM
Quotientlim f(x)/g(x) = L/M, provided M ≠ 0
Powerlim (f(x))n = Ln for a positive whole number n
Rootlim √f(x) = √L, provided L ≥ 0 when the root is a square root

Two warnings. The laws only apply when the individual limits exist. If either limit fails to exist, the law says nothing, and you must examine the combined expression directly. The quotient law also needs the bottom limit to be non-zero. When it is 0, you get the indeterminate cases from Lesson 1.

Continuity at a point

A function f is continuous at x = a if all three conditions hold:

  1. f(a) is defined.
  2. limx→a f(x) exists.
  3. limx→a f(x) = f(a).

limx→a f(x) = f(a)

In words: the limit and the value agree, so you can find the limit by substitution. A function is continuous on an interval if it is continuous at every point of it. At an endpoint of a closed interval we use the one-sided limit from inside the interval.

Types of discontinuity

TypeWhat failsExample at x = 1
RemovableThe limit exists (and is finite) but f(a) is undefined or has the wrong value(x² − 1)/(x − 1): limit 2, but f(1) undefined. Defining f(1) = 2 repairs it.
JumpThe left and right limits both exist but differx + 1 for x < 1, x + 3 for x ≥ 1: limits 2 and 4
InfiniteThe function grows without bound near a1/(x − 1)

Functions you can trust

Polynomials are continuous everywhere. Rational functions are continuous everywhere their denominator is not zero. Roots, exponentials, sine and cosine are continuous on their domains. Sums, differences, products and quotients (where the bottom is not zero) of continuous functions are continuous, and so are compositions. This is why substitution works so often: for these functions, the limit is the value.

A useful consequence for compositions: if limx→a f(x) = L and g is continuous at L, then lim g(f(x)) = g(L). The limit can be moved inside a continuous function.

The Intermediate Value Theorem

If f is continuous on the closed interval [a, b] and N is any number between f(a) and f(b), then there is at least one c in [a, b] with f(c) = N. A continuous function cannot skip a value: to go from below zero to above zero it must cross zero. The theorem does not tell you where the crossing is, only that it exists. Repeatedly halving the interval and checking the sign of f at the midpoint (the bisection method) narrows it down.

Common mistakes

MistakeWhy it is wrongFix
Using the quotient law when the bottom limit is 0The law needs M ≠ 0Simplify first by factoring or the conjugate
Splitting a limit when one part does not existThe laws need each limit to existCheck each part, or keep the expression together
Checking only that the limit existsContinuity also needs f(a) defined and equal to the limitTest all three conditions
Saying a removable discontinuity is "continuous"The function as given still has a gap or wrong valueSay it is discontinuous but removable
Applying the IVT to a function with a gapThe theorem needs continuity on the whole closed intervalCheck continuity before using it

4Worked examples

Read each example with a pencil in hand. Cover the steps, attempt the first line yourself, then compare. Each answer ends with a sentence in plain language.

Example 1 Foundation 3 marks: using the limit laws

Evaluate limx→2 (3x² − 4x + 1)/(x + 1).

  1. Numerator: by the sum, constant multiple and power laws the limit is 3(2)² − 4(2) + 1 = 12 − 8 + 1 = 5.
  2. Denominator: the limit is 2 + 1 = 3, which is not zero, so the quotient law applies.
  3. The limit is 5/3.

Answer: 5/3. The function is continuous at 2, so substitution gives the limit directly.

Example 2 Core 2 marks: a root

Evaluate limx→4 √(x² − 7).

  1. The expression inside has limit 4² − 7 = 9, and 9 ≥ 0, so the root law applies.
  2. The limit is √9 = 3.

Answer: 3.

Example 3 Core 4 marks: testing continuity

Let f(x) = (x² − 9)/(x − 3) for x ≠ 3, and f(3) = 5. Is f continuous at 3?

  1. Condition 1: f(3) = 5 is defined.
  2. Condition 2: for x ≠ 3 the expression equals x + 3, so the limit as x → 3 is 6. It exists.
  3. Condition 3: the limit 6 is not equal to f(3) = 5. This fails.
  4. The discontinuity is removable: defining f(3) = 6 would make the function continuous.

Answer: Not continuous at 3 (removable discontinuity). The function sits at 5 while the curve is heading for 6.

Example 4 Core 4 marks: finding a constant

Find k so that f(x) = x² + k for x < 2 and f(x) = 3x − 1 for x ≥ 2 is continuous at x = 2.

  1. Left-hand limit: use x² + k, which gives 4 + k.
  2. Right-hand limit and value: use 3x − 1, which gives 3(2) − 1 = 5.
  3. For continuity all three must agree: 4 + k = 5, so k = 1.
  4. Check: with k = 1 the left limit is 5, the right limit is 5 and f(2) = 5.

Answer: k = 1. The two pieces then meet at height 5.

Example 5 Core 3 marks: where is it continuous?

State where g(x) = (x + 1)/(x² − x − 6) is continuous, and classify any discontinuities.

  1. A rational function is continuous wherever its denominator is not zero.
  2. Factor the denominator: x² − x − 6 = (x − 3)(x + 2), which is zero at x = 3 and x = −2.
  3. At x = 3 the numerator is 4, and at x = −2 it is −1. Neither is zero, so nothing cancels.
  4. Because a non-zero number is divided by something approaching 0, the function grows without bound at both points.

Answer: Continuous for all x except −2 and 3, where there are infinite discontinuities.

Example 6 Extension 5 marks: the Intermediate Value Theorem

Show that x³ + x − 1 = 0 has a solution between 0 and 1, and narrow it to an interval of length 0.25.

  1. Let f(x) = x³ + x − 1. It is a polynomial, so it is continuous on [0, 1].
  2. f(0) = −1 < 0 and f(1) = 1 > 0. Since 0 lies between −1 and 1, the theorem gives a c in (0, 1) with f(c) = 0.
  3. Halve: f(0.5) = 0.125 + 0.5 − 1 = −0.375 < 0, so the solution is in (0.5, 1).
  4. Halve again: f(0.75) = 0.421875 + 0.75 − 1 = 0.171875 > 0, so the solution is in (0.5, 0.75).

Answer: A solution exists in (0, 1), and it lies in (0.5, 0.75).

Example 7 Extension 4 marks: a composition

Find limx→2 √((x² − 4)/(x − 2)).

  1. Inside the root, substitution gives 0/0. For x ≠ 2 the fraction equals x + 2, so its limit is 4.
  2. The square root is continuous at 4, so the limit can be moved inside: the answer is √4.

Answer: 2.

5Learner practice

Work each question on paper first, then enter your answer. You get two tries on each question. Two questions generate new numbers every time.

Question 1 · Foundation2 marks

Which of these is not one of the three conditions for f to be continuous at x = a?

Question 2 · Foundation2 marks

Find limx→3 (2x² − 5x + 1).

Limit =
Question 3 · Core · new numbers each time3 marks

Limit =
Question 4 · Core3 marks

Let f(x) = kx + 1 for x < 2 and f(x) = x² + 1 for x ≥ 2. Find k so that f is continuous at x = 2.

k =
Question 5 · Core2 marks

What kind of discontinuity does (x² − 16)/(x − 4) have at x = 4?

Question 6 · Core · new numbers each time3 marks

k =
Question 7 · Extension3 marks

The equation x³ − 2x − 5 = 0 has a solution between two consecutive whole numbers n and n + 1. Use the Intermediate Value Theorem to find n.

n =
Question 8 · Extension3 marks

What is limx→3 √((x² − 9)/(x − 3)) ?

6Answer explanations

Attempt every question before you open these. A right answer with a wrong method is luck, so read each explanation even when you were correct. Questions 3 and 6 show their own worked solution as soon as you answer.

Question 1: the conditions for continuity

Answer: f has a derivative at a.

Continuity needs only a defined value, a limit, and agreement between them. Differentiability is a stronger property that comes later. Every differentiable function is continuous, but not the other way round.

Question 2: a polynomial

A polynomial is continuous, so substitute x = 3: 2(9) − 15 + 1 = 4.

Question 3: generated product limit

Find the limit of each factor by substitution, then multiply the two limits, as the product law allows. Use New numbers to practise with different values.

Question 4: finding k

Left-hand limit: 2k + 1. Right-hand limit and value: 2² + 1 = 5. Continuity needs 2k + 1 = 5, so k = 2.

Check: with k = 2 the left piece 2x + 1 gives 5 at x = 2, matching the right piece.

Question 5: classifying a discontinuity

Factor: x² − 16 = (x − 4)(x + 4), so for x ≠ 4 the expression is x + 4, with limit 8 at x = 4. The limit exists and is finite, but f(4) is undefined, so the discontinuity is removable. Defining f(4) = 8 would repair it.

Question 6: generated continuity constant

Compute the left-hand limit by substituting x = a into the left piece (it contains k), compute the value from the right piece, set them equal, and solve for k. Use New numbers to practise again.

Question 7: the Intermediate Value Theorem

Let f(x) = x³ − 2x − 5, continuous everywhere. f(1) = −6, f(2) = 8 − 4 − 5 = −1, f(3) = 27 − 6 − 5 = 16. The sign changes between 2 and 3, so a solution lies in (2, 3) and n = 2.

Question 8: a composition

Inside the root, (x² − 9)/(x − 3) = x + 3 for x ≠ 3, which tends to 6. The square root is continuous at 6, so the limit is √6. The answer 6 forgets to take the root.

7Short recap

  1. The limit laws let you split sums, differences, constant multiples, products, quotients (bottom limit not zero), powers and roots, provided each part has a limit.
  2. f is continuous at a if f(a) is defined, the limit exists, and the two are equal.
  3. For continuous functions, the limit is found by substitution. Polynomials are continuous everywhere, and rational functions wherever the denominator is not zero.
  4. Discontinuities are removable (limit exists, value missing or wrong), jump (one-sided limits differ) or infinite (unbounded).
  5. To make a piecewise function continuous, set the one-sided limits equal and solve for the unknown constant.
  6. A limit can be moved inside a continuous function: lim g(f(x)) = g(lim f(x)).
  7. The Intermediate Value Theorem: a function continuous on [a, b] takes every value between f(a) and f(b). It proves a solution exists but does not find it.

Tick what you can now do

If you ticked fewer than four, return to the matching worked example, redo it without looking, then try the generated questions again. The next lesson in this course turns the idea of a limit into the derivative.

Related lessons and Encyclopedia entries

References and further reading

Titles and publishers only. Search each site for the title to reach the exact page.

  • Strang, G. and Herman, E., Calculus Volume 1, OpenStax. Free. https://openstax.org/
  • Strang, G., Calculus, Wellesley-Cambridge Press. Free.

Share this lesson

Learning is better together. Send this lesson to a classmate, a schoolmate, a friend or your study group, and help someone who could use it. It is free and anyone can open it.

Instagram, TikTok, YouTube and Nextdoor do not accept a direct link share from a web page. Those buttons copy the message and link, then open the app site so you can paste it into a post, story, comment or message.