Learn on your own. Parents beside you. Teachers guide.

Lemonmath
Tiếng Việt

Limits and continuity

Lesson 2.1 · 40 min read · Updated

When we move closer and closer to a point without reaching it, where does a function head? That question is the foundation of calculus. Unit 1 is the foundation of AP Calculus, because derivatives and integrals are both defined by limits. On the exam, limits appear mostly in the no-calculator multiple-choice part, and continuity appears in free-response questions that ask you to justify a conclusion. Vietnamese students already meet these ideas in grade 11, so what is new is only the precise vocabulary and the one-sided limits read from graphs.

Limits and one-sided limits

The idea of a limit is to ask where a function is heading, not where it is standing. lim⁡x→af(x)=L\displaystyle\lim_{x\to a}f(x)=L means that f(x)f(x) gets as close as we like to LL when xx is close enough to aa, whatever happens at x=ax=a itself. Why stress this? Because a function can be undefined at that very point and still have a limit, as the graph below shows. The limit exists exactly when both one-sided limits exist and are equal:

lim⁡x→af(x)=L  ⟺  lim⁡x→a−f(x)=lim⁡x→a+f(x)=L.\lim_{x\to a}f(x)=L\iff\lim_{x\to a^-}f(x)=\lim_{x\to a^+}f(x)=L.

-1123456246810xyO(3, 6)
y=x2−9x−3y=\dfrac{x^2-9}{x-3} is the line y=x+3y=x+3 with a hole at (3,6)(3, 6)

Algebraic techniques

Limits at infinity and asymptotes

As x\to\pm\infty, the top and bottom of a fraction both grow, and the answer depends on which one grows faster. The higher degree wins. So for a rational function we only need to compare the degrees of the numerator and the denominator:

Degrees \displaystyle\lim_{x\to\infty} Horizontal asymptote
top < bottom 0 y=0
top = bottom ratio of the leading coefficients y=\dfrac{a}{b}
top > bottom \pm\infty none

Vertical asymptotes are different: there the function shoots off towards infinity. A vertical asymptote x=a appears where the denominator is 0 and the numerator is not, after cancelling common factors. The words "after cancelling" are where many students slip.

Continuity and the intermediate value theorem

Similar exercises

Exercise 1 Multiple choice

What is \displaystyle\lim_{x\to4}\frac{x^2-4x}{x^2-16}?

A. 0B. \dfrac12C. 1D. The limit does not exist
What you need and how to start

What you need: factor numerator and denominator.

Steps:

  1. x^2-4x=x(x-4) and x^2-16=(x-4)(x+4).
  2. Cancel and substitute.
Show solution

As x\to4 we have x\neq4. Factorise the numerator and the denominator: \frac{x^2-4x}{x^2-16}=\frac{x(x-4)}{(x-4)(x+4)}=\frac{x}{x+4}.

Therefore \lim_{x\to4}\frac{x^2-4x}{x^2-16}=\lim_{x\to4}\frac{x}{x+4}=\frac{4}{4+4}=\frac12.

So the answer is B.

Answer. B.

Exercise 2 Free response

g(x)=\begin{cases}x+k, & x\le1\\ 2x^2, & x>1\end{cases} Find k so that g is continuous at x=1, and justify.

What you need and how to start

What you need: the three conditions for continuity.

Steps:

  1. g(1)=1+k and the left-hand limit is 1+k.
  2. The right-hand limit is 2.
Show solution

The function g is continuous at x=1 if and only if \lim_{x\to1^-}g(x)=\lim_{x\to1^+}g(x)=g(1).

We compute each value:

  • for x\le1: g(x)=x+k, so \displaystyle\lim_{x\to1^-}g(x)=1+k and g(1)=1+k;
  • for x>1: g(x)=2x^2, so \displaystyle\lim_{x\to1^+}g(x)=2\cdot1^2=2.

The continuity condition becomes 1+k=2, so k=1.

Justification: with k=1 we have \displaystyle\lim_{x\to1^-}g(x)=\lim_{x\to1^+}g(x)=g(1)=2, so g is continuous at x=1.

So k=1.

Answer. k=1.

Exercise 3 Multiple choice

What is \displaystyle\lim_{x\to0}\frac{\sin(5x)}{2x}?

A. \dfrac25B. 1C. \dfrac52D. 5
What you need and how to start

What you need: \dfrac{\sin(5x)}{2x}=\dfrac52\cdot\dfrac{\sin(5x)}{5x}.

Steps:

  1. Rewrite and use the special limit.
Show solution

