What is a limit?
A limit describes where a function is heading as its input gets close to some value. It answers the question: "what output does f(x) approach as x approaches a?" It does not ask what happens exactly at a.
This reads "the limit of f(x) as x approaches a is L." It means f(x) can be made as close as you like to L by choosing x close enough to a (but not equal to a).
Limits are the foundation of calculus. Derivatives are limits of slopes, and integrals are limits of sums. You can test limits with the limit calculator.
Why do we need limits?
Some expressions are undefined at a point but still have a clear trend nearby. Consider
At x = 1, this becomes 0/0, which is undefined. But look at nearby values:
| x | f(x) |
|---|---|
| 0.9 | 1.9 |
| 0.99 | 1.99 |
| 0.999 | 1.999 |
| 1.001 | 2.001 |
| 1.01 | 2.01 |
| 1.1 | 2.1 |
The outputs close in on 2 from both sides. So the limit is 2, even though f(1) does not exist. Algebra confirms it: (x² − 1)/(x − 1) = (x + 1)(x − 1)/(x − 1) = x + 1 for x ≠ 1, which approaches 2.
A table like this is a numerical estimate. It suggests the limit but does not prove it.
How do you evaluate limits by substitution?
If the function is continuous at the point, just plug in. Polynomials, exponentials, sines and cosines are continuous everywhere, and rational functions are continuous wherever the denominator is not zero.
- lim x→3 (2x² − x + 4) = 2(9) − 3 + 4 = 19.
- lim x→0 (cos x + 5) = 1 + 5 = 6.
- lim x→2 (x + 1)/(x − 4) = 3/(−2) = −1.5.
Always try substitution first. If you get a real number, you are done. If you get 0/0, the answer is not decided yet, and you need to simplify.
How do you handle 0/0 by factoring?
When both the numerator and denominator are zero at the point, they share a factor. Cancel it.
Example: lim x→2 (x² − 4)/(x − 2).
Substitution gives 0/0. Factor: (x − 2)(x + 2)/(x − 2) = x + 2. Then lim = 2 + 2 = 4.
Example: lim x→3 (x² − 5x + 6)/(x² − 9).
Factor: (x − 2)(x − 3) / [(x − 3)(x + 3)] = (x − 2)/(x + 3). Substitute x = 3: 1/6.
How do you use a conjugate?
For expressions with square roots, multiply the numerator and denominator by the conjugate.
Example: lim x→0 (√(x + 4) − 2)/x.
Substitution gives 0/0. Multiply by (√(x + 4) + 2)/(√(x + 4) + 2):
numerator: (x + 4) − 4 = x. So the expression becomes x / [x(√(x + 4) + 2)] = 1/(√(x + 4) + 2).
At x = 0: 1/(2 + 2) = 1/4.
What are one-sided limits?
A one-sided limit approaches the point from only one side. The notation x → a⁻ means from the left (smaller values), and x → a⁺ means from the right (larger values).
The two-sided limit exists only if both one-sided limits exist and are equal.
Example. For f(x) = |x|/x, we have f(x) = 1 for x > 0 and f(x) = −1 for x < 0.
- lim x→0⁺ f(x) = 1.
- lim x→0⁻ f(x) = −1.
These differ, so the two-sided limit does not exist. Piecewise functions are a common place to meet one-sided limits.
What are limits at infinity?
A limit at infinity describes the behavior of a function as x grows without bound.
For rational functions, compare the highest powers of the numerator and denominator.
- Degree of numerator smaller: the limit is 0. For (3x + 1)/(x² + 2), the limit is 0.
- Degrees equal: the limit is the ratio of leading coefficients. For (3x² + 1)/(5x² − 4), the limit is 3/5.
- Numerator degree larger: the limit is infinite (it grows without bound).
To see why, divide the top and bottom by the highest power of x. For (3x² + 1)/(5x² − 4), dividing by x² gives (3 + 1/x²)/(5 − 4/x²), which approaches 3/5.
A finite limit at infinity gives a horizontal asymptote.
What are infinite limits and vertical asymptotes?
If f(x) grows without bound as x approaches a, we write lim f(x) = ∞ (or −∞). This is a way of describing a trend; the limit does not exist as a number.
lim x→0⁺ 1/x = ∞, and lim x→0⁻ 1/x = −∞. The graph has a vertical asymptote at x = 0. If the sides disagree, as here, the two-sided limit does not exist.
What are the limit laws?
If lim f(x) = A and lim g(x) = B as x approaches a, then:
- lim [f + g] = A + B.
- lim [f − g] = A − B.
- lim [c · f] = c · A.
- lim [f · g] = A · B.
- lim [f / g] = A / B, provided B ≠ 0.
- lim [f(x)ⁿ] = Aⁿ.
These let you break a complicated limit into easy pieces. They need each piece to have a finite limit.
What is the squeeze theorem and some famous limits?
If g(x) ≤ f(x) ≤ h(x) near a, and g and h have the same limit L at a, then f also has limit L. It is used to prove
This limit, with x in radians, is the foundation for the derivatives of sine and cosine. Another important one is
How do limits connect to derivatives?
The derivative is defined as a limit. The slope of the tangent line to f at x is
For f(x) = x², this gives ((x + h)² − x²)/h = (2xh + h²)/h = 2x + h, which approaches 2x as h → 0. Direct substitution would give 0/0, so the algebra is the point. For a fuller walk-through, see what is a derivative, and try functions in the derivative calculator.
Integrals also use limits: a definite integral is the limit of sums of thin rectangles as their width shrinks to zero. Our guide to integrals explains this.
What mistakes should you avoid?
- Assuming the limit equals f(a). It may differ or not exist.
- Stopping at 0/0. It is an indeterminate form, not an answer.
- Ignoring one-sided behavior at points where the function changes definition.
- Cancelling terms rather than factors.
- Calling a limit "infinity" a number.
- Trusting a table too much. Values close to a can hide oscillation or jumps.
A note on the limit calculator: results found by sampling values near the point are numerical estimates, so confirm them algebraically when you can. Practice with a mix of substitution, factoring and conjugate problems, then compare your answers with the limit calculator.