Limits and continuity
🖨 Print a self-study sheet Why print?
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. means that gets as close as we like to when is close enough to , whatever happens at 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:
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
What is \displaystyle\lim_{x\to4}\frac{x^2-4x}{x^2-16}?
What you need: factor numerator and denominator.
Steps:
- x^2-4x=x(x-4) and x^2-16=(x-4)(x+4).
- 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.
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: the three conditions for continuity.
Steps:
- g(1)=1+k and the left-hand limit is 1+k.
- 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.
What is \displaystyle\lim_{x\to0}\frac{\sin(5x)}{2x}?
What you need: \dfrac{\sin(5x)}{2x}=\dfrac52\cdot\dfrac{\sin(5x)}{5x}.
Steps:
- 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.
Evaluate \displaystyle\lim_{x\to9}\frac{x-9}{\sqrt x-3}.
What you need: x-9=(\sqrt x-3)(\sqrt x+3).
Steps:
- Factor the numerator as a difference of squares.
- 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.
What is \displaystyle\lim_{x\to\infty}\frac{4x^3+1}{2x^3-x}?
What you need: equal degrees: ratio of leading coefficients.
Steps:
- 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
Find all vertical asymptotes and holes of the graph of y=\dfrac{x+1}{x^2-1}.
What you need: factor the denominator and cancel common factors first.
Steps:
- x^2-1=(x-1)(x+1).
- 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).
Show that the equation x^3+x-1=0 has a solution between 0 and 1.
What you need: the IVT for the continuous function f(x)=x^3+x-1.
Steps:
- Compute f(0) and f(1).
- 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.
Does \displaystyle\lim_{x\to0}\frac{|x|}{x} exist? Explain using one-sided limits.
What you need: |x|=x for x>0 and |x|=-x for x<0.
Steps:
- 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.
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: continuity at x=1 and at x=3 gives two equations.
Steps:
- At x=1: 1=a+b.
- 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.
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
The function is continuous, so substitute: 4+6=10.
\dfrac14\cdot\dfrac{\sin x}{x}\to\dfrac14.
Equal degrees: \dfrac51=5. Option C is the vertical asymptote x=-2 written as y.
f(1) is undefined, but \displaystyle\lim_{x\to1}f(x)=2 exists: a hole.
Part II. True or false
| 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. |
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.
Part III. Short answer
x^3+1=(x+1)(x^2-x+1), so the limit is 1+1+1=3.
4k=8, so k=2.
Show answers and explanations
- Part I, question 1: C. The function is continuous, so substitute: 4+6=10.
- Part I, question 2: A. \dfrac14\cdot\dfrac{\sin x}{x}\to\dfrac14.
- Part I, question 3: B. Equal degrees: \dfrac51=5. Option C is the vertical asymptote x=-2 written as y.
- Part I, question 4: D. f(1) is undefined, but \displaystyle\lim_{x\to1}f(x)=2 exists: a hole.
- 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.
- Part III, question 1: 3. x^3+1=(x+1)(x^2-x+1), so the limit is 1+1+1=3.
- Part III, question 2: 2. 4k=8, so k=2.