Module 1 of 5 · Lesson 1 of 3

Limits and Continuity

What "approaches" means, precisely enough to carry the derivative and the integral.

What you will be able to do

Given a function and a point, the learner can evaluate the limit there, by substitution where continuity permits, by algebra where an indeterminate form blocks it, or by the squeeze theorem where neither applies, decide whether the function is continuous at the point, classify any discontinuity, and evaluate limits at infinity.

Orientation

The word both later units lean on

The derivative was defined as a limit of difference quotients. The integral was defined as a limit of Riemann sums. Neither unit said what a limit is.

That was serviceable while the limits behaved, 6 + h visibly approaches 6, and sums bracketing 1 3 visibly close on it. It stops being serviceable at the boundary cases those units raised and could not settle. Why do disagreeing one-sided quotients mean | x | has no derivative at 0, rather than two? Why does 0 / 0 carry no information when the difference quotient produces it every time? Why does an integrand blowing up inside the interval invalidate the fundamental theorem rather than merely complicating it?

Each answer is a fact about limits. This unit supplies the definition precise enough to settle them: a challenge-and-response formulation in which "approaches L " means every tolerance can be met.

With it come the limit laws, which make most limits a substitution; the indeterminate forms, which mark where substitution fails and algebra is required; the squeeze theorem, for limits no algebra reaches; and continuity, the condition that lets a limit be read off a function's value, together with the three ways it can fail, which are exactly the three ways the derivative failed.

Intuition

Challenge and response

The canonical intuition frames ε – δ as a challenge and a response. Working one instance completely shows why the quantifiers are ordered as they are.

The claim. lim x → 3 ( 2 x + 1 ) = 7 .

The challenge. Someone names a tolerance, say ε = 0.01 : they want | f ( x ) − 7 | < 0.01 .

The response. Work backwards from what is wanted:

| ( 2 x + 1 ) − 7 | = | 2 x − 6 | = 2 | x − 3 | .

So the requirement 2 | x − 3 | < ε is met exactly when | x − 3 | < ε / 2 . Answer δ = 0.005 .

Verifying. At x = 2.995005 and x = 3.004995 , just inside that δ , the deviation | f ( x ) − 7 | is 0.00999 , comfortably under 0.01 . The same rule answers every challenge:

ε δ = ε / 2 deviation just inside δ
0.1 0.05 0.0999
0.01 0.005 0.00999
0.001 0.0005 0.000999

Because a response exists for every ε , the limit is 7.

Why the order of quantifiers matters. ε comes first and δ is chosen in response to it, δ is allowed to depend on ε , and here it does. Reversing them would demand a single distance working for every tolerance, which nothing but a constant function could satisfy.

Why x = a is excluded. The condition is 0 < | x − a | < δ , and the left inequality removes the point itself. This is not fastidiousness: it is what allows lim x → 2 x 2 − 4 x − 2 = 4 even though the function is undefined at 2. The limit asks where the function is heading, and a single missing or misplaced value cannot change that.

Why this is rarely done in practice. The definition justifies the shortcuts rather than replacing them. Once the limit laws are proved from it, each proof an ε – δ argument, every limit built by arithmetic from continuous pieces is a substitution. The definition is called on only where substitution fails, which is precisely where the interesting cases live.

Simulation

The epsilon band and the delta that answers it

every ε band is answered by some δ band

Set ε with the control. The red pair of lines marks the band 7 ± ε the output must land in; the green pair marks the band 3 ± δ the input is confined to, with δ = ε / 2 .

The order is the whole point. ε is chosen first and δ answers it. Shrink ε and the green band narrows to match, because δ depends on ε . Whatever tolerance is demanded, the graph leaves the red band only outside the green one, which is what lim x → 3 ( 2 x + 1 ) = 7 asserts.

Definition

What each clause is doing

The canonical definition states the ε – δ condition, the laws, continuity and the failure kinds. What follows is why each is phrased as it is.

Why continuity needs three conditions and not one. Writing " f is continuous at a when lim x → a f ( x ) = f ( a ) " looks sufficient but hides two prior requirements, and each fails independently:

FailureExample at a = 1
f ( a ) undefined f ( x ) = x 2 − 1 x − 1 — the limit is 2, but there is no value to compare it with
limit does not exista step function jumping at 1 — the value exists, the limit does not
both exist but differ f ( x ) = x 2 − 1 x − 1 for x ≠ 1 , with f ( 1 ) = 5 assigned

Stating all three makes the diagnosis routine: check them in order and the first that fails names the defect.

