Definition. If $X$ is a metric space, and $f_n:X\to \R$ ($n\in\N$) is a sequence of functions, then $f_n$ converges pointwise to $f$ if for every $x\in X$ one has $\lim_
For example, the sequence of functions $f_n(x) = x^n/n$ converges pointwise to zero on the interval $X=[-1,1]$, because for each $x\in [-1,1]$ one has $|x^n/n|\leq 1/n$, and thus \[ \lim_
The limit of a pointwise convergent sequence of continuous functions does not have to be continuous. For example, consider $X=[0,1]$, and $f_n(x) = x^n$. Then \[ \lim_
The derivatives of a pointwise convergent sequence of functions do not have to converge. $X=\R$, $f_n(x) = \frac1n \sin(n^2x)$. In this case \[ \lim_
The integrals of a pointwise convergent sequence of functions do not have to converge. Consider $X=[0,1]$, $f_n(x) = \frac$. Then \[ \lim_
Definition. A sequence of functions $f_n:X\to Y$ converges uniformly if for every $\epsilon\gt0$ there is an $N_\epsilon\in\N$ such that for all $n\geq N_\epsilon$ and all $x\in X$ one has $d(f_n(x), f(x))\lt \epsilon$.
Uniform convergence implies pointwise convergence, but not the other way around. For example, the sequence $f_n(x) = x^n$ from the previous example converges pointwise on the interval $[0,1]$, but it does not converge uniformly on this interval. To prove this we show that the assumption that $f_n(x)$ converges uniformly leads to a contradiction.
If $f_n(x)$ converges uniformly, then the limit function must be $f(x) = 0$ for $x\in[0,1)$ and $f(1) = 1$. Uniform convergence implies that for any $\epsilon\gt0$ there is an $N_\epsilon\in\N$ such that $|x^n- f(x)|\lt \epsilon$ for all $n\geq N_\epsilon$ and all $x\in [0,1]$. Assuming this is indeed true we may choose $\epsilon$, in particular, we can choose $\epsilon=\frac12$. Then there is an $N\in \N$ such that for all $n\geq N$ we have $|x^n-f(x)|\lt \frac 12$. We may choose $n$ and $x$. Let us choose $n=N$, and $x=\bigl(\frac34\bigr)^$. Then we have $f(x)=0$ and thus \[ |f_N(x) - f(x)| = x^N - 0 = \frac 34 \gt \frac12, \] contradicting our assumption.
The uniform metricDefinition—the set of bounded functions. If $E$ is a set, then a function $f:E\to\R$ is bounded if there is an $M\in\R$ such that $|f(x)|\leq M$ for all $x\in E$. We will write $\cB(E)$ for the set of all bounded functions from $E$ to $\R$.
Definition—the uniform distance between bounded functions. The uniform distance between two bounded functions $f, g\in\cB(E)$ is \[ \du(f, g) = \sup_
The uniform distance $d(f,g)$ between two functions $f$ and $g$ is the least upper bound of all possible values that $|f(x)-g(x)|$ can have if $x\in E$.
Theorem.  $\du(f, g)$ is a metric on $\cB(E)$.Theorem. The uniform metric $\du$ is a metric on $\cB(E)$. A sequence of bounded functions $f_n:E\to\R$ converges uniformly to $f$ if and only if $\du(f_n, f)\to 0$, i.e. if and only if $f_n$ converges to $f$ in the sense of convergence in the metric space $\cB(E)$.
Example. Let $E = [0,1)$ and consider the sequence of functions $f_n(x) = x^n$. We know that $f_n(x)\to0$ pointwise on $[0,1)$.
Question: Does the sequence converge uniformly on $[0,1)$?
Answer: Since uniform convergence is equivalent to convergence in the uniform metric, we can answer this question by computing $\du(f_n, f)$ and checking if $\du(f_n, f)\to0$. We have, by definition \[ \du(f_n, f) = \sup_<0\leq x\lt 1>|x^n - 0| =\sup_ <0\leq x\lt 1>x^n = 1. \] Therefore \[ \lim_
Left: the uniform distance between $f_n(x)= x^n$ and $f(x)=0$ on the interval $0\leq x\lt 1$ is $d(f_n, f)=1$, so, on the interval $[0,1)$, $x^n$ does not converge uniformly to $0$ as $n\to\infty$. Right: on the interval $[0,a]$ the uniform distance between $f_n(x)= x^n$ and $f(x) = 0$ is $a^n$. Since $a\lt1$, we have $a^n\to0$ so that $f_n(x)=x^n$ does converge uniformly to zero on the interval $[0,a]$.
Question:  Does the same sequence of functions converge uniformly on the interval $[0,a]$ if $a$ is some number with $0\lt a \lt 1$?
Answer:  We again compute the uniform distance between the functions $f_n(x) = x^n$ and $f(x)=0$, but this time on the interval $[0,a]$ instead of the interval $(0,1)$ that we used in the previous example. We have \[ \du(x^n, 0) = \sup_ <0\leq x\leq a>|x^n-0| = \sup_ <0\leq x\leq a>x^n = a^n. \] Since $0\lt a\lt 1 $ we have \[ \lim_
Theorem. Let $f_n:E\to \R$ be a sequence of functions. If $f_n$ converges uniformly to $f:E\to \R$, and if each $f_n$ is continuous, then $f$ is also continuous.
This theorem implies that for any uniformly convergent sequence of functions $f_n:E\to \R$ and convergent sequence of points $x_n\in E$ one can “switch limits,” i.e. \[ \lim_
Theorem. If $f_n:[a,b]\to\R$ is a sequence of Riemann integrable functions that converges uniformly to $f:[a,b]\to\R$, then the limit $f$ is also Riemann integrable and \[ \lim_
Since $f(x) = \lim_
Theorem. Let $f_n:[a,b]\to\R$ be a sequence of differentiable functions whose derivatives $f_n'$ are continuous. If $f_n$ converges uniformly to $f$ and $f_n'$ converges uniformly to $g$, then the limit $f$ is differentiable and its derivative is $f'=g$.
We can rewrite the conclusion as \[ \lim_
Pointwise convergence for series. If $f_n$ is a sequence of functions defined on some set $E$, then we can consider the partial sums \[ s_n(x) = f_1(x) + \cdots + f_n(x) = \sum_^n f_k(x). \] If these converge as $n\to\infty$, and if this happens for every $x\in E$, then we say that the series converges pointwise. The sum of the series is \[ S(x) = \sum_^\infty f_k(x) \stackrel= \lim_
Uniform convergence of series. A series $\sum_^\infty f_k(x)$ converges uniformly if the sequence of partial sums $s_n(x) = \sum_^n f_k(x)$ converges uniformly.
The Weierstrass M–test. If $f_n:E\to\R$ is a sequence of functions for which one has a sequence $M_n$ with \[ |f_n(x)|\leq M_n \text< for all >x\in E, \] and for which \[ \sum_^\infty M_n \lt \infty, \] then the series $\sum_^\infty f_k(x)$ converges uniformly.
How to prove a series does not converge uniformly. If $\sum f_n(x)$ is a series whose terms $f_n$ are functions on some set $E$, and if the series converges uniformly on $E$, then
$\displaystyle\lim_Let $s_n(x) = f_1(x) + \cdots + f_n(x)$ be the $n$ th partial sum of the series, and let $S(x) = \sum_1^\infty f_n(x)$ be the sum of the series. Since the series converges uniformly, we have $\lim_
The uniform distance between the two consecutive partial sums $s_$ and $s_n$ is