Introduction

A limit describes what f(x)f(x) approaches as xx approaches a point, without caring what happens at the point itself. Continuity, derivatives and definite integrals are all defined through limits, and in computer science limits compare growth rates of running times. The tasks are to evaluate a limit (including an indeterminate form), decide whether a limit exists from one-sided behaviour, or pick a constant that makes a limit take a given value.

Prerequisites

None within this subject. Algebra, the graphs of the elementary functions, and the derivatives of xnx^n, sin⁡x\sin x, cos⁡x\cos x, exe^x and ln⁡x\ln x are assumed.

Core concepts

Definition

Let ff be defined on an open interval around aa, except possibly at aa. Then lim⁡x→af(x)=L\lim_{x \to a} f(x) = L means

∀ε>0 ∃δ>0:0<∣x−a∣<δ  ⟹  ∣f(x)−L∣<ε.\forall \varepsilon > 0\ \exists \delta > 0 : \quad 0 < |x - a| < \delta \implies |f(x) - L| < \varepsilon .

The condition 0<∣x−a∣0 < |x - a| excludes x=ax = a: the value f(a)f(a), or whether f(a)f(a) is defined at all, has no effect on the limit. A limit, when it exists, is unique.

Variants use the same pattern. lim⁡x→∞f(x)=L\lim_{x \to \infty} f(x) = L means ∣f(x)−L∣<ε|f(x) - L| < \varepsilon for all sufficiently large xx. lim⁡x→af(x)=∞\lim_{x \to a} f(x) = \infty means f(x)f(x) exceeds any bound MM once xx is close enough to aa; such a limit "does not exist" as a real number, but the notation records how it fails.

Limit versus value. lim⁡x→af(x)\lim_{x \to a} f(x) and f(a)f(a) are different objects. They agree exactly when ff is continuous at aa, which is the subject of Continuity and Differentiability.

One-sided limits

The left limit lim⁡x→a−f(x)\lim_{x \to a^-} f(x) uses only x<ax < a; the right limit lim⁡x→a+f(x)\lim_{x \to a^+} f(x) uses only x>ax > a. The two-sided limit exists if and only if both one-sided limits exist and are equal. Piecewise definitions, ∣x∣|x|, ⌊x⌋\lfloor x \rfloor and x\sqrt{x} at 0 call for one-sided limits.

Left and right limits; jump versus removable behaviour
Figure 1. Left: f(x)=xf(x) = x for x<1x < 1 and f(x)=x+1f(x) = x + 1 for x≥1x \ge 1 jumps at x=1x = 1: the left limit is 1 and the right limit is 2, so the limit does not exist. Right: g(x)=(x2−1)/(x−1)g(x) = (x^2 - 1)/(x - 1) for x≠1x \ne 1, with g(1)=3g(1) = 3, has a hole at (1,2)(1, 2); its limit at 1 is 2 whatever the value of g(1)g(1).

Limit laws

If lim⁡f=L\lim f = L and lim⁡g=M\lim g = M (both finite, same approach x→ax \to a), then the limits of f±gf \pm g, fgfg and cfcf are L±ML \pm M, LMLM and cLcL, and lim⁡f/g=L/M\lim f/g = L/M provided M≠0M \ne 0. If hh is continuous at LL, then lim⁡h(f(x))=h(L)\lim h(f(x)) = h(L); this is what lets you move a limit inside  \sqrt{\ }, ln⁡\ln or e(⋅)e^{(\cdot)}.

Squeeze theorem. If g(x)≤f(x)≤h(x)g(x) \le f(x) \le h(x) near aa and lim⁡g=lim⁡h=L\lim g = \lim h = L, then lim⁡f=L\lim f = L. Standard use: ∣xsin⁡(1/x)∣≤∣x∣|x \sin(1/x)| \le |x|, so xsin⁡(1/x)→0x \sin(1/x) \to 0 as x→0x \to 0, although sin⁡(1/x)\sin(1/x) itself has no limit there.

Standard limits