Rewrite \frac{\sin(5x)}{2x}=\frac52\cdot\frac{\sin(5x)}{5x}.

Let t=5x. As x\to0 we have t\to0, and by the standard limit \displaystyle\lim_{t\to0}\frac{\sin t}{t}=1, \lim_{x\to0}\frac{\sin(5x)}{2x}=\frac52\cdot\lim_{t\to0}\frac{\sin t}{t}=\frac52\cdot1=\frac52.

So the answer is C.

Answer. C.

Exercise 4 Free response

Evaluate \displaystyle\lim_{x\to9}\frac{x-9}{\sqrt x-3}.

What you need and how to start

What you need: x-9=(\sqrt x-3)(\sqrt x+3).

Steps:

  1. Factor the numerator as a difference of squares.
  2. Cancel and substitute.
Show solution

As x\to9 we have x\neq9 and x\ge0. Since x-9=(\sqrt x-3)(\sqrt x+3) and \sqrt x-3\neq0, \frac{x-9}{\sqrt x-3}=\frac{(\sqrt x-3)(\sqrt x+3)}{\sqrt x-3}=\sqrt x+3.

Therefore \lim_{x\to9}\frac{x-9}{\sqrt x-3}=\lim_{x\to9}\left(\sqrt x+3\right)=\sqrt9+3=6.

So \displaystyle\lim_{x\to9}\frac{x-9}{\sqrt x-3}=6.

Answer. 6.

Exercise 5 Multiple choice

What is \displaystyle\lim_{x\to\infty}\frac{4x^3+1}{2x^3-x}?

A. 0B. 2C. 4D. \infty
What you need and how to start

What you need: equal degrees: ratio of leading coefficients.

Steps:

  1. Compare 4x^3 and 2x^3.
Show solution

As x\to\infty we have x\neq0. Divide the numerator and the denominator by x^3 (the highest power): \frac{4x^3+1}{2x^3-x}=\frac{4+\frac{1}{x^3}}{2-\frac{1}{x^2}}.

Since \dfrac{1}{x^3}\to0 and \dfrac{1}{x^2}\to0 as x\to\infty, \lim_{x\to\infty}\frac{4x^3+1}{2x^3-x}=\frac{4+0}{2-0}=2.

So the answer is B.

Answer. B.

Application exercises

Exercise 6 Asymptotes and holes

Find all vertical asymptotes and holes of the graph of y=\dfrac{x+1}{x^2-1}.

What you need and how to start

What you need: factor the denominator and cancel common factors first.

Steps:

  1. x^2-1=(x-1)(x+1).
  2. Decide which zero of the denominator remains after cancelling.
Show solution

Condition: x^2-1\neq0, that is x\neq\pm1.

Factorise the denominator: x^2-1=(x-1)(x+1). For x\neq\pm1 we have y=\frac{x+1}{(x-1)(x+1)}=\frac{1}{x-1}.

At x=1: as x\to1^+, x-1\to0^+ so y\to+\infty; as x\to1^-, x-1\to0^- so y\to-\infty. Hence the line x=1 is a vertical asymptote.

At x=-1: the limit \lim_{x\to-1}y=\lim_{x\to-1}\frac{1}{x-1}=\frac{1}{-1-1}=-\frac12 is finite, but the function is not defined at x=-1. Hence the graph has a hole at \left(-1, -\dfrac12\right).

So the graph has the vertical asymptote x=1 and a hole at \left(-1, -\dfrac12\right).

Answer. Vertical asymptote x=1; hole at \left(-1, -\dfrac12\right).

Exercise 7 A root by the IVT

Show that the equation x^3+x-1=0 has a solution between 0 and 1.

What you need and how to start

What you need: the IVT for the continuous function f(x)=x^3+x-1.

Steps:

  1. Compute f(0) and f(1).
  2. State the theorem with its condition.
Show solution

Let f(x)=x^3+x-1. Since f is a polynomial, it is continuous on [0, 1].

We have f(0)=0^3+0-1=-1<0,\qquad f(1)=1^3+1-1=1>0.

So f(0) and f(1) have opposite signs. By the Intermediate Value Theorem (IVT), there exists c\in(0, 1) with f(c)=0, that is c^3+c-1=0.

A calculator gives c\approx0.682.

So the equation x^3+x-1=0 has a solution between 0 and 1.

Answer. There exists c\in(0, 1) with f(c)=0.

Exercise 8 A jump

Does \displaystyle\lim_{x\to0}\frac{|x|}{x} exist? Explain using one-sided limits.

What you need and how to start

What you need: |x|=x for x>0 and |x|=-x for x<0.