Why the quotient law excludes a vanishing denominator. The law is proved by bounding | f g − L M | , and the bound divides by | M | . With M = 0 there is nothing to divide by and the proof has no content, which is not a technicality, since x 2 − 4 x − 2 at x = 2 has a perfectly good limit of 4 that the law cannot deliver.

Why an indeterminate form is not a value. Three quotients all of the form 0 / 0 as x → 0 : x x → 1 , x 2 x → 0 , and x x 2 → ∞ . Since the form is common to all three and the answers differ, the form carries no information. It is a signal that the laws do not apply, never a result.

Why removable and jump discontinuities are worth distinguishing. A removable discontinuity is a single misplaced or missing value: the limit exists, so redefining f at that one point makes it continuous. A jump has no such repair. The one-sided limits genuinely differ, and no value assigned at the point can equal both. The distinction decides whether a theorem requiring continuity can be rescued by patching the function.

Why the squeeze theorem needs a common limit. If g ≤ f ≤ h with g → L and h → M where L ≠ M , then f is confined to a band that never narrows, and nothing follows. The theorem works only when the band collapses to a point.

Why one-sided limits are enough for the two-sided one. The definition requires | f ( x ) − L | < ε for all x within δ on either side. If each side separately admits a δ , taking the smaller of the two serves both, so the two-sided limit exists exactly when both one-sided limits exist and agree, with no extra condition.

Non-example

Limits that are not what they look like

A limit exists where the function does not. f ( x ) = x 2 − 4 x − 2 is undefined at x = 2 : substituting gives 0 / 0 . Yet the limit is 4. Cancelling the common factor leaves x + 2 for every x ≠ 2 , and the numbers agree, at x = 2.001 the quotient is 4.001 , at x = 1.999 it is 3.999 .

Concluding "undefined at the point, so no limit" is the error. The definition excludes x = a deliberately; the value there is irrelevant to where the function is heading.

A value exists where the limit does not. The step function with sgn ⁡ ( x ) = − 1 for x < 0 and + 1 for x ≥ 0 has f ( 0 ) = 1 , perfectly well defined. But the left limit is − 1 and the right limit is + 1 , so no two-sided limit exists. Having a value is no guarantee of having a limit.

The same shape underlies | x | x , which is + 1 for x > 0 and − 1 for x < 0 . The disagreement that made | x | non-differentiable at 0.

0 / 0 is not an answer. All three of these are 0 / 0 as x → 0 :

x x → 1 , x 2 x → 0 , x x 2 → ∞ .

The form is identical and the answers are a finite nonzero number, zero, and no finite limit at all. Reporting "the limit is 0 / 0 " states the obstacle, not the result.

The limit laws do not apply where a limit is missing. For lim x → 0 x 2 sin ⁡ ( 1 / x ) , the product law would give 0 ⋅ lim sin ⁡ ( 1 / x ) , but sin ⁡ ( 1 / x ) has no limit at 0, oscillating forever between − 1 and 1 . The law's hypothesis fails, so the law says nothing.

The limit is nonetheless 0, established by squeezing between − x 2 and x 2 : at x = 0.01 the function is − 0.0000506 against a bound of 0.0001 , and at x = 0.001 it is 0.00000083 against 0.000001 . A law that does not apply is not evidence that the limit fails to exist.

Tight bounds converging to different values prove nothing. Squeezing requires a common limit. Knowing − 1 ≤ sin ⁡ ( 1 / x ) ≤ 1 near 0 is true and useless: the bounds tend to − 1 and 1 , the band never narrows, and no conclusion follows.

The intermediate value theorem fails without continuity. The step function above has f ( − 1 ) = − 1 and f ( 1 ) = 1 , and takes no value between them anywhere, in particular, never 0. The theorem's conclusion is not almost true here; it is simply false, and continuity was the entire hypothesis.

A removable discontinuity is repairable; a jump is not. Defining f ( 2 ) = 4 makes x 2 − 4 x − 2 continuous at 2, because the limit existed and only the value was missing. No assignment at x = 0 repairs the step function, since no single number equals both − 1 and + 1 .

Example

One limit of each kind

Substitution suffices: lim x → 2 ( x 2 − 4 x ) . Polynomials are continuous everywhere, so the limit is the value: 4 − 8 = − 4 . Approaching from either side confirms it, both one-sided computations giving − 4.00000000 . No work beyond evaluation is required, and recognising this case is what keeps the rest of the toolkit for where it is needed.

