Calculus · Limit

Limit

A limit describes the value f(x) approaches as x approaches a. Adjust the error band around L and the window around a to see what “arbitrarily close” means.

01

The limit in this visualization

The limit of a function ff at a point a is L, written lim⁡x→af(x)=L\lim_{x\to a} f(x) = L, when the values of f can be kept as close to L as anyone asks by keeping x close enough to a — without ever looking at x = a itself. The precise form is the ε–δ definition (Cauchy and Weierstrass): a challenge ε and a response δ.

The definition
∀ε>0 ∃δ>0:0<∣x−a∣<δ ⇒ ∣f(x)−L∣<ε\forall \varepsilon > 0\ \exists \delta > 0:\quad 0 < |x - a| < \delta \ \Rightarrow\ |f(x) - L| < \varepsilon

On the graph the challenge is the red band of half-width ε round the blue line y = L; its dashed edges are not part of it, since the inequality is strict. The response is the yellow window of half-width δ round a, with a gap at a: the condition 0<∣x−a∣0 < |x - a| leaves x = a out, which is why a hole there, or a value f(a) defined elsewhere, changes nothing. The window works when the curve inside it stays inside the band; when it does not, a yellow × marks a point that escapes. A one-sided limit (x → a⁻ or a⁺) uses half the window. The limit, when it exists, is unique: two values cannot both fit inside every band.

The page reports two different δ. The guaranteed δ comes from an inequality that holds at every x in the window, so it is a proof: for x², the hole, the jump, sin(1/x) and 1/x² the largest δ has a closed form and is itself the guarantee; for x·sin(1/x) the bound ∣xsin⁡(1/x)∣≤∣x∣|x\sin(1/x)| \le |x| gives δ = ε at 0, and for sin x / x the bound 1−x2/6≤sin⁡x/x<11 - x^2/6 \le \sin x / x < 1 gives δ=6ε\delta = \sqrt{6\varepsilon}. For those two functions the largest δ is numerical: the curve is followed piece by piece between its turning points, and each crossing of the band's edge is found by bisection. Any smaller δ works as well; δ is never unique.

02

Things to notice

  • ε → 0 shrinks the band a decade at a time down to 10⁻⁶ and records a δ for each level, while the magnifier zooms in by different factors across and up (its title gives both). It checks the levels it shows and no more: a guess that is wrong by less than 10⁻⁶ would pass them all.
  • Three ways to fail the same test: a jump (left and right limits differ), endless oscillation (sin(1/x) takes the values 1 and −1 in every interval round 0) and a wrong guess (L = 4.1 for x² at 2 fails as soon as ε ≤ 0.1). Oscillation alone is not enough: x·sin(1/x) wiggles as much and still has the limit 0. Whether a limit exists depends on the point: sin(1/x) has one at every a ≠ 0. 1/x² has no finite limit at 0; limits at infinity are not covered here.
  • The inputs are read exactly as decimals or fractions, so the decisions — is there a δ at all, is the edge reached — are exact: with L = 4.1 and ε = 0.1, |4 − L| is exactly ε. A continuous function at a has the limit f(a); continuity is that statement.
03

Controls

  • Drag a along the bottom edge and L along the left edge; L catches on the limit, and then follows it when a moves. Drag the window's edges to try your own δ, or type any value; Guaranteed δ and Largest valid δ set the two the page knows. Changing f, a, L, ε or the side puts δ back on the guaranteed value.
  • Presentation mode opens a full-screen view for projectors: Space runs ε → 0, ← → multiply ε by 10 or divide it, H hides the limit. Share copies a link to the current setup.
04

Related