◎ English

Limit Calculator

Enter a function and the value x approaches. The calculator tries direct substitution first; for indeterminate forms it applies factoring, conjugates, L’Hôpital’s rule or the highest-power terms step by step. Every answer is compared with the function’s values on each side of the point, shown in a table.

Example: x^2*sin(x), (x+1)/(x-1), e^(2x), sqrt(x), ln(x). Use * or write factors side by side (2x).

Interpreted as: x2 − 4x − 2

A number (0, 2, pi/2) or inf, ∞, -inf for infinity.

Examples

Calculations run in your browser; what you type is not sent to a server.

Result
limx → 2 x2 − 4x − 2 = 4

Step-by-step solution

  1. Factor and cancel 0/0 form: cancel the common factor of numerator and denominator.

    x2 − 4 = (x − 2)·(x + 2)

    Cancel the common factor x − 2: x + 2

    1. Direct substitution The function is continuous at this point, so substitute the value.

      limx → 2 (x + 2) = 4

      = 4

    = 4

Numerical check

From the left
xf(x)
1.93.9
1.993.99
1.9993.999
1.99993.9999
1.999993.99999
1.9999993.999999
From the right
xf(x)
2.14.1
2.014.01
2.0014.001
2.00014.0001
2.000014.00001
2.0000014.000001

Guide: Limit Calculator

Substitution first

Polynomials, roots, exponentials, logarithms and trigonometric functions are continuous on their domains, so the first step is to substitute: lim(x→2) (x² + 3x) = 10. If that gives 0/0, ∞/∞, 0·∞, 1^∞ or another indeterminate form, another method is needed; a non-zero number over 0 means an infinite limit or none, decided by the sign on each side.

Factoring, conjugates and L’Hôpital

For 0/0 with polynomials, cancel the common factor (x − a). With square roots, multiply by the conjugate. L’Hôpital’s rule replaces f/g by f′/g′ for 0/0 or ∞/∞: lim(x→0) sin x/x = lim cos x/1 = 1. Products 0·∞ are rewritten as quotients, and powers f^g as e^(g·ln f).

Limits at infinity

For rational functions compare degrees: equal degrees give the ratio of leading coefficients, a smaller numerator degree gives 0 and a larger one gives ±∞. Type inf, ∞ or -inf for infinity.

The numerical table

The function is evaluated at points approaching a (a ± 0.1, a ± 0.01, …) or growing without bound (10, 100, …). If the symbolic result disagrees with these values the steps are withheld. The table is evidence, not proof; floating-point rounding can affect very small steps.

Worked examples

  • 0/0, factoring: limx→2 x2 − 4x − 2 = 4
  • L’Hôpital’s rule: limx→0 sin(x)x = 1
  • Conjugate: limx→0 √x + 1 − 1x = 12
  • Limit at infinity: limx→∞ 3x2 + 25x2 − x = 35
  • 1^∞ form: limx→∞ (1x + 1)x = e
  • One-sided limits: limx→0 1x = ∄

Frequently asked questions

What happens if the limit does not exist?

If the one-sided limits differ, as for 1/x at 0, the result says the limit does not exist and shows both sides. Choose a direction to compute a one-sided limit.

How do I type infinity?

Type inf or ∞; use -inf for minus infinity.

When does L’Hôpital’s rule not apply?

Only for 0/0 or ∞/∞ forms. It does not apply to lim(x→0) (x + 1)/x, where the numerator tends to 1.

Why are no steps shown for some limits?

Steps are shown only when the symbolic result agrees with the numerical check. Otherwise the table and, when available, the symbolic engine’s result without steps are shown.

Related tools

Sources: OpenStax — Calculus Volume 1

What would you like to calculate?

Browse all calculators