# Limit Calculator

Source: https://calcsolve.org/limit-calculator

Find limits as x approaches a number or infinity. Type the function and set where x approaches, or write it in one line like lim x->2 (x^2-4)/(x-2).

## Start by substituting

The first move for any limit is direct substitution. If the function is continuous at the point and you get a number, that number is the limit. If you get 0/0 or ∞/∞, the form is indeterminate and you need another method.

## Techniques when substitution fails

| Situation | Technique | Example |
| --- | --- | --- |
| 0/0 with polynomials | Factor and cancel | lim x→2 (x² − 4)/(x − 2) = 4 |
| 0/0 or ∞/∞ with differentiable functions | L'Hôpital's rule | lim x→0 (1 − cos x)/x² = ½ |
| x → ∞ with a rational function | Compare leading terms | lim (3x² + 1)/(2x² − x) = 3/2 |
| Roots in a fraction | Multiply by the conjugate | lim x→0 (√(x + 1) − 1)/x = ½ |
| Standard limits | Memorise | lim x→0 sin x / x = 1 |

## Worked example: factor and cancel

### lim x→2 (x² − 4)/(x − 2)

1. Substituting x = 2 gives 0/0, so the form is indeterminate.
2. Factor the numerator: (x − 2)(x + 2)/(x − 2).
3. Cancel x − 2 to get x + 2.
4. Substitute x = 2: 4.

**Answer:** 4

## Worked example: L'Hôpital's rule

### lim x→0 (1 − cos x)/x²

1. At x = 0 this is 0/0.
2. Differentiate top and bottom: sin x / (2x). Still 0/0.
3. Differentiate again: cos x / 2.
4. At x = 0 this is 1/2.

**Answer:** 1/2

## One-sided limits and when a limit does not exist

For 1/x, the limit as x approaches 0 from the right is +∞ and from the left is −∞. The two sides disagree, so the two-sided limit does not exist (DNE).

A two-sided limit exists only when both one-sided limits exist and are equal. Choose “from the left” or “from the right” in the direction option to see each side.

## Limits at infinity

For a rational function, divide top and bottom by the highest power of x. In (3x² + 1)/(2x² − x) both degrees are 2, so the limit is the ratio of leading coefficients, 3/2. If the top has the higher degree the limit is infinite, and if the bottom has the higher degree it is 0.

## The number e as a limit

lim x→∞ of (1 + 1/x)ˣ equals e ≈ 2.71828. This is the definition of e used in compound interest, and the value table under the answer shows how the expression creeps up towards it.

## Frequently asked questions

### How do I find a one-sided limit?

Pick “from the left” or “from the right” in the direction option.

### What is an indeterminate form?

Expressions like 0/0, ∞/∞, 0·∞, ∞ − ∞, 1^∞ and 0⁰, whose value cannot be decided without further work.

### Can a limit exist where the function is undefined?

Yes. (x² − 4)/(x − 2) is undefined at x = 2 but its limit there is 4.
