Phase 2 - Lesson 2.1

Functions, Limits, and Continuity

What it means for a function to have a limit, why continuity is the right notion of ‘no sudden jumps’, and how the epsilon-delta idea makes both precise.

⏱ 55 min● Intermediate🔗 Prereqs: 1.5
↖ Phase 2 hub
Builds on: 1.5 built the epsilon-N limit for sequences; here the same ∀ε∃δ template describes functions of a real variable.
Leads to: Derivatives (2.2) are limits of difference quotients; continuity is the hypothesis behind the Intermediate and Extreme Value Theorems.

Learning Objectives

Click a status chip to cycle: Not started → In progress → Studied → Practiced → Needs review → Mastered.

Key Vocabulary

Limit
L is the limit of f at c if f(x) can be forced arbitrarily close to L by taking x close enough (but not equal) to c.
Epsilon-delta
∀ε>0 ∃δ>0: 0<|x−c|<δ ⇒ |f(x)−L|<ε.
Continuity at c
f is continuous at c when lim_{x→c} f(x)=f(c): the limit exists and equals the value.
Removable / jump discontinuity
A hole that a single redefinition would fix / a genuine step where left and right limits differ.
One-sided limit
The limit taken as x approaches c only from the left (c−) or right (c+).
Intermediate Value Theorem
A continuous f on [a,b] attains every value between f(a) and f(b).

From sequences to functions

The limit of a function generalizes the sequence limit. We say \(\lim_{x\to c}f(x)=L\) if we can make \(f(x)\) within any tolerance \(\varepsilon\) of \(L\) by keeping \(x\) within some \(\delta\) of \(c\) (excluding \(c\) itself):

\[\lim_{x\to c}f(x)=L\iff \forall\varepsilon\gt 0\ \exists\delta\gt 0:\ 0\lt |x-c|\lt \delta\ \Rightarrow\ |f(x)-L|\lt \varepsilon\] (2.1)

The exclusion \(0\lt |x-c|\) matters: the limit is about the approach to \(c\), not the value at \(c\). A function can have a limit at a point where it is not even defined.

Computing limits

Most limits are found by the limit laws (limits of sums, products, quotients split apart when the pieces exist) plus algebra to remove a \(0/0\) form. For example \(\frac{x^2-1}{x-1}=x+1\) for \(x\ne1\), so \(\lim_{x\to1}\frac{x^2-1}{x-1}=2\).

Worked Example - A limit requiring simplification
1
Evaluate \(\lim_{x\to 2}\dfrac{x^2-4}{x-2}\). Direct substitution gives \(0/0\), indeterminate.
2
Factor: \(\dfrac{x^2-4}{x-2}=\dfrac{(x-2)(x+2)}{x-2}=x+2\) for \(x\ne2\).
3
The simplified function is continuous, so the limit is \(2+2=4\). The original had a removable hole at \(x=2\).

Continuity and its guarantees

A function is continuous at \(c\) when the limit exists and equals the value, \(\lim_{x\to c}f=f(c)\). Continuity on an interval unlocks two cornerstone theorems: the Intermediate Value Theorem (a continuous function skips no values) and the Extreme Value Theorem (a continuous function on a closed bounded interval attains a max and a min - the basis of optimization in 2.5).

Intuition
Continuity is the mathematical version of ‘you can draw it without lifting the pen’. The IVT then says a pen-line from below a target height to above it must cross that height somewhere - obvious for a curve, but it needs completeness of the reals to prove.

Interactive: see the limit / spot the discontinuity

Common Mistakes to Avoid
  • Assuming lim_{x→c} f = f(c) always; that equality IS continuity and can fail (removable or jump discontinuity).
  • Plugging in to a 0/0 form and declaring ‘no limit’; 0/0 is indeterminate - simplify first.
  • Forgetting the strict 0 < |x − c| - the limit ignores the value at c entirely.
  • Applying the quotient limit law when the denominator’s limit is 0.
Quant Practitioner Tips
  • For a 0/0 rational limit, factor and cancel the common root; for roots, multiply by the conjugate.
  • Check one-sided limits separately when a piecewise definition or absolute value is involved.
  • Use the IVT to guarantee a root before you hunt for it numerically - sign change on [a,b] suffices.
  • Continuity of elementary functions (polynomials, exp, sin, cos) is a fact you may cite; only the joins need checking.

