Skip to content

Limits and Continuity

The limit of a function f(x)f(x) as xx approaches aa is the value that f(x)f(x) approaches, regardless Of whether f(a)f(a) is defined:

lim⁡x→af(x)=L\lim_{x \to a} f(x) = L

This means that as xx gets arbitrarily close to aa, f(x)f(x) gets arbitrarily close to LL.

A two-sided limit exists if and only if both one-sided limits exist and are equal:

lim⁡x→af(x)=L  ⟺  lim⁡x→a−f(x)=lim⁡x→a+f(x)=L\lim_{x \to a} f(x) = L \iff \lim_{x \to a^-} f(x) = \lim_{x \to a^+} f(x) = L

Example

Find lim⁡x→0∣x∣x\displaystyle\lim_{x \to 0} \frac{|x|}{x}.

lim⁡x→0−∣x∣x=lim⁡x→0−−xx=−1\lim_{x \to 0^-} \frac{|x|}{x} = \lim_{x \to 0^-} \frac{-x}{x} = -1lim⁡x→0+∣x∣x=lim⁡x→0+xx=1\lim_{x \to 0^+} \frac{|x|}{x} = \lim_{x \to 0^+} \frac{x}{x} = 1

Since the one-sided limits are not equal, the limit does not exist.

Example

Find lim⁡x→3∣x−3∣x−3\displaystyle\lim_{x \to 3} \frac{|x - 3|}{x - 3}.

For x<3x \lt 3: ∣x−3∣x−3=3−xx−3=−1\frac{|x-3|}{x-3} = \frac{3-x}{x-3} = -1.

For x>3x \gt 3: ∣x−3∣x−3=x−3x−3=1\frac{|x-3|}{x-3} = \frac{x-3}{x-3} = 1.

Left limit =−1= -1Right limit =1= 1. The limit does not exist.

LimitValue
lim⁡x→0sin⁡xx\displaystyle\lim_{x \to 0} \frac{\sin x}{x}11
lim⁡x→01−cos⁡xx\displaystyle\lim_{x \to 0} \frac{1 - \cos x}{x}00
lim⁡x→∞1x\displaystyle\lim_{x \to \infty} \frac{1}{x}00
lim⁡x→∞(1+1x)x\displaystyle\lim_{x \to \infty} \left(1 + \frac{1}{x}\right)^xee
lim⁡x→0ex−1x\displaystyle\lim_{x \to 0} \frac{e^x - 1}{x}11
lim⁡x→0ln⁡(1+x)x\displaystyle\lim_{x \to 0} \frac{\ln(1+x)}{x}11

Proof that lim⁡x→0sin⁡xx=1\displaystyle\lim_{x \to 0} \frac{\sin x}{x} = 1.

This is proved using the squeeze theorem and the geometric inequality sin⁡x<x<tan⁡x\sin x \lt x \lt \tan x for 0<x<π20 \lt x \lt \frac{\pi}{2}Which gives cos⁡x<sin⁡xx<1\cos x \lt \frac{\sin x}{x} \lt 1.

As x→0+x \to 0^+, cos⁡x→1\cos x \to 1So by the squeeze theorem, sin⁡xx→1\frac{\sin x}{x} \to 1. A similar Argument applies from the left. ■\blacksquare

Proof of the geometric inequality sin⁡x<x<tan⁡x\sin x \lt x \lt \tan x for 0<x<π20 \lt x \lt \frac{\pi}{2}. Consider a unit circle sector with angle xx. The area of triangle OAPOAP (with altitude sin⁡x\sin x) is 12sin⁡x\frac{1}{2}\sin xThe area of the sector is 12x\frac{1}{2}xAnd the area of triangle OATOAT (with Altitude tan⁡x\tan x) is 12tan⁡x\frac{1}{2}\tan x. Since the sector contains the first triangle and is Contained in the second, we get 12sin⁡x<12x<12tan⁡x\frac{1}{2}\sin x \lt \frac{1}{2}x \lt \frac{1}{2}\tan xHence sin⁡x<x<tan⁡x\sin x \lt x \lt \tan x. ■\blacksquare

Proof that lim⁡x→0ex−1x=1\displaystyle\lim_{x \to 0} \frac{e^x - 1}{x} = 1.

Let h=ex−1h = e^x - 1So ex=1+he^x = 1 + h and x=ln⁡(1+h)x = \ln(1+h). As x→0x \to 0, h→0h \to 0.

ex−1x=hln⁡(1+h)=1ln⁡(1+h)h\frac{e^x - 1}{x} = \frac{h}{\ln(1+h)} = \frac{1}{\frac{\ln(1+h)}{h}}

Since lim⁡h→0ln⁡(1+h)h=1\displaystyle\lim_{h \to 0} \frac{\ln(1+h)}{h} = 1 (which follows from lim⁡x→0ex−1x=1\displaystyle\lim_{x \to 0} \frac{e^x - 1}{x} = 1 and the fact that ln⁡\ln and exp⁡\exp are Inverses), we obtain the result. ■\blacksquare

Proof that lim⁡x→0ln⁡(1+x)x=1\displaystyle\lim_{x \to 0} \frac{\ln(1+x)}{x} = 1.

Let u=ln⁡(1+x)u = \ln(1+x)So eu=1+xe^u = 1 + x and x=eu−1x = e^u - 1. As x→0x \to 0, u→0u \to 0.

ln⁡(1+x)x=ueu−1=1eu−1u\frac{\ln(1+x)}{x} = \frac{u}{e^u - 1} = \frac{1}{\frac{e^u - 1}{u}}

Since lim⁡u→0eu−1u=1\displaystyle\lim_{u \to 0} \frac{e^u - 1}{u} = 1The result follows. ■\blacksquare

If g(x)≤f(x)≤h(x)g(x) \le f(x) \le h(x) for all xx near aa (except possibly at aa), and:

lim⁡x→ag(x)=lim⁡x→ah(x)=L\lim_{x \to a} g(x) = \lim_{x \to a} h(x) = L

Then lim⁡x→af(x)=L\displaystyle\lim_{x \to a} f(x) = L.

Intuition: If ff is sandwiched between two functions that both approach LLThen ff must also Approach LL. The squeeze theorem is particularly useful when ff oscillates or is otherwise hard to Evaluate directly.

Example

