MAT137/Unit 02
Unit 02 · Term 1

Limits & Continuity

The conceptual heart of the course. The ε–δ definition of a limit is the single idea everything downstream — derivatives, integrals, series — is built on. Spend real time until you can write ε–δ proofs cold.

By the end you can
Why it matters & where it comes from
Why it exists

Early calculus worked remarkably well, but many infinitesimal arguments lacked a precise foundation. The ε–δ limit answered the question — what does "approaches" actually mean? — and gave analysis a rigorous framework.

In the real world

Every instantaneous rate is a limit: speed on a speedometer, a tolerance an engineer designs to, whether an algorithm settles on an answer. Continuity is the hidden assumption behind root-finding by bisection and behind "small change in input, small change in output" in physics and economics.

Story & open questions

Newton and Leibniz built calculus in the 1600s on infinitesimals; Bishop Berkeley ridiculed them in 1734 as "the ghosts of departed quantities." It took Cauchy and Weierstrass another century to make ε–δ rigorous. Weierstrass then exhibited a function that is continuous everywhere but differentiable nowhere — destroying everyone's intuition at once.

The mental model

An $\varepsilon$-$\delta$ proof is a game with two distances. The output distance $|f(x)-L|$ is what the challenger wants small. The input distance $|x-a|$ is what you control. Scratch work moves backward from the output inequality to a condition on $|x-a|$; the final proof then moves forward from your chosen $\delta$ to the desired output bound.

Delta-finding pattern
Start with the target: make $|f(x)-L|<\varepsilon$.
Algebraically rewrite $|f(x)-L|$ until a factor $|x-a|$ appears.
If another factor depends on $x$, use a preliminary bound such as $\delta\le1$ to make that factor controlled.
Choose $\delta$ as the minimum of all needed restrictions.

How to recognize the right tool

Not every limit needs a full $\varepsilon$-$\delta$ proof. The course expects you to know when a theorem is doing the work and when the definition is being tested directly.

The ε–δ definition

Definition Limit

$\displaystyle\lim_{x\to a}f(x)=L$ means: for every $\varepsilon>0$ there exists $\delta>0$ such that, for all $x$, $$0<|x-a|<\delta\ \Longrightarrow\ |f(x)-L|<\varepsilon.$$

Read it as a challenge–response game. The challenger picks a tolerance $\varepsilon$ around $L$; you must produce a radius $\delta$ around $a$ so that every $x$ within $\delta$ (except $a$ itself) lands within $\varepsilon$ of $L$. The "$0<|x-a|$" part says the value at $a$ is irrelevant. The order of quantifiers matters: $\delta$ may depend on $\varepsilon$, but it must work for every eligible $x$.

Explore the ε–δ challenge for $f(x)=x^2$ at $a=2$

Move ε. The red horizontal band is the required output tolerance; the blue vertical band is the input window produced by the proof's conservative choice $\delta=\min\{1,\varepsilon/5\}$.

(2, 4) x y 2 4
epsilon = 1.50 delta = 0.30

Writing an ε–δ proof

The structure is always the same: "Let $\varepsilon>0$. Choose $\delta=\dots$. Then if $0<|x-a|<\delta$, …, so $|f(x)-L|<\varepsilon$."

Example A linear limit

Prove $\lim_{x\to3}(2x-1)=5$.

Scratch: $|(2x-1)-5|=2|x-3|$, want $<\varepsilon$, so need $|x-3|<\varepsilon/2$.
Proof: let $\varepsilon>0$ and take $\delta=\varepsilon/2$. If $0<|x-3|<\delta$ then $|(2x-1)-5|=2|x-3|<2\delta= \varepsilon$. ∎
Example A quadratic limit

Prove $\lim_{x\to2}x^2=4$.

Scratch: $|x^2-4|=|x-2|\,|x+2|$. Restrict $\delta\le1$ so $|x-2|<1\Rightarrow|x+2|<5$.
Proof: let $\varepsilon>0$, take $\delta=\min\{1,\varepsilon/5\}$. Then $|x^2-4|=|x-2||x+2|<5\cdot \tfrac{\varepsilon}{5}=\varepsilon$. ∎
Scratch work versus proof Work backward to discover a useful $\delta$, but write the proof forward: announce the choice first, then verify that it works. A valid $\delta$ need not be the largest possible one.