Algebra first: lim x → 2 x 2 − 4 x − 2 = 4 . Substitution gives 0 / 0 . Factoring the numerator as ( x − 2 ) ( x + 2 ) and cancelling, legitimate because x ≠ 2 throughout the approach, leaves x + 2 , whose limit is 4. The numbers agree: 4.001 at x = 2.001 , 3.999 at x = 1.999 .

One-sided disagreement: lim x → 0 | x | x . From the right the quotient is + 1 ; from the left it is − 1 . Both one-sided limits exist and they differ, so the two-sided limit does not exist. This is a jump discontinuity, and it is the reason | x | has no derivative at the origin.

Squeeze: lim x → 0 x 2 sin ⁡ ( 1 / x ) = 0 . The oscillating factor has no limit, so no law applies. But − x 2 ≤ x 2 sin ⁡ ( 1 / x ) ≤ x 2 for every x ≠ 0 , and both bounds tend to 0. At x = 0.1 the value is − 0.00544 inside a bound of 0.01 ; at x = 0.001 it is 0.00000083 inside 0.000001 . The band collapses and carries the function with it.

At infinity: lim x → ∞ 3 x 2 + 2 x x 2 − 5 = 3 . Dividing numerator and denominator by x 2 gives 3 + 2 / x 1 − 5 / x 2 , and the corrections vanish. The convergence is visible: 3.368 at x = 10 , 3.0215 at x = 100 , 3.00202 at x = 1000 , 3.000002 at x = 10 6 . Equal degrees, so the answer is the ratio of leading coefficients.

A limit that is infinite: lim x → 0 1 x 2 = ∞ . The quotient grows without bound, 100 at x = 0.1 , 10 6 at x = 0.001 . Writing ∞ records the manner of failure rather than naming a number: no real value is approached, which is why this is an infinite discontinuity and why ∫ − 1 1 x − 2 d x diverges.

The first is the common case, and the only one needing no technique. Each of the others marks a distinct obstruction, a hole, a jump, an oscillation, an unbounded interval, an unbounded value, and each has its own method. Diagnosing which case is in front of you is most of the skill.

Theorem

Squeeze and intermediate value

The squeeze theorem. If g ( x ) ≤ f ( x ) ≤ h ( x ) for all x near a (except possibly at a ), and

lim x → a g ( x ) = lim x → a h ( x ) = L ,

then lim x → a f ( x ) = L .

Proof. Let ε > 0 . Since g → L there is δ 1 with L − ε < g ( x ) whenever 0 < | x − a | < δ 1 ; since h → L there is δ 2 with h ( x ) < L + ε on the corresponding interval. Take δ = min ( δ 1 , δ 2 ) . Then for 0 < | x − a | < δ ,

L − ε < g ( x ) ≤ f ( x ) ≤ h ( x ) < L + ε ,

so | f ( x ) − L | < ε . ◼

The proof shows why a common limit is required: the two inequalities pin f from below and above to the same number, and with different limits the outer bounds would never meet.

Application. lim x → 0 x 2 sin ⁡ ( 1 x ) = 0 . Since − 1 ≤ sin ⁡ ( 1 / x ) ≤ 1 for every x ≠ 0 , multiplying by x 2 > 0 gives − x 2 ≤ x 2 sin ⁡ ( 1 / x ) ≤ x 2 , and both bounds tend to 0. Checking: at x = 0.01 the function is − 0.0000506366 with bound 0.0001 ; at x = 0.0001 it is − 0.0000000031 with bound.

No limit law reaches this, because sin ⁡ ( 1 / x ) has no limit at 0 to feed the product rule.

The intermediate value theorem. If f is continuous on [ a , b ] and N lies between f ( a ) and f ( b ) , then there is c ∈ [ a , b ] with f ( c ) = N .

What it guarantees and what it does not. Existence only. It does not say how many such c there are, nor where, nor how to find one. And it is false without continuity: the sign function has f ( − 1 ) = − 1 , f ( 1 ) = 1 and never takes the value 0.

Application to root-finding. For p ( x ) = x 3 − x − 2 : p ( 1 ) = − 2 and p ( 2 ) = 4 . The polynomial is continuous, and 0 lies between − 2 and 4 , so a root exists in ( 1 , 2 ) .

Bisection turns the theorem into an algorithm: test the midpoint, keep whichever half still shows a sign change, repeat. Each step halves the bracket, so the uncertainty after n steps is 2 − n . Sixty steps on this polynomial give c ≈ 1.5213797068 , with p ( c ) of order 10 − 15 .

