STEMviz
Mathematics · Introduction to Calculus

Limits of Sequences and Functions

Limits of sequences and functions, one-sided limits, the algebra of limits, resolving 00\frac{0}{0} by factoring or rationalising, limits at infinity, and the squeeze theorem.

Limits of Sequences and Functions

Calculus begins with a single question dressed up in different costumes: what happens to a quantity as something else gets arbitrarily close to a particular value? Answering that question precisely — not just "it looks like it heads towards..." but with an argument that survives scrutiny — is the job of the limit. Every idea in the rest of this block, from the derivative to the definite integral, is built on the limit concept developed here, so it is worth being unhurried about it now.

To follow this chapter you should be comfortable with algebraic manipulation (factoring, rationalising surds), the graphs of polynomial and rational functions, and interval notation. Nothing here requires calculus itself — limits come before the derivative, not after.

1. The Limit of a Sequence

A sequence (an)(a_n) is a list of numbers indexed by the positive integers: a1,a2,a3,…a_1, a_2, a_3, \ldots. Consider an=1na_n = \dfrac{1}{n}:

a1=1,a2=0.5,a3=0.3333…,a100=0.01,a10000=0.0001a_1 = 1,\quad a_2 = 0.5,\quad a_3 = 0.3333\ldots,\quad a_{100} = 0.01,\quad a_{10000} = 0.0001

As nn grows without bound, ana_n gets closer and closer to 00 — not reaching it for any finite nn, but getting closer than any tolerance you name, provided nn is large enough. We write

lim⁡n→∞1n=0\lim_{n \to \infty} \frac{1}{n} = 0

Definition. A sequence (an)(a_n) has limit LL, written lim⁡n→∞an=L\displaystyle\lim_{n\to\infty} a_n = L, if ana_n can be made arbitrarily close to LL by taking nn sufficiently large. If such an LL exists, the sequence is said to converge; otherwise it diverges.

The sequence an=(−1)na_n = (-1)^n diverges: it never settles near one value, oscillating forever between −1-1 and 11. The sequence an=na_n = n also diverges, but in the specific way of growing without bound; we write lim⁡n→∞n=∞\displaystyle\lim_{n\to\infty} n = \infty while still calling it divergent, since ∞\infty is not a real number the sequence actually reaches.

2. The Limit of a Function at a Point

The same idea transfers to functions, but now the input variable xx can approach a real number aa rather than just increasing through the integers.

Definition. lim⁡x→af(x)=L\displaystyle\lim_{x\to a} f(x) = L means that f(x)f(x) gets arbitrarily close to LL as xx gets arbitrarily close to aa, from either side, without xx ever equalling aa itself.

That last clause matters enormously: the limit describes the behaviour approaching aa, and is completely indifferent to whatever value f(a)f(a) actually takes — or whether f(a)f(a) is even defined. Consider

f(x)=x2−4x−2f(x) = \frac{x^2 - 4}{x - 2}

which is undefined at x=2x = 2 (division by zero). Yet for every x≠2x \neq 2,

f(x)=(x−2)(x+2)x−2=x+2f(x) = \frac{(x-2)(x+2)}{x-2} = x + 2

so as x→2x \to 2, f(x)→4f(x) \to 4. We write lim⁡x→2f(x)=4\displaystyle\lim_{x\to 2} f(x) = 4 even though f(2)f(2) does not exist. The graph of ff is the line y=x+2y = x+2 with a single point removed at (2,4)(2,4) — a hole — and the limit correctly reports what the function is "trying to do" there.

3. One-Sided Limits and Existence of the Limit

Sometimes a function behaves differently depending on which side xx approaches from. The left-hand limit lim⁡x→a−f(x)\displaystyle\lim_{x\to a^-} f(x) considers only x<ax < a approaching aa; the right-hand limit lim⁡x→a+f(x)\displaystyle\lim_{x\to a^+} f(x) considers only x>ax > a.

Key distinction. The two-sided limit lim⁡x→af(x)\displaystyle\lim_{x\to a} f(x) exists if and only if both one-sided limits exist and are equal. If they disagree, the two-sided limit does not exist at all — it is not "one of the two values", it simply fails to exist.

