Calculus, Linear Algebra & Discrete Math Limits, Sequences & Series Epsilon-delta definition of a limit, evaluated by numerical approach

Limit Calculator (One-Sided and at Infinity)

Enter a function and a point and this calculator approaches that point from both sides, dividing the step by ten at each stage, and reports what the values settle on. You get the left limit, the right limit and the two-sided verdict separately, so a jump discontinuity is visible rather than hidden. Limits at plus or minus infinity are handled by sampling out to ten million. The approach table is the whole method laid bare, which is what makes the answer checkable rather than something you have to take on trust.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Function f(x)Use ^ for powers, * for multiplication (2*x, 2x and a plain space all work, so x sin(x) is read as a product), and the function names sin, cos, tan, sec, csc, cot, asin, acos, atan, sinh, cosh, tanh, exp, ln, log (base 10), sqrt, cbrt and abs. The constants pi and e are recognised.sin(x)/x
x approachesChoose whether the limit point is a number or an infinity.a finite value
The point aThe value x approaches. Ignored when you select an infinity above.0
DirectionTwo-sided requires both one-sided limits to agree. Ignored for limits at infinity.two-sided

It returns

  • Limit — Blank when the two sides disagree, because then no two-sided limit exists.
  • Limit from the left
  • Limit from the right
  • Verdict
  • f at the point itself — Often blank, and that is normal: a limit describes what f approaches, not what it equals.

The formula

limxaf(x)=L
limxaf=limxa+f=L

In plain text: lim(x→a) f(x) = L when f(x) can be made arbitrarily close to L by taking x close enough to a

  • aThe point being approached; f need not be defined there (units of x)
  • LThe value the function approaches (units of f)
  • hDistance from a used in the numerical approach, driven down by factors of ten (units of x)

A two-sided limit exists exactly when the left and right limits both exist and are equal. That is the criterion this calculator applies.

Updated Category Limits, Sequences & Series Verified against published test cases Reading time 10 min

What a limit is, and why f(a) is beside the point

The limit of f as x approaches a is the value the outputs close in on as the inputs close in on a — deliberately excluding a itself. The exclusion is not a technicality. The whole reason limits exist is to describe functions at points where they are undefined or misbehaved.

The clearest case is the derivative. The difference quotient [f(x+h) − f(x)]/h is undefined at h = 0, which is precisely the value you care about. The limit gives you the answer that direct substitution cannot.

The second reason is that a function can be defined at a point and still not equal its limit there. That mismatch is the definition of a discontinuity, and it is why substitution is a shortcut rather than a proof. The calculator reports f(a) and the limit as separate outputs so you can see when they disagree.

The formal definition is a promise about tolerances. For every tolerance ε you name, there is a distance δ such that every x within δ of a (other than a itself) has f(x) within ε of L. That epsilon-delta statement is what the numerical approach on this page illustrates: the step shrinks by a factor of ten each row, and if the column settles, the promise is being kept at ever tighter tolerances.

How this calculator finds the limit, and what that method can and cannot see

For a finite point, the calculator evaluates f(a − h) and f(a + h) for six values of h, starting at one tenth of the scale of the problem and dividing by ten each time down to one part in a million. It then examines the last two entries in each column. If they agree to about four significant digits, that column has converged and the value is reported as the one-sided limit. If the magnitude is large and still growing by more than a factor of two and a half per row, the column is reported as unbounded.

For a limit at infinity, it evaluates at ten, one hundred, and so on up to ten million, and applies the same test.

The two-sided verdict compares the two columns. Both finite and equal gives a limit. Both unbounded in the same direction gives an infinite limit. Anything else — different finite values, or opposite infinities — means no two-sided limit exists, and the calculator reports a blank rather than a number.

The method's limits are real and worth stating. It cannot see behaviour closer than one part in a million of the scale, so a feature that only appears at 1e−9 is invisible. It is defeated by oscillation: sin(1/x) near zero never settles, and the calculator says so rather than reporting whichever value the last sample happened to take. And it is defeated by catastrophic cancellation, which is why the step stops at 1e−6 rather than pushing to 1e−15 — subtracting two nearly equal floating-point numbers destroys precision faster than the smaller step recovers it.

A numerical approach is evidence, not proof. For a proof you factor, rationalise, or apply L'Hôpital's rule. What this page gives you is a reliable check on whichever algebra you did.

