Limit — Getting Close Without Arriving
In the previous lesson (in Portuguese), the speed at an instant ran into a 0 ÷ 0. The way out is not to compute at the point, but to ask what value the function approaches as x gets close to it. That is the idea of a limit — and the derivative and the integral are built on it.
Approaching from both sides
Pick a function and shrink the distance h: the points close in on a, one from the left and one from the right. What happens to the values of f?
How close? The margin challenge
“Approaches L” has a precise meaning. Someone picks a margin ε around L (the horizontal band), as narrow as they like. The limit is L if, for any margin, there is a distance δ around a (the vertical band) in which the whole curve stays inside the margin.
The full definition, piece by piece, with a simulator where you pick δ and a step-by-step proof, is in the formal definition of a limit.
When the limit does not exist
For the limit to exist, both sides must reach the same number. There are three classic ways for this to fail — all of them are in the first graph:
Jump: each side goes to a number, but different numbers. The one-sided limits exist; the limit does not.
Blow-up: the values grow without bound. Writing “= ∞” is a way of saying how the limit fails to exist.
Oscillation: near 0, the function swings between −1 and 1 faster and faster, never settling.
Continuity: when the limit is the value
For most everyday functions — polynomials, exponentials, sine and cosine —, the limit at a is simply f(a): just substitute. These functions are continuous: over an interval, their graph can be drawn without lifting the pencil from the paper.
The limit only takes work where direct computation fails: a 0/0, a division by zero, a jump. That is exactly the case of the speed at an instant — and that is why the limit is the missing piece.
Limits at infinity
You can also ask where a function goes as x grows without bound. The question is the same — what value it approaches —, only now what is being approached is the “end” of the axis.
Dividing 1 by larger and larger numbers gives numbers closer and closer to zero.
The definition of the number e, which came from compound interest paid more and more often.
An infinite sum is the limit of the partial sums: the sum of a geometric series.
Limits in statistics
Law of large numbers. The mean of many independent repetitions approaches the expected value (when it exists): it is a limit as the number of repetitions goes to infinity. It is not a guarantee for each sample, but a probability of being far off that goes to zero. See the running mean settling down.
Central limit theorem. The name says it: for independent values with the same distribution and finite variance, the distribution of the standardized mean of n values approaches the normal as n grows. See the histogram turn into a bell.
Derivative and integral. The derivative is the limit of average rates, and the integral is the limit of sums of rectangles (Riemann sum). Every probability density and every probability of a continuous random variable depends on these two ideas.
Pitfalls
- Substituting only works where the function is continuous. In x/|x|, substituting x = 0 gives 0/0, and simplifying does not help: the function is −1 on one side and 1 on the other. Before concluding, look at both sides.
- A table of values can mislead. In sin(π/x), the points x = 0.1, 0.01, 0.001 give sin(10π) = sin(100π) = sin(1,000π) = 0, and the table suggests the limit is 0. But the limit does not exist: between those points the function also takes the values 1 and −1. The table gives a guess; the definition (or a rule proved from it) is what confirms it.
- The computer can mislead too. The limit of (1 − cos x)/x² as x → 0 is 1/2. On a computer, with the usual precision (double), x = 0.0001 gives 0.49999999696…, x = 0.000001 gives 0.50004445…, and x = 0.00000001 gives exactly 0: cos x is so close to 1 that the subtraction loses every digit. This is catastrophic cancellation; getting too close makes the calculation worse.
- “= ∞” is not a number. Writing lim 1/x² = ∞ says that the limit does not exist because the values grow without bound; you cannot do arithmetic with this ∞ as if it were a number.
- The limit does not look at the point. The value f(a) may not even exist, as with (x² − 1)/(x − 1) at 1, or may differ from the limit. See the formal definition.
Try it yourself
1. Find the limit of (x² − 9)/(x − 3) as x approaches 3.
Show answer
At x = 3 the formula gives 0/0. But x² − 9 = (x − 3)(x + 3), and for x ≠ 3 the fraction is just x + 3. As x approaches 3, this approaches 6.
2. The function f(x) = 2x + 1 is continuous at x = 4. What is the limit as x approaches 4?
Show answer
For continuous functions, the limit is the value itself: f(4) = 2 · 4 + 1 = 9. The limit only takes work when direct computation does not.
3. Does the limit of 1/x as x approaches 0 exist?
Show answer
No. From the right, 1/x grows without bound (goes to +∞); from the left, it falls without bound (goes to −∞). The two sides do not even agree with each other, and neither goes to a number.
4. Where does (1 + 1/n)ⁿ go as n grows without bound?
Show answer
To e ≈ 2.71828: with n = 10 it gives 2.594; with n = 1,000, 2.717; with n = 1 million, 2.718280. See the number e formula.
5. Using sin x / x → 1 as x → 0, what is the limit of sin(3x)/x?
Show answer
Write sin(3x)/x = 3 · sin(3x)/(3x). As x → 0, 3x → 0 too, and the second part goes to 1. The limit is 3.
References
- Strang, G. and Herman, E. (2016). Calculus Volume 1. OpenStax. Sections 2.2, “The Limit of a Function” (limits from tables of values on both sides, sin x / x, one-sided limits, infinite limits and the example of sin(1/x), whose limit does not exist); 2.3, “The Limit Laws” (factoring and canceling, as in (x² − 1)/(x − 1), and sin θ / θ → 1 by the squeeze theorem); 2.4, “Continuity” (the definition of continuity at a point; polynomials and trigonometric functions are continuous); 4.6, “Limits at Infinity and Asymptotes” (1/x → 0). openstax.org
The limits and the general statements on this page are proved in the Lean proof assistant (provas/Provas/Limite.lean, in the site’s repository): the limits of the five functions in the graph, the largest δ for the hole and δ = π for sin x / x with ε = 1, the absence of δ for the jump, the continuity of polynomials, the exponential, sine and cosine, the limits at infinity, the pitfalls and the answers to the exercises. The largest δ for sin x / x with ε < 1 is a numerical value, checked by bisection with 256 bits of precision.