Kim’s Math NotesCourse index

Continuity over an Interval

How do I check continuity at the endpoints of an interval?

Find the intervals where a function is continuous from its formula, its pieces, or its graph, and give the reason with the function families.

xy-3-2-1123-2-11234
The domain decides where f is continuous · f(x)=x2+2x−3x2−1 is continuous on (−∞,−1), (−1,1), and (1,∞): a vertical asymptote at x=−1 and a hole at (1,2).

Domains to know

Cancelling does not fill the hole

Common mistake f(x)=x2−x−6x2−9=x+2x+3, “so f is continuous on (−∞,−3)∪(−3,∞).”

Correction f(3) is undefined in the given formula. f is continuous on (−∞,−3), (−3,3), and (3,∞).

Polynomial pieces still need a boundary check

Common mistake f(x)=x2+2 for x<1 and f(x)=2x for x≥1. “Both pieces are polynomials, so f is continuous everywhere.”

Correction At x=1 the one-sided limits are 3 and 2, so (ii) fails. f is continuous on (−∞,1)∪(1,∞).

Flip the sign when you divide by a negative

Common mistake 10−5x: “10−5x≥0, so x≥2.”

Correction −5x≥−10; dividing by −5 flips the sign: x≤2. The root is continuous on (−∞,2].

Idea 1: at an endpoint, check one side

Idea one: on an interval, at an endpoint we check only one side, the side toward the inside. Take root x, for x from zero up to four, and f of four is three. Here's root x from zero. At four, an open circle at height two, and the filled dot up at three. At zero, only the right side is there.

At four, only the left side counts.

Watch this part of the concept lesson

Read the rest of this scene

Start at zero. Condition one: f of zero is zero. Root x has nothing to the left of zero. So no limit, and no continuity? No. At an end, condition two looks only from the inside.

Here, that's from the right. From the right, root x heads to zero. Condition three: zero equals f of zero. That's all an end needs. So f is continuous from the right at zero.

That's the AP sentence for a left end. Now at four. Condition one: f of four is three, the filled dot. Condition two, from the inside only, the left: root x heads to two. Condition three: two is not three. It fails. So f is not continuous at four.

The function value does not match the limit.

Idea 1: brackets and the closed interval

Two symbols first. An endpoint that's in gets a square bracket. An endpoint that's left out gets a round parenthesis. So f is continuous on zero to four, with a bracket at zero and a parenthesis at four. But not on the closed interval, zero to four.

In general: continuous on the closed interval a to b means three things.

Watch this part of the concept lesson

Read the rest of this scene

Continuous at every x inside, at a, the limit from the right equals f of a, and at b, the limit from the left equals f of b. At an endpoint, we check only one side, the side toward the inside. Everywhere else, the same three conditions.

Idea 2: whole families on their domains

Idea two: we don't check points one by one. We clear whole families at once. Polynomial, rational, power and root, exponential, log, and trig. The AP course guide says each one is continuous on its domain. So inside its domain, a limit is just a plug-in: the limit equals the value.

That's the reason behind the trig plug-ins we borrowed in one point six and one point eight. So what reason do you write on the exam?

Watch this part of the concept lesson

Read the rest of this scene

Name the family. For example: f is rational, so f is continuous on its domain. One sentence covers every x. So the whole job is finding the domain. Four things kick an x out of it.

One: a bottom that's zero. Two: an even root, like a square root, of a negative. Three: the natural log of zero, or of a negative. Four: tangent x is sine x over cosine x, so it's out where cosine x is zero.

A zero bottom again.

Idea 3: put continuous functions together

Next, idea three: say f and g are continuous at c. That means: the limit of f of x, as x approaches c, is f of c. And the limit of g of x is g of c. By the sum law, the limit of f of x plus g of x is f of c plus g of c. That's the value of f plus g at c.

So f plus g is continuous at c. The difference and product laws do the same for f minus g, and f times g. And f over g too, as long as g of c isn't zero. And a composite: if g is continuous at c, and f is continuous at g of c, then f of g of x is continuous at c.

