What happens to a function exactly at a point it was never built to touch?
Picture a runner sprinting toward a finish line tape. Except this race is rigged in a strange way: every time the runner closes in, the tape retreats to half the remaining distance. They get closer and closer. Closer than any distance you could name. But by the rules of this race, they never actually cross it.
Now ask a simple question: where is that runner headed?
Anyone watching from the stands could answer instantly, without ever seeing the tape reach its final spot. The runner is closing in on one exact point on the track, forever. That point is the limit. It doesn't matter whether the runner ever touches it. What matters is where the trail of positions is unmistakably pointing.
That's the whole idea behind a limit in calculus. Forget whether the function arrives. Just watch where it's headed.
Calculus needs this idea constantly, because plenty of functions get weird, undefined, or flat out impossible to evaluate exactly at the point we care about. A limit lets us describe what a function is doing near a point, even when the function refuses to cooperate at that exact spot. Let's build it up piece by piece, starting with something you can actually watch happen.
Getting closer counts, even before you arrive
Forget the runner for a second and look at a real function: . Let's ask what happens as closes in on , from below and from above, at the same time.
Plug in directly and you get . That's just evaluating the function. A limit asks a slightly different question: forget plugging in exactly . What does do as sneaks up on without ever quite landing on it?
Two dots close in on c = 2 from opposite sides. Watch what their outputs do as the gap shrinks.
Drag the distance down toward zero, or hit play and let it shrink on its own. Watch both dots race toward the same output. They're approaching from opposite sides of , one from below and one from above, and yet they agree on where they're going. That agreement is the whole ballgame. When both sides settle on the same number as the gap shrinks to nothing, that shared number is the limit.
We write this as:
Read it out loud: "the limit of , as approaches , is ." Every symbol in there is just shorthand for the race you just watched.
A limit can exist even when the function refuses to show up
Everything so far assumed equals something sensible. But what if the function is flat out undefined exactly at the point we're approaching?
Take . Plug in and you get , which means nothing. Division by zero, game over, right?
Not so fast. Factor the top: . For any that isn't exactly , the cancels, leaving . The function is just a straight line, with a single point punched clean out of it.
Drag the dot along the line, straight into the hole at x = 2. Notice what the value does versus what the limit does.
Drag the dot toward and watch the output keep climbing toward , right up until the moment you land exactly on the hole, where the value disappears entirely. The limit doesn't care that the function is undefined at that one point. It only cares about where the function is headed as you approach. So , even though itself doesn't exist.
This is the single biggest thing people get wrong about limits: they treat a limit as just a fancy way of asking "what's the function's value here?" A limit asks what value the function is trending toward. What's actually sitting at that exact spot, or whether anything is sitting there at all, is a completely separate question.
Not every function agrees to settle down
So far, every function we've looked at eventually calms down and points at one clear number. That's not guaranteed. Some functions never settle, no matter how close you zoom in.
Take and watch what happens as approaches . As shrinks, blows up toward infinity, and the sine of a huge number just keeps oscillating between and , forever, faster and faster.
sin(1/x) as x approaches 0. Shrink the window and watch it speed up instead of calming down.
Shrink the window and notice something strange: the oscillations don't calm down the way they would for a normal curve. They speed up. No matter how tightly you zoom in around zero, the function is still swinging wildly between and , packing in more full swings the closer you get. There's no single number it's committing to.
That means simply doesn't exist. Not because the math breaks down, but because there's genuinely nowhere for the function to land. A limit is a promise that the outputs converge on one value. When a function won't make that promise, the limit just isn't there, and that's a perfectly valid, useful answer in itself.
The real payoff: turning average speed into exact speed
All of this might feel like a fussy technicality so far. Here's why it's actually the foundation of half of calculus.
Say you want to know how fast something is changing at one exact instant, not on average over some stretch, but right now, at this precise moment. A speedometer does this for a car. But if all you have is a function, how do you pin down "right now"?
The obvious move is to measure the average rate of change between two nearby points, the slope of the line connecting them. That line has a name: a secant line. Then you shrink the distance between the two points and watch what the slope approaches.
Same curve as before. Shrink h and watch the secant line rotate until it locks onto the dashed tangent.
Same curve as before, . Watch the secant line as , the gap between the two points, shrinks toward zero. The secant line rotates and locks onto the tangent line, the line that just grazes the curve at a single point. The slope you're watching converges to exactly .
We write this limit as:
That's the derivative. A derivative is nothing more than a limit, applied to a slope instead of a plain function value. Every rate of change you've ever heard of, velocity, acceleration, growth rate, marginal cost, is a limit wearing a different costume.
The short version
A limit is an honest answer to the question "where is this function headed?" It doesn't need the function to be defined at that point, like we saw with the hole in the graph. It doesn't even require the answer to exist, like we saw with the oscillating function. All it does is describe the trend: the number every nearby output is crowding toward.
And that one idea, watching values home in on a target, turns out to be the load-bearing wall under the rest of calculus. Derivatives are limits of slopes. Integrals are limits of sums. Once you can see a limit happening, in a graph, in two dots racing toward each other, in a shrinking window, you're not just doing algebra tricks anymore. You're watching the machinery calculus is built from.