Worked example: three limits at x = 0 and x = 1

First, sin x over x at zero. Substitution gives 0/0, which is an indeterminate form and tells you nothing. The approach table settles quickly: at h = 0.1 both sides give 0.9983342, at h = 0.01 both give 0.9999833, and at h = 0.001 both give 0.9999998. The limit is 1.

You can prove it three ways. Geometrically, the squeeze theorem traps sin x / x between cos x and 1. By L'Hôpital, differentiate top and bottom to get cos x / 1, which is 1 at zero. By series, sin x = x − x³/6 + …, so sin x / x = 1 − x²/6 + …, which tends to 1.

Second, a removable discontinuity. For (x² − 1)/(x − 1) at x = 1, substitution again gives 0/0. Factor the numerator: (x − 1)(x + 1)/(x − 1) = x + 1 for every x except 1. So the limit is 1 + 1 = 2, and the graph is the line y = x + 1 with one point punched out. The calculator returns 2 and reports f(1) as blank.

Third, a limit at infinity. For (2x² + 3)/(x² − 5), divide top and bottom by the highest power: (2 + 3/x²)/(1 − 5/x²). As x grows both fractions vanish and the expression tends to 2/1 = 2. The table confirms it: at x = 10 the value is 2.1368421, at x = 100 it is 2.0013007, at x = 1000 it is 2.0000130. The general rule for a ratio of polynomials of equal degree is the ratio of the leading coefficients, which here is 2/1.

How to read the verdict

A blank limit with two finite one-sided values means a jump. abs(x)/x at zero gives −1 on the left and +1 on the right. The function is perfectly well behaved on each side; it simply has two different destinations, and no single value can be the limit.

A blank limit with opposite infinities means a pole with a sign change. 1/x at zero falls without bound on the left and grows without bound on the right. Some texts write this as an infinite discontinuity; none of them write a limit for it.

An infinite limit is a description, not a number. When the calculator reports that both sides grow without bound, as for 1/x² at zero, that is a statement about how the function fails to converge, not a value you can substitute into later algebra.

A limit that exists while f(a) does not is the ordinary case. Every interesting limit in a first calculus course has this shape, because the point of the exercise is to fill a hole in a function.

A limit that exists and differs from f(a) means a removable discontinuity that has not been removed. The calculator warns explicitly, because this is the case where substitution silently produces the wrong answer.

Standard limits worth recognising on sight

These are the limits that appear repeatedly in calculus courses, with the technique that proves each one.
LimitValueForm on substitutionTechnique
sin x / x as x → 010/0Squeeze theorem
(1 − cos x)/x as x → 000/0Conjugate multiplication
(1 − cos x)/x² as x → 01/20/0Series or L'Hôpital twice
(1 + 1/x)^x as x → ∞e = 2.71828181^∞Definition of e
(e^x − 1)/x as x → 010/0Series or L'Hôpital
ln(1 + x)/x as x → 010/0Series or L'Hôpital
(x² − 1)/(x − 1) as x → 120/0Factor and cancel
(2x² + 3)/(x² − 5) as x → ∞2∞/∞Divide by the highest power
x·ln x as x → 0⁺00·∞Rewrite as a quotient, then L'Hôpital
sin(1/x) as x → 0does not existoscillatesNo technique applies

Most of these reproduce here directly; the <code>x·ln x</code> row needs the direction set to <em>right</em>, because the function has no real value on the left. Two rows are instructive failures rather than confirmations. <code>sin(1/x)</code> is reported as no stable value because it oscillates instead of settling, which is the point of the row. <code>x·ln x</code> approaches zero so slowly that it still misses the convergence test at the smallest step used, so this page reports no stable value there too — a fair warning that sampling proves nothing on a slowly converging limit.

