Pre-calculus: the limit intuition · 30 min

What approaching actually means

A limit asks where a function is headed near a point, not what it does at the point. Read it three ways, by graph, by table, by zoom. Meet the ways a limit can fail, and the property called continuity that makes most limits a plug-in.

0 / 0

A function with a hole in it

Consider this function:

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

Try to evaluate it at x=2x = 2. The numerator is 00, the denominator is 00, and 0/00/0 is undefined. The function has no value at x=2x = 2. There is a hole in the graph.

But factor the top: x24=(x2)(x+2)x^2 - 4 = (x-2)(x+2). For every xx except 2, the (x2)(x-2) cancels and f(x)=x+2f(x) = x + 2. So just to the left and just to the right of the hole, the function is sitting right next to the line x+2x + 2, which passes through (2,4)(2, 4).

The function is undefined at 2, yet everything around 2 is pointing straight at the value 4. That gap, between what happens at a point and what happens near it, is what a limit is for.

Probe it with a table

Pick the function (x24)/(x2)(x^2-4)/(x-2) in the widget and drag the probe to x=2x = 2.

step = 0.10
-4-224-3-2-1123
approaching from the LEFTapproaching from the RIGHT
xf(x)xf(x)
1.900003.900002.100004.10000
1.990003.990002.010004.01000
1.999003.999002.001004.00100
1.999903.999902.000104.00010
1.999993.999992.000014.00001
limit found both sides close in on the same number: limit = 4.0000

drag the coral dot to move the point of interest a, then zoom in to watch the table close in

The table evaluates ff at points closing in on 2 from both sides: 1.9,1.99,1.9991.9, 1.99, 1.999 from the left, and 2.001,2.01,2.12.001, 2.01, 2.1 from the right. Hit zoom to close in tighter.

Read the columns. From the left the outputs march 3.9,3.99,3.999,3.9, 3.99, 3.999, \ldots. From the right they march 4.1,4.01,4.001,4.1, 4.01, 4.001, \ldots. Both sides are squeezing in on the same number, 4, even though the function never actually has a value at 2. The table never asks for f(2)f(2); it only ever asks what happens nearby.

The informal definition

Here is what that table is measuring.

limxaf(x)=L\displaystyle\lim_{x \to a} f(x) = L means: f(x)f(x) gets and stays arbitrarily close to LL as xx closes in on aa from either side, ignoring whatever happens at aa itself.

Two phrases carry the weight. From either side: both the left approach and the right approach have to agree. Ignoring whatever happens at aa: the value f(a)f(a) is explicitly not consulted. A hole at x=ax = a does not block a limit. The function does not even have to be defined at aa.

A limit is a statement about the neighborhood of a point, never about the point itself.

Read the limit

From the table, both sides of (x24)/(x2)(x^2-4)/(x-2) close in on the same value as x2x \to 2.

What is limx2x24x2\displaystyle\lim_{x\to 2}\frac{x^2-4}{x-2}?

One side at a time

Splitting the approach into two halves gives a sharper tool: the one-sided limits.

  • The left limit limxaf(x)\displaystyle\lim_{x\to a^-} f(x) watches only xx values below aa.
  • The right limit limxa+f(x)\displaystyle\lim_{x\to a^+} f(x) watches only xx values above aa.

The rule that ties them together:

limxaf(x)=L    limxaf(x)=limxa+f(x)=L\lim_{x\to a} f(x) = L \iff \lim_{x\to a^-} f(x) = \lim_{x\to a^+} f(x) = L

The two-sided limit exists exactly when both one-sided limits exist and agree. If the two sides head for different numbers, there is no single answer, and the limit does not exist.

A limit that fails by jumping

Switch the widget to x/x|x|/x and probe x=0x = 0.

step = 0.10
-4-224-3-2-1123
approaching from the LEFTapproaching from the RIGHT
xf(x)xf(x)
1.900003.900002.100004.10000
1.990003.990002.010004.01000
1.999003.999002.001004.00100
1.999903.999902.000104.00010
1.999993.999992.000014.00001
limit found both sides close in on the same number: limit = 4.0000