Show that lim⁡x→0x2sin⁡ ⁣(1x)=0\displaystyle\lim_{x \to 0} x^2 \sin\!\left(\frac{1}{x}\right) = 0.

Since −1≤sin⁡ ⁣(1x)≤1-1 \le \sin\!\left(\frac{1}{x}\right) \le 1We have −x2≤x2sin⁡ ⁣(1x)≤x2-x^2 \le x^2 \sin\!\left(\frac{1}{x}\right) \le x^2.

Both lim⁡x→0(−x2)=0\displaystyle\lim_{x \to 0}(-x^2) = 0 and lim⁡x→0x2=0\displaystyle\lim_{x \to 0} x^2 = 0.

By the squeeze theorem, lim⁡x→0x2sin⁡ ⁣(1x)=0\displaystyle\lim_{x \to 0} x^2 \sin\!\left(\frac{1}{x}\right) = 0.

Example

Show that lim⁡x→0xcos⁡ ⁣(1x)=0\displaystyle\lim_{x \to 0} x\cos\!\left(\frac{1}{x}\right) = 0.

Since −1≤cos⁡ ⁣(1x)≤1-1 \le \cos\!\left(\frac{1}{x}\right) \le 1We have −∣x∣≤xcos⁡ ⁣(1x)≤∣x∣-|x| \le x\cos\!\left(\frac{1}{x}\right) \le |x|.

Both lim⁡x→0(−∣x∣)=0\displaystyle\lim_{x \to 0}(-|x|) = 0 and lim⁡x→0∣x∣=0\displaystyle\lim_{x \to 0}|x| = 0.

By the squeeze theorem, the limit is 00.

Example

Show that lim⁡x→0x2esin⁡(1/x)=0\displaystyle\lim_{x \to 0} x^2 e^{\sin(1/x)} = 0.

Since −1≤sin⁡(1/x)≤1-1 \le \sin(1/x) \le 1We have e−1≤esin⁡(1/x)≤e1e^{-1} \le e^{\sin(1/x)} \le e^1.

Therefore:

E−1x2≤x2esin⁡(1/x)≤e⋅x2E^{-1} x^2 \le x^2 e^{\sin(1/x)} \le e \cdot x^2

Both lim⁡x→0e−1x2=0\displaystyle\lim_{x \to 0} e^{-1} x^2 = 0 and lim⁡x→0e⋅x2=0\displaystyle\lim_{x \to 0} e \cdot x^2 = 0.

By the squeeze theorem, the limit is 00.

If lim⁡x→af(x)=L\displaystyle\lim_{x \to a} f(x) = L and lim⁡x→ag(x)=M\displaystyle\lim_{x \to a} g(x) = MThen:

  1. lim⁡x→a[f(x)+g(x)]=L+M\displaystyle\lim_{x \to a} [f(x) + g(x)] = L + M
  2. lim⁡x→a[f(x)−g(x)]=L−M\displaystyle\lim_{x \to a} [f(x) - g(x)] = L - M
  3. lim⁡x→a[c⋅f(x)]=cL\displaystyle\lim_{x \to a} [c \cdot f(x)] = cL
  4. lim⁡x→a[f(x)⋅g(x)]=L⋅M\displaystyle\lim_{x \to a} [f(x) \cdot g(x)] = L \cdot M
  5. lim⁡x→af(x)g(x)=LM\displaystyle\lim_{x \to a} \frac{f(x)}{g(x)} = \frac{L}{M}Provided M≠0M \ne 0

Theorem (Limit of a power). If lim⁡x→af(x)=L\displaystyle\lim_{x \to a} f(x) = L and nn is a positive Integer, then lim⁡x→a[f(x)]n=Ln\displaystyle\lim_{x \to a} [f(x)]^n = L^n.

Theorem (Limit of a root). If lim⁡x→af(x)=L\displaystyle\lim_{x \to a} f(x) = L and nn is a positive Integer, and L≥0L \ge 0 when nn is even, then lim⁡x→af(x)n=Ln\displaystyle\lim_{x \to a} \sqrt[n]{f(x)} = \sqrt[n]{L}.

Proof of property 1 (sum rule). We need to show that for every ϵ>0\epsilon \gt 0There exists δ>0\delta \gt 0 such that ∣x−a∣<δ|x - a| \lt \delta implies ∣(f+g)(x)−(L+M)∣<ϵ|(f+g)(x) - (L+M)| \lt \epsilon.

Note that ∣(f+g)(x)−(L+M)∣=∣(f(x)−L)+(g(x)−M)∣≤∣f(x)−L∣+∣g(x)−M∣|(f+g)(x) - (L+M)| = |(f(x) - L) + (g(x) - M)| \le |f(x) - L| + |g(x) - M|.

Choose δ1\delta_1 so that ∣x−a∣<δ1|x-a| \lt \delta_1 implies ∣f(x)−L∣<ϵ/2|f(x)-L| \lt \epsilon/2. Choose δ2\delta_2 So that ∣x−a∣<δ2|x-a| \lt \delta_2 implies ∣g(x)−M∣<ϵ/2|g(x)-M| \lt \epsilon/2. Let δ=min⁡(δ1,δ2)\delta = \min(\delta_1, \delta_2). Then ∣x−a∣<δ|x-a| \lt \delta implies both bounds hold, so ∣(f+g)(x)−(L+M)∣<ϵ/2+ϵ/2=ϵ|(f+g)(x) - (L+M)| \lt \epsilon/2 + \epsilon/2 = \epsilon. ■\blacksquare

When a function is continuous at aaThe limit equals the function value:

lim⁡x→af(x)=f(a)\lim_{x \to a} f(x) = f(a)