Why continuity is the whole hypothesis. The method assumes that a sign change across an interval implies a crossing inside it. For a function with a jump, the sign can change by leaping over zero rather than passing through it, and every bisection step would preserve a bracket containing no root at all.

Worked example

Five limits, each needing a different move

1. An indeterminate form cleared by factoring: lim x → 3 x 2 − 9 x 2 − x − 6 .

Substituting gives 0 0 . Both numerator and denominator vanish at 3, so both carry a factor of ( x − 3 ) :

x 2 − 9 x 2 − x − 6 = ( x − 3 ) ( x + 3 ) ( x − 3 ) ( x + 2 ) = x + 3 x + 2 ( x ≠ 3 ) .

Now the quotient law applies, since the denominator tends to 5 ≠ 0 :

lim x → 3 x + 3 x + 2 = 6 5 = 1.2 .

2. An indeterminate form cleared by rationalising: lim x → 0 x + 4 − 2 x .

Again 0 / 0 . Multiply above and below by the conjugate x + 4 + 2 :

( x + 4 − 2 ) ( x + 4 + 2 ) x ( x + 4 + 2 ) = ( x + 4 ) − 4 x ( x + 4 + 2 ) = x x ( x + 4 + 2 ) = 1 x + 4 + 2 .

The limit is 1 4 + 2 = 1 4 = 0.25 .

Check numerically: at x = 0.0001 the original expression is.