Limit laws and the squeeze theorem

Theorem Limit laws

If $\lim_{x\to a}f=L$ and $\lim_{x\to a}g=M$, then the limits of $f\pm g$, $fg$, and (if $M\ne0$) $f/g$ are $L\pm M$, $LM$, and $L/M$.

Theorem Squeeze

If $g(x)\le f(x)\le h(x)$ for all $x$ sufficiently close to $a$ (possibly excluding $a$), and $\lim_{x\to a}g=\lim_{x\to a}h=L$, then $\lim_{x\to a}f=L$.

Example Squeeze

$\lim_{x\to0}x^2\sin(1/x)=0$, since $-x^2\le x^2\sin(1/x)\le x^2$ and both bounds tend to $0$.

One-sided and infinite limits

$\lim_{x\to a^-}$ and $\lim_{x\to a^+}$ restrict $x$ to one side; the two-sided limit exists iff both one-sided limits exist and agree. Infinite limits and limits at infinity use the same challenge–response structure.

Examples Formal infinite-limit language

$\lim_{x\to a}f(x)=\infty$ means: for every $M>0$, there is a $\delta>0$ such that $0<|x-a|<\delta\Rightarrow f(x)>M$.

$\lim_{x\to\infty}f(x)=L$ means: for every $\varepsilon>0$, there is an $N>0$ such that $x>N\Rightarrow |f(x)-L|<\varepsilon$.

Continuity

Definition Continuity at a point

$f$ is continuous at $a$ if $a$ is in the domain and $\displaystyle\lim_{x\to a}f(x)=f(a)$. Equivalently: $\forall\varepsilon>0\, \exists\delta>0$ with $|x-a|<\delta\Rightarrow|f(x)-f(a)|<\varepsilon$.

Sums, products, quotients (nonzero denominator), and compositions of continuous functions are continuous. Polynomials are continuous everywhere; rational functions wherever defined.

Example A patched function

Let $f(x)=x\sin(1/x)$ for $x\ne0$ and $f(0)=0$. Is $f$ continuous at $0$?

$|x\sin(1/x)|\le|x|\to0$, so $\lim_{x\to0}f(x)=0=f(0)$. Yes, continuous.
Theorem Intermediate Value Theorem

If $f$ is continuous on $[a,b]$ and $N$ lies between $f(a)$ and $f(b)$, then there is some $c\in[a,b]$ with $f(c)=N$.

Example Proving a root exists

$p(x)=x^3+x-1$ is continuous, $p(0)=-1$, and $p(1)=1$. By the IVT, some $c\in(0,1)$ satisfies $p(c)=0$. The theorem proves existence, not a formula for $c$.

Discontinuities commonly appear as removable holes, jump discontinuities where one-sided limits disagree, or infinite discontinuities. The ε–δ definition handles all of them without relying on a graph.

Common pitfalls

• Choosing $\delta$ that secretly depends on $x$ — it may depend only on $\varepsilon$ (and $a$).
• Forgetting to bound the "extra" factor (like $|x+2|$) by restricting $\delta\le 1$ first.
• Confusing "limit exists" with "function is defined": the limit ignores the value at $a$.

Practice

Problems adapted from the MAT137 question bank by Alfonso Gracia-Saz, used under CC BY-SA 4.0. Write full solutions before opening the answer.

Practice 1 · Choosing δ

Let $\varepsilon>0$. Find all $\delta>0$ such that $|x-3|<\delta\Rightarrow|5x-15|<\varepsilon$.

Answer
$|5x-15|=5|x-3|<\varepsilon$ exactly when $|x-3|<\varepsilon/5$, so every $\delta$ with $0<\delta\le\varepsilon/5$ works.
Practice 2 · First ε–δ proof

Prove $\lim_{x\to3}(5x+1)=16$ directly from the definition.

Solution
Let $\varepsilon>0$ and take $\delta=\varepsilon/5$. If $0<|x-3|<\delta$ then $|(5x+1)-16|=5|x-3|<5\delta=\varepsilon$. ∎
Practice 3 · A harder ε–δ proof

