1.2.1 · D2Calculus & Optimization Basics

Visual walkthrough — Functions, limits, and continuity

2,245 words10 min readBack to topic

This is a visual walkthrough of the parent idea in Functions, limits, and continuity. We rebuild the central result — the limit of as equals , even though the machine gives there — from absolute zero, one picture per step. By the end you will see why a hole in the graph does not stop us from knowing where the curve is heading.


Step 1 — What "function" means as a picture

WHAT. We start with the machine . Feed it a number , it spits out a number.

WHY. Before we can ask "where is the output heading (i.e. what is its limit)?" we must be able to see the output. So we plot: horizontal axis = the input , vertical axis = the output . Every input becomes a point on a curve.

PICTURE. Look at the cyan curve in the figure. The input runs left–right; the output runs up–down. For each we drop a dot at height . Notice there is nothing special-looking yet — it just traces a straight slanted line. That surprise is the whole story.

Figure — Functions, limits, and continuity

Step 2 — Where the machine chokes:

WHAT. Put straight into the machine.

WHY. We must find exactly where the function is undefined, because that is the only interesting spot — everywhere else you can just plug in and read the answer.

Term by term: the top becomes ; the bottom becomes . So we are asked to compute .

WHY this is not "the limit fails". Division wants to answer "how many bottoms fit in the top?" With that question has no single answer — any number times gives , so nothing is pinned down. This is called an indeterminate form. It is a "please simplify me" sign, not a verdict.

PICTURE. The amber dot marks the input on the axis, and the amber hollow circle on the curve shows: right there, at height where the curve would be, the machine has no value. The curve has a hole.

Figure — Functions, limits, and continuity

Step 3 — Approach from BOTH sides with numbers

WHAT. Instead of landing on , we creep toward it — from the left () and from the right () — and watch the output.

WHY. The limit only cares about the journey toward the point, never the destination at the point. So we sneak up to without ever touching it, from each side, and see if both sides aim at the same height.

Approaching from the LEFT (, climbing up toward ):

(from left)

Approaching from the RIGHT (, settling down toward ):

(from right)

Both tables squeeze toward . The left side climbs up to ; the right side settles down to .

PICTURE. Two amber arrows walk along the curve toward the hole — one from the left, one from the right. Their heights both funnel to the dashed line at . The hole sits exactly where they meet, but neither arrow needs to step on it.

Figure — Functions, limits, and continuity

Step 4 — WHY both sides agree: factor the top

WHAT. We simplify the algebra to explain the numbers, not just observe them. Factor the numerator.

WHY. The difference of squares lets us pull the troublesome out of the top. We use this tool because the bottom is exactly — if we can copy that factor in the top, they cancel.

Here , , so and . The factor is the twin of our denominator.

PICTURE. The figure shows the top curve splitting into two straight-line factors (cyan) and (white); both cross zero, but only shares its zero with the bottom.

Figure — Functions, limits, and continuity

WHAT. Cancel the shared .

WHY it is allowed. Dividing top and bottom by is only legal when , i.e. when . And that is exactly the region a limit lives in — the strict inequality in the () definition excludes . So on the whole journey (everywhere except the forbidden point), the ugly fraction is identical to the simple line .

PICTURE. The same slanted line is drawn, with the single hole at redrawn on top. The message: the complicated fraction and the tidy line are the same curve apart from one punched-out point.

Figure — Functions, limits, and continuity

Step 6 — Read off the answer

WHAT. Now is a friendly straight line with no hole in its formula, so its limit at is just its value there.

Term by term: as , the piece and the piece stays , so the sum heads to .

WHY plugging in is now legal. is continuous (see Continuity of composite functions): no hole, no jump, no cliff. For continuous functions the limit equals the value — that is what continuity means. So and only so may we substitute.

PICTURE. The final read-off: a horizontal dashed line at meets the curve at the (open) target point. The two approaching arrows land there. The limit is .

Figure — Functions, limits, and continuity

Step 7 — Edge case: what if the two sides disagreed?

WHAT. We must also show the case where a limit does not exist, so you can tell them apart.

WHY. A picture of success is only convincing next to a picture of failure. Take the step function

WHY it fails. From the left the height sits at ; from the right it jumps to . Left-limit , right-limit , and — the two-sided limit does not exist. This is a jump discontinuity, a genuine break, unlike our removable hole.

PICTURE. One arrow aims at height , the other at height ; they never meet, so there is no single number to call the limit. Contrast this with Step 3, where both aimed at the same .

Figure — Functions, limits, and continuity

Step 8 — What "patching the hole" actually means

WHAT. We now repair so there is no hole. To redefine a function at a point means: keep the same rule everywhere except at that one input, and there declare a new output by hand. Formally, we build a new function

Term by term: the top line is the old rule, used for every ; the bottom line is our hand-placed value , filling the spot the old machine left blank.

WHY the value and not any other number. We choose because that is the limit (Steps 3–6). With that choice all three continuity conditions hold: exists (), exists (), and they are equal. So is continuous at — the pen no longer lifts.

PICTURE. The open circle from Step 5 is filled in solid at : same line, hole plugged.

Figure — Functions, limits, and continuity

The one-picture summary

Everything in one frame: the ugly fraction is the straight line with a single point punched out at . Approach from both sides, both aim at , and since we never step on the hole, the limit is . Only when we redefine (fill the hole with the limit value) does the function become continuous — limit equals value.

Figure — Functions, limits, and continuity
Recall Feynman: the whole walkthrough in plain words

You want to know where a curve is heading at one spot, but the machine breaks there and yells "". Don't panic — that yell just means "simplify me". You notice the top secretly contains a copy of the bottom , because . Everywhere except the broken spot, you cancel that copy and the scary fraction turns into the plain line . Since a limit is only about the journey toward the point and never the point itself, the broken spot never gets visited — so the fraction and the line have the exact same limit. That limit is . To check you're right, you tiptoe in from both sides with numbers ( and ) and both sides squeeze toward . A hole like this is removable: patch it by declaring the value at that one point to be — that is, build a new function identical everywhere except set its value at equal to — and the pen never lifts again. Compare a jump (like a step function): there the two sides aim at different heights, they never agree, and no patch can save it.


Connections