Watch this part of the concept lesson

Read the rest of this scene

The inside rule from one point eleven. For example: e to the x, over x minus one. The top and the bottom are both continuous everywhere. The bottom is zero only at x equals one. Here's the graph, a dashed line at x equals one.

Left of it, the curve dives down. The right branch comes down from above. Nowhere else is there a break. So it's continuous on negative infinity to one, and on one to infinity: a quotient of continuous functions.

Idea 3: a composite with a closed end

For example, the square root of x minus two. The inside has to be zero or more: x minus two is at least zero, so x is at least two. A filled dot at two, and the curve heads right with no break. So it's continuous on two to infinity, closed at two.

Watch this part of the concept lesson

Idea 4: pieces and boundaries

Idea four: a piecewise function. Clear each piece by its family, on its own interval. At each boundary where the pieces meet, check conditions one, two, and three, every time. For example: f of x is x squared for x at most negative one, and x plus three for x greater than negative one. Here's x equals negative one.

The parabola ends at a filled dot, at height one.

Watch this part of the concept lesson

Read the rest of this scene

The line starts at an open circle, at height two. Both pieces are polynomials, continuous on their own intervals. Only negative one is left to check. Condition one: the equals sign is in x at most negative one, so f of negative one is negative one squared, one. Condition two. From the left, x squared heads to one.

From the right, x plus three heads to two. One is not two, so there's no limit, and condition two fails. f is not continuous at negative one. But from the left, the limit matches the value, one. So f is continuous on negative infinity to negative one, closed at negative one, and on negative one to infinity.

Idea 5: the domain comes before you cancel

Now, idea five: find the domain from the formula you're given, before you cancel anything. Take f of x equals x cubed minus x squared, all over x minus one. Plug in one: the bottom is one minus one, zero. So f of one is undefined. It cancels down to x squared, with no breaks.

So is f continuous everywhere? Not so fast. Factor the top: x squared times x minus one. Only if x isn't one is x minus one nonzero, so that's where we cancel it. That leaves x squared.

Watch this part of the concept lesson

Read the rest of this scene

The graph: y equals x squared, with a hole. The dashed guides mark one, one. The parabola comes in from the left, to an open circle at one, one, and goes on to the right. Back to the given formula: f of one is still undefined, so condition one fails. So f is not continuous at x equals one.

Cancelling finds a limit. It doesn't find the domain. So f is continuous on negative infinity to one, and on one to infinity.

Example 1: a rational function

Example one. A rational function. Find every x where f is not continuous, with a reason. Then list the largest open intervals where f is continuous. The plan: f is rational, so it is continuous on its domain. So we read its domain straight from the given f.

Part a. The bottom, x squared minus sixteen, factors: x plus four, times x minus four. It's zero at negative four, and at four. So f of negative four and f of four are undefined. Condition one fails at both. So f is not continuous at x equals negative four, and not at x equals four.

The reason: f is undefined there. Here's the graph. At negative four, the curve runs off along the dashed line.

Watch this part of the concept lesson

Read the rest of this scene

An open circle at four. Part b. The domain is every x except negative four and four. So the largest open intervals: negative infinity to negative four, negative four to four, and four to infinity. f is continuous on each one, because f is rational and these make up its domain. Alright. On the workbook problems, read the domain off the given formula.

Common mistake: cancelling first

Now, a fast answer that's wrong. The student factors the top and the bottom, cancels x minus four, and gets x plus five, over x plus four. Then says only x equals negative four is out. Instead, go back to the given f. At four, its bottom is zero, so f of four is undefined.

Cancelling does not fill the hole.

Watch this part of the concept lesson

Read the rest of this scene

So out go both: x equals negative four, and x equals four.

Example 2: a closed interval

Last one, example two, AP style. Which function is continuous on the closed interval from zero to three? Four choices. The plan: the whole closed interval from zero to three, both ends included, has to sit inside the domain. Start with choice D: the bottom, x plus one, is zero only at x equals negative one. And negative one is not in the interval from zero to three.

