Skip to content

Mathematics · Ch 5 — Continuity and Differentiability

Continuity of a Function

1

Continuity of a Function

A function ff is intuitively continuous at a point if its graph can be traced through that

point without lifting the pen -- there is no jump, no break, and no hole. Making this precise

needs exactly the machinery of limits: three separate conditions must all hold together.

Definition (continuity at a point). A function ff is said to be continuous at x=ax=a if

all three of the following hold:

  1. f(a)f(a) is defined (the function has a value at aa);
  2. lim⁡x→af(x)\displaystyle\lim_{x\to a}f(x) exists, i.e. the left-hand limit lim⁡x→a−f(x)\displaystyle\lim_{x\to a^-}f(x) and the right-hand limit lim⁡x→a+f(x)\displaystyle\lim_{x\to a^+}f(x) both exist and are equal;
  3. lim⁡x→af(x)=f(a)\displaystyle\lim_{x\to a}f(x) = f(a) -- the limit actually equals the function's value there.

Equivalently, ff is continuous at aa exactly when

lim⁡x→a−f(x)=lim⁡x→a+f(x)=f(a).\lim_{x\to a^-}f(x) = \lim_{x\to a^+}f(x) = f(a).

If even one of these three conditions fails -- f(a)f(a) is undefined, the limit does not exist

(left- and right-hand limits disagree), or the limit exists but does not match f(a)f(a) -- then ff

is said to be discontinuous at aa, and aa is called a point of discontinuity.

Continuity on an interval. ff is continuous on an open interval (p,q)(p,q) if it is continuous

at every point of that interval; it is continuous on a closed interval [p,q][p,q] if, in addition to

being continuous at every interior point, it is continuous from the right at pp and from the

left at qq.

Algebra of continuous functions. If ff and gg are both continuous at x=ax=a, then so are

f+gf+g, f−gf-g, f⋅gf\cdot g, and kfkf for any constant kk; the quotient f/gf/g is continuous at aa

provided g(a)≠0g(a)\neq0. These follow directly from the algebra of limits, since continuity is

itself defined entirely in terms of a limit. A further, very useful fact is that the

composition of two continuous functions is continuous: if gg is continuous at aa and ff is

continuous at g(a)g(a), then f∘gf\circ g is continuous at aa.

Which standard functions are continuous. Every polynomial function is continuous at every

real number (direct substitution always applies). A rational function p(x)/q(x)p(x)/q(x) is continuous

at every point where q(x)≠0q(x)\neq0, and typically discontinuous where q(x)=0q(x)=0 -- unless the zero is

a removable one, cancelled by a matching factor in p(x)p(x), in which case the limit still exists

even though f(a)f(a) itself may be undefined or wrongly assigned. The functions sin⁡x\sin x and

cos⁡x\cos x are continuous for every real xx; consequently tan⁡x=sin⁡x/cos⁡x\tan x=\sin x/\cos x is continuous

except where cos⁡x=0\cos x=0, i.e. at odd multiples of π/2\pi/2. The modulus function f(x)=∣x∣f(x)=|x| is

continuous everywhere, including at x=0x=0, even though (Section 2) it fails to be differentiable

there.

Worked illustration. For f(x)={x2+1,x≤23x−1,x>2f(x)=\begin{cases}x^2+1, & x\le2\\ 3x-1, & x>2\end{cases}: here

f(2)=22+1=5f(2)=2^2+1=5; the left-hand limit is lim⁡x→2−(x2+1)=5\lim_{x\to2^-}(x^2+1)=5; the right-hand limit is

lim⁡x→2+(3x−1)=3(2)−1=5\lim_{x\to2^+}(3x-1)=3(2)-1=5. Since all three agree, ff is continuous at x=2x=2 -- exactly the

check Example 1 carries out in full.