Prove $\lim_{x\to0}(x^3+x^2)=0$ directly from the definition.

Solution
Take $\delta=\min\{1,\varepsilon/2\}$. If $0<|x|<\delta\le1$ then $|x+1|<2$ and $|x|^2<|x|$, so $|x^3+x^2|=|x|^2|x+1|<2|x|<2\delta\le\varepsilon$. ∎
Practice 4 · Squeeze

Prove: if $\lim_{x\to a}|f(x)|=0$, then $\lim_{x\to a}f(x)=0$.

Solution
For every $x$, $-|f(x)|\le f(x)\le|f(x)|$. Both bounds tend to $0$, so by the squeeze theorem $\lim_{x\to a}f(x)=0$.
Practice 5 · Bounded × small

Suppose $\lim_{x\to a}f(x)=0$ and $g$ is bounded near $a$. Prove $\lim_{x\to a}f(x)g(x)=0$.

Solution
Pick $M>0$ with $|g(x)|\le M$ near $a$. Then $0\le|f(x)g(x)|\le M|f(x)|\to0$, so the squeeze theorem gives the limit $0$. (This is why $x^2\sin(1/x)\to0$.)
Practice 6 · Limit at infinity

Compute $\lim_{x\to\infty}\dfrac{x^2+2x+3}{3x^2+4x+5}$.

Answer
Divide top and bottom by $x^2$: $\dfrac{1+2/x+3/x^2}{3+4/x+5/x^2}\to\dfrac13$.
Practice 7 · Trig limit

Using $\lim_{x\to0}\dfrac{\sin x}{x}=1$, compute $\lim_{x\to0}\dfrac{\sin(5x)}{x}$.

Answer
Write $\dfrac{\sin(5x)}{x}=5\cdot\dfrac{\sin(5x)}{5x}$; as $x\to0$ the fraction tends to $1$, so the limit is $5$.
Practice 8 · IVT

Prove that $x^4-2x=100$ has at least two solutions.

Solution
Let $f(x)=x^4-2x-100$, continuous. $f(0)=-100<0$, $f(4)=148>0$, and $f(-4)=164>0$. By the IVT there is a root in $(0,4)$ and another in $(-4,0)$ — at least two solutions.

Expanded topic checklist

Course coverage. This unit is part of the complete MAT137 topic map. It should cover the following items before you move on:

Textbook/source alignment

Use the Alfonso Gracia-Saz MAT137 materials as the primary local spine, with the current UofT single-variable calculus topic split as the completeness check. The added items are original study prompts, not copied textbook exercises.

Core theorem map

The core chain is: limit definition gives pointwise control; continuity transfers nearby input control to output control; compact-interval theorems give existence.

Study routine. For every limit problem, write the target inequality first, then work backward to choose a delta that makes it true.

Deep practice extensions

Use these after the main practice set. They are designed to force definition-level reasoning, theorem selection, and mixed application rather than routine calculation only.

Extension 1 · Epsilon-delta

Prove from the definition that $\lim_{x o2}(3x-1)=5$.

Guide
Require $|(3x-1)-5|=3|x-2|<\epsilon$. Choose $\delta=\epsilon/3$.
Extension 2 · Continuity

Show that $f(x)=x^2$ is continuous at $a$ using epsilon-delta reasoning.

Guide
Use $|x^2-a^2|=|x-a||x+a|$. First restrict $|x-a|<1$ so $|x+a|\le 2|a|+1$, then choose $\delta\le\epsilon/(2|a|+1)$.
Extension 3 · IVT

Prove that $x^3+x-1=0$ has a root in $(0,1)$.

Guide
The polynomial is continuous, $f(0)=-1$, and $f(1)=1$. IVT gives a point in $(0,1)$ where $f=0$.
Extension 4 · Non-example

Give a function with $\lim_{x o0} f(x)$ not existing even though both one-sided limits are finite.

Guide
Take $f(x)=0$ for $x<0$ and $f(x)=1$ for $x>0$. The left and right limits are finite but unequal, so the two-sided limit does not exist.