MAT1051 · Week 3 · Limits, Infinite Limits

Limits and infinite limits

The meaning of a limit, one-sided limits, techniques for resolving the 0/0 indeterminate form, sin x / x, the Squeeze Theorem and vertical asymptotes. The first exam question almost always comes from here.

limitone-sided limitleft-hand limitright-hand limitlimit lawsindeterminate formrationalizingsqueeze theoreminfinite limitvertical asymptoteepsilon-delta definition

The limit is the basic concept of calculus. The derivative is a limit, the integral is a limit, and continuity is defined with a limit. On exams the limit questions are usually on the first page: quick points. But each one hides a small trap. This week’s algorithm is simple:

  1. Substitute first. If you get a finite number, you are done.
  2. If you get 00\tfrac00, simplify with algebra: factor, multiply by the conjugate, or build the sin⁡xx\tfrac{\sin x}{x} pattern.
  3. If you get c0\tfrac{c}{0} (c≠0c\ne0), the answer is ±∞\pm\infty or “does not exist”. Check the sign from each side.
  4. If there is an absolute value, a piecewise function or a root, compute the right and left limits separately.
  5. If there is an oscillating expression (like sin⁡1x\sin\tfrac1x), use the Squeeze Theorem.

The meaning of a limit

lim⁡x→af(x)=L\lim_{x\to a}f(x)=L

means “when xx gets close enough to aa, f(x)f(x) gets as close to LL as you want”. The critical point: the value of f(a)f(a) does not affect the limit. f(a)f(a) may be undefined, or it may be some other number. The limit only looks around aa.

For example, f(x)=x2−1x−1f(x)=\dfrac{x^2-1}{x-1} is undefined at x=1x=1. But for x=0.999x=0.999 it gives 1.9991.999, and for x=1.001x=1.001 it gives 2.0012.001. The limit is 22.

One-sided limits

  • lim⁡x→a−f(x)\displaystyle\lim_{x\to a^-}f(x): as xx approaches aa from the left (x<ax<a).
  • lim⁡x→a+f(x)\displaystyle\lim_{x\to a^+}f(x): from the right (x>ax>a).

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

Example 1. The function ∣x∣x\dfrac{|x|}{x} is 11 for x>0x>0 and −1-1 for x<0x<0. The right limit is 11 and the left limit is −1-1. lim⁡x→0\lim_{x\to0} does not exist.

