Skip to content

Limits and Continuity

Intuitive Notion of a Limit (CED Unit 1)

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:

limxaf(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.

Left-Hand and Right-Hand Limits

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

limxaf(x)=L    limxaf(x)=limxa+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 limx0xx\displaystyle\lim_{x \to 0} \frac{|x|}{x}.

limx0xx=limx0xx=1\lim_{x \to 0^-} \frac{|x|}{x} = \lim_{x \to 0^-} \frac{-x}{x} = -1limx0+xx=limx0+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 limx3x3x3\displaystyle\lim_{x \to 3} \frac{|x - 3|}{x - 3}.

For x<3x \lt 3: x3x3=3xx3=1\frac{|x-3|}{x-3} = \frac{3-x}{x-3} = -1.

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

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

Common Limits

LimitValue
limx0sinxx\displaystyle\lim_{x \to 0} \frac{\sin x}{x}11
limx01cosxx\displaystyle\lim_{x \to 0} \frac{1 - \cos x}{x}00
limx1x\displaystyle\lim_{x \to \infty} \frac{1}{x}00
limx(1+1x)x\displaystyle\lim_{x \to \infty} \left(1 + \frac{1}{x}\right)^xee
limx0ex1x\displaystyle\lim_{x \to 0} \frac{e^x - 1}{x}11
limx0ln(1+x)x\displaystyle\lim_{x \to 0} \frac{\ln(1+x)}{x}11

Proof that limx0sinxx=1\displaystyle\lim_{x \to 0} \frac{\sin x}{x} = 1.

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

As x0+x \to 0^+, cosx1\cos x \to 1So by the squeeze theorem, sinxx1\frac{\sin x}{x} \to 1. A similar Argument applies from the left. \blacksquare

Proof of the geometric inequality sinx<x<tanx\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 sinx\sin x) is 12sinx\frac{1}{2}\sin xThe area of the sector is 12x\frac{1}{2}xAnd the area of triangle OATOAT (with Altitude tanx\tan x) is 12tanx\frac{1}{2}\tan x. Since the sector contains the first triangle and is Contained in the second, we get 12sinx<12x<12tanx\frac{1}{2}\sin x \lt \frac{1}{2}x \lt \frac{1}{2}\tan xHence sinx<x<tanx\sin x \lt x \lt \tan x. \blacksquare

Proof that limx0ex1x=1\displaystyle\lim_{x \to 0} \frac{e^x - 1}{x} = 1.

Let h=ex1h = e^x - 1So ex=1+he^x = 1 + h and x=ln(1+h)x = \ln(1+h). As x0x \to 0, h0h \to 0.