Steps:

  1. Compute both one-sided limits.
Show solution

The function \dfrac{|x|}{x} is defined for x\neq0. We examine the two one-sided limits.

For x>0 we have |x|=x, so \dfrac{|x|}{x}=1. Hence \lim_{x\to0^+}\frac{|x|}{x}=1.

For x<0 we have |x|=-x, so \dfrac{|x|}{x}=-1. Hence \lim_{x\to0^-}\frac{|x|}{x}=-1.

The one-sided limits are 1 and -1, which are different. A limit exists if and only if both one-sided limits exist and are equal, so \displaystyle\lim_{x\to0}\frac{|x|}{x} does not exist: the graph has a jump at x=0.

So the limit \displaystyle\lim_{x\to0}\frac{|x|}{x} does not exist.

Answer. Does not exist.

Exercise 9 Challenge

f(x)=\begin{cases}x^2, & x<1\\ ax+b, & 1\le x\le3\\ 12-x, & x>3\end{cases} Find a and b so that f is continuous for all real numbers.

What you need and how to start

What you need: continuity at x=1 and at x=3 gives two equations.

Steps:

  1. At x=1: 1=a+b.
  2. At x=3: 3a+b=9.
Show solution

On each of the intervals (-\infty, 1), (1, 3) and (3, +\infty), f is given by a polynomial, so it is continuous. Hence f is continuous on \mathbb{R} if and only if f is continuous at x=1 and at x=3.

At x=1: we have \displaystyle\lim_{x\to1^-}f(x)=1^2=1, while f(1)=\displaystyle\lim_{x\to1^+}f(x)=a+b. The continuity condition is a+b=1.\qquad(1)

At x=3: we have f(3)=\displaystyle\lim_{x\to3^-}f(x)=3a+b and \displaystyle\lim_{x\to3^+}f(x)=12-3=9. The continuity condition is 3a+b=9.\qquad(2)

Subtracting equation (1) from equation (2), we get 2a=8, so a=4. Substituting into (1): b=1-4=-3.

Check: at x=1 both sides give 1 (since a+b=4-3=1); at x=3 both give 9 (since 3a+b=12-3=9).

So a=4 and b=-3.

Answer. a=4, b=-3.

Mini test

Marked like the Vietnamese graduation exam: Part I 0.25 points per question; Part II up to 1 point per question (1, 2, 3, 4 correct statements give 0.1, 0.25, 0.5, 1 point); Part III 0.5 points per question.

Part I. Multiple choice

Question 1. What is \displaystyle\lim_{x\to2}\left(x^2+3x\right)?
Question 2. What is \displaystyle\lim_{x\to0}\frac{\sin x}{4x}?
Question 3. What is the horizontal asymptote of the graph of y=\dfrac{5x-1}{x+2}?
Question 4. At x=1, the function f(x)=\dfrac{x^2-1}{x-1} has

Part II. True or false

Question 1. Let f(x)=\dfrac{x^2-x-6}{x-3}.
a) \displaystyle\lim_{x\to3}f(x)=5.
b) f(3) is defined.
c) f has a removable discontinuity at x=3.
d) The line x=3 is a vertical asymptote of the graph.

Part III. Short answer

Question 1. Evaluate \displaystyle\lim_{x\to-1}\frac{x^3+1}{x+1}.

Question 2. f(x)=kx^2 for x\le2 and f(x)=x+6 for x>2. For what value of k is f continuous at x=2?

Show answers and explanations
  1. Part I, question 1: C. The function is continuous, so substitute: 4+6=10.
  2. Part I, question 2: A. \dfrac14\cdot\dfrac{\sin x}{x}\to\dfrac14.
  3. Part I, question 3: B. Equal degrees: \dfrac51=5. Option C is the vertical asymptote x=-2 written as y.
  4. Part I, question 4: D. f(1) is undefined, but \displaystyle\lim_{x\to1}f(x)=2 exists: a hole.
  5. Part II, question 1: a) True; b) False; c) True; d) False. a) True: f(x)=x+2 for x\ne3. b) False: the denominator is 0. c) True. d) False: the limit is finite, so there is a hole, not an asymptote.
  6. Part III, question 1: 3. x^3+1=(x+1)(x^2-x+1), so the limit is 1+1+1=3.
  7. Part III, question 2: 2. 4k=8, so k=2.
📈 My progress

Finding Lemonmath useful?

Send this page to a friend, a parent or a teacher who could use it. Studying on your own is easier with company, and Lemonmath is free for everyone.

Facebook ✉ Email