e to the x and x plus one are continuous, and on the interval the bottom is never zero. So the quotient is continuous on zero to three. Choice A, the square root of x minus one, needs x to be at least one, so everything from zero up to one is missing. Out.

Watch this part of the concept lesson

Read the rest of this scene

Choice B: tangent x is sine x over cosine x, and cosine of pi over two is zero. Pi over two, about one point five seven, is inside zero to three. Out. Choice C: the natural log of zero is undefined, so it fails right at the left end, zero. Out. Alright, so the answer is D. Now, the workbook asks this a few ways, so check that the interval sits inside the domain.

Worked examples

Example 1

Let f(x)=x2+x−20x2−16.
  1. Find all x where f is not continuous. Give a reason.
  2. List the largest open intervals where f is continuous. Use interval notation.
Hint

Find the domain before you cancel.

Answer and solution
  1. x=−4 and x=4: f(−4) and f(4) are undefined (the denominator is 0), so condition (i) fails
  2. (−∞,−4), (−4,4), and (4,∞): f is rational, so it is continuous on its domain
  1. Type: a rational function. Method: f is continuous on its domain, so find the domain from the given formula, before you cancel anything.
  2. (a) x^2 - 16 = (x + 4)(x - 4) is 0 at x = -4 and x = 4, so f(-4) and f(4) are undefined: condition (i) fails, and f is not continuous at x = -4 or x = 4.
  3. For x not equal to 4, f(x) = (x + 5)/(x + 4). Cancelling does not put x = 4 back in the domain: the hole at x = 4 stays.
  4. (b) A rational function is continuous at every x in its domain, so f is continuous on (-infinity, -4), (-4, 4), and (4, infinity).

Example 2

Which function is continuous on [0,3]?
  1. f(x)=x−1
  2. g(x)=tanx
  3. h(x)=lnx
  4. k(x)=exx+1
Hint

Find each domain, then look at the whole interval, endpoints too.

Answer and solution

Answer D. k(x)=exx+1

  1. Type: which function is continuous on an interval. Method: find each domain and check that all of [0, 3] lies in it, endpoints too.
  2. (A) needs x - 1 >= 0, so x >= 1: f(0) is undefined. (B) tan x is undefined where cos x = 0, at x = pi/2 (about 1.57), inside [0, 3]. (C) ln x needs x > 0: the closed endpoint 0 is out.
  3. (D) e^x and x + 1 are continuous, and x + 1 = 0 only at x = -1, which is not in [0, 3]. So k is continuous on [0, 3]. Answer D.

Workbook

Problem 1

The functions f and g are continuous for all real numbers, and g(x)=0 only at x=3. Which of the following must be continuous for all real numbers?
I. f(x)g(x)
II. f(x)g(x)
III. f(x)[g(x)]2+1
  1. I only
  2. I and II only
  3. I and III only
  4. I, II, and III
Hint

For each function, find its domain and compare it with the interval.

Answer and solution

Answer C. I and III only

  1. f and g are continuous for all x. I: a product of continuous functions is continuous. True.
  2. II: a quotient is continuous where the denominator is not 0. g(3) = 0, so f/g is undefined at x = 3. False.
  3. III: [g(x)]^2 + 1 >= 1 is never 0, so the quotient is continuous for all x. True. Answer C.

Common mistake A denominator that vanishes at 3 can prevent continuity even when both component functions are continuous.

Watch the worked solution to Problem 1

Problem 2

Let f(x)=x+3lnx.
  1. Find all values of x at which f is not defined. Give a reason for each.
  2. Find the largest open intervals on which f is continuous. Justify your answer.
Hint

Find when the logarithm is defined and when it is nonzero. Both conditions restrict the domain.