ex1x=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 limh0ln(1+h)h=1\displaystyle\lim_{h \to 0} \frac{\ln(1+h)}{h} = 1 (which follows from limx0ex1x=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 limx0ln(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=eu1x = e^u - 1. As x0x \to 0, u0u \to 0.

ln(1+x)x=ueu1=1eu1u\frac{\ln(1+x)}{x} = \frac{u}{e^u - 1} = \frac{1}{\frac{e^u - 1}{u}}

Since limu0eu1u=1\displaystyle\lim_{u \to 0} \frac{e^u - 1}{u} = 1The result follows. \blacksquare

The Squeeze Theorem

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:

limxag(x)=limxah(x)=L\lim_{x \to a} g(x) = \lim_{x \to a} h(x) = L

Then limxaf(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 limx0x2sin ⁣(1x)=0\displaystyle\lim_{x \to 0} x^2 \sin\!\left(\frac{1}{x}\right) = 0.

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

Both limx0(x2)=0\displaystyle\lim_{x \to 0}(-x^2) = 0 and limx0x2=0\displaystyle\lim_{x \to 0} x^2 = 0.

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

Example

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

Since 1cos ⁣(1x)1-1 \le \cos\!\left(\frac{1}{x}\right) \le 1We have xxcos ⁣(1x)x-|x| \le x\cos\!\left(\frac{1}{x}\right) \le |x|.

Both limx0(x)=0\displaystyle\lim_{x \to 0}(-|x|) = 0 and limx0x=0\displaystyle\lim_{x \to 0}|x| = 0.

By the squeeze theorem, the limit is 00.

Example

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

Since 1sin(1/x)1-1 \le \sin(1/x) \le 1We have e1esin(1/x)e1e^{-1} \le e^{\sin(1/x)} \le e^1.

Therefore:

E1x2x2esin(1/x)ex2E^{-1} x^2 \le x^2 e^{\sin(1/x)} \le e \cdot x^2

Both limx0e1x2=0\displaystyle\lim_{x \to 0} e^{-1} x^2 = 0 and limx0ex2=0\displaystyle\lim_{x \to 0} e \cdot x^2 = 0.

By the squeeze theorem, the limit is 00.

Algebraic Limit Properties

If limxaf(x)=L\displaystyle\lim_{x \to a} f(x) = L and limxag(x)=M\displaystyle\lim_{x \to a} g(x) = MThen:

  1. limxa[f(x)+g(x)]=L+M\displaystyle\lim_{x \to a} [f(x) + g(x)] = L + M
  2. limxa[f(x)g(x)]=LM\displaystyle\lim_{x \to a} [f(x) - g(x)] = L - M
  3. limxa[cf(x)]=cL\displaystyle\lim_{x \to a} [c \cdot f(x)] = cL
  4. limxa[f(x)g(x)]=LM\displaystyle\lim_{x \to a} [f(x) \cdot g(x)] = L \cdot M
  5. limxaf(x)g(x)=LM\displaystyle\lim_{x \to a} \frac{f(x)}{g(x)} = \frac{L}{M}Provided M0M \ne 0

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

Theorem (Limit of a root). If limxaf(x)=L\displaystyle\lim_{x \to a} f(x) = L and nn is a positive Integer, and L0L \ge 0 when nn is even, then limxaf(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 xa<δ|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 xa<δ1|x-a| \lt \delta_1 implies f(x)L<ϵ/2|f(x)-L| \lt \epsilon/2. Choose δ2\delta_2 So that xa<δ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 xa<δ|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

Evaluating Limits

Direct Substitution

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

limxaf(x)=f(a)\lim_{x \to a} f(x) = f(a)

Limits Involving Infinity

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

  • If degP<degQ\deg P \lt \deg Q: limx±P(x)Q(x)=0\displaystyle\lim_{x \to \pm\infty} \frac{P(x)}{Q(x)} = 0
  • If degP=degQ\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 degP>degQ\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 limx3x25x+27x2+x1\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:

limx3x25x+27x2+x1=37\lim_{x \infty} \frac{3x^2 - 5x + 2}{7x^2 + x - 1} = \frac{3}{7}

Example

Find limx5x32x+14x2+3x\displaystyle\lim_{x \to \infty} \frac{5x^3 - 2x + 1}{4x^2 + 3x}.

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

Example

Find limx2x3+x255x33x+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:

limx2x3+x255x33x+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 xx \to -\infty when the degrees are equal.

Indeterminate Forms and Factoring

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

Example

Find limx2x24x2\displaystyle\lim_{x \to 2} \frac{x^2 - 4}{x - 2}.

Factor the numerator:

limx2x24x2=limx2(x2)(x+2)x2=limx2(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 limx1x31x1\displaystyle\lim_{x \to 1} \frac{x^3 - 1}{x - 1}.

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

limx1(x1)(x2+x+1)x1=limx1(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 limx1x41x21\displaystyle\lim_{x \to 1} \frac{x^4 - 1}{x^2 - 1}.

x41x21=(x21)(x2+1)x21=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:

limx1x41x21=1+1=2\lim_{x \to 1} \frac{x^4 - 1}{x^2 - 1} = 1 + 1 = 2

Rationalizing

For expressions involving radicals, multiply by the conjugate.

Example

Find limx0x+42x\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:

limx0x+42xx+4+2x+4+2=limx0x+44x(x+4+2)=limx0xx(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 limx01+x1xx\displaystyle\lim_{x \to 0} \frac{\sqrt{1 + x} - \sqrt{1 - x}}{x}.

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

=limx0(1+x)(1x)x(1+x+1x)=limx02xx(1+x+1x)=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 limx5x+43x5\displaystyle\lim_{x \to 5} \frac{\sqrt{x+4} - 3}{x - 5}.

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

=limx5x+49(x5)(x+4+3)=limx5x5(x5)(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)

Example

Find limx01cosxx2\displaystyle\lim_{x \to 0} \frac{1 - \cos x}{x^2}.

Using the identity 1cosx=2sin2x21 - \cos x = 2\sin^2\frac{x}{2}:

1cosxx2=2sin2(x/2)x2=2sin2(x/2)4(x/2)2=12(sin(x/2)x/2)212\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 limx0tanxx\displaystyle\lim_{x \to 0} \frac{\tan x}{x}.

tanxx=sinxxcosx=sinxx1cosx11=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 limx0sin3xx\displaystyle\lim_{x \to 0} \frac{\sin 3x}{x}.

Rewrite to use the standard limit:

sin3xx=3sin3x3x31=3\frac{\sin 3x}{x} = 3 \cdot \frac{\sin 3x}{3x} \to 3 \cdot 1 = 3

Limits Involving Complex Fractions

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

Example

Find limx21x12x2\displaystyle\lim_{x \to 2} \frac{\frac{1}{x} - \frac{1}{2}}{x - 2}.

Combine the numerator:

1x12x2=2x2xx2=(x2)2x(x2)=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:

limx21x12x2=14\lim_{x \to 2} \frac{\frac{1}{x} - \frac{1}{2}}{x - 2} = -\frac{1}{4}

Formal Definition of a Limit (Epsilon-Delta)

The precise definition: limxaf(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<xa<δ    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.

Proving a Limit with Epsilon-Delta

Example

Prove that limx3(2x1)=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<x3<δ    (2x1)5<ϵ0 \lt |x - 3| \lt \delta \implies |(2x-1) - 5| \lt \epsilon.

Working backwards: (2x1)5=2x6=2x3|(2x-1) - 5| = |2x - 6| = 2|x - 3|.

We want 2x3<ϵ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<x3<δ    x3<ϵ2    2x3<ϵ    (2x1)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, limx3(2x1)=5\displaystyle\lim_{x \to 3} (2x - 1) = 5. \blacksquare

Example

Prove that limx2x2=4\displaystyle\lim_{x \to 2} x^2 = 4.

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

Note that x24=x2x+2|x^2 - 4| = |x - 2| \cdot |x + 2|.

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

Thus x24=x2x+2<5x2|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<x2<δ0 \lt |x - 2| \lt \deltaThen:

x24=x2x+2<δ5ϵ55=ϵ|x^2 - 4| = |x - 2| \cdot |x + 2| \lt \delta \cdot 5 \le \frac{\epsilon}{5} \cdot 5 = \epsilon

Therefore, limx2x2=4\displaystyle\lim_{x \to 2} x^2 = 4. \blacksquare

Example

Prove that limxax=a\displaystyle\lim_{x \to a} \sqrt{x} = \sqrt{a} for a>0a \gt 0.

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

Rationalise: xa=xax+axaa|\sqrt{x} - \sqrt{a}| = \frac{|x - a|}{\sqrt{x} + \sqrt{a}} \le \frac{|x - a|}{\sqrt{a}}.

We want xaa<ϵ\frac{|x - a|}{\sqrt{a}} \lt \epsilonSo xa<ϵ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<xa<δ0 \lt |x - a| \lt \deltaThen x>0x \gt 0 and:

xa=xax+axaa<ϵ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, limxax=a\displaystyle\lim_{x \to a} \sqrt{x} = \sqrt{a}. \blacksquare

Strategy for Epsilon-Delta Proofs

The general approach is:

  1. Start with f(x)L|f(x) - L| and try to bound it in terms of xa|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+aa\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.

Continuity (CED Unit 1)

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

  1. f(a)f(a) is defined
  2. limxaf(x)\displaystyle\lim_{x \to a} f(x) exists
  3. limxaf(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 fgf \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+11>0x^2 + 1 \ge 1 \gt 0).

Types of Discontinuities

TypeDescriptionExample
RemovableLimit exists but f(a)f(a) is undefined or f(a)limxaf(x)f(a) \ne \lim_{x \to a} f(x)f(x)=x21x1f(x) = \frac{x^2 - 1}{x - 1} at x=1x=1
Jump (Non-removable)One-sided limits exist but are not equalf(x)=xf(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

Intermediate Value Theorem (IVT)

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+x1f(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)=ex3xf(x) = e^x - 3 - x has at least one root in (1,2)(1, 2).

f(1)=e41.282<0f(1) = e - 4 \approx -1.282 \lt 0 and f(2)=e252.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).

Extreme Value Theorem

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. :::

Boundedness Theorem

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 mf(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.

Asymptotes and Limits at Infinity

Vertical Asymptotes

If limxa+f(x)=±\displaystyle\lim_{x \to a^+} f(x) = \pm\infty or limxaf(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).

Horizontal Asymptotes

  • If limx±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 xx \to \inftyOne as xx \to -\infty).

Oblique (Slant) Asymptotes

If degP=degQ+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+3x1x+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+3x1x+1=2x+12x+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 xx \to \infty: Divide numerator and denominator by exe^x:

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

As xx \to -\infty: Divide numerator and denominator by exe^x:

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

Horizontal asymptotes: y=3y = 3 (as xx \to \infty) and y=0y = 0 (as xx \to -\infty).

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

If limxaf(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:

limxaf(x)g(x)=limxaf(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 limxaf(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 limx0ex1x\displaystyle\lim_{x \to 0} \frac{e^x - 1}{x}.

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

limx0ex1x=limx0ex1=1\lim_{x \to 0} \frac{e^x - 1}{x} = \lim_{x \to 0} \frac{e^x}{1} = 1

Example

Find limx01cosxx2\displaystyle\lim_{x \to 0} \frac{1 - \cos x}{x^2}.

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

limx01cosxx2=limx0sinx2x=limx0cosx2=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 limxlnxx\displaystyle\lim_{x \to \infty} \frac{\ln x}{\sqrt{x}}.

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

limx1/x1/(2x)=limx2xx=limx2x=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 limx0xsinxx3\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:

limx0xsinxx3=limx01cosx3x2=limx0sinx6x=limx0cosx6=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 limx0+xlnx\displaystyle\lim_{x \to 0^+} x \ln x.

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

Xlnx=lnx1/xX \ln x = \frac{\ln x}{1/x}

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

limx0+lnx1/x=limx0+1/x1/x2=limx0+(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

Limits of Piecewise Functions

Example

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

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

Left-hand limit: limx2f(x)=limx2(x2+1)=5\displaystyle\lim_{x \to 2^-} f(x) = \lim_{x \to 2^-} (x^2 + 1) = 5.

Right-hand limit: limx2+f(x)=limx2+(3x1)=5\displaystyle\lim_{x \to 2^+} f(x) = \lim_{x \to 2^+} (3x - 1) = 5.

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

Check continuity: f(2)=3(2)1=5=limx2f(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)={x24x2x2kx=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.

limx2x24x2=limx2(x2)(x+2)x2=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+1x02x+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: limx0h(x)=0+0+1=1\displaystyle\lim_{x \to 0^-} h(x) = 0 + 0 + 1 = 1.

Right-hand limit: limx0+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.

Common Pitfalls

  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 limxaf(x)g(x)=limxaf(x)limxag(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 limf(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 limx0+xlnx\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 xa|x - a| before bounding the other factors.

Practice Questions

  1. Find limx1x31x1\displaystyle\lim_{x \to 1} \frac{x^3 - 1}{x - 1} by factoring.

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

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

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

  5. Use L’Hopital’s Rule to find limxlnxx\displaystyle\lim_{x \to \infty} \frac{\ln x}{\sqrt{x}}.

  6. Let f(x)={x29x3x3kx=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 limx0xcos ⁣(1x)\displaystyle\lim_{x \to 0} x \cos\!\left(\frac{1}{x}\right).

  8. Given f(x)=x33x+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 limx0tanxx\displaystyle\lim_{x \to 0} \frac{\tan x}{x}.

  10. Find limx1x1x31\displaystyle\lim_{x \to 1} \frac{\sqrt{x} - 1}{\sqrt[3]{x} - 1}.

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

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

  13. Find limx0ex1xx2\displaystyle\lim_{x \to 0} \frac{e^x - 1 - x}{x^2}.

  14. Prove that limx31x=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<13x1x1f(x) = \begin{cases} cx^2 + 2x & x \lt 1 \\ 3x - 1 & x \ge 1 \end{cases} is continuous at x=1x = 1.

  16. Evaluate limx0sin2xx2\displaystyle\lim_{x \to 0} \frac{\sin^2 x}{x^2}.

  17. Find limx(x2+xx)\displaystyle\lim_{x \to \infty} \left(\sqrt{x^2 + x} - x\right).

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

Practice Problems

Question 1: Epsilon-delta proof

Using the epsilon-delta definition, prove that limx2(3x1)=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<x2<δ0 \lt |x - 2| \lt \deltaThen (3x1)5<ϵ|(3x - 1) - 5| \lt \epsilon.

(3x1)5=3x6=3x2|(3x - 1) - 5| = |3x - 6| = 3|x - 2|.

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

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

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

Therefore, limx2(3x1)=5\displaystyle\lim_{x \to 2} (3x - 1) = 5.

Question 2: Limits involving trigonometric functions

Evaluate limx01cosxxsinx\displaystyle\lim_{x \to 0} \frac{1 - \cos x}{x \sin x}.

Answer

Multiply numerator and denominator by 1+cosx1 + \cos x:

limx0(1cosx)(1+cosx)xsinx(1+cosx)=limx0sin2xxsinx(1+cosx)\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)}

=limx0sinxx(1+cosx)=limx0sinxx11+cosx=111+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. limx1f(x)=limx1x21x1=limx1(x1)(x+1)x1=limx1(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. limx1f(x)=2f(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 x55x+1=0x^5 - 5x + 1 = 0 has at least one root in the interval (0,1)(0, 1).

Answer

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

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

f(1)=15+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 limx0x2sin ⁣(1x)\displaystyle\lim_{x \to 0} x^2 \sin\!\left(\frac{1}{x}\right).

Answer

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

x2x2sin ⁣(1x)x2-x^2 \le x^2 \sin\!\left(\frac{1}{x}\right) \le x^2.

limx0(x2)=0\displaystyle\lim_{x \to 0} (-x^2) = 0 and limx0x2=0\displaystyle\lim_{x \to 0} x^2 = 0.

By the Squeeze Theorem: limx0x2sin ⁣(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.

Summary

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

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

:::