Worked example. Let f(x)=∣x∣xf(x) = \dfrac{|x|}{x} for x≠0x \neq 0. For x>0x > 0, ∣x∣=x|x| = x, so f(x)=1f(x) = 1; for x<0x < 0, ∣x∣=−x|x| = -x, so f(x)=−1f(x) = -1. Hence

lim⁡x→0−f(x)=−1,lim⁡x→0+f(x)=1\lim_{x\to 0^-} f(x) = -1, \qquad \lim_{x\to 0^+} f(x) = 1

Since −1≠1-1 \neq 1, lim⁡x→0f(x)\displaystyle\lim_{x\to 0} f(x) does not exist, despite each one-sided limit existing perfectly well.

4. The Algebra of Limits

Provided the individual limits exist, limits interact with the arithmetic operations exactly as you would hope. If lim⁡x→af(x)=L\displaystyle\lim_{x\to a} f(x) = L and lim⁡x→ag(x)=M\displaystyle\lim_{x\to a} g(x) = M, then:

lim⁡x→a[f(x)±g(x)]=L±Mlim⁡x→a[f(x) g(x)]=LM\lim_{x\to a}\big[f(x) \pm g(x)\big] = L \pm M \qquad \lim_{x\to a}\big[f(x)\,g(x)\big] = LM lim⁡x→af(x)g(x)=LM(M≠0)lim⁡x→a[f(x)]k=Lk\lim_{x\to a} \frac{f(x)}{g(x)} = \frac{L}{M} \quad (M \neq 0) \qquad \lim_{x\to a}\big[f(x)\big]^{k} = L^{k}

For any polynomial p(x)p(x), this immediately gives lim⁡x→ap(x)=p(a)\displaystyle\lim_{x\to a} p(x) = p(a): just substitute. The same holds for a rational function p(x)q(x)\dfrac{p(x)}{q(x)} at any aa with q(a)≠0q(a) \neq 0. Limits only become interesting — and require technique — when direct substitution produces an indeterminate form such as 00\dfrac{0}{0}.

5. Resolving the 00\frac{0}{0} Form

When substitution gives 00\dfrac{0}{0}, it means the expression has a common factor that cancels, exactly as in the worked example of Section 2. The method is always: factor, cancel, then substitute.

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

Direct substitution gives 9−6−39−9=00\dfrac{9 - 6 - 3}{9-9} = \dfrac{0}{0}, so both numerator and denominator share a factor of (x−3)(x-3):

x2−2x−3x2−9=(x−3)(x+1)(x−3)(x+3)=x+1x+3(x≠3)\frac{x^2-2x-3}{x^2-9} = \frac{(x-3)(x+1)}{(x-3)(x+3)} = \frac{x+1}{x+3} \quad (x \neq 3)

Now substituting is valid:

lim⁡x→3x+1x+3=46=23\lim_{x\to 3} \frac{x+1}{x+3} = \frac{4}{6} = \frac{2}{3}

When the indeterminate form involves a surd instead of a polynomial factor, rationalise the numerator or denominator by multiplying by the conjugate. For instance, lim⁡x→0x+4−2x\displaystyle\lim_{x\to 0} \frac{\sqrt{x+4}-2}{x} is resolved by multiplying top and bottom by x+4+2\sqrt{x+4}+2, turning the numerator into (x+4)−4=x(x+4)-4 = x, which cancels the xx in the denominator and leaves 1x+4+2→14\dfrac{1}{\sqrt{x+4}+2} \to \dfrac{1}{4}.

6. Limits at Infinity of Rational Functions

For lim⁡x→∞p(x)q(x)\displaystyle\lim_{x\to\infty} \frac{p(x)}{q(x)} with p,qp, q polynomials, divide every term by the highest power of xx appearing in the denominator; every term of the form cxk\dfrac{c}{x^k} then tends to 00.

Worked example. Evaluate lim⁡x→∞3x2−5x+12x2+7\displaystyle\lim_{x\to\infty} \frac{3x^2 - 5x + 1}{2x^2 + 7}.

The highest power in the denominator is x2x^2. Dividing every term, top and bottom, by x2x^2:

3x2−5x+12x2+7=3−5x+1x22+7x2⟶3−0+02+0=32\frac{3x^2 - 5x + 1}{2x^2+7} = \frac{3 - \dfrac{5}{x} + \dfrac{1}{x^2}}{2 + \dfrac{7}{x^2}} \longrightarrow \frac{3 - 0 + 0}{2+0} = \frac{3}{2}