As x→0x \to 0:

LimitValue
sin⁡xx\dfrac{\sin x}{x}, tan⁡xx\dfrac{\tan x}{x}1 (xx in radians)
1−cos⁡xx2\dfrac{1 - \cos x}{x^2}1/21/2
ex−1x\dfrac{e^x - 1}{x}, ln⁡(1+x)x\dfrac{\ln(1 + x)}{x}1
ax−1x\dfrac{a^x - 1}{x} (a>0a > 0)ln⁡a\ln a
(1+x)1/x(1 + x)^{1/x}ee

Also lim⁡x→∞(1+k/x)x=ek\lim_{x \to \infty}(1 + k/x)^x = e^k and lim⁡x→axn−anx−a=nan−1\lim_{x \to a} \dfrac{x^n - a^n}{x - a} = n a^{n-1}.

Indeterminate forms

When the limit laws give 0/00/0, ∞/∞\infty/\infty, 0⋅∞0 \cdot \infty, ∞−∞\infty - \infty, 000^0, 1∞1^\infty or ∞0\infty^0, the answer depends on how fast each part moves, and more work is needed. The tools, roughly in order of preference:

  1. Algebra: factor and cancel, rationalise with a conjugate, divide by the highest power of xx.
  2. Standard limits (the Standard limits table), after rewriting.
  3. Series expansions of the standard functions.
  4. L'Hôpital's rule.

For the three exponent forms, write fg=egln⁡ff^g = e^{g \ln f} and find the limit of gln⁡fg \ln f, which is a 0⋅∞0 \cdot \infty form.

L'Hôpital's rule

Suppose ff and gg are differentiable near aa (except possibly at aa), g′(x)≠0g'(x) \ne 0 near aa, and f/gf/g is of the form 0/00/0 or ∞/∞\infty/\infty at aa. If lim⁡f′(x)/g′(x)\lim f'(x)/g'(x) exists (finite, +∞+\infty or −∞-\infty), then lim⁡f(x)/g(x)\lim f(x)/g(x) equals it. The same holds for one-sided limits and for x→±∞x \to \pm\infty.

The rule differentiates numerator and denominator separately; it is not the quotient rule. It only works in one direction: if lim⁡f′/g′\lim f'/g' does not exist, nothing follows about lim⁡f/g\lim f/g (Example 9).

The 1∞1^\infty shortcut

If f(x)→1f(x) \to 1 and g(x)→∞g(x) \to \infty, then

lim⁡f(x)g(x)=elim⁡g(x) (f(x)−1),\lim f(x)^{g(x)} = e^{\lim g(x)\,(f(x) - 1)} ,

because ln⁡f=ln⁡(1+(f−1))≈f−1\ln f = \ln(1 + (f - 1)) \approx f - 1 when ff is near 1. For instance (1+2/x)x→e2(1 + 2/x)^x \to e^{2}.

Series expansions near 0

ex=1+x+x22+x36+⋯ ,sin⁡x=x−x36+⋯ ,cos⁡x=1−x22+x424−⋯ ,e^x = 1 + x + \frac{x^2}{2} + \frac{x^3}{6} + \cdots, \quad \sin x = x - \frac{x^3}{6} + \cdots, \quad \cos x = 1 - \frac{x^2}{2} + \frac{x^4}{24} - \cdots,
ln⁡(1+x)=x−x22+x33−⋯ ,(1+x)k=1+kx+k(k−1)2x2+⋯ .\ln(1 + x) = x - \frac{x^2}{2} + \frac{x^3}{3} - \cdots, \qquad (1 + x)^k = 1 + kx + \frac{k(k-1)}{2}x^2 + \cdots .

As x→0x\to0, expand numerator and denominator far enough to expose their leading nonzero powers and coefficients. Equal powers give the ratio of coefficients; a higher numerator power gives 0. A lower numerator power requires checking one-sided signs: the result may be +∞+\infty, −∞-\infty, or no two-sided limit.

Growth rates at infinity

