What is a limit?
Limits are the foundation of calculus. Both the derivative and the integral are defined as limits. A limit asks what value f(x) is heading toward as x approaches a particular point, from the left, from the right or both.
This tool uses three strategies in order: direct substitution, L’Hôpital’s rule for 0/0 forms, and a numerical check. It labels the result so you know how reliable it is.
How the limit calculator solves a limit
L’Hôpital’s rule: if f(x)/g(x) is 0/0, then lim f/g = lim f′/g′ when the right side exists.
How to use the limit calculator
- Type the function f(x). Use x, ^, /, sin, cos, e^x, ln and sqrt.
- Type the value x approaches. Use inf or −inf for infinity.
- Choose both sides, left or right.
- Read the limit in the answer and the method in the steps.
- Check the answer against a graph if possible.
Limit examples
Example 1: A removable hole
Find the limit of (x² − 1)/(x − 1) as x → 1. Substituting gives 0/0. Differentiate the top and bottom: 2x and 1. At x = 1 that is 2/1 = 2. You can also factor: (x − 1)(x + 1)/(x − 1) = x + 1, which is 2 at x = 1.
Example 2: A famous limit
Find the limit of sin(x)/x as x → 0. Substituting gives 0/0. The derivatives of the top and bottom are cos(x) and 1. At x = 0 that is 1/1 = 1.
Example 3: Repeated L’Hôpital
Find the limit of (1 − cos x)/x² as x → 0. First pass: sin x over 2x, which is still 0/0. Second pass: cos x over 2, which is 1/2 at x = 0. The limit is 1/2.
Example 4: Infinity
Find the limit of (2x² + 1)/(x² − 3) as x → ∞. For large x, the values are 2.0000… and settle near 2. The limit is 2. This is a numerical estimate, and it agrees with the rule that the limit is the ratio of the leading coefficients.
Types of limits the calculator handles
| Type | Example | Result |
|---|---|---|
| Two-sided limit at a point | (x² − 1)/(x − 1) as x → 1 | 2 |
| One-sided limit | 1/x as x → 0 from the right | +∞ |
| Limit at infinity | (3x + 1)/(x − 2) as x → inf | 3 |
| Infinite limit | 1/x² as x → 0 | +∞ |
| A limit that does not exist | 1/x as x → 0 from both sides | the sides disagree |
A limit at infinity asks where the function settles as x grows. An infinite limit asks whether the function itself grows without bound near a point. They sound alike but answer different questions.
Why limits matter
Limits are how calculus defines a derivative: the slope of a curve is the limit of the slope of a short line as its length shrinks to zero. You can test this here with (f(x + h) − f(x))/h written out for a specific x. The derivative calculator does it with rules instead, and limits explained covers the ideas step by step.
Tips
- Use brackets around the top and the bottom of a fraction.
- Try direct substitution by hand first.
- For one-sided limits, choose Left or Right.
- Functions such as sin(1/x) have no limit at 0, so expect a does-not-exist message.
- See limits explained for the ideas and techniques.
Common mistakes
- Thinking the limit equals f(a). The function may not even be defined there.
- Using L’Hôpital’s rule when the form is not 0/0 or ∞/∞.
- Ignoring one-sided differences.
- Trusting a numerical estimate without checking.
Real-life uses
Limits describe instant speed, the slope of a curve, the area under a graph, the behavior of a function for very large inputs, and how a series settles. Engineers use them to model systems near a boundary. In every calculus course, limits lead to the derivative and the integral. Try the derivative calculator to see how a limit becomes a slope.