Answer and solution
  1. x≤0: lnx needs x>0. x=1: ln1=0, a zero denominator.
  2. (0,1) and (1,∞): x+3 and lnx are continuous for x>0, so the quotient is continuous wherever lnx≠0
  1. ln x needs x > 0, so every x <= 0 is out. The denominator ln x is 0 at x = 1 (ln 1 = 0), so x = 1 is out too.
  2. x + 3 (a polynomial) and ln x are continuous for x > 0, and a quotient is continuous where its denominator is not 0.
  3. So f is continuous on (0, 1) and (1, infinity).

Common mistake The logarithm needs a positive argument. Separately exclude the input where the logarithm is zero.

Watch the worked solution to Problem 2

Problem 3

Let f(x)={4−x,x<02+ln(x+1),x≥0
  1. Explain why f is continuous for x<0 and for x>0.
  2. Is f continuous at x=0? Justify your answer.
  3. On what interval is f continuous?
Hint

Inside each piece use its family; drop excluded points that lie in that piece. At each boundary check (i), (ii), (iii). Join the intervals.

Answer and solution
  1. For x<0: 4−x>4>0, so the root is defined and continuous. For x>0: x+1>1>0, so ln(x+1) is defined and continuous.
  2. yes: f(0)=2+ln1=2, limx→0−4−x=2, limx→0+(2+ln(x+1))=2, so the limit is 2=f(0)
  3. (−∞,∞): every real number
  1. A root needs 4 - x >= 0, so x <= 4: every x < 0 is fine. A log needs x + 1 > 0, so x > -1: every x >= 0 is fine. Each piece is continuous on its own interval.
  2. limx→0−4−x=4=2,limx→0+(2+ln(x+1))=2+ln1=2
  3. (i) f(0) = 2 + ln 1 = 2. (ii) The limit is 2. (iii) It equals f(0). So f is continuous at 0, and on (-infinity, infinity).

Common mistake Check each formula on its own domain and then test both sides at the boundary.

Watch the worked solution to Problem 3

Problem 4

The graph of f is shown. On which of the following intervals is f continuous?
xy-3-2-112345-3-2-11234
Graph of f(x)
  1. [−3,0]
  2. [−1,1]
  3. [0,2]
  4. [2,5]
Hint

No break inside the interval. At a closed endpoint, the one-sided limit from inside must equal the value.

Answer and solution

Answer D. [2,5]

  1. (A) holds x = -1, where f has a hole and no value. (B) has x = -1 as an endpoint: f(-1) is undefined, so it fails too.
  2. (C): at the endpoint x = 2 only the left side counts, and it heads to 4, but f(2) = 3. Not continuous on [0, 2].
  3. (D): no break inside; at x = 2 the right side heads to 3 = f(2), and at x = 5 the left side heads to -3 = f(5). Answer D.

Common mistake At a closed endpoint, read the limit from inside the proposed interval only.

Watch the worked solution to Problem 4

Problem 5

Let f(x)=x−9x−3. A student says: “f(x)=x+3, so f is continuous on [0,∞).”
  1. Find limx→9f(x).
  2. Is the student right? Explain.
  3. Find the largest intervals on which f is continuous.
Hint

Find where the original denominator is zero before using the simplified form.

Answer and solution
  1. 6
  2. no: in the given formula f(9) is undefined (9−3=0), so condition (i) fails and f is not continuous at x=9, even though the limit is 6; simplifying does not fill the hole
  3. [0,9) and (9,∞)
  1. limx→9x−9x−3=limx→9(x−3)(x+3)x−3=limx→9(x+3)=6
  2. The given formula needs x >= 0 and a denominator that is not 0: sqrt(x) - 3 = 0 at x = 9, so f(9) is undefined and condition (i) fails at x = 9 (the limit 6 exists, but there is no value). The student simplified first: wrong at x = 9.
  3. f(0) = (-9)/(-3) = 3, and from the right f heads to 3, so the closed endpoint 0 is fine. f is continuous on [0, 9) and (9, infinity).

Common mistake The simplified function can be defined at 9 while the original quotient is undefined there.

Watch the worked solution to Problem 5