As x→∞x \to \infty, for any constants p>0p > 0 and a>1a > 1:

ln⁡xxp→0,xpax→0,axx!→0 (x an integer),x!xx→0.\frac{\ln x}{x^p} \to 0, \qquad \frac{x^p}{a^x} \to 0, \qquad \frac{a^x}{x!} \to 0 \ (x \text{ an integer}), \qquad \frac{x!}{x^x} \to 0 .

So ln⁡x≪xp≪ax≪x!≪xx\ln x \ll x^p \ll a^x \ll x! \ll x^x. A rational function behaves like the ratio of its leading terms: lim⁡x→∞(2x2+3x)/(5x2−1)=2/5\lim_{x \to \infty} (2x^2 + 3x)/(5x^2 - 1) = 2/5. These facts are the limit form of the comparisons in Asymptotic Notation: if f(n)/g(n)→0f(n)/g(n) \to 0 then f=o(g)f = o(g); if the ratio tends to a positive constant then f=Θ(g)f = \Theta(g).

Worked examples

Example 1: a standard trigonometric limit

lim⁡x→0sin⁡3x5x=35lim⁡x→0sin⁡3x3x=35\lim_{x \to 0} \dfrac{\sin 3x}{5x} = \dfrac{3}{5} \lim_{x \to 0} \dfrac{\sin 3x}{3x} = \dfrac{3}{5}.

Example 2: half-angle

1−cos⁡x=2sin⁡2(x/2)1 - \cos x = 2\sin^2(x/2), so 1−cos⁡xx2=12(sin⁡(x/2)x/2)2→12\dfrac{1 - \cos x}{x^2} = \dfrac{1}{2}\left(\dfrac{\sin(x/2)}{x/2}\right)^2 \to \dfrac{1}{2}.

Example 3: a 1∞1^\infty form

lim⁡x→∞(1+2/x)x=elim⁡x⋅(2/x)=e2\lim_{x \to \infty}(1 + 2/x)^x = e^{\lim x \cdot (2/x)} = e^2. Similarly lim⁡x→0(1+sin⁡x)1/x=elim⁡(sin⁡x)/x=e\lim_{x \to 0}(1 + \sin x)^{1/x} = e^{\lim (\sin x)/x} = e.

Example 4: L'Hôpital twice, or a series

lim⁡x→0ex−1−xx2\lim_{x \to 0} \dfrac{e^x - 1 - x}{x^2} is 0/00/0. L'Hôpital gives ex−12x\dfrac{e^x - 1}{2x}, still 0/00/0; once more gives ex2→12\dfrac{e^x}{2} \to \dfrac{1}{2}. With the series: the numerator is x2/2+x3/6+⋯x^2/2 + x^3/6 + \cdots, so the ratio tends to 1/21/2.

Example 5: 0⋅∞0 \cdot \infty and 000^0

lim⁡x→0+xln⁡x=lim⁡ln⁡x1/x\lim_{x \to 0^+} x \ln x = \lim \dfrac{\ln x}{1/x}, an ∞/∞\infty/\infty form; L'Hôpital gives 1/x−1/x2=−x→0\dfrac{1/x}{-1/x^2} = -x \to 0. Hence lim⁡x→0+xx=elim⁡xln⁡x=e0=1\lim_{x \to 0^+} x^x = e^{\lim x \ln x} = e^0 = 1.

Example 6: one-sided limits disagree

∣x∣/x|x|/x equals −1-1 for x<0x < 0 and 11 for x>0x > 0. The left limit at 0 is −1-1, the right limit is 11, so lim⁡x→0∣x∣/x\lim_{x \to 0} |x|/x does not exist.

Example 7: ∞−∞\infty - \infty by a conjugate

x2+x−x=(x2+x)−x2x2+x+x=xx2+x+x=11+1/x+1→12(x→∞).\sqrt{x^2 + x} - x = \frac{(x^2 + x) - x^2}{\sqrt{x^2 + x} + x} = \frac{x}{\sqrt{x^2 + x} + x} = \frac{1}{\sqrt{1 + 1/x} + 1} \to \frac{1}{2} \quad (x \to \infty).

