Limits
The single idea underneath every derivative and integral: what value is a function approaching — even at points where it's undefined?
01The idea: approaching, not arriving
The statement $\lim\limits_{x \to a} f(x) = L$ means: as $x$ gets arbitrarily close to $a$ (from either side), the outputs $f(x)$ get arbitrarily close to $L$. The crucial subtlety is that the limit doesn't care what happens at $a$ itself — only what happens near $a$. The function can be undefined at $a$, or defined with some unrelated value, and the limit can still exist.
The hero graph above shows the classic example: $f(x) = \dfrac{x^2 - 9}{x - 3}$ is undefined at $x = 3$ (you'd get $\frac{0}{0}$), but everywhere else it simplifies to $x + 3$. So as $x$ approaches $3$, the outputs approach $6$. The graph is a straight line with a single hole punched out — and the limit is the $y$-value of the hole: $\lim\limits_{x\to 3} \dfrac{x^2-9}{x-3} = 6$.
02One-sided limits
Sometimes a function behaves differently on each side of a point. We write $\lim\limits_{x \to a^-} f(x)$ for the left-hand limit (approaching with $x < a$) and $\lim\limits_{x \to a^+} f(x)$ for the right-hand limit ($x > a$). The two-sided limit exists if and only if both one-sided limits exist and are equal:
$$\lim_{x \to a} f(x) = L \iff \lim_{x \to a^-} f(x) = \lim_{x \to a^+} f(x) = L$$
This is the tool for piecewise functions and jump behavior. For example, $f(x) = \dfrac{|x|}{x}$ equals $-1$ for negative $x$ and $+1$ for positive $x$. The left limit at $0$ is $-1$, the right limit is $+1$ — they disagree, so $\lim\limits_{x\to 0}\dfrac{|x|}{x}$ does not exist (DNE).
03Limit laws and direct substitution
Limits behave politely with arithmetic: the limit of a sum is the sum of the limits, and the same holds for differences, products, and quotients (as long as the bottom limit isn't zero). The practical payoff is direct substitution: for polynomials, and for rational/trig/exponential/log functions at points inside their domains, you can just plug in:
$$\lim_{x \to 2}\,(x^2 + 3x - 1) = 4 + 6 - 1 = 9$$
Always try substitution first. If you get a real number, you're done. If you get $\frac{\text{nonzero}}{0}$, you're looking at a vertical asymptote (see §06). If you get $\frac{0}{0}$ — the indeterminate form — the answer is hiding and you need algebra.
04Defeating 0/0: factor, cancel, conjugate
An indeterminate form $\frac{0}{0}$ means numerator and denominator share a common factor that vanishes at $a$. Your job is to find it and cancel it. Two workhorse techniques:
- Factor and cancel. $\lim\limits_{x\to 5}\dfrac{x^2 - 25}{x - 5} = \lim\limits_{x\to 5}\dfrac{(x-5)(x+5)}{x-5} = \lim\limits_{x\to 5}(x+5) = 10$.
- Multiply by the conjugate when square roots appear. For $\lim\limits_{x\to 0}\dfrac{\sqrt{x+4}-2}{x}$, multiply top and bottom by $\sqrt{x+4}+2$: the numerator becomes $(x+4)-4 = x$, which cancels the denominator, leaving $\lim\limits_{x\to 0}\dfrac{1}{\sqrt{x+4}+2} = \dfrac{1}{4}$.
After canceling, substitute again. This is why the factoring drills from Module 01 matter — they are the limit technique.
05The Squeeze Theorem
If $g(x) \le f(x) \le h(x)$ near $a$, and the outer functions squeeze together — $\lim\limits_{x\to a} g(x) = \lim\limits_{x\to a} h(x) = L$ — then the trapped function must go there too: $\lim\limits_{x\to a} f(x) = L$. The signature application: since $-1 \le \sin\frac{1}{x} \le 1$, we get $-|x| \le x\sin\frac{1}{x} \le |x|$, and both bounds go to $0$, so $\lim\limits_{x\to 0} x\sin\frac{1}{x} = 0$ — even though the function oscillates infinitely fast near zero.
06Infinite limits and vertical asymptotes
When substitution gives $\frac{\text{nonzero}}{0}$, the function blows up. We write $\lim\limits_{x\to a} f(x) = \infty$ (or $-\infty$) to describe how it fails to exist, and the line $x = a$ is a vertical asymptote. Determine the sign by checking each side: for $\lim\limits_{x\to 2^+}\dfrac{1}{x-2}$, values just right of $2$ make $x - 2$ a tiny positive number, so the quotient is huge and positive: $+\infty$. From the left it's $-\infty$.
07Limits at infinity and horizontal asymptotes
Now let $x$ itself run off to $\pm\infty$. For rational functions, compare the degrees of the top and bottom:
- Top degree < bottom degree — limit is $0$.
- Degrees equal — limit is the ratio of leading coefficients.
- Top degree > bottom degree — limit is $\pm\infty$ (no horizontal asymptote).
So $\lim\limits_{x\to\infty} \dfrac{3x^2 + x}{5x^2 - 7} = \dfrac{3}{5}$, and $y = \frac{3}{5}$ is a horizontal asymptote. The formal move behind this shortcut: divide top and bottom by the highest power of $x$ in the denominator, and use $\lim\limits_{x\to\infty}\frac{1}{x^n} = 0$.
08Two special trig limits
Memorize these — they power the derivatives of sine and cosine later:
$$\lim_{x \to 0} \frac{\sin x}{x} = 1 \qquad\qquad \lim_{x \to 0} \frac{1 - \cos x}{x} = 0$$
(Radians required — another reason degrees are banned in calculus.) These stretch further than they look: $\lim\limits_{x\to 0}\dfrac{\sin 5x}{x} = \lim\limits_{x\to 0}\dfrac{\sin 5x}{5x}\cdot 5 = 1 \cdot 5 = 5$. The pattern: match the inside of the sine with the denominator, then account for the constant you introduced.
Strategy checklist. (1) Try substitution. (2) Got a number? Done. (3) Got $\frac{\text{nonzero}}{0}$? Vertical asymptote — check signs from each side. (4) Got $\frac{0}{0}$? Factor/cancel or conjugate, then substitute again. (5) $x \to \pm\infty$? Compare degrees. (6) Oscillation trapped between bounds? Squeeze.
Evaluate $\lim\limits_{x \to 3} (2x^2 - x + 4)$.
Solution
Polynomial — direct substitution: $2(9) - 3 + 4 = 19$.
Evaluate $\lim\limits_{x \to 4} \dfrac{x^2 - 16}{x - 4}$.
Solution
Substitution gives $\frac{0}{0}$. Factor: $\dfrac{(x-4)(x+4)}{x-4} = x + 4$.
Limit $= 4 + 4 = 8$.
Evaluate $\lim\limits_{x \to -2} \dfrac{x^2 + 5x + 6}{x + 2}$.
Solution
$\frac{0}{0}$. Factor the top: $(x+2)(x+3)$. Cancel: limit of $x + 3$ as $x \to -2$ is $1$.
Evaluate $\lim\limits_{x \to 0} \dfrac{\sqrt{x + 9} - 3}{x}$.
Solution
Multiply by the conjugate $\dfrac{\sqrt{x+9}+3}{\sqrt{x+9}+3}$: numerator becomes $(x+9) - 9 = x$.
$\lim\limits_{x\to 0}\dfrac{1}{\sqrt{x+9}+3} = \dfrac{1}{6}$.
Let $f(x) = \begin{cases} x + 1 & x < 2 \\ x^2 - 1 & x \ge 2 \end{cases}$. Find $\lim\limits_{x\to 2^-} f(x)$, $\lim\limits_{x\to 2^+} f(x)$, and $\lim\limits_{x\to 2} f(x)$.
Solution
Left: $2 + 1 = 3$. Right: $4 - 1 = 3$. Both sides agree, so $\lim\limits_{x\to 2} f(x) = 3$.
Let $g(x) = \begin{cases} 3x & x < 1 \\ 5 - x & x \ge 1 \end{cases}$. Does $\lim\limits_{x\to 1} g(x)$ exist?
Solution
Left: $3(1) = 3$. Right: $5 - 1 = 4$. The one-sided limits disagree, so the limit does not exist.
Evaluate $\lim\limits_{x \to 0} \dfrac{|x|}{x}$, or state that it does not exist.
Solution
For $x < 0$: $\frac{-x}{x} = -1$. For $x > 0$: $\frac{x}{x} = 1$. Sides disagree → DNE.
Evaluate $\lim\limits_{x \to 3^+} \dfrac{5}{x - 3}$ and $\lim\limits_{x \to 3^-} \dfrac{5}{x - 3}$.
Solution
From the right, $x - 3$ is a tiny positive number: $\dfrac{5}{\text{tiny}^+} = +\infty$.
From the left, $x - 3$ is tiny negative: $-\infty$. Vertical asymptote at $x = 3$.
Evaluate $\lim\limits_{x \to \infty} \dfrac{4x^2 - x + 7}{2x^2 + 5}$.
Solution
Equal degrees → ratio of leading coefficients: $\dfrac{4}{2} = 2$.
Evaluate $\lim\limits_{x \to \infty} \dfrac{3x + 1}{x^2 - 4}$ and $\lim\limits_{x \to \infty} \dfrac{x^3 - 2}{6x^2 + x}$.
Solution
First: top degree $1 <$ bottom degree $2$, so the limit is $0$.
Second: top degree $3 >$ bottom degree $2$, so it grows without bound: $+\infty$.
Evaluate $\lim\limits_{x \to 0} \dfrac{\sin 4x}{x}$.
Solution
$\dfrac{\sin 4x}{x} = \dfrac{\sin 4x}{4x} \cdot 4 \to 1 \cdot 4 = 4$.
Evaluate $\lim\limits_{x \to 0} \dfrac{\sin 3x}{\sin 5x}$.
Solution
Write as $\dfrac{\sin 3x}{3x} \cdot \dfrac{5x}{\sin 5x} \cdot \dfrac{3}{5} \to 1 \cdot 1 \cdot \dfrac{3}{5} = \dfrac{3}{5}$.
Evaluate $\lim\limits_{x \to 0} \dfrac{1 - \cos x}{x}$.
Solution
This is the second special trig limit: $0$.
Use the Squeeze Theorem to evaluate $\lim\limits_{x \to 0} x^2 \cos\dfrac{1}{x}$.
Solution
Since $-1 \le \cos\frac{1}{x} \le 1$, we have $-x^2 \le x^2\cos\frac{1}{x} \le x^2$.
Both bounds → $0$, so the limit is $0$.
Evaluate $\lim\limits_{h \to 0} \dfrac{(2 + h)^2 - 4}{h}$. (This is a derivative in disguise.)
Solution
Expand: $(4 + 4h + h^2) - 4 = 4h + h^2 = h(4 + h)$.
Cancel $h$: limit of $4 + h$ is $4$. (It's the slope of $y = x^2$ at $x = 2$.)
Evaluate $\lim\limits_{x \to 1} \dfrac{\frac{1}{x} - 1}{x - 1}$.
Solution
Combine the top: $\dfrac{1 - x}{x}$. So the expression is $\dfrac{1-x}{x(x-1)} = \dfrac{-(x-1)}{x(x-1)} = \dfrac{-1}{x}$.
Limit $= -1$.
Given $\lim\limits_{x\to a} f(x) = 5$ and $\lim\limits_{x\to a} g(x) = -2$, evaluate $\lim\limits_{x\to a}\left[3f(x) - g(x)^2\right]$ and $\lim\limits_{x\to a}\dfrac{f(x)}{g(x)}$.
Solution
Limit laws: $3(5) - (-2)^2 = 15 - 4 = 11$; and $\dfrac{5}{-2} = -\dfrac{5}{2}$.
Find all vertical asymptotes of $f(x) = \dfrac{x + 1}{x^2 - x - 6}$.
Solution
Factor: $x^2 - x - 6 = (x-3)(x+2)$, zero at $x = 3, -2$; the numerator is nonzero at both.
Vertical asymptotes: $x = 3$ and $x = -2$.
Trick question: find $\lim\limits_{x \to 2} \dfrac{x^2 - 4}{x^2 - 5x + 6}$.
Solution
$\frac{0}{0}$. Factor both: $\dfrac{(x-2)(x+2)}{(x-2)(x-3)} = \dfrac{x+2}{x-3}$.
Substitute: $\dfrac{4}{-1} = -4$.
Evaluate $\lim\limits_{x \to \infty} \left(\sqrt{x^2 + 6x} - x\right)$. (Conjugate trick at infinity — a classic exam finisher.)
Solution
Multiply by $\dfrac{\sqrt{x^2+6x}+x}{\sqrt{x^2+6x}+x}$: top becomes $(x^2 + 6x) - x^2 = 6x$.
$\dfrac{6x}{\sqrt{x^2+6x}+x} = \dfrac{6}{\sqrt{1 + 6/x} + 1} \to \dfrac{6}{1 + 1} = 3$.