Limits, Explained
After reading this you will know what a limit says about a function near a point, how to compute one-sided and two-sided limits, and how to tell when a limit does not exist.
What a limit is
A limit describes the value a function heads toward as its input approaches some target. It says nothing about the value at the target. The function may be undefined there, or defined with a different value, and the limit can still exist.
The classic example is \sin(x)/x at 0. Plugging in x = 0 gives 0/0, which is meaningless. But watch the function as x shrinks toward zero from both sides:
| x | sin(x)/x |
|---|---|
| -0.1 | 0.9983 |
| -0.01 | 0.99998 |
| 0.01 | 0.99998 |
| 0.1 | 0.9983 |
The outputs cluster around 1. The limit is exactly 1, even though the function has no value at 0. That gap between "value at the point" and "value approached near the point" is the whole idea.
When to use this and when not
Reach for a limit whenever direct substitution breaks or is ambiguous. The common cases are indeterminate forms like 0/0 and \infty/\infty, behavior as x grows without bound, and the two half-values that decide whether a piecewise function is continuous.
You do not need a limit when substitution just works. For x^2 + 3x at x = 2, the answer is 2^2 + 3\cdot2 = 10, and the limit is also 10. Limits earn their keep at the awkward points, not the easy ones.
A limit and a function value agree exactly when the function is continuous at that point. Continuity is defined as \lim_{x \to a} f(x) = f(a). So every limit you compute is a continuity test in disguise.
The definition and the intuition
The two-sided limit is written like this.
Here a is the approach point, f is the expression, and L is the value the outputs settle on. The statement means you can force f(x) as close to L as you like by taking x close enough to a, without ever setting x = a.
A one-sided limit restricts the approach to a single direction. The left limit uses only inputs below a, the right limit only inputs above it.
The connection is the key rule: the two-sided limit exists and equals L if and only if both one-sided limits exist and both equal L. If the left value is 2 and the right value is 5, the two-sided limit does not exist.
Worked example: sin(x)/x at 0
Reproducing the demo
Use the demo values: expr = sin(x)/x, var = x, point = 0, side = both. Press Calculate and you get 1. Here is why.
- Substitute
x = 0directly: \sin(0)/0 = 0/0. This is indeterminate, so substitution fails and you must analyze the behavior. - Recall the small-angle fact that \sin(x) \approx x when
xis small. More precisely, \sin(x) = x - x^3/6 + \dots - Divide by
x: \sin(x)/x = 1 - x^2/6 + \dots - Let
xgo to0. Every term after the1carries a factor of x^2 or higher, so they vanish. The limit is1.
Check the leftover error at x = 0.1: the formula predicts 1 - 0.01/6 \approx 0.99833, matching the table above to five digits.
Reading the result
The calculator returns one of a few kinds of answer, and each means something specific.
- A finite number
- The function settles on that value. For
sin(x)/xat0you get1. - \infty or -\infty
- The outputs grow without bound in that direction. For 1/x^2 at
0the limit is +\infty from both sides. - Does not exist
- No single value is approached. For 1/x at
0the left side dives to -\infty and the right side climbs to +\infty, so the two-sided limit does not exist.
Set the approach point to oo to ask about behavior at infinity. For example (2x+1)/(x-3) at oo returns 2, because the highest-degree terms dominate and the ratio of leading coefficients is 2/1.
Common mistakes
Most errors come from confusing the value at a point with the limit near it, or from ignoring direction.
A finite left limit and a finite right limit do not guarantee a two-sided limit. For the step function that is -1 below 0 and +1 above it, the left limit is -1 and the right limit is +1. Both exist, both are finite, and yet the two-sided limit does not exist because they disagree.
Three more traps to watch:
- Assuming substitution always works. It fails for every indeterminate form. Seeing
0/0means "keep working," not "the answer is zero." - Writing \infty as if it were a number. Saying the limit "equals infinity" is shorthand for "grows without bound." The limit does not exist as a finite value.
- Forgetting the domain near the point. For \sqrt{x} at
0only the right limit makes sense, since the function is undefined for negativex. Ask for the right-sided limit and you get0.
Related tools
Limits sit at the root of the rest of calculus. A derivative is a limit of difference quotients, so once you are comfortable here, move to the Derivative & Integral Calculator for symbolic derivatives and exact integrals. The Taylor-series trick used in the worked example above is automated by the Taylor & Maclaurin Series tool, which is the fastest way to resolve many 0/0 limits by hand.
To see where a function heads globally, including the horizontal and vertical asymptotes that limits at infinity detect, use the Function Analyzer & Grapher. If a definite integral is defined only as a limit of Riemann sums, the Riemann Sum Calculator shows those sums converging.
Frequently asked questions
Why is sin(x)/x equal to 1 at 0 if you cannot divide by zero?
You never divide by zero. The limit looks at inputs arbitrarily close to 0 but not equal to it. At x = 0.01 the value is 0.99998, and it keeps closing on 1 as you shrink x. The value at 0 stays undefined; the value approached is 1.
What is the difference between a one-sided and a two-sided limit?
A one-sided limit uses only inputs on one side of the point. The two-sided limit requires both sides to agree. If the left limit is 3 and the right limit is 3, the two-sided limit is 3. If they differ, the two-sided limit does not exist.
How do I take a limit at infinity?
Enter oo as the approach point for +\infty or -oo for -\infty. For a rational function the answer is set by the leading terms: (3x^2+1)/(x^2-5) at oo gives 3.
What does "does not exist" actually mean?
It means no single number is approached. That happens when the two sides disagree, as with 1/x at 0, or when the function oscillates forever, as \sin(1/x) does near 0. It is a definite statement, not a failure of the calculator.
Can a limit exist where the function is undefined?
Yes, and that is the most useful case. \sin(x)/x has no value at 0 but a limit of 1. This mismatch is called a removable discontinuity, since redefining the single point f(0) = 1 makes the function continuous.