Practice this in the Euler Lab

Computational problems that exercise exactly this technique. Each opens in the Euler Lab with a Python workbench, a progressive hint ladder, and answer checking. Tier A/B run at full scale in the browser.

Warm-up:
#16 Power Digit Sum (1%, tier A) #30 Digit Fifth Powers (2%, tier A) #52 Permuted Multiples (2%, tier A) #33 Digit Cancelling Fractions (3%, tier A)

Applied:
#932 $2025$ (17%, tier B) #315 Digital Root Clocks (18%, tier B) #479 Roots on the Rise (19%, tier B)

Challenge:
#666 Polymorphic Bacteria (41%, tier C) #157 Base-10 Diophantine Reciprocal (42%, tier C)

130 Project Euler problems in total are mapped to this lesson. Open the Euler Lab to filter them all.

Knowledge Check

Q1 Easy
For lim_{x→c} f(x)=L, the condition 0<|x−c|<δ explicitly excludes x=c because the limit:
requires f(c) to exist
describes the approach to c, independent of the value at c
is always equal to f(c)
only makes sense for continuous f
Q2 Medium
f(x)=(x²−9)/(x−3) at x=3 has:
a jump discontinuity
a removable discontinuity with limit 6
no limit
an infinite discontinuity
Q3 Medium
The Intermediate Value Theorem lets you conclude x³+x−1 has a root in (0,1) because it is continuous and:
f(0) and f(1) have opposite signs
f is increasing
f is a polynomial
f(0)=f(1)

Practical Exercise

Show that \(f(x)=\dfrac{\sqrt{x+1}-1}{x}\) has a limit as \(x\to0\) and find it. Is \(f\) continuous at 0? Explain.

▶ Show full solution

Direct substitution gives \(0/0\). Multiply by the conjugate:

\[\frac{\sqrt{x+1}-1}{x}\cdot\frac{\sqrt{x+1}+1}{\sqrt{x+1}+1}=\frac{(x+1)-1}{x(\sqrt{x+1}+1)}=\frac{1}{\sqrt{x+1}+1}.\]

As \(x\to0\) this tends to \(\tfrac{1}{1+1}=\tfrac12\). So the limit is \(1/2\). However \(f(0)\) is undefined (division by zero), so \(f\) is not continuous at 0 - it has a removable discontinuity, patchable by defining \(f(0)=1/2\).

After the reveal, answer for yourself: The conjugate trick converted a hidden 0/0 into a clean quotient. Whenever a square root sits over a vanishing denominator, reach for the conjugate.

Lesson Summary

A limit says f(x) can be forced within any ε of L by keeping x within some δ of c, ignoring the value at c itself. Continuity is the special case lim = value; it powers the Intermediate and Extreme Value Theorems. Most concrete limits fall to algebraic simplification (factoring, conjugates) plus the limit laws.

Formula Sheet Additions

Epsilon-delta limit
\[\lim_{x\to c}f(x)=L\iff\forall\varepsilon\gt 0\,\exists\delta\gt 0:\,0\lt |x-c|\lt \delta\Rightarrow|f(x)-L|\lt \varepsilon\]
The template that the derivative and continuity both specialize.

Retrieval Practice

Close the lesson and answer from memory before checking. This is deliberate, effortful recall - the single highest-yield study action.

▶ Show retrieval prompts & answers
Q: Why can a function have a limit at a point where it is undefined?
A: The limit describes the approach to c (0<|x−c|<δ), never the value at c; so a removable hole leaves the limiting behavior intact, as in (x²−4)/(x−2) at 2.
Q: State continuity at c in terms of a limit, and name a theorem it enables.
A: Continuity at c means lim_{x→c} f(x)=f(c); it enables the Intermediate Value Theorem (continuous functions attain all intermediate values) and the Extreme Value Theorem.

Completion Checklist

Confidence / mastery rating
Personal notes

Source References

This lesson synthesizes and paraphrases concepts from the sources below. No copyrighted text, problem sets, or solutions are reproduced. Return to the originals for full depth.