Skip to content
  • Open the math solver
  • Ask the AI tutor
  • Find an AP course
  • Create a quiz
  • Open the calculator
  • Graphing Calculator
  • Browse all calculators
  • Read math guides
↑ ↓Enter to open · Esc to close
Solve a problem

Calculus

Limits in Calculus: A Practical Guide

By MathSolver Pro Editorial Team · Published

A limit describes the value a function approaches as its input approaches some number, whether or not the function actually reaches that value. Limits are the foundation of derivatives, integrals and infinite series, so evaluating them confidently is the first real skill of calculus.

The idea of a limit

Consider f(x)=x2−9x−3f(x) = \frac{x^2 - 9}{x - 3}. At x=3x = 3 the formula gives 00\frac{0}{0}, so f(3)f(3) is undefined. Yet if you evaluate ff at 2.9, 2.99, 3.01 and 3.1, you get 5.9, 5.99, 6.01 and 6.1. The outputs close in on 6. We say the limit of f(x)f(x) as xx approaches 3 is 6, and write:

lim⁡x→3x2−9x−3=6\lim_{x \to 3} \frac{x^2 - 9}{x - 3} = 6

The value of the function at the point itself is irrelevant to the limit. Only the behaviour nearby matters. Graphically, the graph of ff is the line y=x+3y = x + 3 with a hole at (3,6)(3, 6), and the limit is the height of the hole.

Informally, lim⁡x→af(x)=L\lim_{x \to a} f(x) = L means that f(x)f(x) can be made as close as you like to LL by taking xx close enough to aa, but not equal to it. The precise version of that sentence, the epsilon-delta definition, turns this into a statement that can be proved.

Method 1: direct substitution

Polynomials, rational functions where the denominator is not zero, roots, exponentials, logarithms and trig functions are continuous on their domains. For continuous functions, the limit is simply the function's value, so substitute.

For example, lim⁡x→2(x2+3x)=4+6=10\lim_{x \to 2}(x^2 + 3x) = 4 + 6 = 10, and lim⁡x→0cos⁡xx+1=11=1\lim_{x \to 0}\frac{\cos x}{x + 1} = \frac{1}{1} = 1. Always try substitution first. If it gives a real number, you are done. If it gives a nonzero number over zero, the limit is infinite or does not exist. Only 00\frac{0}{0} and similar indeterminate forms need more work.

Method 2: factor and cancel

If substitution gives 00\frac{0}{0} for a rational function, the numerator and denominator share a factor of (x−a)(x - a). Factor both, cancel, and substitute again.

Example 1: lim⁡x→3x2−9x−3\lim_{x \to 3}\frac{x^2 - 9}{x - 3}

  1. Substitution gives 00\frac{0}{0}.
  2. Factor: (x−3)(x+3)x−3=x+3\frac{(x - 3)(x + 3)}{x - 3} = x + 3 for x≠3x \ne 3.
  3. Substitute into the simplified form: 3+3=63 + 3 = 6.

Example 2: lim⁡x→1x2+2x−3x2−1\lim_{x \to 1}\frac{x^2 + 2x - 3}{x^2 - 1}

  1. Factor: (x+3)(x−1)(x+1)(x−1)=x+3x+1\frac{(x + 3)(x - 1)}{(x + 1)(x - 1)} = \frac{x + 3}{x + 1} for x≠1x \ne 1.
  2. Substitute: 42=2\frac{4}{2} = 2.

Cancelling is allowed because the limit never uses the value at x=ax = a itself. The factoring guide covers the techniques you need here.

Method 3: multiply by the conjugate

When a square root causes the 00\frac{0}{0}, multiply the numerator and denominator by the conjugate expression, which removes the root through the difference of squares.

Example 3: lim⁡x→0x+4−2x\lim_{x \to 0}\frac{\sqrt{x + 4} - 2}{x}

  1. Multiply by x+4+2x+4+2\frac{\sqrt{x + 4} + 2}{\sqrt{x + 4} + 2}.
  2. The numerator becomes (x+4)−4=x(x + 4) - 4 = x, so the expression is xx(x+4+2)=1x+4+2\frac{x}{x(\sqrt{x + 4} + 2)} = \frac{1}{\sqrt{x + 4} + 2}.
  3. Substitute: 12+2=14\frac{1}{2 + 2} = \frac{1}{4}.