Example 8: a cubic-order cancellation

lim⁡x→0x−sin⁡xx3\lim_{x \to 0} \dfrac{x - \sin x}{x^3}: the numerator is x−(x−x3/6+x5/120−⋯ )=x3/6−⋯x - (x - x^3/6 + x^5/120 - \cdots) = x^3/6 - \cdots, so the limit is 1/61/6. L'Hôpital three times gives the same: 1−cos⁡x3x2→sin⁡x6x→cos⁡x6→16\dfrac{1 - \cos x}{3x^2} \to \dfrac{\sin x}{6x} \to \dfrac{\cos x}{6} \to \dfrac{1}{6}.

Example 9: where L'Hôpital is silent

lim⁡x→∞x+sin⁡xx=lim⁡(1+sin⁡x/x)=1\lim_{x \to \infty} \dfrac{x + \sin x}{x} = \lim (1 + \sin x / x) = 1, since ∣sin⁡x/x∣≤1/x|\sin x/x| \le 1/x. The ratio of derivatives, 1+cos⁡x1 + \cos x, oscillates between 0 and 2 and has no limit, so the rule's hypothesis fails and it says nothing; the limit still exists.

Example 10: choosing a constant

For which kk does lim⁡x→0sin⁡2x+kxx3\lim_{x \to 0} \dfrac{\sin 2x + kx}{x^3} exist (finite)? The numerator is (2+k)x−8x36+⋯(2 + k)x - \dfrac{8x^3}{6} + \cdots. The xx term must vanish, so k=−2k = -2, and then the limit is −8/6=−4/3-8/6 = -4/3.

Important properties and observations

  • Changing ff at the single point aa never changes lim⁡x→af(x)\lim_{x \to a} f(x).
  • lim⁡(f+g)\lim (f + g) can exist when neither lim⁡f\lim f nor lim⁡g\lim g does: sin⁡(1/x)+(−sin⁡(1/x))=0\sin(1/x) + (-\sin(1/x)) = 0.
  • If g→0g \to 0 while f→c≠0f \to c \ne 0, then f/gf/g has no finite limit; check the sign on each side to decide between +∞+\infty, −∞-\infty and "does not exist".
  • If f≤gf \le g near aa and both limits exist, then lim⁡f≤lim⁡g\lim f \le \lim g (strict inequality is not preserved: x2>0x^2 > 0 for x≠0x \ne 0, yet lim⁡x→0x2=0\lim_{x \to 0} x^2 = 0).
  • Degrees decide rational limits at infinity: equal degrees give the ratio of leading coefficients, a larger numerator degree gives ±∞\pm\infty, a larger denominator degree gives 0.

GATE examination perspective

  • Evaluate a limit of an indeterminate form using standard limits, a series or L'Hôpital.
  • 1∞1^\infty and other exponent forms through elim⁡g(f−1)e^{\lim g(f - 1)} or elim⁡gln⁡fe^{\lim g \ln f}.
  • Existence from left and right limits of piecewise, absolute-value or floor functions.
  • Find a constant that makes a limit finite or equal to a given value (Example 10).
  • Growth-rate comparisons used in asymptotic analysis.
  • Trap: applying L'Hôpital to a form that is not 0/00/0 or ∞/∞\infty/\infty, or using the quotient rule instead of separate derivatives.
  • Trap: degrees instead of radians in sin⁡x/x→1\sin x / x \to 1.

Summary

Sources

  1. G. Strang, Calculus, 3rd ed., Wellesley-Cambridge Press, 2017: Sections 2.6 (Limits), 2.7 (Continuous Functions), 3.8 (The Mean Value Theorem and l'Hôpital's Rule) and 10.4 (The Taylor Series for e^x, sin x, and cos x). Free edition on MIT OpenCourseWare, (consulted 2026-11-11).

Next steps