Traps in limit problems

  • Treating 0/0 as zero or as one. It is an indeterminate form, meaning the answer depends entirely on which functions produced it. x/x gives 1, x²/x gives 0 and x/x² is unbounded, all at zero.
  • Substituting and stopping. Substitution is valid only when the function is continuous at the point. If it is, you did not need a limit; if it is not, substitution can give the wrong answer.
  • Assuming a two-sided limit exists because one side does. Both sides must converge, and to the same value. Check them separately, which is why they are separate outputs here.
  • Reporting infinity as a limit value. An infinite limit is a statement that the limit fails to exist in a particular way. Writing it in an equation as though it were a number leads to errors later.
  • Applying L'Hôpital's rule to a form that is not indeterminate. It applies only to 0/0 and ∞/∞. Using it on (x + 1)/(x + 2) at zero converts a correct answer of 0.5 into a wrong answer of 1.
  • Trusting a numerical table alone. Sampling cannot distinguish a limit of 0 from a function that dips to 1e−9 between the samples. Use the table to check algebra, not to replace it.

Where limits lead

Continuity is defined by a limit. A function is continuous at a when the limit exists, f(a) exists, and the two are equal. All three conditions are needed, and each one fails in a recognisable way: a hole, a jump, or a pole.

Derivatives are limits. f′(a) is the limit of the difference quotient, and every rule in the derivative calculator is a theorem proved from that limit.

Integrals are limits. The definite integral is the limit of Riemann sums as the mesh shrinks, which is what the Riemann sum calculator illustrates numerically.

Series are limits of partial sums. Whether a series converges is a question about the limit of its partial sums, and the tests in the ratio test calculator are shortcuts for answering it without computing that limit directly.

Asymptotes are limits at infinity. A horizontal asymptote at y = L is exactly the statement that the limit at infinity is L, and a vertical asymptote at x = a is the statement that the one-sided limits there are unbounded.

For indeterminate forms specifically, L'Hôpital's rule converts 0/0 and ∞/∞ into a limit of derivatives, which is usually easier and often immediate.

Frequently asked questions

Why is the value at the point blank when the limit exists?

Because the function is not defined there, which is the normal situation for a limit worth computing. sin(x)/x at zero evaluates to 0/0, so there is no value to report, yet the outputs approach 1 from both sides and the limit is 1. A limit describes what a function approaches, never what it equals.

What does it mean when the limit is blank but the two sides are not?

The one-sided limits exist but disagree, so no two-sided limit exists. abs(x)/x at zero is the standard case: −1 from the left, +1 from the right. Select a direction in the dropdown if a one-sided limit is what you actually need.

How does the calculator handle limits at infinity?

It evaluates the function at 10, 100, 1000 and so on up to ten million, then checks whether the last two values agree. That is enough for the polynomial and rational cases students meet most often, where convergence is fast. Functions that converge very slowly, such as ln(x)/x^0.01, may not have settled by ten million and are reported as unresolved.

Can it prove a limit?

No — it produces strong numerical evidence, not a proof. A sampled table cannot rule out behaviour between the samples or below the smallest step. Use it to check algebra you have already done by factoring, rationalising, dividing by the highest power, or applying L'Hôpital's rule.

Why does the calculator stop at a step of one millionth?

Because pushing further does more harm than good. Evaluating a difference quotient at 1e−12 subtracts two nearly identical double-precision numbers, and the cancellation destroys more accuracy than the smaller step gains. Six decades of refinement is the practical sweet spot for double arithmetic.

What is an indeterminate form?

An expression such as 0/0, ∞/∞, 0·∞, ∞ − ∞, 1^∞, 0⁰ or ∞⁰ that arises on substitution and does not determine the answer. Different functions producing the same form give different limits, so the form tells you which technique you need rather than what the answer is.

Why does sin(1/x) have no limit at zero?

Because it oscillates between −1 and +1 infinitely often in every neighbourhood of zero, no matter how small. There is no single value the outputs settle on, so the limit fails to exist for oscillation rather than for size. The calculator reports that no stable value was reached rather than quoting whichever sample landed last.

Is a limit of infinity the same as no limit?

Strictly, an infinite limit means the limit does not exist, and the notation records how it fails: the function grows without bound rather than approaching anything. The distinction matters because 1/x² at zero behaves very differently from sin(1/x) at zero, and both are cases where no finite limit exists.

References

  • Calculus, 8th edition (limits and continuity, chapter 2) — James Stewart, Cengage Learning
  • Principles of Mathematical Analysis, 3rd edition (limits of functions, chapter 4) — Walter Rudin, McGraw-Hill
  • Accuracy and Stability of Numerical Algorithms, 2nd edition (cancellation in floating-point subtraction) — Nicholas J. Higham, SIAM