One-sided limits and when a limit does not exist

A one-sided limit looks at inputs from only one direction: x→a−x \to a^- from the left and x→a+x \to a^+ from the right. The two-sided limit exists only when both one-sided limits exist and are equal.

For f(x)=∣x∣xf(x) = \frac{|x|}{x}, every positive input gives 1 and every negative input gives −1-1. So lim⁡x→0+f(x)=1\lim_{x \to 0^+} f(x) = 1 and lim⁡x→0−f(x)=−1\lim_{x \to 0^-} f(x) = -1. They disagree, so lim⁡x→0f(x)\lim_{x \to 0} f(x) does not exist. Piecewise functions are the most common source of this behaviour, so always check both sides at a boundary between pieces.

A limit can also fail to exist because the function oscillates. As x→0x \to 0, sin⁡1x\sin\frac{1}{x} swings between −1-1 and 1 infinitely often and settles on no value.

Infinite limits and limits at infinity

If a function grows without bound near aa, we write the limit as ∞\infty, as in lim⁡x→01x2=∞\lim_{x \to 0}\frac{1}{x^2} = \infty. Strictly the limit does not exist as a number, but the notation records how it fails, and it signals a vertical asymptote at x=ax = a.

Limits as x→∞x \to \infty describe long-run behaviour and horizontal asymptotes. For rational functions, divide every term by the highest power of xx in the denominator:

lim⁡x→∞3x2+25x2−x=lim⁡x→∞3+2x25−1x=35\lim_{x \to \infty}\frac{3x^2 + 2}{5x^2 - x} = \lim_{x \to \infty}\frac{3 + \frac{2}{x^2}}{5 - \frac{1}{x}} = \frac{3}{5}

If the denominator has the higher degree, the limit is 0; for instance lim⁡x→∞2x+1x2=0\lim_{x \to \infty}\frac{2x + 1}{x^2} = 0. If the numerator has the higher degree, the function grows without bound. One famous limit at infinity defines a constant: lim⁡n→∞(1+1n)n=e≈2.71828\lim_{n \to \infty}\left(1 + \frac{1}{n}\right)^n = e \approx 2.71828.

Special trigonometric limits and the squeeze theorem

Two limits underpin all the trigonometric derivatives:

lim⁡x→0sin⁡xx=1,lim⁡x→01−cos⁡xx=0\lim_{x \to 0}\frac{\sin x}{x} = 1, \qquad \lim_{x \to 0}\frac{1 - \cos x}{x} = 0

Substitution gives 00\frac{0}{0} in both, and algebra alone cannot remove it. Numerically, sin⁡0.10.1≈0.99833\frac{\sin 0.1}{0.1} \approx 0.99833 and sin⁡0.010.01≈0.99998\frac{\sin 0.01}{0.01} \approx 0.99998, which suggests the answer, and a geometric argument with the squeeze theorem proves it. The angle must be in radians.

The squeeze theorem says that if g(x)≤f(x)≤h(x)g(x) \le f(x) \le h(x) near aa and both gg and hh approach LL, then ff approaches LL too. For example, −x2≤x2sin⁡1x≤x2-x^2 \le x^2\sin\frac{1}{x} \le x^2, and both bounds approach 0, so lim⁡x→0x2sin⁡1x=0\lim_{x \to 0} x^2\sin\frac{1}{x} = 0 even though sin⁡1x\sin\frac{1}{x} alone has no limit.

L'Hopital's rule

When a limit has the form 00\frac{0}{0} or ∞∞\frac{\infty}{\infty}, and the functions are differentiable near the point, you may replace the numerator and denominator by their derivatives: lim⁡fg=lim⁡f′g′\lim\frac{f}{g} = \lim\frac{f'}{g'}, provided the new limit exists.

Example 4: two L'Hopital limits

  1. lim⁡x→0ex−1x\lim_{x \to 0}\frac{e^x - 1}{x} is 00\frac{0}{0}; differentiate top and bottom: lim⁡x→0ex1=1\lim_{x \to 0}\frac{e^x}{1} = 1.
  2. lim⁡x→01−cos⁡xx2\lim_{x \to 0}\frac{1 - \cos x}{x^2} is 00\frac{0}{0}; one application gives sin⁡x2x\frac{\sin x}{2x}, still 00\frac{0}{0}; a second gives cos⁡x2→12\frac{\cos x}{2} \to \frac{1}{2}.