drag the coral dot to move the point of interest a, then zoom in to watch the table close in

For any positive xx, x/x=1|x|/x = 1. For any negative xx, x/x=1|x|/x = -1. The left column of the table sits flat at 1-1; the right column sits flat at +1+1.

Both one-sided limits exist. They simply disagree. So the two-sided limit at 0 does not exist. The graph has a clean jump, a step down of height 2, and no single value lives in the gap. A tempting wrong move is to average the two sides and call the limit 0. Resist it: the function never goes near 0; it is only ever exactly 1-1 or exactly +1+1.

Three ways a limit dies

Cycle the widget through its remaining functions. There are exactly three ways a two-sided limit can fail.

  1. Jump. The one-sided limits disagree, like x/x|x|/x at 0.
  2. Blow-up. The function runs off to ±\pm\infty, like 1/x21/x^2 at 0. Note carefully: “the limit is ++\infty” is a named failure, not a value. The limit still does not exist.
  3. Oscillation. Try sin(1/x)\sin(1/x) near 0. As xx shrinks, 1/x1/x races off to infinity, so sin(1/x)\sin(1/x) swings between 1-1 and +1+1 faster and faster, forever. Zoom in and the wiggles get denser, never calmer. No jump, no asymptote, and still no limit, because the output never settles on anything.

That third one is the subtle case. The input xx heads obediently to 0, but the output refuses to.

Does it settle?

For limx0sin(1/x)\displaystyle\lim_{x\to 0}\sin(1/x), the table values keep bouncing between 1-1 and +1+1 no matter how far you zoom.

Does this limit exist? Enter 1 for yes, 0 for no.

Continuity: when the limit is just the value

Most of the time none of this drama happens. For a well-behaved function, the limit at aa is simply f(a)f(a).

That well-behaved property has a name. A function ff is continuous at aa when:

limxaf(x)=f(a)\lim_{x\to a} f(x) = f(a)

The limit exists, the function is defined there, and the two match. Geometrically: no hole, no jump, no asymptote. You could draw the graph through aa without lifting your pen. The three failure modes from the last step are exactly the three ways this equation can break.

The rule that makes limits easy

Here is the payoff, and it is large.

Every parent function from the first lesson is continuous everywhere on its natural domain. Polynomials, sin\sin, cos\cos, exe^x, x\sqrt{x}, lnx\ln x, all of them. And continuity survives addition, multiplication, and division (as long as you do not divide by zero).

So for any function built by combining catalog functions, evaluating a limit is just plugging in. Take:

limx1lnx+exx2+3\lim_{x\to 1} \frac{\ln x + e^x}{x^2 + 3}

Numerator and denominator are sums of catalog functions, and the denominator is not zero at x=1x = 1. So the whole thing is continuous at 1, and the limit is just the value there: ln1+e11+3=0+e4=e4\dfrac{\ln 1 + e^1}{1 + 3} = \dfrac{0 + e}{4} = \dfrac{e}{4}.

No factoring, no tables, no tricks. Reach for tables and zooming only when plugging in gives you 0/00/0 or worse.

A plug-in limit

The function lnx+exx2+3\dfrac{\ln x + e^x}{x^2 + 3} is continuous at x=1x = 1, so its limit there is just its value.

Compute limx1lnx+exx2+3\displaystyle\lim_{x\to 1}\frac{\ln x + e^x}{x^2 + 3} as a decimal.

Where this shows up

A transformer’s forward pass is one long composition of catalog functions stacked into a computation graph. Because every piece is continuous, the whole graph is continuous, and that is not a technicality. Backpropagation, the algorithm that trains the network, only works because each piece varies smoothly enough to have a slope.

You now have the limit. The last lesson of this module turns it on a curve and watches a slope appear.

Lesson complete

Nice tinkering.