Intuition What this page is
The parent Functions, limits, and continuity gave you the rules . Here we run those rules against every kind of limit a problem can throw at you — the polite ones, the sneaky 0/0 holes, the jumps, the explosions to infinity, the other indeterminate forms (0 ⋅ ∞ , ∞ − ∞ , 1 ∞ ), and the ML-flavoured kinks. If you meet a limit in the wild, it belongs to one of the rows below.
Before each example: Forecast — pause and guess the answer. Guessing first is how the picture sticks.
Definition The three continuity conditions (recall from parent §3) — the
HEA test
f is continuous at x = c iff all three hold:
H ere — f ( c ) exists (the machine gives an output there).
E xpected — x → c lim f ( x ) exists (both sides agree on a heading).
A gree — x → c lim f ( x ) = f ( c ) (heading equals arrival).
We call these condition 1 (H) , condition 2 (E) , condition 3 (A) throughout this page. "All three HEA conditions pass" = continuous.
Every limit-and-continuity problem you will meet is one of these cells . We hit each one at least once.
Cell
What makes it special
What you DO
Example
A. Nice / plug-in
function continuous at the point
just substitute
Ex 1
B. Removable 0/0
numerator & denominator both → 0 , factor cancels
factor & cancel, then plug in
Ex 2
C. Rationalize 0/0
0/0 with a square root, can't factor directly
multiply by conjugate
Ex 3
D. Jump (one-sided)
left limit = right limit
compute both sides separately
Ex 4
E. Infinite / vertical asymptote
denominator → 0 but numerator doesn't
check sign from each side, ± ∞
Ex 5
F. Limit at infinity
x → + ∞ and x → − ∞ (end behaviour)
divide by highest power, watch signs
Ex 6
G. Continuity by design
choose a constant to remove a hole
set piece value = limit
Ex 7
H. ML kink (ReLU)
continuous but not differentiable
check HEA vs slope
Ex 8
I. Word problem
real quantity, must interpret + units
model, then take limit
Ex 9
J. Exam twist
looks like 0/0 but is really a jump
test both sides — trap!
Ex 10
K. Other indeterminates
0 ⋅ ∞ , ∞ − ∞ , 1 ∞
rewrite into 0/0 or ∞/∞ first
Ex 11
We use one repeated tool: factoring turns a 0/0 into something you can plug in — because the limit never touches the forbidden point, only its neighbourhood. Keep that in mind throughout.
x → 2 lim ( 3 x 2 − 4 x + 1 ) .
Forecast: guess a number before reading on.
Check for trouble: this is a polynomial. Polynomials are continuous everywhere — no holes, jumps, or explosions.
Why this step? Continuity is exactly the licence to swap "limit" for "plug in" (parent §3, Mistake #1). Without checking, plugging in would be a lucky guess.
Substitute x = 2 : 3 ( 2 ) 2 − 4 ( 2 ) + 1 = 12 − 8 + 1 = 5 .
Why this step? Because condition 3 (A) of continuity (lim = f ( c ) ) holds, the heading equals the arrival — so substitution is the limit.
Verify: evaluate at x = 1.99 and x = 2.01 : both give ≈ 4.97 and ≈ 5.03 — funnelling to 5 from both sides. ✅
x → 3 lim x − 3 x 2 − 9 .
Forecast: plug in x = 3 and you get 0 0 . That is not the answer — guess the real one.
Recognise the form: 9 − 9 = 0 on top, 3 − 3 = 0 on bottom → indeterminate 0/0 .
Why this step? 0/0 is a signal to simplify , never a verdict (parent §4, Mistake #2).
Factor the top: x 2 − 9 = ( x − 3 ) ( x + 3 ) . So x − 3 ( x − 3 ) ( x + 3 ) .
Why this step? We hunt for the same factor top and bottom because that shared factor is what forces the 0/0 .
Cancel x − 3 : for x = 3 the expression equals x + 3 .
Why this step? The limit only looks near x = 3 , never at it, so x − 3 = 0 and cancelling is legal.
Now plug in the survivor: 3 + 3 = 6 .
Why this step? After cancelling, x + 3 is a polynomial — continuous everywhere — so by condition 3 (A) substitution equals the limit.
Picture: the graph is the straight line y = x + 3 with a single hole punched at ( 3 , 6 ) — see figure.
Verify: at x = 2.999 , x − 3 x 2 − 9 = 5.999 ; at x = 3.001 , = 6.001 . Heading to 6 . ✅
x → 0 lim x x + 4 − 2 .
Forecast: x = 0 gives 0 4 − 2 = 0 0 . There's no obvious factor. Guess anyway.
Spot 0/0 with a square root — factoring won't cut it.
Why this step? Roots hide their "zero" inside; the tool that exposes it is the conjugate x + 4 + 2 .
Multiply top and bottom by that conjugate:
x x + 4 − 2 ⋅ x + 4 + 2 x + 4 + 2 = x ( x + 4 + 2 ) ( x + 4 ) − 4 .
Why this step? ( a − b ) ( a + b ) = a 2 − b 2 kills the root in the numerator, turning it into plain algebra.
Simplify the top: ( x + 4 ) − 4 = x . So we have x ( x + 4 + 2 ) x .
Why this step? Collapsing the top to a bare x exposes the same factor x sitting in the bottom — that shared x is what was forcing the 0/0 .
Cancel x : for x = 0 the expression equals x + 4 + 2 1 .
Why this step? The limit only looks near x = 0 , never at it, so x = 0 and cancelling is legal — exactly the same trick as Ex 2.
Plug in x = 0 : 4 + 2 1 = 4 1 .
Why this step? The survivor x + 4 + 2 1 is continuous at 0 (denominator = 4 = 0 ), so substitution equals the limit.
Verify: at x = 0.001 , 0.001 4.001 − 2 ≈ 0.24998 ≈ 4 1 . ✅
Worked example For the step function
f ( x ) = { x + 1 x − 1 x < 0 x ≥ 0 , find lim x → 0 − f , lim x → 0 + f , and lim x → 0 f .
Forecast: do the two sides agree?
Left limit lim x → 0 − : use the x < 0 rule, f ( x ) = x + 1 → 0 + 1 = 1 .
Why this step? Approaching from the left (x < 0 ) we live entirely in the top branch.
Right limit lim x → 0 + : use the x ≥ 0 rule, f ( x ) = x − 1 → 0 − 1 = − 1 .
Why this step? Approaching from the right (x > 0 ) we live entirely in the bottom branch — a piecewise function must be evaluated with the branch that owns the side you're coming from.
Compare: left heading = 1 , right heading = − 1 . They disagree .
Why this step? A two-sided limit exists only if both sides funnel to the same number (parent §2).
Conclusion: lim x → 0 f ( x ) does not exist — this is a jump discontinuity of size 2 .
Why this step? Because condition 2 (E) fails (no shared heading), the two-sided limit can't exist, and no amount of redefining f ( 0 ) can fix a jump — the gap is the size of the leap.
Verify: f ( − 0.001 ) = 0.999 → 1 , f ( 0.001 ) = − 0.999 → − 1 . Gap = 2 , no shared heading. ✅
x → 2 − lim x − 2 1 and x → 2 + lim x − 2 1 .
Forecast: the denominator → 0 but the top is fixed at 1 . Does it blow up — and which way?
Note the numerator is 1 (not zero), denominator → 0 . This is not 0/0 ; it's "finite over zero" → an infinite limit.
Why this step? Only when denominator → 0 AND numerator → 0 is it indeterminate. Here it's a vertical asymptote.
From the left x → 2 − : take x = 1.9 , then x − 2 = − 0.1 < 0 , so − 0.1 1 = − 10 . Closer, x = 1.99 ⇒ − 100 . It dives to − ∞ .
Why this step? Sign of the denominator decides the sign of the explosion — you must check each side.
From the right x → 2 + : x = 2.1 ⇒ x − 2 = 0.1 > 0 , 0.1 1 = + 10 ; x = 2.01 ⇒ + 100 . It rockets to + ∞ .
Why this step? On the right the denominator is positive and shrinking, so 1/ ( tiny positive ) grows without bound upward — the mirror image of the left side.
Conclusion: lim x → 2 − = − ∞ , lim x → 2 + = + ∞ . The two-sided limit does not exist (infinite, opposite signs).
Why this step? Both condition 1 (H) (f ( 2 ) undefined) and condition 2 (E) fail; naming the sign on each side is what tells you it's an infinite discontinuity, not a jump.
Verify: 1.99 − 2 1 = − 100 , 2.01 − 2 1 = 100 . ✅
x → + ∞ lim 2 x 2 − 7 3 x 2 + 5 x and x → − ∞ lim 2 x 2 − 7 3 x 2 + 5 x .
Forecast: both top and bottom blow up. Ratio of two infinities — what wins, and does the sign of x change the answer?
Both → ∞ (in magnitude), so it's ∞/∞ — another indeterminate form.
Why this step? Like 0/0 , this needs simplifying, not guessing.
Divide every term by the highest power present, x 2 :
2 − x 2 7 3 + x 5 .
Why this step? Dividing by the dominant power reveals which terms fade. As ∣ x ∣ → ∞ , x 5 → 0 and x 2 7 → 0 .
As x → + ∞ : 2 − 0 3 + 0 = 2 3 .
Why this step? Only the leading coefficients survive — the horizontal asymptote is the ratio 3/2 .
As x → − ∞ : the same terms x 5 and x 2 7 still → 0 (a negative-then-tiny number is still tiny), so again 2 − 0 3 + 0 = 2 3 .
Why this step? Here the leading powers both are even (x 2 ), so sign of x doesn't flip anything — the curve approaches the same horizontal line y = 2 3 on both ends. (If the top were degree-1 like 3 x , the two ends would differ in sign — always check.)
Verify: at x = 1000 and x = − 1000 , 2 x 2 − 7 3 x 2 + 5 x ≈ 1.5006 and ≈ 1.4994 — both heading to 2 3 . ✅
Worked example Find the value
k that makes h ( x ) = ⎩ ⎨ ⎧ x − 1 x 2 − 1 k x = 1 x = 1 continuous at x = 1 .
Forecast: what single number plugs the hole?
Compute the limit for x = 1 : factor x − 1 ( x − 1 ) ( x + 1 ) = x + 1 → 2 as x → 1 .
Why this step? Condition 2 (E) needs the limit to exist; factoring the removable 0/0 shows it's 2 .
Condition 3 (A) demands h ( 1 ) = lim x → 1 h ( x ) , i.e. k = 2 .
Why this step? We define the missing point to be the limit value — the only choice that makes heading = arrival.
So k = 2 makes h continuous (all three HEA conditions now pass).
Why this step? With k = 2 : H — h ( 1 ) = 2 exists; E — limit is 2 ; A — they're equal. Every condition passes, so the pen never lifts at x = 1 .
Verify: with k = 2 , h ( 1 ) = 2 and lim x → 1 h = 2 → equal. ✅
ReLU ( x ) = max ( 0 , x ) continuous at x = 0 ? Is it differentiable there?
Forecast: parent §3 hinted at this — recall the answer before checking.
Condition 1 (H): ReLU ( 0 ) = max ( 0 , 0 ) = 0 . Exists. ✅
Why this step? HEA condition 1 asks only whether the machine produces an output at x = 0 — it does, namely 0 .
Condition 2 (E): from the left x < 0 , ReLU = 0 → 0 ; from the right x > 0 , ReLU = x → 0 . Both sides → 0 → limit exists, equals 0 .
Why this step? Unlike the jump in Ex 4, here both branches meet at 0 , so no jump.
Condition 3 (A): lim x → 0 = 0 = ReLU ( 0 ) . Equal → continuous . ✅
Why this step? Heading (0 ) equals arrival (0 ), so the third HEA condition passes and ReLU is continuous at 0 .
Differentiability: the slope from the left is 0 (flat), from the right is 1 (line y = x ). 0 = 1 : the slopes disagree — a corner , no unique tangent.
Why this step? A derivative is itself a limit (of slopes); if left-slope = right-slope, that limit fails. So not differentiable at 0 .
This is why ReLU trains fine (continuous → loss doesn't jump) yet needs a subgradient at 0 (see Gradient Descent ). Continuity is weaker than differentiability.
Verify: left slope − 0.001 ReLU ( − 0.001 ) − 0 = 0 ; right slope 0.001 ReLU ( 0.001 ) − 0 = 1 . Unequal. ✅
Worked example A drone's battery drains so that after
t minutes the remaining charge is C ( t ) = t + 4 100 t percent. What charge does the model predict it heads toward as flight time grows without bound?
Forecast: does it approach 100% , some ceiling, or fall forever?
We want lim t → ∞ C ( t ) — the long-run heading , not any one moment.
Why this step? "As time grows without bound" is precisely a limit at infinity (Cell F machinery).
Divide top and bottom by t : 1 + t 4 100 .
Why this step? t 4 → 0 , exposing the dominant behaviour.
Limit: 1 + 0 100 = 100 .
Why this step? With the fading term gone, only the constant ratio survives — this is the horizontal asymptote the reading approaches.
Interpret with units: C is in percent , so the reading heads toward 100% — a horizontal asymptote.
Why this step? A limit is just a bare number until you re-attach the physical unit; naming it "100% " is what turns the algebra back into a statement about the drone. It never exceeds 100% (at t = 4 , C = 50% ), which sanity-checks that this is a saturating quantity.
Verify: C ( 4 ) = 8 400 = 50 ; C ( 1000 ) = 1004 100000 ≈ 99.6% , climbing toward 100 . ✅
x → 0 lim x ∣ x ∣ . (Looks like 0/0 — be careful.)
Forecast: many students factor and answer "1 ". Test that instinct.
At x = 0 : ∣0∣/0 = 0/0 . Tempting to "simplify" — but ∣ x ∣ is a piecewise thing, not a polynomial you can factor.
Why this step? The trap is treating ∣ x ∣ like x . It isn't: ∣ x ∣ = x for x > 0 but ∣ x ∣ = − x for x < 0 .
Right side x → 0 + (x > 0 ): x ∣ x ∣ = x x = 1 .
Why this step? On the right ∣ x ∣ = x (the positive branch), so the ratio collapses to 1 — evaluate each branch with its own definition of ∣ x ∣ .
Left side x → 0 − (x < 0 ): x ∣ x ∣ = x − x = − 1 .
Why this step? On the left ∣ x ∣ = − x (the negative branch), so numerator and denominator have opposite signs → ratio − 1 .
Left = − 1 = 1 = right. So the limit does not exist — it's a jump, disguised as a 0/0 .
Why this step? Condition 2 (E) fails: the two one-sided headings differ, so despite the 0/0 appearance this is really a jump — the exam's whole trick.
Verify: 0.001 ∣0.001∣ = 1 , − 0.001 ∣ − 0.001∣ = − 1 . No shared heading. ✅
Worked example Three quick classics that
look impossible until you rewrite them.
Forecast: guess each before reading.
(a) 0 ⋅ ∞ : x → 0 + lim x ln x .
As x → 0 + , x → 0 but ln x → − ∞ — the form 0 ⋅ ( − ∞ ) , indeterminate.
Why this step? A product where one factor dies and the other explodes has no automatic winner — you must convert it.
Rewrite as a quotient: x ln x = 1/ x ln x , now the form + ∞ − ∞ .
Why this step? Turning 0 ⋅ ∞ into ∞/∞ lets us use the ratio tools (or L'Hôpital's Rule ) — you can only tackle a form you recognise.
By L'Hôpital's Rule (differentiate top and bottom): − 1/ x 2 1/ x = − x → 0 .
Why this step? L'Hôpital is the licensed tool for ∞/∞ ; the derivatives simplify to − x , which plainly → 0 .
So lim x → 0 + x ln x = 0 — the x shrinking to zero beats the slow ln blow-up.
(b) ∞ − ∞ : x → ∞ lim ( x 2 + x − x ) .
Both pieces → ∞ ; their difference is the indeterminate ∞ − ∞ .
Why this step? Two infinities racing to cancel — the gap between them can settle anywhere, so we must expose it.
Rationalize (same conjugate trick as Ex 3): multiply by x 2 + x + x x 2 + x + x to get x 2 + x + x x .
Why this step? The conjugate turns the fragile difference into a clean quotient we can divide down.
Divide top and bottom by x (Cell F move): 1 + 1/ x + 1 1 → 1 + 1 1 = 2 1 .
Why this step? Dividing by the dominant power fades 1/ x → 0 , leaving the finite ratio 2 1 .
(c) 1 ∞ : n → ∞ lim ( 1 + n 1 ) n .
Base → 1 , exponent → ∞ — the form 1 ∞ , indeterminate (a base just above 1 raised very high can land anywhere).
Why this step? 1 to any power looks like 1 , but the base isn't exactly 1 ; the tension between "almost 1" and "huge power" is real.
This is the definition of e : lim n → ∞ ( 1 + n 1 ) n = e ≈ 2.71828 .
Why this step? Recognising a named limit saves the work — the compounding-interest limit is Euler's number, the backbone of the sigmoid and exponentials in ML.
Verify: (a) 0.01 ln 0.01 ≈ − 0.046 → 0 ; (b) 1 0 6 + 1000 − 1000 ≈ 0.4999 → 2 1 ; (c) ( 1 + 1/10000 ) 10000 ≈ 2.71815 → e . ✅
Recall Which cell am I in? (decision walkthrough)
Read this top to bottom — it's the same logic the diagram below draws, in words.
Step 1 — plug in the point ::: If you get a clean number and the function is continuous → Cell A , done.
Step 2 — got 0/0 ? ::: Simplify — factor (B ), rationalize if there's a root (C / Ex 11b), or use L'Hôpital's Rule .
Step 3 — got finite/0 ? ::: Infinite limit — check the sign from each side → Cell E .
Step 4 — piecewise, ∣ x ∣ , or a step? ::: Compute both one-sided limits ; if unequal → jump, DNE (D / J ).
Step 5 — x → ± ∞ ? ::: Divide by the highest power, check both ends → Cell F .
Step 6 — 0 ⋅ ∞ , ∞ − ∞ , or 1 ∞ ? ::: Rewrite into 0/0 or ∞/∞ first, then apply Step 2's tools → Cell K .
Step 7 — asked to choose a constant? ::: Set the piece value = the limit → Cell G .
Mnemonic Six-word survival guide
"Plug, and if it breaks — split." Try substitution; when it gives 0/0 , finite/0, or a piecewise seam, split into cases (factor, sign, or one-sided) and each branch behaves.
The diagram below is just the [!recall] walkthrough drawn as arrows — plug in first; each way substitution can "break" sends you down a different branch to the matching cell.
x to plus or minus infinity