Differentiate the numerator and denominator separately. L'Hopital's rule is not the quotient rule, and it only applies to indeterminate forms.

Limits, continuity and derivatives

A function is continuous at aa when lim⁡x→af(x)=f(a)\lim_{x \to a} f(x) = f(a): the limit exists, the function is defined there, and the two agree. The derivative itself is a limit, f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x) = \lim_{h \to 0}\frac{f(x + h) - f(x)}{h}, which always starts as 00\frac{0}{0}; see what is a derivative. Integrals and series convergence are defined through limits as well.

The limit calculator evaluates one-sided and two-sided limits, including limits at infinity, and shows which method it used. For checking a limit visually, the graphing calculator lets you zoom in on the point.

The limit laws

Limits behave well with arithmetic. If lim⁡f(x)\lim f(x) and lim⁡g(x)\lim g(x) both exist, then the limit of the sum is the sum of the limits, the limit of the product is the product of the limits, and the limit of the quotient is the quotient of the limits as long as the denominator's limit is not zero. Constant multiples and powers pass through in the same way. These laws are why direct substitution works for continuous functions: a polynomial is built from sums and products of xx and constants, so its limit is built the same way.

The laws need both individual limits to exist. The limit of xsin⁡1xx\sin\frac{1}{x} at 0 is 0, but you cannot get that by multiplying limits, because sin⁡1x\sin\frac{1}{x} has no limit there. Cases like that need the squeeze theorem instead.

A strategy that works for most problems

  1. Substitute. A real number is the answer.
  2. Nonzero over zero: check the sign from each side to decide between ∞\infty, −∞-\infty or no limit.
  3. Zero over zero with polynomials: factor and cancel.
  4. Zero over zero with square roots: multiply by the conjugate.
  5. Zero over zero with trig functions: rewrite using sin⁡xx→1\frac{\sin x}{x} \to 1.
  6. Limits at infinity: divide by the highest power in the denominator.
  7. If algebra stalls, use L'Hopital's rule, or check numerically with values on both sides.

Practice with answers: lim⁡x→2x3−8x−2=12\lim_{x \to 2}\frac{x^3 - 8}{x - 2} = 12, by factoring the difference of cubes. lim⁡x→0sin⁡3xx=3\lim_{x \to 0}\frac{\sin 3x}{x} = 3, by writing it as 3⋅sin⁡3x3x3\cdot\frac{\sin 3x}{3x}. lim⁡x→∞4x−72x+9=2\lim_{x \to \infty}\frac{4x - 7}{2x + 9} = 2, by dividing through by xx.

Frequently asked questions

Can a limit exist where the function is undefined?

Yes. The limit depends only on values near the point. x2−9x−3\frac{x^2 - 9}{x - 3} is undefined at 3, but its limit there is 6.

Does 0/0 mean the limit is 0 or does not exist?

Neither. 00\frac{0}{0} is an indeterminate form: the limit could be any number, infinite or nonexistent. It is a signal to simplify, rationalise or use L'Hopital's rule before deciding.

How do I show a limit does not exist?

Show that the two one-sided limits differ, that the function grows without bound, or that it oscillates without settling. Finding two sequences of inputs approaching the point with different output limits is a rigorous way to do it.

Why must sin x / x use radians?

The limit equals 1 only when xx is measured in radians. In degrees, sin⁡x∘x\frac{\sin x^\circ}{x} approaches π180\frac{\pi}{180}, which is why calculus formulas for trig functions all assume radians.

When a limit equals infinity, does the limit exist?

Technically, an infinite limit is one way of not existing, because infinity is not a real number. Writing ∞\infty is still useful, though, because it says the function grows without bound in a particular direction, which tells you the graph has a vertical asymptote there rather than a jump or an oscillation.

MathSolver Pro Editorial Team

Math content and review

Our editorial team writes every guide to explain the reasoning behind each method, not just the answer. Each worked example is checked against the site's own solver engines and automated tests before it is published, and articles are revised whenever a method or an exam format changes.