3. One-sided limits that disagree: f ( x ) = { x 2 x < 1 3 x x ≥ 1 at x = 1 .

From the left, f follows x 2 , so lim x → 1 − f ( x ) = 1 . From the right it follows 3 x , so lim x → 1 + f ( x ) = 3 .

The one-sided limits exist and differ, so the two-sided limit does not exist, and f has a jump discontinuity at 1 of size 2. The value f ( 1 ) = 3 is defined, which changes nothing. A value is not a limit.

4. A limit at infinity: lim x → ∞ 3 x 2 + 2 x x 2 − 5 .

Divide numerator and denominator by the highest power present, x 2 :

3 + 2 / x 1 − 5 / x 2 ⟶ 3 + 0 1 − 0 = 3 .

Check: the values run 3.3684 at x = 10 , 3.0215 at x = 100 , 3.0020 at x = 1000 , 3.000002 at x = 10 6 .

The rule for rational functions follows from this manoeuvre: equal degrees give the ratio of leading coefficients, a smaller numerator degree gives 0, a larger one gives ± ∞ .

5. Continuity decided against all three conditions: g ( x ) = x 2 − 1 x − 1 at x = 1 , with g ( 1 ) = 5 assigned.

ConditionStatus
g ( 1 ) defined, equal to 5
lim x → 1 g ( x ) exists, cancelling gives x + 1 → 2
the two agree✗, since 2 ≠ 5

So g is discontinuous at 1, and the discontinuity is removable: the limit exists, so redefining g ( 1 ) = 2 makes it continuous. The numbers confirm the limit, g ( 1.001 ) = 2.001 and g ( 0.999 ) = 1.999 .

Had the third condition been the one that held while the second failed, no redefinition would have helped. Checking in order is what makes the classification immediate.

Procedure

Which method a limit calls for

Step 1 — substitute, and read what comes back. Evaluate f ( a ) .

ResultWhat it meansNext
a finite number, f continuous therethe limit is that numberdone
0 0 indeterminate; the laws do not applyStep 2
c 0 with c ≠ 0 infinite discontinuityStep 4
undefined for another reasonthe piecewise or one-sided caseStep 3

Most limits stop at the first row. Polynomials, rational functions away from their zeros, roots, exponentials, logarithms and trigonometric functions are continuous on their domains, and continuity is exactly the licence to substitute.

Step 2 — for 0 / 0 , do algebra until the form clears. Three moves cover most cases:

  • Factor and cancel. Both parts vanish at a , so both carry a factor of ( x − a ) . Cancelling is legitimate because x ≠ a throughout the approach.
  • Rationalise. A difference of square roots clears by multiplying by the conjugate.
  • Combine fractions. A complex fraction often simplifies to a form substitution can handle.

Then return to Step 1 with the simplified expression.

Step 3 — for a piecewise or absolute-value expression, take the sides separately. Compute lim x → a − and lim x → a + using the rule that applies on each side. They agree: the two-sided limit is that value. They differ: no two-sided limit, and the discontinuity is a jump.

Step 4 — for x → ∞ in a rational function, divide by the highest power in the denominator. Every term becomes a constant or a vanishing fraction. Equivalently, compare degrees: equal gives the ratio of leading coefficients, numerator smaller gives 0, numerator larger gives ± ∞ .

Step 5 — when nothing else reaches it, look for a squeeze. The signature is a bounded factor with no limit of its own, such as sin ⁡ ( 1 / x ) or cos ⁡ ( 1 / x ) , multiplied by something tending to 0. Bound the oscillating factor, multiply through, and confirm both bounds share a limit.

Step 6 — to decide continuity, check three conditions in order. Is f ( a ) defined? Does the limit exist? Are they equal? The first failure names the defect: no value or a mismatched value with an existing limit is removable; disagreeing one-sided limits make a jump; an unbounded quotient makes it infinite.

Checks worth running. Evaluate the function at a few points closing in from each side. The numbers should approach the claimed value, and disagreement between the sides is immediately visible. Confirm any cancellation by substituting a nearby point into both the original and simplified expressions; they must agree everywhere except at a .

Optional enrichment (1)

Application

What the rest of calculus was borrowing

The derivative's three failures were limit failures. That unit distinguished a corner, a vertical tangent and a discontinuity without being able to say what separated them. Each is now a named case:

FailureLimit diagnosis
corner, | x | at 0one-sided limits of the difference quotient exist and differ: + 1 and − 1
vertical tangent, x 1 / 3 at 0the quotient h − 2 / 3 is unbounded — an infinite limit
discontinuitythe numerator does not tend to 0, so the quotient diverges

And "differentiable implies continuous" is a limit computation: f ( a + h ) − f ( a ) = h ⋅ f ( a + h ) − f ( a ) h → 0 ⋅ f ′ ( a ) = 0 , which uses the product law and needs the second factor's limit to exist.

The integral's improper cases are infinite limits. ∫ − 1 1 x − 2 d x fails because lim x → 0 x − 2 = ∞ : the integrand has an infinite discontinuity inside the interval, so no antiderivative exists across it. The correct treatment splits at the singularity and evaluates a limit, lim t → 0 + ( − 1 2 + 1 t ) , which diverges. The divergence is visible instead of concealed.

The fundamental theorem's Part 1 also rests here: its proof squeezes the difference quotient between m h and M h , and those converge to f ( x ) precisely because f is continuous.

Bisection is the intermediate value theorem as an algorithm. Continuity plus a sign change guarantees a root, and each step halves the bracket. For x 3 − x − 2 on [ 1 , 2 ] , sixty steps give 1.5213797068 with residual near 10 − 15 . Every root-finder in a numerical library relies on this, and each requires the continuity the theorem demands.

Asymptotic behaviour is a limit at infinity. A horizontal asymptote is lim x → ± ∞ f ( x ) , and the rule for rational functions, compare degrees, is why 3 x 2 + 2 x x 2 − 5 levels off at 3. The same limits classify algorithmic growth rates, where O ( n 2 ) says a ratio stays bounded as n → ∞ .

In probability and statistics. A continuous random variable's density integrates to 1 over an unbounded range, which is a limit of integrals. The central limit theorem is a statement about a limiting distribution, and consistency of an estimator says it converges in probability as the sample grows. Each borrows the same machinery, with convergence of functions replacing convergence of numbers.

Why the definition was worth the trouble. Every shortcut above, substitute because it is continuous, cancel because x ≠ a , compare degrees, bisect because a sign changed, is licensed by the ε – δ definition and by nothing else. The definition is rarely used directly and is what makes the rest legitimate.

Next step

Practice Limits and Continuity

Practice records what support you used, so the evidence reflects how you actually performed.

Practice this lessonSkip to The Derivative

Results update as you type. Use the up and down arrow keys to move between results, Enter to open one, and Escape to close.

Type to search.

Settings

Appearance

Interface density

Your record

Your progress is stored in this browser and nowhere else: an identifier, the answers you have given, the mastery states and review schedule derived from them, and the lesson you last opened. Clearing it makes you a new learner on this device. It cannot be undone, and it will not affect your appearance or density settings.

Focus timer

Focus--minutes remaining

Phase

Kept in this browser only, and used to label the session in your own history.

Today

Nothing recorded yet. Finish a focus session and it will appear here.

Settings

Focus sessions between long breaks.

Sessions you are aiming for in a day.

Notifications

Your history

Sessions are stored in this browser and nowhere else. They are not evidence and never reach your mastery record.