For sequences the limit is only for n→+∞. For a function f(x) we can ask what happens when x approaches any point x0, finite or infinite.
The idea, with two examples
limx→x0f(x)=ℓ means: for x near x0, f(x) is near ℓ; both x0 and ℓ may be real numbers or ±∞.
y=ex (domain R): limx→x0ex=ex0 for each real x0; limx→−∞ex=0; limx→+∞ex=+∞.
y=logx (domain (0,+∞)): limx→x0logx=logx0 for x0>0; limx→+∞logx=+∞; limx→0logx=−∞, even at x0=0, which is not in the domain: it makes sense because there are domain points arbitrarily close to 0.
To turn the idea into a definition we need: what "near" means (neighbourhoods) and for which x0 the limit makes sense (accumulation points).
Extended real line and neighbourhoods
R=R∪{−∞,+∞} (the symbols ±∞ are not numbers; they only indicate "where" x or f(x) goes).
Neighbourhoods. Of x0∈R (radius δ>0): Ux0=(x0−δ,x0+δ)={x:∣x−x0∣<δ}. Of +∞: U+∞=(M,+∞). Of −∞: U−∞=(−∞,M).
Example: x0=2, δ=0.5: U2=(1.5,2.5). For ±∞ "near" means "very large" (in absolute value): a neighbourhood of +∞ is a half-line, smaller when M is larger. Neighbourhoods are open. With neighbourhoods the three cases (x0 finite, ±∞) are treated the same way, giving a single definition. For sequences, "∣an−ℓ∣<ε" says an∈(ℓ−ε,ℓ+ε) and "an>L" says an∈(L,+∞).
Accumulation points
Definition. For X⊆R, X=∅, x0∈R is an accumulation point of X if for every neighbourhood Ux0: X∩(Ux0∖{x0})=∅.
Every neighbourhood of x0, however small, contains a point of X other than x0 (x0 itself may or may not belong to X). Equivalently: there is a sequence of points of X, all different from x0, tending to x0.
X
accumulation points
R, Q (by density)
all x0∈R
[a,b], (a,b), (a,b], [a,b)∖{c1,c2}
all x0∈[a,b] (also the endpoints and the removed points)
(0,1)
includes 0 although 0∈/X
{1,2}
none
N
only +∞
For N: a neighbourhood (n0−21,n0+21) contains no other natural (distinct naturals are at distance ≥1), while every (M,+∞) contains naturals (Archimedes). This is why for sequences only n→+∞ makes sense.
The definition of limit
Definition. Let f:X→R, x0∈R an accumulation point of X. limx→x0f(x)=ℓ∈R if for every neighbourhood Uℓ there is a neighbourhood Ux0 such that
f(x)∈Uℓ∀x∈X∩(Ux0∖{x0}).
A challenge: whatever target Uℓ is fixed, one must find a neighbourhood of x0 whose points (in the domain, =x0) all have values in the target; the neighbourhood depends on the target. Translating:
x0∈R (the condition x∈Ux0∖{x0} reads 0<∣x−x0∣<δ):
limf=ℓ∈R: ∀ε>0∃δ>0: ∣f(x)−ℓ∣<ε∀x∈X,0<∣x−x0∣<δ. Example: limx→2(3x−1)=5 with δ=3ε, since ∣3x−6∣=3∣x−2∣<ε.
limf=+∞: ∀N>0∃δ>0: f(x)>N for 0<∣x−x0∣<δ. Example: limx→0x21=+∞ with δ=N1.
limf=−∞: ∀N<0∃δ: f(x)<N for 0<∣x−x0∣<δ.
Graphically: for a horizontal strip ℓ±ε one finds a vertical strip of width 2δ around x0 in which the graph (except possibly the point at x0) lies in the horizontal strip. The definition is local.
The "0<" is essential. For f(x)=1 (x=0), f(0)=0: limx→0f(x)=1, because for 0<∣x∣<δ we have f(x)=1; without "0<" the condition would have to hold at x=0 too, where ∣f(0)−1∣=1, and the limit would not exist. The limit never depends on f(x0), which may not even exist.
x0=±∞ (assuming X unbounded above/below):
Limit
Definition
limx→+∞f=ℓ∈R
∀ε>0∃M>0: ∣f(x)−ℓ∣<ε∀x∈X,x>M
limx→+∞f=+∞
∀N>0∃M>0: f(x)>N∀x>M
limx→+∞f=−∞
∀N<0∃M>0: f(x)<N∀x>M
limx→−∞f=ℓ∈R
∀ε>0∃M<0: ∣f(x)−ℓ∣<ε∀x<M
limx→−∞f=+∞
∀N>0∃M<0: f(x)>N∀x<M
limx→−∞f=−∞
∀N<0∃M<0: f(x)<N∀x<M
Same structure as for sequences, with a real threshold M instead of the natural index N.
From above and below.limf=ℓ+ if ℓ<f(x)<ℓ+ε near x0; ℓ− if ℓ−ε<f(x)<ℓ. E.g. limx→−∞ex=0+ (so ex1→+∞).
One-sided limits.x0∈R is an accumulation point from the right for X if X∩(x0,x0+δ)=∅ for all δ; then the right limitf(x0+)=limx→x0+f(x) is defined using only x∈X∩(x0,x0+δ); similarly the left limitf(x0−) with (x0−δ,x0).
If x0 is an accumulation point from both sides: ∃limx→x0f(x)=ℓ⟺∃f(x0−)=f(x0+)=ℓ.
Examples: logx at 0 (accumulation only from the right): limx→0logx=limx→0+logx=−∞. For x1: limx→0+x1=+∞, limx→0−x1=−∞, so ∄limx→0x1. If f is odd, f(0−)=−f(0+); if even, f(0−)=f(0+).
"Definitively for x→x0" means: for all x∈X∩(Ux0∖{x0}) for some neighbourhood. Careful: "∣ex−0∣<ε definitively" is true for x→−∞, false for x→+∞.
Mistakes: limits only at domain points (false: limx→0logx); omitting "0<"; closed intervals as neighbourhoods; treating ±∞ as numbers; swapping quantifiers (δ depends on ε); concluding the limit exists from the right limit alone.
The bridge theorem
Theorem (bridge).f:X→R, x0∈R an accumulation point. limx→x0f(x)=ℓiff for every sequence (xn)⊆X with xn=x0 and xn→x0 we have f(xn)→ℓ.
Example: from limx→0xsinx=1 and xn=n1: nsinn1→1. Uses: (1) carry the theorems on sequences to functions; (2) prove non-existence: two sequences xn,xn′→x0 with different limf(xn), limf(xn′) (e.g. ∄limx→+∞sinx: xn=2nπ gives 0, xn′=2π+2nπ gives 1); (3) compute limits of sequences from those of functions.
Proof (x0,ℓ∈R). (⇒) Given ε take δ from the definition; since xn→x0 there is N with ∣xn−x0∣<δ for n>N, and ∣xn−x0∣>0; so ∣f(xn)−ℓ∣<ε. (⇐) By contradiction: if the limit is not ℓ there is ε>0 such that for every δ some x∈X has 0<∣x−x0∣<δ and ∣f(x)−ℓ∣≥ε. With δ=n1 we get xn with 0<∣xn−x0∣<n1 (so xn→x0, xn=x0) and ∣f(xn)−ℓ∣≥ε: f(xn)→ℓ, a contradiction. ■
Mistakes: verifying with a single sequence (all are needed; one or two suffice only to disprove); forgetting xn=x0.
Theorems on limits of functions
Everything follows from the bridge theorem and the theorems on sequences. "Definitively" means near x0.
Uniqueness. If limx→x0f(x) exists, it is unique. (Take any admissible (xn); f(xn) would tend to two different limits.)
Non-existence criterion. If two sequences xn1,xn2→x0 (=x0) have limf(xn1)=limf(xn2), then ∄limx→x0f(x). Example: ∄limx→0sinx1 (the sine oscillates faster and faster between −1 and 1).
Local boundedness. If limf=ℓ∈R, then ∣f(x)∣≤K in some punctured neighbourhood of x0 (with ε=1: ∣f∣<∣ℓ∣+1). Unlike a convergent sequence, f need not be bounded on all of X: tanx is unbounded but bounded near 4π, where limtanx=1.
Limits of monotone functions. If f:(a,b)→R is monotone (−∞≤a<b≤+∞), then for every x0∈(a,b) the limits f(x0±) exist and are finite, and f(a+), f(b−) exist (possibly infinite). For f increasing: f(a+)≤f(x0−)≤f(x0)≤f(x0+)≤f(b−); for decreasing the reverse. Idea: f(x0−)=supx<x0f(x)≤f(x0) and f(x0+)=infx>x0f(x)≥f(x0). The graph of a monotone function has at most jumps. Example: arctan increasing, limx→±∞arctanx=±2π.
Algebra of limits. If f→ℓ1, g→ℓ2 (finite): f±g→ℓ1±ℓ2, cf→cℓ1, fg→ℓ1ℓ2, and if ℓ2=0: g1→ℓ21, gf→ℓ2ℓ1. Example: limx→2x−1x2+1=5.
Permanence of sign. First form: ℓ>0 (or +∞) ⇒f>0 definitively; ℓ<0⇒f<0. Second form: f≥0 definitively and limf=ℓ⇒ℓ≥0. Strict inequalities do not pass to the limit: x2>0 for x=0 but limx→0x2=0.
Squeeze. If f≤h≤g definitively and f,g→ℓ∈R, then h→ℓ. Example: −∣x∣≤xsinx1≤∣x∣, so limx→0xsinx1=0. Comparison with infinities:f≤g and f→+∞⇒g→+∞; g→−∞⇒f→−∞. Example: x+sinx≥x−1→+∞.
Infinitesimal times bounded.f→0, ∣g∣≤M definitively ⇒fg→0. Example: xsinx1→0 even though sinx1 has no limit.
Partial algebra of infinities. If f→+∞: f+g→+∞ if g≥M definitively; fg→+∞ if g≥M>0, →−∞ if g≤M<0. If f→−∞: f+g→−∞ if g≤M; fg→−∞ if g≥M>0, +∞ if g≤M<0. Example: x2+cosx→+∞. If g has a limit the usual rules apply (+∞+ℓ=+∞, +∞⋅ℓ=±∞ for ℓ≷0, ...).
Reciprocal.f→±∞⇒f1→0±; f→0±⇒f1→±∞. Examples: x21→+∞ at 0 since x2→0+. 0+ or 0− is needed, plain 0 is not enough:xsinx1→0 but changes sign infinitely often near 0, and xsin(1/x)1 has no limit.
Limit of a composite function (change of variable)
Theorem. Let f be defined near y0∈R and g, f∘g near x0∈R. If (1) limx→x0g(x)=y0; (2) limy→y0f(y)=ℓ∈R; (3) g(x)=y0 definitively for x→x0; then limx→x0f(g(x))=ℓ. Hypothesis (3) is not needed if y0=±∞, or if y0∈R and f is continuous at y0.
In practice it is a substitutiony=g(x), with the new limit for y→y0=limg(x) (not for y→x0). Example: limx→03xsin3x: y=3x→0, y=0 for x=0, so it equals limy→0ysiny=1.
Why (3) is needed:g≡0 and f(y)=1 (y=0), f(0)=0. Then g→0, limy→0f=1, but f(g(x))=0 for every x.
Proof. Take (xn) with xn=x0, xn→x0. By bridge, yn=g(xn)→y0, and yn=y0 definitively by (3); so by (2) and bridge f(yn)→ℓ. As (xn) was arbitrary, bridge gives limf(g(x))=ℓ. ■
The converse is false: g(x)=x2, f(y)=1 for y>0, −1 for y<0: f(g(x))=1→1 for x→0, but limy→0f does not exist (g only approaches 0 from the right).
If g is injective definitively (e.g. strictly monotone) the equality limf(g(x))=limy→y0f(y) always holds (one exists iff the other does).
"The limit goes inside": if y0∈R and f is continuous at y0, or y0=±∞ (writing f(±∞) for limy→±∞f, e.g. e+∞=+∞, arctan(+∞)=2π), then limf(g(x))=f(limg(x)). Example: limx→+∞ex2+25x2−6x=e5.
Hierarchy via exponentials. For a>1, α>0: xα=aαlogax, so limx→+∞axxα=alim(αlogax−x)=a−∞=0 (the exponent →−∞ because logax=o(x)); likewise xxax=ax−xlogax→0. By a change of variable the hierarchy also serves at finite points: for x→−1−, y=−x+11→+∞.
Mistakes: substituting without computing where the new variable goes; forgetting hypothesis (3) for functions that are not continuous at y0.
Versione ripasso
Neighbourhoods: of x0∈R: (x0−δ,x0+δ); of +∞: (M,+∞); of −∞: (−∞,M) (open). Accumulation pointx0∈R of X: every neighbourhood meets X∖{x0}. 0 is one for (0,1); N has only +∞ (so sequences: only n→+∞).
Definition.limx→x0f=ℓ: for every Uℓ there is Ux0 with f(x)∈Uℓ for x∈X∩(Ux0∖{x0}).
x0,ℓ∈R: ∀ε∃δ: 0<∣x−x0∣<δ⇒∣f(x)−ℓ∣<ε. E.g. limx→2(3x−1)=5, δ=3ε.
ℓ=+∞: ∀N∃δ: f>N; x21→+∞ at 0 with δ=N1. ℓ=−∞: f<N.
x0=+∞: ∀ε∃M: x>M⇒∣f−ℓ∣<ε (and with N for infinite ℓ); x0=−∞: x<M.
"0<" is essential: the limit does not depend on f(x0).
ℓ±: from above/below. Right and left limits f(x0±): ∃lim⟺f(x0−)=f(x0+) (x1: ±∞, no limit).
Bridge theorem.limx→x0f=ℓ⟺f(xn)→ℓ for everyxn→x0, xn∈X, xn=x0. Non-existence: two sequences with different limits (sinx at +∞: 2nπ and 2π+2nπ; sinx1 at 0). All sequence theorems carry over.
Theorems. Uniqueness; local boundedness (finite limit ⇒ bounded near x0 only); monotone f on (a,b) has finite one-sided limits (jumps only); algebra (±,⋅,/ with ℓ2=0); permanence of sign (strict inequalities not preserved); squeeze (xsinx1→0 between ±∣x∣); infinitesimal × bounded →0; partial algebra of infinities; reciprocal 0±1=±∞, ±∞1=0± (plain 0 is not enough: xsinx1). Indeterminate: ∞−∞, ∞⋅0, ∞∞, 00, 1∞, 00, ∞0 (fg=eglogf).
Change of variable.g→y0, f→ℓ at y0, g=y0 definitively ⇒limf(g(x))=ℓ (substitute y=g(x); new limit at y→y0). Hypothesis g=y0 not needed if y0=±∞ or f continuous at y0 (then "the limit goes inside": limf(g)=f(limg)). Example: 3xsin3x→1; ex2+25x2−6x→e5. Composition of continuous functions is continuous. axxα=aαlogax−x→0.
Mistakes: limits only in the domain; dropping "0<"; one sequence is not enough to prove a limit; 0 without sign in the reciprocal; substituting without the new target y0.