The general rule falls out of the same method: comparing the degrees of pp and qq,

lim⁡x→∞p(x)q(x)={0deg⁡p<deg⁡qleading coeff. of pleading coeff. of qdeg⁡p=deg⁡q±∞deg⁡p>deg⁡q\lim_{x\to\infty} \frac{p(x)}{q(x)} = \begin{cases} 0 & \deg p < \deg q \\[4pt] \dfrac{\text{leading coeff. of } p}{\text{leading coeff. of } q} & \deg p = \deg q \\[4pt] \pm\infty & \deg p > \deg q \end{cases}

This result is the computational heart of the next chapter, where it identifies horizontal asymptotes.

7. The Squeeze (Sandwich) Theorem

Some limits resist both factoring and direct substitution, yet can be pinned down by trapping the function between two others whose limits agree.

Squeeze theorem. If g(x)≤f(x)≤h(x)g(x) \leq f(x) \leq h(x) for all xx near aa (possibly excluding aa), and lim⁡x→ag(x)=lim⁡x→ah(x)=L\displaystyle\lim_{x\to a} g(x) = \lim_{x\to a} h(x) = L, then lim⁡x→af(x)=L\displaystyle\lim_{x\to a} f(x) = L too — ff is squeezed into the same limit.

The standard application is lim⁡x→0sin⁡xx=1\displaystyle\lim_{x\to 0} \frac{\sin x}{x} = 1 (with xx in radians). A geometric comparison of the areas of a small triangle, a circular sector and a larger triangle built on a unit circle shows that cos⁡x≤sin⁡xx≤1\cos x \leq \dfrac{\sin x}{x} \leq 1 for small x≠0x \neq 0. Since cos⁡x→1\cos x \to 1 and the constant function 1→11 \to 1 as x→0x \to 0, the sandwiched quantity sin⁡xx\dfrac{\sin x}{x} is forced to the same limit, 11. This single result becomes indispensable once trigonometric derivatives are introduced later in this block.

Common Exam Pitfalls

  • Substituting into the original expression before simplifying. If direct substitution gives 00\frac{0}{0}, that is not "the answer is zero" — it is a signal that algebraic work (factoring or rationalising) is required first.
  • Treating ∞\infty as a number you can do arithmetic with. Expressions like ∞−∞\infty - \infty or ∞∞\dfrac{\infty}{\infty} are indeterminate: they must be rewritten (usually by dividing by the highest power of xx) before any conclusion can be drawn.
  • Forgetting to check both one-sided limits when a function is defined piecewise or involves ∣x∣|x|, and claiming a limit exists when the two sides actually disagree.
  • Confusing f(a)f(a) with lim⁡x→af(x)\displaystyle\lim_{x\to a}f(x). The limit can exist and differ from f(a)f(a), or exist when f(a)f(a) is undefined altogether — the two questions are independent.
  • Cancelling factors without stating the restriction. Writing (x−3)(x+1)(x−3)(x+3)=x+1x+3\dfrac{(x-3)(x+1)}{(x-3)(x+3)} = \dfrac{x+1}{x+3} is only valid for x≠3x \neq 3; this restriction is exactly why the limit calculation remains meaningful even though the original expression was undefined there.
  • Misapplying the degree-comparison rule at infinity by comparing leading terms before dividing through, especially when the polynomials are not already in standard descending-power form.

Summary

  • A sequence (an)(a_n) converges to LL if ana_n gets arbitrarily close to LL for sufficiently large nn; otherwise it diverges.
  • lim⁡x→af(x)=L\displaystyle\lim_{x\to a} f(x) = L describes the behaviour of ff approaching aa, independent of f(a)f(a) itself.
  • The two-sided limit exists iff the left-hand and right-hand limits exist and are equal.
  • Limits respect sums, products, quotients (denominator limit ≠0\neq 0) and powers of functions whose individual limits exist.
  • The 00\frac{0}{0} form is resolved by factor-and-cancel or rationalising, never by direct substitution.
  • For rational functions as x→∞x\to\infty, divide through by the highest power of xx in the denominator; the result depends only on comparing the degrees of numerator and denominator.
  • The squeeze theorem proves lim⁡x→0sin⁡xx=1\displaystyle\lim_{x\to 0}\dfrac{\sin x}{x} = 1, a result used throughout the rest of this block.