Example 1b (piecewise function). lim⁡x→1f(x)\lim_{x\to1}f(x) for f(x)={x2+1,x<13x−1,x≥1f(x)=\begin{cases}x^2+1, & x<1\\ 3x-1, & x\ge1\end{cases}.

From the left the piece x<1x<1 is used: 12+1=21^2+1=2. From the right the piece x≥1x\ge1: 3−1=23-1=2. Both sides are equal, so the limit is 22. At a junction point always work like this: for each direction, use the formula of that direction.

Three cases where the limit does not exist

  1. The left and right limits differ (a jump): ∣x∣x\dfrac{|x|}{x}, x→0x\to0.
  2. Unbounded growth: 1x\dfrac1x, x→0x\to0. +∞+\infty on one side, −∞-\infty on the other.
  3. Oscillation: sin⁡1x\sin\dfrac1x, x→0x\to0. At the points x=1nπx=\tfrac{1}{n\pi} the value is 00, and at the points x=2(4n+1)πx=\tfrac{2}{(4n+1)\pi} it is 11. As it approaches 00, the function swings between −1-1 and 11 infinitely many times and never settles on a single number.

Guessing a limit with a numerical table is misleading in this third case. You see different numbers depending on which points you choose. A table gives an idea, not a proof.

Limit laws

If lim⁡f=L\lim f=L and lim⁡g=M\lim g=M: the limit of a sum is L+ML+M, of a product LMLM, of a quotient L/ML/M (if M≠0M\ne0), lim⁡[f]n=Ln\lim[f]^n=L^n, lim⁡fn=Ln\lim\sqrt[n]{f}=\sqrt[n]{L}. Consequence: for polynomials and rational functions (as long as the denominator is not zero), substitution is enough.

Example 2. lim⁡x→2(x2+3x)=4+6=10\displaystyle\lim_{x\to2}(x^2+3x)=4+6=10.

All the laws work under the condition “if the limits exist”. If one of the two limits does not exist, you cannot use the sum law; this also does not mean that the limit of the sum does not exist. For example lim⁡x→0sin⁡1x\lim_{x\to0}\sin\tfrac1x does not exist and lim⁡x→0(−sin⁡1x)\lim_{x\to0}\left(-\sin\tfrac1x\right) does not exist, but their sum is 00 everywhere and its limit is 00.

The typical flow on an exam is:

substitute
 ├─ got a number          -> answer
 ├─ c/0 (c ≠ 0)           -> ±inf or does not exist: left/right sign analysis
 └─ 0/0                   -> algebra:
      ├─ polynomial/rational -> factor
      ├─ difference of roots -> multiply by the conjugate
      ├─ sin, tan, cos       -> sin(u)/u pattern
      └─ oscillation × 0     -> squeeze

Resolving 0/0

00\tfrac00 is not an answer, it is a sign that says “work more” (an indeterminate form). There are three main techniques.

1. Factoring

Example 3. lim⁡x→−1x2+4x+3x+1=lim⁡x→−1(x+1)(x+3)x+1=lim⁡x→−1(x+3)=2\displaystyle\lim_{x\to-1}\frac{x^2+4x+3}{x+1}=\lim_{x\to-1}\frac{(x+1)(x+3)}{x+1}=\lim_{x\to-1}(x+3)=2.

If the denominator is zero as x→ax\to a and the numerator is also zero, both have a factor (x−a)(x-a). Find it and cancel it.

2. Multiplying by the conjugate (rationalizing)

For differences that contain roots, multiply the expression A−B\sqrt{A}-B by A+B\sqrt{A}+B to get (A)2−B2(\sqrt A)^2-B^2.

Example 4.

lim⁡x→0x+9−3x=lim⁡x→0(x+9)−9x(x+9+3)=lim⁡x→01x+9+3=16\lim_{x\to0}\frac{\sqrt{x+9}-3}{x}=\lim_{x\to0}\frac{(x+9)-9}{x(\sqrt{x+9}+3)}=\lim_{x\to0}\frac{1}{\sqrt{x+9}+3}=\frac16

3. The trigonometric pattern

The basic limit in radians:

lim⁡x→0sin⁡xx=1\lim_{x\to0}\frac{\sin x}{x}=1

Derived from it: lim⁡x→0tan⁡xx=1\displaystyle\lim_{x\to0}\frac{\tan x}{x}=1 and lim⁡x→01−cos⁡xx=0\displaystyle\lim_{x\to0}\frac{1-\cos x}{x}=0.

Example 5. lim⁡x→0sin⁡4xx=lim⁡x→04⋅sin⁡4x4x=4\displaystyle\lim_{x\to0}\frac{\sin 4x}{x}=\lim_{x\to0}4\cdot\frac{\sin 4x}{4x}=4.

Rule: the expression inside the sine must also appear exactly in the denominator. If it does not, create it by multiplying and dividing. Short result: sin⁡axbx→ab\dfrac{\sin ax}{bx}\to\dfrac{a}{b}.

Example 5b. lim⁡x→0sin⁡3xsin⁡5x\displaystyle\lim_{x\to0}\frac{\sin 3x}{\sin 5x}. Put the numerator and denominator into the pattern separately:

sin⁡3xsin⁡5x=sin⁡3x3x⋅3xsin⁡5x5x⋅5x=35⋅sin⁡3x3xsin⁡5x5x → 35⋅11=35\frac{\sin 3x}{\sin 5x}=\frac{\dfrac{\sin 3x}{3x}\cdot 3x}{\dfrac{\sin 5x}{5x}\cdot 5x}=\frac{3}{5}\cdot\frac{\dfrac{\sin 3x}{3x}}{\dfrac{\sin 5x}{5x}}\ \to\ \frac35\cdot\frac11=\frac35

For expressions with tan⁡\tan, write tan⁡x=sin⁡xcos⁡x\tan x=\dfrac{\sin x}{\cos x}; since cos⁡x→1\cos x\to1, tan⁡axbx→ab\dfrac{\tan ax}{bx}\to\dfrac ab also holds.

PITFALL · the pattern does not work unless x→0x\to0. lim⁡x→πsin⁡xx=0π=0\displaystyle\lim_{x\to\pi}\frac{\sin x}{x}=\frac{0}{\pi}=0, not 11. The pattern holds only when the inside of the sine goes to zero.

The Squeeze Theorem

If g(x)≤f(x)≤h(x)g(x)\le f(x)\le h(x) near aa and lim⁡g=lim⁡h=L\lim g=\lim h=L, then lim⁡f=L\lim f=L.

The most common use: a bounded expression times an expression that goes to zero.

Example 6. lim⁡x→0x2cos⁡1x\displaystyle\lim_{x\to0}x^2\cos\frac1x.

cos⁡1x\cos\tfrac1x has no limit (it oscillates constantly). But −1≤cos⁡1x≤1-1\le\cos\tfrac1x\le1. Multiply by x2≥0x^2\ge0:

−x2≤x2cos⁡1x≤x2-x^2\le x^2\cos\frac1x\le x^2

Both ends go to 00, so the middle one also goes to 00.

PITFALL · using a limit law in the wrong place. You cannot write "lim⁡x2⋅lim⁡cos⁡1x=0⋅(?)\lim x^2\cdot\lim\cos\tfrac1x=0\cdot(\text{?})"; the product law requires both limits to exist. Use the squeeze.

Infinite limits and vertical asymptotes

If f(x)f(x) grows without bound as x→ax\to a, we write lim⁡f=+∞\lim f=+\infty. This does not mean the limit “exists”; it describes the behavior. The line x=ax=a is a vertical asymptote.

In the case c0\tfrac{c}{0} (c≠0c\ne0), look at the sign of the denominator to determine the sign:

Example 7. lim⁡x→2−x+1x−2\displaystyle\lim_{x\to2^-}\frac{x+1}{x-2}. The numerator →3>0\to3>0. For x<2x<2, x−2<0x-2<0. The result is 30−=−∞\tfrac{3}{0^-}=-\infty. From the right it is +∞+\infty.

Example 8. lim⁡x→31(x−3)2=+∞\displaystyle\lim_{x\to3}\frac{1}{(x-3)^2}=+\infty. The square is positive on both sides, so the two-sided limit is +∞+\infty.

Algorithm for finding vertical asymptotes (rational function):

1. Find the x values that make the denominator zero.
2. Factor the numerator and denominator, and cancel common factors.
3. A point that cancels -> a hole (removable), NOT an asymptote.
4. A point that still makes the denominator zero after cancelling -> vertical asymptote.

The precise definition of a limit (epsilon-delta)

lim⁡x→af(x)=L\displaystyle\lim_{x\to a}f(x)=L means: for every ε>0\varepsilon>0 there is a δ>0\delta>0 such that 0<∣x−a∣<δ0<|x-a|<\delta implies ∣f(x)−L∣<ε|f(x)-L|<\varepsilon.

ε\varepsilon is “how much error I accept in the output”, and δ\delta is “how close I must keep the input”. For linear functions the computation is short:

Example 9. lim⁡x→1(3x+2)=5\displaystyle\lim_{x\to1}(3x+2)=5. ∣(3x+2)−5∣=3∣x−1∣|(3x+2)-5|=3|x-1|. For this to be smaller than ε\varepsilon, it is enough that ∣x−1∣<ε/3|x-1|<\varepsilon/3. Choose δ=ε/3\delta=\varepsilon/3.

In Adams this definition comes with numerical questions of the type “find δ\delta for ε=0.01\varepsilon=0.01”. Rearrange the difference so that it contains a factor ∣x−a∣|x-a|, and divide by the coefficient.

Common mistakes

Wrong thinkingCorrect
Got 00\tfrac00, the answer is 00 (or 11)00\tfrac00 is indeterminate; simplify
Got 50\tfrac{5}{0}, the answer is 00Infinite limit; check the sign from each side
f(a)f(a) is undefined, so the limit does not exist eitherThe limit does not look at f(a)f(a), it looks around it
sin⁡3xx→1\dfrac{\sin 3x}{x}\to1→3\to3; the 3x3x inside must also be in the denominator
lim⁡x→πsin⁡xx=1\lim_{x\to\pi}\dfrac{\sin x}{x}=1The pattern is only for x→0x\to0; here it is 00
A point that cancels is also a vertical asymptoteA point that cancels is a hole
A single computation for an expression with ∣x−2∣\lvert x-2\rvertCompute separately for x<2x<2 and x>2x>2
lim⁡x2sin⁡1x=0⋅lim⁡sin⁡1x\lim x^2\sin\tfrac1x=0\cdot\lim\sin\tfrac1xThe second limit does not exist; use the squeeze
Calculator in degree modesin⁡xx→1\tfrac{\sin x}{x}\to1 holds only in radians

Test yourself

Exam-style questions. Solve them on paper first, then reveal the answer.

Question 1easy

Evaluate lim⁡x→3x2−9x2−5x+6\displaystyle\lim_{x\to 3}\frac{x^2-9}{x^2-5x+6}.

Show answer
6

Substitution gives 00\tfrac{0}{0}. Factor: (x−3)(x+3)(x−3)(x−2)=x+3x−2\dfrac{(x-3)(x+3)}{(x-3)(x-2)}=\dfrac{x+3}{x-2} (x≠3x\ne 3). Now substitute: 61=6\dfrac{6}{1}=6.

Question 2easy

Evaluate lim⁡x→4x−2x−4\displaystyle\lim_{x\to 4}\frac{\sqrt{x}-2}{x-4}.

Show answer
14\dfrac14

The 00\tfrac00 indeterminate form. Notice that x−4=(x−2)(x+2)x-4=(\sqrt x-2)(\sqrt x+2), or multiply by the conjugate: x−2(x−2)(x+2)=1x+2\dfrac{\sqrt x-2}{(\sqrt x-2)(\sqrt x+2)}=\dfrac{1}{\sqrt x+2}. At x=4x=4: 14\dfrac{1}{4}.

Question 3easy

Evaluate lim⁡x→0sin⁡5x3x\displaystyle\lim_{x\to 0}\frac{\sin 5x}{3x}.

Show answer
53\dfrac53

Build the expression inside the sine into the denominator: sin⁡5x3x=53⋅sin⁡5x5x\dfrac{\sin 5x}{3x}=\dfrac{5}{3}\cdot\dfrac{\sin 5x}{5x}. As x→0x\to 0, 5x→05x\to 0, and sin⁡5x5x→1\dfrac{\sin 5x}{5x}\to 1. The result is 53\dfrac53.

Question 4medium

Evaluate lim⁡h→0(2+h)3−8h\displaystyle\lim_{h\to 0}\frac{(2+h)^3-8}{h}.

Show answer
12

Expand: (2+h)3=8+12h+6h2+h3(2+h)^3=8+12h+6h^2+h^3. The numerator is 12h+6h2+h312h+6h^2+h^3; divide by hh: 12+6h+h212+6h+h^2. As h→0h\to 0: 1212. (This is the derivative of x3x^3 at x=2x=2; it will look familiar in week 5.)

Question 5medium

Evaluate lim⁡x→01−cos⁡xx2\displaystyle\lim_{x\to 0}\frac{1-\cos x}{x^2}.

Show answer
12\dfrac12

Multiply by the conjugate: (1−cos⁡x)(1+cos⁡x)x2(1+cos⁡x)=sin⁡2xx2(1+cos⁡x)=(sin⁡xx)2⋅11+cos⁡x\dfrac{(1-\cos x)(1+\cos x)}{x^2(1+\cos x)}=\dfrac{\sin^2 x}{x^2(1+\cos x)}=\left(\dfrac{\sin x}{x}\right)^2\cdot\dfrac{1}{1+\cos x}. Limit: 12⋅12=121^2\cdot\dfrac{1}{2}=\dfrac12.

Question 6medium

Find lim⁡x→2−∣x−2∣x2−4\displaystyle\lim_{x\to 2^-}\frac{|x-2|}{x^2-4} and lim⁡x→2+∣x−2∣x2−4\displaystyle\lim_{x\to 2^+}\frac{|x-2|}{x^2-4}. Does lim⁡x→2∣x−2∣x2−4\displaystyle\lim_{x\to 2}\frac{|x-2|}{x^2-4} exist?

Show answer
−14-\tfrac14 and 14\tfrac14; the limit does not exist

x2−4=(x−2)(x+2)x^2-4=(x-2)(x+2). From the left (x<2x<2): ∣x−2∣=−(x−2)|x-2|=-(x-2), and the ratio −1x+2→−14\dfrac{-1}{x+2}\to-\dfrac14. From the right (x>2x>2): ∣x−2∣=x−2|x-2|=x-2, and the ratio 1x+2→14\dfrac{1}{x+2}\to\dfrac14. The one-sided limits differ, so the two-sided limit does not exist.

Question 7easy

Find lim⁡x→1+x+2x−1\displaystyle\lim_{x\to 1^+}\frac{x+2}{x-1} and lim⁡x→1−x+2x−1\displaystyle\lim_{x\to 1^-}\frac{x+2}{x-1}.

Show answer
+∞+\infty and −∞-\infty

As x→1x\to1 the numerator goes to 33 (positive). The denominator goes to zero. From the right, x−1x-1 is a small positive number: 30+=+∞\tfrac{3}{0^+}=+\infty. From the left, x−1x-1 is a small negative number: 30−=−∞\tfrac{3}{0^-}=-\infty. x=1x=1 is a vertical asymptote.

Question 8medium

Find all vertical asymptotes of f(x)=x2−1x2+x−2f(x)=\dfrac{x^2-1}{x^2+x-2}.

Show answer
x=−2x=-2 only (x=1x=1 is a removable hole)

f(x)=(x−1)(x+1)(x−1)(x+2)f(x)=\dfrac{(x-1)(x+1)}{(x-1)(x+2)}. The denominator is zero at x=1x=1 and x=−2x=-2. At x=1x=1 the factor cancels: lim⁡x→1x+1x+2=23\lim_{x\to1}\dfrac{x+1}{x+2}=\dfrac23, which is finite, so this is a hole. At x=−2x=-2 the numerator is 3≠03\ne 0 and the denominator is zero: the limit is infinite, so it is a vertical asymptote. Answer: only x=−2x=-2.

Question 9hard

Use the Squeeze Theorem to find lim⁡x→0+x esin⁡(π/x)\displaystyle\lim_{x\to 0^+}\sqrt{x}\,e^{\sin(\pi/x)}.

Show answer
0

−1≤sin⁡(π/x)≤1-1\le\sin(\pi/x)\le 1 and ete^t is increasing, so e−1≤esin⁡(π/x)≤ee^{-1}\le e^{\sin(\pi/x)}\le e. Multiply by x≥0\sqrt x\ge 0: xe≤x esin⁡(π/x)≤ex\dfrac{\sqrt x}{e}\le\sqrt{x}\,e^{\sin(\pi/x)}\le e\sqrt x. As x→0+x\to0^+ both bounds go to 0. By the Squeeze Theorem the limit is 00.

Question 10medium

For lim⁡x→3(4x−5)=7\displaystyle\lim_{x\to 3}(4x-5)=7, find the largest δ>0\delta>0 such that ∣x−3∣<δ|x-3|<\delta guarantees ∣(4x−5)−7∣<0.01|(4x-5)-7|<0.01.

Show answer
δ=0.0025\delta=0.0025

∣(4x−5)−7∣=∣4x−12∣=4∣x−3∣|(4x-5)-7|=|4x-12|=4|x-3|. For 4∣x−3∣<0.014|x-3|<0.01 it is enough that ∣x−3∣<0.0025|x-3|<0.0025. In general δ=ε/4\delta=\varepsilon/4.

Question 11hard

Evaluate lim⁡x→0xsin⁡x1−cos⁡x\displaystyle\lim_{x\to 0}\frac{x\sin x}{1-\cos x}.

Show answer
2

Multiply by the conjugate: xsin⁡x(1+cos⁡x)1−cos⁡2x=xsin⁡x(1+cos⁡x)sin⁡2x=xsin⁡x(1+cos⁡x)\dfrac{x\sin x(1+\cos x)}{1-\cos^2 x}=\dfrac{x\sin x(1+\cos x)}{\sin^2 x}=\dfrac{x}{\sin x}(1+\cos x). As x→0x\to0: 1⋅2=21\cdot 2=2.

Question 12hard

Find the constant aa for which lim⁡x→2x2+ax−6x−2\displaystyle\lim_{x\to 2}\frac{x^2+ax-6}{x-2} exists, and find the value of the limit.

Show answer
a=1a=1, limit =5=5

The denominator goes to 00. For the limit to be finite, the numerator must also go to 00 (otherwise it is constant0\tfrac{\text{constant}}{0}, which is infinite). 4+2a−6=0⇒a=14+2a-6=0 \Rightarrow a=1. Then x2+x−6x−2=(x−2)(x+3)x−2=x+3→5\dfrac{x^2+x-6}{x-2}=\dfrac{(x-2)(x+3)}{x-2}=x+3\to 5.

Verification: All limits were checked with node (verify/MAT1051/03.mjs): the function was evaluated on both sides of the point at distances 1e-4 to 1e-7; for infinite limits the size and sign of the value, and for the epsilon-delta question by scanning the interval.

Review card

First SUBSTITUTE. If you get a number, that is the answer. 0/0 -> factor / multiply by the conjugate / the sin x / x pattern c/0 (c ≠ 0) -> infinite limit, check the sign from each side lim sin x / x = 1 lim tan x / x = 1 lim (1 - cos x)/x^2 = 1/2 (x -> 0, radians) sin(ax)/(bx) -> a/b The limit exists <=> left limit = right limit If you see |x - a|, compute the right and left limits separately Squeeze: g <= f <= h, lim g = lim h = L implies lim f = L (x^2 sin(1/x) -> 0) Vertical asymptote x = a: denominator 0, numerator ≠ 0 (if it cancels, it is a hole) ε-δ: |f(x) - L| < ε when |x - a| < δ; for a linear function δ = ε/|slope|