For rational functions P(x)Q(x)\displaystyle\frac{P(x)}{Q(x)} where PP and QQ are polynomials:

  • If deg⁡P<deg⁡Q\deg P \lt \deg Q: lim⁡x→±∞P(x)Q(x)=0\displaystyle\lim_{x \to \pm\infty} \frac{P(x)}{Q(x)} = 0
  • If deg⁡P=deg⁡Q\deg P = \deg Q: \displaystyle\lim_{x \to \pm\infty} \frac{P(x)}{Q(x)} = \frac{\mathrm{leading coeff of P}{\mathrm{leading coeff of Q}
  • If deg⁡P>deg⁡Q\deg P \gt \deg Q: the limit is ±∞\pm\infty

Why this works. For large xxThe leading term dominates. Dividing numerator and denominator by The highest power of xx in the denominator, all lower-order terms vanish.

Example

Find lim⁡x→∞3x2−5x+27x2+x−1\displaystyle\lim_{x \to \infty} \frac{3x^2 - 5x + 2}{7x^2 + x - 1}.

Since both polynomials are degree 2, the limit equals the ratio of leading coefficients:

lim⁡x∞3x2−5x+27x2+x−1=37\lim_{x \infty} \frac{3x^2 - 5x + 2}{7x^2 + x - 1} = \frac{3}{7}

Example

Find lim⁡x→∞5x3−2x+14x2+3x\displaystyle\lim_{x \to \infty} \frac{5x^3 - 2x + 1}{4x^2 + 3x}.

Since deg⁡P=3>deg⁡Q=2\deg P = 3 \gt \deg Q = 2The limit is +∞+\infty.

Example

Find lim⁡x→−∞2x3+x2−55x3−3x+2\displaystyle\lim_{x \to -\infty} \frac{2x^3 + x^2 - 5}{5x^3 - 3x + 2}.

Both polynomials are degree 3. The limit equals the ratio of leading coefficients:

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

This confirms that the same shortcut works for x→−∞x \to -\infty when the degrees are equal.

When direct substitution yields 00\frac{0}{0}Algebraic manipulation is required.

Example

Find lim⁡x→2x2−4x−2\displaystyle\lim_{x \to 2} \frac{x^2 - 4}{x - 2}.

Factor the numerator:

lim⁡x→2x2−4x−2=lim⁡x→2(x−2)(x+2)x−2=lim⁡x→2(x+2)=4\lim_{x \to 2} \frac{x^2 - 4}{x - 2} = \lim_{x \to 2} \frac{(x-2)(x+2)}{x-2} = \lim_{x \to 2}(x + 2) = 4

Example

Find lim⁡x→1x3−1x−1\displaystyle\lim_{x \to 1} \frac{x^3 - 1}{x - 1}.

Factor using difference of cubes: x3−1=(x−1)(x2+x+1)x^3 - 1 = (x - 1)(x^2 + x + 1).

lim⁡x→1(x−1)(x2+x+1)x−1=lim⁡x→1(x2+x+1)=3\lim_{x \to 1} \frac{(x - 1)(x^2 + x + 1)}{x - 1} = \lim_{x \to 1}(x^2 + x + 1) = 3

Example

Find lim⁡x→1x4−1x2−1\displaystyle\lim_{x \to 1} \frac{x^4 - 1}{x^2 - 1}.

x4−1x2−1=(x2−1)(x2+1)x2−1=x2+1\frac{x^4 - 1}{x^2 - 1} = \frac{(x^2-1)(x^2+1)}{x^2 - 1} = x^2 + 1

For x≠±1x \ne \pm 1. Therefore:

lim⁡x→1x4−1x2−1=1+1=2\lim_{x \to 1} \frac{x^4 - 1}{x^2 - 1} = 1 + 1 = 2

For expressions involving radicals, multiply by the conjugate.

Example

Find lim⁡x→0x+4−2x\displaystyle\lim_{x \to 0} \frac{\sqrt{x+4} - 2}{x}.

Multiply numerator and denominator by the conjugate x+4+2\sqrt{x+4} + 2:

lim⁡x→0x+4−2x⋅x+4+2x+4+2=lim⁡x→0x+4−4x(x+4+2)=lim⁡x→0xx(x+4+2)=14\lim_{x \to 0} \frac{\sqrt{x+4} - 2}{x} \cdot \frac{\sqrt{x+4} + 2}{\sqrt{x+4} + 2} = \lim_{x \to 0} \frac{x + 4 - 4}{x(\sqrt{x+4} + 2)} = \lim_{x \to 0} \frac{x}{x(\sqrt{x+4} + 2)} = \frac{1}{4}

Example

Find lim⁡x→01+x−1−xx\displaystyle\lim_{x \to 0} \frac{\sqrt{1 + x} - \sqrt{1 - x}}{x}.

Multiply by 1+x+1−x1+x+1−x\frac{\sqrt{1+x} + \sqrt{1-x}}{\sqrt{1+x} + \sqrt{1-x}}:

=lim⁡x→0(1+x)−(1−x)x(1+x+1−x)=lim⁡x→02xx(1+x+1−x)=21+1=1= \lim_{x \to 0} \frac{(1 + x) - (1 - x)}{x(\sqrt{1+x} + \sqrt{1-x})} = \lim_{x \to 0} \frac{2x}{x(\sqrt{1+x} + \sqrt{1-x})} = \frac{2}{1 + 1} = 1

Example

Find lim⁡x→5x+4−3x−5\displaystyle\lim_{x \to 5} \frac{\sqrt{x+4} - 3}{x - 5}.

Multiply by the conjugate x+4+3\sqrt{x+4} + 3:

=lim⁡x→5x+4−9(x−5)(x+4+3)=lim⁡x→5x−5(x−5)(x+4+3)=19+3=16= \lim_{x \to 5} \frac{x + 4 - 9}{(x-5)(\sqrt{x+4} + 3)} = \lim_{x \to 5} \frac{x - 5}{(x-5)(\sqrt{x+4} + 3)} = \frac{1}{\sqrt{9} + 3} = \frac{1}{6}

Limits with Trigonometric Functions (CED BC)

Section titled “Limits with Trigonometric Functions (CED BC)”

Example

Find lim⁡x→01−cos⁡xx2\displaystyle\lim_{x \to 0} \frac{1 - \cos x}{x^2}.

Using the identity 1−cos⁡x=2sin⁡2x21 - \cos x = 2\sin^2\frac{x}{2}:

1−cos⁡xx2=2sin⁡2(x/2)x2=2sin⁡2(x/2)4(x/2)2=12(sin⁡(x/2)x/2)2→12\frac{1 - \cos x}{x^2} = \frac{2\sin^2(x/2)}{x^2} = \frac{2\sin^2(x/2)}{4(x/2)^2} = \frac{1}{2}\left(\frac{\sin(x/2)}{x/2}\right)^2 \to \frac{1}{2}

Example

Find lim⁡x→0tan⁡xx\displaystyle\lim_{x \to 0} \frac{\tan x}{x}.

tan⁡xx=sin⁡xxcos⁡x=sin⁡xx⋅1cos⁡x→1⋅1=1\frac{\tan x}{x} = \frac{\sin x}{x \cos x} = \frac{\sin x}{x} \cdot \frac{1}{\cos x} \to 1 \cdot 1 = 1

Example

Find lim⁡x→0sin⁡3xx\displaystyle\lim_{x \to 0} \frac{\sin 3x}{x}.

Rewrite to use the standard limit:

sin⁡3xx=3⋅sin⁡3x3x→3⋅1=3\frac{\sin 3x}{x} = 3 \cdot \frac{\sin 3x}{3x} \to 3 \cdot 1 = 3

When the limit involves a fraction within a fraction, combine the numerator into a single fraction First.

Example

Find lim⁡x→21x−12x−2\displaystyle\lim_{x \to 2} \frac{\frac{1}{x} - \frac{1}{2}}{x - 2}.

Combine the numerator:

1x−12x−2=2−x2xx−2=−(x−2)2x(x−2)=−12x\frac{\frac{1}{x} - \frac{1}{2}}{x - 2} = \frac{\frac{2 - x}{2x}}{x - 2} = \frac{-(x-2)}{2x(x-2)} = -\frac{1}{2x}

Therefore:

lim⁡x→21x−12x−2=−14\lim_{x \to 2} \frac{\frac{1}{x} - \frac{1}{2}}{x - 2} = -\frac{1}{4}

Formal Definition of a Limit (Epsilon-Delta)

Section titled “Formal Definition of a Limit (Epsilon-Delta)”

The precise definition: lim⁡x→af(x)=L\displaystyle\lim_{x \to a} f(x) = L means that for every ϵ>0\epsilon \gt 0There exists a δ>0\delta \gt 0 such that:

0<∣x−a∣<δ  ⟹  ∣f(x)−L∣<ϵ0 \lt |x - a| \lt \delta \implies |f(x) - L| \lt \epsilon

Intuition. Think of it as a game. Your opponent picks ϵ\epsilon (how close f(x)f(x) must be to LL). You must respond with δ\delta (how close xx must be to aa). If you can always win this Game, the limit exists.

Example

Prove that lim⁡x→3(2x−1)=5\displaystyle\lim_{x \to 3} (2x - 1) = 5.

We need to show that for every ϵ>0\epsilon \gt 0There exists δ>0\delta \gt 0 such that 0<∣x−3∣<δ  ⟹  ∣(2x−1)−5∣<ϵ0 \lt |x - 3| \lt \delta \implies |(2x-1) - 5| \lt \epsilon.

Working backwards: ∣(2x−1)−5∣=∣2x−6∣=2∣x−3∣|(2x-1) - 5| = |2x - 6| = 2|x - 3|.

We want 2∣x−3∣<ϵ2|x - 3| \lt \epsilonSo choose δ=ϵ2\delta = \frac{\epsilon}{2}.

Proof. Let ϵ>0\epsilon \gt 0. Choose δ=ϵ2\delta = \frac{\epsilon}{2}. Then:

0<∣x−3∣<δ  ⟹  ∣x−3∣<ϵ2  ⟹  2∣x−3∣<ϵ  ⟹  ∣(2x−1)−5∣<ϵ0 \lt |x - 3| \lt \delta \implies |x - 3| \lt \frac{\epsilon}{2} \implies 2|x - 3| \lt \epsilon \implies |(2x - 1) - 5| \lt \epsilon

Therefore, lim⁡x→3(2x−1)=5\displaystyle\lim_{x \to 3} (2x - 1) = 5. ■\blacksquare

Example

Prove that lim⁡x→2x2=4\displaystyle\lim_{x \to 2} x^2 = 4.

We need ∣x2−4∣<ϵ|x^2 - 4| \lt \epsilon whenever 0<∣x−2∣<δ0 \lt |x - 2| \lt \delta.

Note that ∣x2−4∣=∣x−2∣⋅∣x+2∣|x^2 - 4| = |x - 2| \cdot |x + 2|.

If we restrict δ≤1\delta \le 1Then ∣x−2∣<1|x - 2| \lt 1So 1<x<31 \lt x \lt 3 and ∣x+2∣<5|x + 2| \lt 5.

Thus ∣x2−4∣=∣x−2∣⋅∣x+2∣<5∣x−2∣|x^2 - 4| = |x - 2| \cdot |x + 2| \lt 5|x - 2|.

Choose δ=min⁡ ⁣(1,ϵ5)\delta = \min\!\left(1, \frac{\epsilon}{5}\right).

Proof. Let ϵ>0\epsilon \gt 0. Choose δ=min⁡ ⁣(1,ϵ5)\delta = \min\!\left(1, \frac{\epsilon}{5}\right). If 0<∣x−2∣<δ0 \lt |x - 2| \lt \deltaThen:

∣x2−4∣=∣x−2∣⋅∣x+2∣<δ⋅5≤ϵ5⋅5=ϵ|x^2 - 4| = |x - 2| \cdot |x + 2| \lt \delta \cdot 5 \le \frac{\epsilon}{5} \cdot 5 = \epsilon

Therefore, lim⁡x→2x2=4\displaystyle\lim_{x \to 2} x^2 = 4. ■\blacksquare

Example

Prove that lim⁡x→ax=a\displaystyle\lim_{x \to a} \sqrt{x} = \sqrt{a} for a>0a \gt 0.

We need ∣x−a∣<ϵ|\sqrt{x} - \sqrt{a}| \lt \epsilon whenever 0<∣x−a∣<δ0 \lt |x - a| \lt \delta.

Rationalise: ∣x−a∣=∣x−a∣x+a≤∣x−a∣a|\sqrt{x} - \sqrt{a}| = \frac{|x - a|}{\sqrt{x} + \sqrt{a}} \le \frac{|x - a|}{\sqrt{a}}.

We want ∣x−a∣a<ϵ\frac{|x - a|}{\sqrt{a}} \lt \epsilonSo ∣x−a∣<ϵa|x - a| \lt \epsilon\sqrt{a}.

Choose δ=min⁡(a,ϵa)\delta = \min(a, \epsilon\sqrt{a}). The condition δ≤a\delta \le a ensures x>0x \gt 0 so that x\sqrt{x} is defined.

Proof. Let ϵ>0\epsilon \gt 0. Choose δ=min⁡(a,ϵa)\delta = \min(a, \epsilon\sqrt{a}). If 0<∣x−a∣<δ0 \lt |x - a| \lt \deltaThen x>0x \gt 0 and:

∣x−a∣=∣x−a∣x+a≤∣x−a∣a<ϵaa=ϵ|\sqrt{x} - \sqrt{a}| = \frac{|x - a|}{\sqrt{x} + \sqrt{a}} \le \frac{|x - a|}{\sqrt{a}} \lt \frac{\epsilon\sqrt{a}}{\sqrt{a}} = \epsilon

Therefore, lim⁡x→ax=a\displaystyle\lim_{x \to a} \sqrt{x} = \sqrt{a}. ■\blacksquare

The general approach is:

  1. Start with ∣f(x)−L∣|f(x) - L| and try to bound it in terms of ∣x−a∣|x - a|.
  2. If ff involves products, use the “restrict delta” technique: bound each factor separately.
  3. If ff involves roots, rationalise and use the fact that x+a≥a\sqrt{x} + \sqrt{a} \ge \sqrt{a}.
  4. Choose \delta = \min(\mathrm{bound, \epsilon / \mathrm{constant) to handle both the restriction and the ϵ\epsilon requirement.

A function ff is continuous at aa if all three conditions hold:

  1. f(a)f(a) is defined
  2. lim⁡x→af(x)\displaystyle\lim_{x \to a} f(x) exists
  3. lim⁡x→af(x)=f(a)\displaystyle\lim_{x \to a} f(x) = f(a)

Theorem. Every polynomial function is continuous everywhere. Every rational function is Continuous on its domain.

Theorem (Continuity of compositions). If gg is continuous at aa and ff is continuous at g(a)g(a)Then f∘gf \circ g is continuous at aa.

This theorem justifies statements like ”x2+1\sqrt{x^2 + 1} is continuous everywhere” — x2+1x^2 + 1 is a Polynomial (continuous everywhere) and x\sqrt{x} is continuous at all positive values (and x2+1≥1>0x^2 + 1 \ge 1 \gt 0).

TypeDescriptionExample
RemovableLimit exists but f(a)f(a) is undefined or f(a)≠lim⁡x→af(x)f(a) \ne \lim_{x \to a} f(x)f(x)=x2−1x−1f(x) = \frac{x^2 - 1}{x - 1} at x=1x=1
Jump (Non-removable)One-sided limits exist but are not equalf(x)=⌊x⌋f(x) = \lfloor x \rfloor
Infinite (Non-removable)Function approaches ±∞\pm\inftyf(x)=1xf(x) = \frac{1}{x} at x=0x = 0
OscillatingFunction oscillates without approaching a single valuef(x)=sin⁡ ⁣(1x)f(x) = \sin\!\left(\frac{1}{x}\right) at x=0x=0

If ff is continuous on [a,b][a, b] and kk is any number between f(a)f(a) and f(b)f(b)Then there exists At least one c∈(a,b)c \in (a, b) such that f(c)=kf(c) = k.

Example

Show that f(x)=x3+x−1f(x) = x^3 + x - 1 has a root in (0,1)(0, 1).

f(0)=−1<0f(0) = -1 \lt 0 and f(1)=1>0f(1) = 1 \gt 0.

Since ff is continuous on [0,1][0, 1] and 00 is between f(0)f(0) and f(1)f(1)By the IVT there exists c∈(0,1)c \in (0, 1) such that f(c)=0f(c) = 0.

Application of IVT to bisection. The IVT motivates the bisection method for root-finding: if f(a)f(a) and f(b)f(b) have opposite signs, a root exists in (a,b)(a, b). Halving the interval and checking Signs converges to the root.

Example

Show that f(x)=ex−3−xf(x) = e^x - 3 - x has at least one root in (1,2)(1, 2).

f(1)=e−4≈−1.282<0f(1) = e - 4 \approx -1.282 \lt 0 and f(2)=e2−5≈2.389>0f(2) = e^2 - 5 \approx 2.389 \gt 0.

Since ff is continuous (as a sum of continuous functions) on [1,2][1, 2]By the IVT there exists c∈(1,2)c \in (1, 2) such that f(c)=0f(c) = 0. ■\blacksquare

Corollary of the IVT. If ff is continuous on [a,b][a, b] and f(a)⋅f(b)<0f(a) \cdot f(b) \lt 0Then ff has At least one zero in (a,b)(a, b).

If ff is continuous on a closed interval [a,b][a, b]Then ff attains both an absolute maximum and an Absolute minimum on [a,b][a, b].

:::caution The EVT requires continuity on a closed interval. The function f(x)=1xf(x) = \frac{1}{x} On (0,1)(0, 1) has no maximum, despite being continuous. :::

If ff is continuous on a closed interval [a,b][a, b]Then ff is bounded on [a,b][a, b] — that is, There exist real numbers mm and MM such that m≤f(x)≤Mm \le f(x) \le M for all x∈[a,b]x \in [a, b].

This follows directly from the EVT: the absolute minimum and maximum serve as the bounds.

If lim⁡x→a+f(x)=±∞\displaystyle\lim_{x \to a^+} f(x) = \pm\infty or lim⁡x→a−f(x)=±∞\displaystyle\lim_{x \to a^-} f(x) = \pm\inftyThen x=ax = a is a vertical asymptote.

For rational functions P(x)Q(x)\frac{P(x)}{Q(x)}Vertical asymptotes occur at zeros of Q(x)Q(x) that are Not also zeros of P(x)P(x) (after cancellation).

  • If lim⁡x→±∞f(x)=L\displaystyle\lim_{x \to \pm\infty} f(x) = LThen y=Ly = L is a horizontal asymptote.
  • A function can have at most two horizontal asymptotes (one as x→∞x \to \inftyOne as x→−∞x \to -\infty).

If deg⁡P=deg⁡Q+1\deg P = \deg Q + 1 in a rational function, perform polynomial long division. The quotient (excluding remainder) gives the slant asymptote.

Example

Find the asymptotes of f(x)=2x2+3x−1x+1\displaystyle f(x) = \frac{2x^2 + 3x - 1}{x + 1}.

Vertical asymptote: Set denominator to zero: x+1=0  ⟹  x=−1x + 1 = 0 \implies x = -1.

Slant asymptote: Perform long division:

2x2+3x−1x+1=2x+1−2x+1\frac{2x^2 + 3x - 1}{x + 1} = 2x + 1 - \frac{2}{x + 1}

The slant asymptote is y=2x+1y = 2x + 1.

Example

Find the horizontal asymptotes of f(x)=3exex+1\displaystyle f(x) = \frac{3e^x}{e^x + 1}.

As x→∞x \to \infty: Divide numerator and denominator by exe^x:

31+e−x→31+0=3\frac{3}{1 + e^{-x}} \to \frac{3}{1 + 0} = 3

As x→−∞x \to -\infty: Divide numerator and denominator by exe^x:

3exex+1→00+1=0\frac{3e^x}{e^x + 1} \to \frac{0}{0 + 1} = 0

Horizontal asymptotes: y=3y = 3 (as x→∞x \to \infty) and y=0y = 0 (as x→−∞x \to -\infty).

L”Hopital’s Rule (CED BC and AB Unit 1.15)

Section titled “L”Hopital’s Rule (CED BC and AB Unit 1.15)”

If lim⁡x→af(x)g(x)\displaystyle\lim_{x \to a} \frac{f(x)}{g(x)} produces the indeterminate form 00\frac{0}{0} or ±∞±∞\frac{\pm\infty}{\pm\infty}And ff and gg are differentiable near aa with g′(x)≠0g'(x) \ne 0 near aaThen:

lim⁡x→af(x)g(x)=lim⁡x→af′(x)g′(x)\lim_{x \to a} \frac{f(x)}{g(x)} = \lim_{x \to a} \frac{f'(x)}{g'(x)}

Provided the limit on the right exists.

When to use L’Hopital’s Rule. It applies ONLY to 00\frac{0}{0} or ±∞±∞\frac{\pm\infty}{\pm\infty} Forms. Using it on a determinate form (e.g., 35\frac{3}{5}) is an error.

When L’Hopital’s Rule fails. If the limit lim⁡x→af′(x)g′(x)\displaystyle\lim_{x \to a} \frac{f'(x)}{g'(x)} does Not exist, this does NOT mean the original limit does not exist. L’Hopital’s Rule only gives a Conclusion when the right-hand limit exists (or is ±∞\pm\infty).

Example

Find lim⁡x→0ex−1x\displaystyle\lim_{x \to 0} \frac{e^x - 1}{x}.

Direct substitution gives 00\frac{0}{0}. Apply L’Hopital’s Rule:

lim⁡x→0ex−1x=lim⁡x→0ex1=1\lim_{x \to 0} \frac{e^x - 1}{x} = \lim_{x \to 0} \frac{e^x}{1} = 1

Example

Find lim⁡x→01−cos⁡xx2\displaystyle\lim_{x \to 0} \frac{1 - \cos x}{x^2}.

Direct substitution gives 00\frac{0}{0}:

lim⁡x→01−cos⁡xx2=lim⁡x→0sin⁡x2x=lim⁡x→0cos⁡x2=12\lim_{x \to 0} \frac{1 - \cos x}{x^2} = \lim_{x \to 0} \frac{\sin x}{2x} = \lim_{x \to 0} \frac{\cos x}{2} = \frac{1}{2}

Note that we applied L’Hopital’s Rule twice, since the second attempt still gave 00\frac{0}{0}.

Example

Find lim⁡x→∞ln⁡xx\displaystyle\lim_{x \to \infty} \frac{\ln x}{\sqrt{x}}.

This is ∞∞\frac{\infty}{\infty}. Apply L’Hopital’s Rule:

lim⁡x→∞1/x1/(2x)=lim⁡x→∞2xx=lim⁡x→∞2x=0\lim_{x \to \infty} \frac{1/x}{1/(2\sqrt{x})} = \lim_{x \to \infty} \frac{2\sqrt{x}}{x} = \lim_{x \to \infty} \frac{2}{\sqrt{x}} = 0

Example

Find lim⁡x→0x−sin⁡xx3\displaystyle\lim_{x \to 0} \frac{x - \sin x}{x^3}.

Direct substitution gives 00\frac{0}{0}. Apply L’Hopital’s Rule three times:

lim⁡x→0x−sin⁡xx3=lim⁡x→01−cos⁡x3x2=lim⁡x→0sin⁡x6x=lim⁡x→0cos⁡x6=16\lim_{x \to 0} \frac{x - \sin x}{x^3} = \lim_{x \to 0} \frac{1 - \cos x}{3x^2} = \lim_{x \to 0} \frac{\sin x}{6x} = \lim_{x \to 0} \frac{\cos x}{6} = \frac{1}{6}

Example

Find lim⁡x→0+xln⁡x\displaystyle\lim_{x \to 0^+} x \ln x.

This has the form 0⋅(−∞)0 \cdot (-\infty)Which is indeterminate. Rewrite as a quotient:

Xln⁡x=ln⁡x1/xX \ln x = \frac{\ln x}{1/x}

Now it is −∞∞\frac{-\infty}{\infty}. Apply L’Hopital’s Rule:

lim⁡x→0+ln⁡x1/x=lim⁡x→0+1/x−1/x2=lim⁡x→0+(−x)=0\lim_{x \to 0^+} \frac{\ln x}{1/x} = \lim_{x \to 0^+} \frac{1/x}{-1/x^2} = \lim_{x \to 0^+} (-x) = 0

Example

Let f(x)={x2+1x<23x−1x≥2f(x) = \begin{cases} x^2 + 1 & x \lt 2 \\ 3x - 1 & x \ge 2 \end{cases}.

Find lim⁡x→2f(x)\displaystyle\lim_{x \to 2} f(x) and determine if ff is continuous at x=2x = 2.

Left-hand limit: lim⁡x→2−f(x)=lim⁡x→2−(x2+1)=5\displaystyle\lim_{x \to 2^-} f(x) = \lim_{x \to 2^-} (x^2 + 1) = 5.

Right-hand limit: lim⁡x→2+f(x)=lim⁡x→2+(3x−1)=5\displaystyle\lim_{x \to 2^+} f(x) = \lim_{x \to 2^+} (3x - 1) = 5.

Since both one-sided limits equal 5: lim⁡x→2f(x)=5\displaystyle\lim_{x \to 2} f(x) = 5.

Check continuity: f(2)=3(2)−1=5=lim⁡x→2f(x)f(2) = 3(2) - 1 = 5 = \lim_{x \to 2} f(x).

Therefore, ff is continuous at x=2x = 2.

Example

Let g(x)={x2−4x−2x≠2kx=2g(x) = \begin{cases} \frac{x^2 - 4}{x - 2} & x \neq 2 \\ k & x = 2 \end{cases}.

Find kk such that gg is continuous at x=2x = 2.

lim⁡x→2x2−4x−2=lim⁡x→2(x−2)(x+2)x−2=4\displaystyle\lim_{x \to 2} \frac{x^2 - 4}{x - 2} = \lim_{x \to 2} \frac{(x-2)(x+2)}{x-2} = 4.

For continuity: k=g(2)=4k = g(2) = 4.

Example

Let h(x)={x2+bx+1x≤02x+3x>0h(x) = \begin{cases} x^2 + bx + 1 & x \le 0 \\ 2x + 3 & x \gt 0 \end{cases}.

Find bb such that hh is continuous at x=0x = 0.

Left-hand limit: lim⁡x→0−h(x)=0+0+1=1\displaystyle\lim_{x \to 0^-} h(x) = 0 + 0 + 1 = 1.

Right-hand limit: lim⁡x→0+h(x)=3\displaystyle\lim_{x \to 0^+} h(x) = 3.

For continuity: 1=31 = 3Which is impossible. No value of bb makes hh continuous at x=0x = 0.

This example demonstrates that continuity at a junction point of a piecewise function is not always Achievable — on whether the one-sided limits can be made to agree.

  1. Confusing the value of a function at a point with its limit. The limit at aa does not depend on f(a)f(a) at all. A function can have a limit at a point where it is undefined.
  2. Assuming lim⁡x→af(x)g(x)=lim⁡x→af(x)lim⁡x→ag(x)\displaystyle\lim_{x \to a} \frac{f(x)}{g(x)} = \frac{\lim_{x \to a} f(x)}{\lim_{x \to a} g(x)} when the denominator limit is zero. This is invalid when the denominator limit is zero.
  3. Forgetting to check both one-sided limits for piecewise functions and absolute values.
  4. Misapplying L’Hopital’s Rule when the limit is not in indeterminate form. Always verify 00\frac{0}{0} or ±∞±∞\frac{\pm\infty}{\pm\infty} before applying.
  5. Claiming a limit exists when only one-sided limits are checked. Both must agree.
  6. Using thousands separators in math mode. Write 10000001000000 in math expressions, not 1,000,0001,000,000.
  7. Using angle brackets in math mode. Use <\lt and >\gt commands instead of < and >.
  8. Forgetting the EVT requires a closed interval. Open intervals do not guarantee maxima/minima.
  9. Assuming L’Hopital’s Rule always works. If lim⁡f′(x)g′(x)\displaystyle\lim \frac{f'(x)}{g'(x)} does not exist, you cannot conclude anything about the original limit. Try algebraic methods instead.
  10. Applying the product rule for limits to indeterminate products. The limit lim⁡x→0+xln⁡x\displaystyle\lim_{x \to 0^+} x \ln x is not 0⋅(−∞)=00 \cdot (-\infty) = 0; it requires rewriting as a quotient and applying L’Hopital’s Rule.
  11. Forgetting the “restrict delta” step in epsilon-delta proofs for nonlinear functions. You must bound ∣x−a∣|x - a| before bounding the other factors.
  1. Find lim⁡x→1x3−1x−1\displaystyle\lim_{x \to 1} \frac{x^3 - 1}{x - 1} by factoring.

  2. Prove using the epsilon-delta definition that lim⁡x→4x=2\displaystyle\lim_{x \to 4} \sqrt{x} = 2.

  3. Determine all points of discontinuity for f(x)=x2+x−6x2−9f(x) = \frac{x^2 + x - 6}{x^2 - 9} and classify each.

  4. Find the horizontal and vertical asymptotes of f(x)=3x2−2x+1x2−4\displaystyle f(x) = \frac{3x^2 - 2x + 1}{x^2 - 4}.

  5. Use L’Hopital’s Rule to find lim⁡x→∞ln⁡xx\displaystyle\lim_{x \to \infty} \frac{\ln x}{\sqrt{x}}.

  6. Let f(x)={x2−9x−3x≠3kx=3f(x) = \begin{cases} \frac{x^2 - 9}{x - 3} & x \ne 3 \\ k & x = 3 \end{cases}. Find the value of kk that makes ff continuous at x=3x = 3.

  7. Use the squeeze theorem to find lim⁡x→0xcos⁡ ⁣(1x)\displaystyle\lim_{x \to 0} x \cos\!\left(\frac{1}{x}\right).

  8. Given f(x)=x3−3x+1f(x) = x^3 - 3x + 1Use the IVT to show there is at least one root in the interval (1,2)(1, 2).

  9. Find lim⁡x→0tan⁡xx\displaystyle\lim_{x \to 0} \frac{\tan x}{x}.

  10. Find lim⁡x→1x−1x3−1\displaystyle\lim_{x \to 1} \frac{\sqrt{x} - 1}{\sqrt[3]{x} - 1}.

  11. Classify each discontinuity of f(x)=x2−xx2−1\displaystyle f(x) = \frac{x^2 - x}{x^2 - 1}.

  12. Use the IVT to prove that f(x)=ex−3−xf(x) = e^x - 3 - x has at least one root in the interval (1,2)(1, 2).

  13. Find lim⁡x→0ex−1−xx2\displaystyle\lim_{x \to 0} \frac{e^x - 1 - x}{x^2}.

  14. Prove that lim⁡x→31x=13\displaystyle\lim_{x \to 3} \frac{1}{x} = \frac{1}{3} using the epsilon-delta definition.

  15. Find the value of cc such that f(x)={cx2+2xx<13x−1x≥1f(x) = \begin{cases} cx^2 + 2x & x \lt 1 \\ 3x - 1 & x \ge 1 \end{cases} is continuous at x=1x = 1.

  16. Evaluate lim⁡x→0sin⁡2xx2\displaystyle\lim_{x \to 0} \frac{\sin^2 x}{x^2}.

  17. Find lim⁡x→∞(x2+x−x)\displaystyle\lim_{x \to \infty} \left(\sqrt{x^2 + x} - x\right).

  18. Determine whether lim⁡x→01x2sin⁡ ⁣(1x)\displaystyle\lim_{x \to 0} \frac{1}{x^2}\sin\!\left(\frac{1}{x}\right) exists.

Question 1: Epsilon-delta proof

Using the epsilon-delta definition, prove that lim⁡x→2(3x−1)=5\displaystyle\lim_{x \to 2} (3x - 1) = 5.

Answer

We need to show: for every ϵ>0\epsilon \gt 0There exists a δ>0\delta \gt 0 such that if 0<∣x−2∣<δ0 \lt |x - 2| \lt \deltaThen ∣(3x−1)−5∣<ϵ|(3x - 1) - 5| \lt \epsilon.

∣(3x−1)−5∣=∣3x−6∣=3∣x−2∣|(3x - 1) - 5| = |3x - 6| = 3|x - 2|.

We need 3∣x−2∣<ϵ3|x - 2| \lt \epsilonSo ∣x−2∣<ϵ/3|x - 2| \lt \epsilon/3.

Choose δ=ϵ/3\delta = \epsilon/3. Then if 0<∣x−2∣<δ0 \lt |x - 2| \lt \delta:

∣(3x−1)−5∣=3∣x−2∣<3δ=3(ϵ/3)=ϵ|(3x - 1) - 5| = 3|x - 2| \lt 3\delta = 3(\epsilon/3) = \epsilon.

Therefore, lim⁡x→2(3x−1)=5\displaystyle\lim_{x \to 2} (3x - 1) = 5.

Question 2: Limits involving trigonometric functions

Evaluate lim⁡x→01−cos⁡xxsin⁡x\displaystyle\lim_{x \to 0} \frac{1 - \cos x}{x \sin x}.

Answer

Multiply numerator and denominator by 1+cos⁡x1 + \cos x:

lim⁡x→0(1−cos⁡x)(1+cos⁡x)xsin⁡x(1+cos⁡x)=lim⁡x→0sin⁡2xxsin⁡x(1+cos⁡x)\displaystyle\lim_{x \to 0} \frac{(1 - \cos x)(1 + \cos x)}{x \sin x(1 + \cos x)} = \lim_{x \to 0} \frac{\sin^2 x}{x \sin x(1 + \cos x)}

=lim⁡x→0sin⁡xx(1+cos⁡x)=lim⁡x→0sin⁡xx⋅11+cos⁡x=1⋅11+1=12= \lim_{x \to 0} \frac{\sin x}{x(1 + \cos x)} = \lim_{x \to 0} \frac{\sin x}{x} \cdot \frac{1}{1 + \cos x} = 1 \cdot \frac{1}{1 + 1} = \frac{1}{2}.

Question 3: Continuity of a piecewise function

Determine whether the following function is continuous at x=1x = 1:

f(x) = \begin{cases} \frac{x^2 - 1}{x - 1} & \mathrm{if x \ne 1 \\ 4 & \mathrm{if x = 1 \end{cases}

Answer

Check three conditions:

  1. f(1)=4f(1) = 4 (defined).
  2. lim⁡x→1f(x)=lim⁡x→1x2−1x−1=lim⁡x→1(x−1)(x+1)x−1=lim⁡x→1(x+1)=2\displaystyle\lim_{x \to 1} f(x) = \lim_{x \to 1} \frac{x^2 - 1}{x - 1} = \lim_{x \to 1} \frac{(x-1)(x+1)}{x-1} = \lim_{x \to 1} (x + 1) = 2.
  3. lim⁡x→1f(x)=2≠f(1)=4\lim_{x \to 1} f(x) = 2 \ne f(1) = 4.

Since the limit does not equal the function value, ff is NOT continuous at x=1x = 1. To make it Continuous, f(1)f(1) should be redefined as 22.

Question 4: Intermediate Value Theorem application

Prove that the equation x5−5x+1=0x^5 - 5x + 1 = 0 has at least one root in the interval (0,1)(0, 1).

Answer

Let f(x)=x5−5x+1f(x) = x^5 - 5x + 1. This is a polynomial, so it is continuous everywhere.

f(0)=0−0+1=1>0f(0) = 0 - 0 + 1 = 1 \gt 0.

f(1)=1−5+1=−3<0f(1) = 1 - 5 + 1 = -3 \lt 0.

Since ff is continuous on [0,1][0, 1] and f(0)>0f(0) \gt 0 and f(1)<0f(1) \lt 0By the Intermediate Value Theorem, there exists at least one c∈(0,1)c \in (0, 1) such that f(c)=0f(c) = 0.

Question 5: Squeeze theorem

Evaluate lim⁡x→0x2sin⁡ ⁣(1x)\displaystyle\lim_{x \to 0} x^2 \sin\!\left(\frac{1}{x}\right).

Answer

Since −1≤sin⁡ ⁣(1x)≤1-1 \le \sin\!\left(\frac{1}{x}\right) \le 1 for all x≠0x \ne 0:

−x2≤x2sin⁡ ⁣(1x)≤x2-x^2 \le x^2 \sin\!\left(\frac{1}{x}\right) \le x^2.

lim⁡x→0(−x2)=0\displaystyle\lim_{x \to 0} (-x^2) = 0 and lim⁡x→0x2=0\displaystyle\lim_{x \to 0} x^2 = 0.

By the Squeeze Theorem: lim⁡x→0x2sin⁡ ⁣(1x)=0\displaystyle\lim_{x \to 0} x^2 \sin\!\left(\frac{1}{x}\right) = 0.


:::tip Tip Ready to test your understanding of Limits and Continuity? The contains the hardest questions within the AP specification for this topic, each with a full worked solution.

Unit tests probe edge cases and common misconceptions. Integration tests combine Limits and Continuity with other AP Calculus topics to test synthesis under exam conditions.

See for instructions on self-marking and building a personal test matrix.

This topic covers the mathematical techniques and concepts related to limits and continuity, including key theorems, methods, and problem-solving approaches.

Key concepts include:

  • quadratic equations and the discriminant
  • simultaneous equations
  • polynomial division and the factor theorem
  • partial fractions
  • binomial expansion

Regular practice with a variety of question types is essential to build fluency and confidence in applying these mathematical techniques.

Worked examples demonstrating the application of key concepts are covered in the detailed sub-pages linked above.

:::