Derivative Calculator
First to fifth derivatives with rule-by-rule steps, f′(a), the tangent line and a graph.
Enter f(x) and the point a to find the limit of f(x) as x → a with steps: from both sides, from the left, from the right, or as x → ±∞.
Limit as x → 0 (numerical estimate)
As x → 0, f(x) = sin(x)/x approaches 1. Direct substitution gives the indeterminate form 0/0, but the values of f settle on this number.
This is a numerical estimate from values of f(x) close to the point. It is reliable for ordinary functions but is not a proof; very slow or very fast oscillation can mislead any numerical method.
0/0 is an indeterminate form: different functions with this form can have any limit, or none. Algebra (factoring, rationalizing), L’Hôpital’s rule or series are the usual ways to find the exact value.
Trigonometric functions use radians.
| h | x = a − h | f(a − h) | x = a + h | f(a + h) |
|---|---|---|---|---|
| 0.1 | −0.1 | 0.9983341665 | 0.1 | 0.9983341665 |
| 0.01 | −0.01 | 0.9999833334 | 0.01 | 0.9999833334 |
| 0.001 | −0.001 | 0.9999998333 | 0.001 | 0.9999998333 |
| 0.0001 | −0.0001 | 0.9999999983 | 0.0001 | 0.9999999983 |
| 0.00001 | −0.00001 | 1 | 0.00001 | 1 |
| 0.000001 | −0.000001 | 1 | 0.000001 | 1 |
Try direct substitution
Substituting x = 0 gives the form 0/0, which is indeterminate: it does not say what the limit is, so look at values near the point.
Approach from both sides
Evaluate f at points a distance h from 0, with h shrinking toward 0 (see the table). From the left the values approach 1. From the right they approach 1.
Extrapolate to h = 0
Values of f at distances h, h/2, h/4, … are combined by Richardson extrapolation, which cancels the leading error terms and estimates the value at h = 0.
Conclusion
The calculator tries direct substitution, names indeterminate forms such as 0/0, shows a table of values approaching the point, checks continuity and extrapolates to the limit. For example, sin(x)/x approaches 1 as x → 0.
Two-sided limit
Plain-text formula: lim_{x → a} f(x) = L ⇔ lim_{x → a^ − } f(x) = L = lim_{x → a^ + } f(x)
The limit describes the values of f near a, not at a. It exists only when the left-hand and right-hand limits agree.
Continuity
Plain-text formula: lim_{x → a} f(x) = f(a)
When this holds, f is continuous at a and direct substitution gives the limit. Polynomials, sin, cos and exp are continuous everywhere, and rational functions wherever the denominator is not 0.
L’Hôpital’s rule
Plain-text formula: lim_{x → a} (f(x))/(g(x)) = lim_{x → a} (f′(x))/(g′(x))
Valid only for the forms 0/0 and ∞/∞, when the limit on the right exists. Differentiate the numerator and the denominator separately (not with the quotient rule). The derivative calculator finds f′ and g′.
Squeeze theorem
Plain-text formula: g(x) ≤ f(x) ≤ h(x) and lim_{x → a} g(x) = lim_{x → a} h(x) = L ⇒ lim_{x → a} f(x) = L
Trap f between two functions with the same limit. It is how is proved, since .
Richardson extrapolation (the method this calculator uses)
Plain-text formula: L ≈ (2^k T(h/2) − T(h))/(2^k − 1)
Values T(h) = f(a ± h) at halving distances are combined so the leading error terms cancel, giving an estimate of the value at h = 0. When the values settle too slowly, Aitken’s Δ² process is used on samples at distances 10⁻ᵏ instead.
A finite answer L means f(x) gets as close to L as you like when x is close enough to a. If the result is ∞ or −∞, f grows without bound; strictly the limit does not exist, but the sign tells you the direction, which is how vertical asymptotes are described.
Does not exist has three common causes: the two one-sided limits differ (a jump, as for |x|/x at 0), f grows to +∞ on one side and −∞ on the other (as for 1/x at 0), or f oscillates without settling (as for sin(1/x) at 0). Check the left-hand and right-hand items and the table to see which.
Forms such as 0/0, ∞/∞, 0·∞, ∞ − ∞, 1^∞, 0⁰ and ∞⁰ are called indeterminate because the form alone does not fix the answer. For example, sin(x)/x, x/x² and x²/x all give 0/0 at 0, but their limits are 1, does not exist and 0.
1. Substitute. Put x = a into f. If you get a number, and f is built from continuous functions, that number is the limit: . 2. Nonzero over zero. A form such as 5/0 means f grows without bound; check each side for the sign, since the two-sided limit may not exist. 3. Indeterminate form. For 0/0 or ∞/∞, change the expression without changing its values near a: factor and cancel, multiply by a conjugate, use a standard trigonometric limit, or divide by the highest power of x. 4. Still stuck. Use L’Hôpital’s rule, a series expansion, or the squeeze theorem for bounded oscillating factors.
Limits can also be found numerically from a table of values, as this calculator does, and graphically by following the curve toward x = a from each side. Those two views suggest the answer; the algebra in step 3 or 4 proves it.
| Method | Use it when | Example |
|---|---|---|
| Direct substitution | f is continuous at a | |
| Factor and cancel | 0/0 from polynomials | |
| Multiply by the conjugate | 0/0 with a square root | |
| Standard trigonometric limit | sin or cos near 0 | |
| Divide by the highest power | ∞/∞ as x → ±∞ | |
| L’Hôpital’s rule | 0/0 or ∞/∞ | |
| Squeeze theorem | a bounded factor that oscillates | |
| Take logarithms | 1^∞, 0⁰ or ∞⁰ |
Many courses ask for limits before derivatives are taught, so L’Hôpital’s rule is off the table. Most 0/0 and ∞/∞ limits then yield to algebra: factoring, multiplying by a conjugate, combining fractions over a common denominator, or dividing every term by the highest power of x. The rest reduce to a few standard limits, listed below, which are proved geometrically or with the squeeze theorem.
For example, : multiply top and bottom by to get . This calculator never uses L’Hôpital’s rule either: it works from values of f alone, so its answer is an independent check on working done by any method.
| Limit | Value |
|---|---|
| , |
A one-sided limit looks at values on one side only: from below and from above. You need them for piecewise functions, absolute values such as |x|/x, roots such as √x at 0 (defined only on the right) and vertical asymptotes such as 1/x at 0, where the left-hand limit is −∞ and the right-hand limit is +∞. Choose a direction in the calculator to use it as a one-sided limit calculator.
For a limit at infinity of a rational function, compare the degrees of the numerator and denominator. If the top has the lower degree the limit is 0; if the degrees are equal it is the ratio of the leading coefficients; if the top has the higher degree there is no finite limit. A finite limit L at infinity means the line y = L is a horizontal asymptote. To see the long-run behavior of any function, type inf as the point, or tabulate it with the function table calculator.
When the limits of f and g at a both exist, limits can be split across sums, products and quotients. These laws are what make direct substitution valid for continuous functions.
| Law | Formula |
|---|---|
| Sum and difference | |
| Constant multiple | |
| Product | |
| Quotient | if |
| Power | |
| Root | ( when n is even) |
The calculator works with numbers, not symbols: it evaluates f at points ever closer to a and extrapolates. For ordinary textbook functions this gives the limit to about 9 significant digits. To prove a limit, use algebra (factoring or rationalizing), the squeeze theorem, L’Hôpital’s rule or a series expansion; the estimate is a reliable way to check that work.
When an estimate matches a well-known constant or a simple fraction, the result says so, for example that 2.71828183 matches e. The calculator handles functions of one variable; a multivariable limit, where (x, y) can approach a point along infinitely many paths, needs a different test.
Direct substitution gives 0/0. Find the limit.
Answer: The limit is 2 from both sides. The graph of f is the line y = x + 1 with a hole at (1, 2), a removable discontinuity.
The value f(a) is what you get at x = a; the limit describes what f(x) approaches as x gets close to a. They can differ: is undefined at 1, yet its limit there is 2.
Numerically, from a table of values approaching the point; graphically, by following the curve toward x = a from each side; and algebraically, by substitution, factoring, conjugates or L’Hôpital’s rule. This calculator shows the first two and suggests the algebraic method for the form it finds.
When the left-hand and right-hand limits differ (a jump), when f grows without bound in different directions on each side, or when f oscillates without settling, as sin(1/x) does near 0.
It means both numerator and denominator approach 0, which on its own tells you nothing about the limit. The answer depends on how fast each part shrinks; factoring, rationalizing or L’Hôpital’s rule resolves it.
Yes. Factor and cancel, multiply by a conjugate, divide by the highest power of x, or use standard limits such as sin(x)/x → 1 as x → 0. This calculator does not use L’Hôpital’s rule, so it also checks answers found without it.
Type inf (or -inf) as the point. The table then shows x = 10, 100, 1,000 and so on. For example, (1 + 1/x)^x approaches e ≈ 2.71828183 as x → ∞.
Because it is found from values of f close to the point rather than by symbolic algebra. It is accurate for most functions, but it is not a proof.
No. It finds limits of functions of one variable, x. For f(x, y), a limit exists only if every path to the point gives the same value, which needs a separate argument.
Standard results such as sin(x)/x → 1 as x → 0 hold only in radians. In degrees that limit would be π/180.
First to fifth derivatives with rule-by-rule steps, f′(a), the tangent line and a graph.
Antiderivatives with named steps, plus definite and improper integrals with an error estimate and area graph.
Tables of values for one or two functions with exact fractions, roots, turning points, a graph and CSV.
Sigma notation with steps: exact fractions, partial sums, closed forms and infinite-series tests.
Plot functions, equations, inequalities, parametric and polar curves; find roots and intersections.
Free worked solutions for equations, systems, inequalities, factoring, derivatives, integrals, limits and matrices.
Learn more: For limits, derivatives and integrals inside the full calculator, read the calculus functions manual.
Results are calculated in your browser with methods checked by automated tests, and are intended for learning and general use. For engineering, medical, financial, legal or safety-critical decisions, verify important values independently and follow the rounding rules your work requires. How accurate are these results?