Math Applets

UniformConvergence

Uniform convergence:

Let KK be an arbitrary set and fn:KCf_n : K \to \mathbb{C} for nNn \in \mathbb{N} and f:KCf : K \to \mathbb{C}. The sequence (fn)nN(f_n)_{n \in \mathbb{N}} is called uniformly convergent towards ff, if for every ε>0\varepsilon > 0 there exists an NεNN_\varepsilon \in \mathbb{N} such that for all nNεn \ge N_\varepsilon and all xKx \in K it holds that

fn(x)f(x)<εfor all nNε.|f_n(x) - f(x)| < \varepsilon \quad \text{for all } n \ge N_\varepsilon.

  • Visualize uniform convergence for the sequence fn(x)=sin(nx)n(x[0,2π]),f_n(x)=\frac{\sin(nx)}{n}\qquad (x\in[0,2\pi]), and its limit function f(x)=0.f(x)=0.

  • Use the slider nn to choose the current index nn (the solid blue curve is fnf_n).

  • Use the slider ε\varepsilon to set the tolerance ε>0\varepsilon>0.

  • Drag the point xx on the xx-axis to choose the evaluation point x[0,2π]x\in[0,2\pi].

  • The solid blue curve is the current function fn(x)=sin(nx)/nf_n(x)=\sin(nx)/n.

  • The faint dashed blue curves are earlier functions fk(x)=sin(kx)/kf_k(x)=\sin(kx)/k (for k<nk<n), to show how the whole family shrinks as nn increases.

  • The red horizontal line is the limit function f(x)=0f(x)=0.

  • The dashed red lines are the ε\varepsilon-tube around the limit: y=±εy=\pm\varepsilon.

  • The vertical gray guide marks the chosen xx.

  • The highlighted point Pn=(x,fn(x))P_n=(x,f_n(x)) shows the value at the chosen xx.

  • The dashed segment from (x,0)(x,0) to (x,fn(x))(x,f_n(x)) visualizes the error fn(x)0|f_n(x)-0|.

    • choose an ε>0\varepsilon>0,
    • increase nn until the entire blue curve stays inside the ε\varepsilon-tube y=±εy=\pm\varepsilon,
    • now drag xx across the whole interval [0,2π][0,2\pi] and notice that PnP_n stays green everywhere.

Loading graph…
  • Hold Shift + scroll to zoom
  • Hold Shift + drag to move
  • Points shaped like <> act as sliders

Description

Link to code.

Reference: Lecture Notes Calculus 1 ( May22,2022 ) Definition8.1 page 144

This applet visualizes uniform convergence using the sequence of functions

fn(x)=sin(nx)n(x[0,2π]). f_n(x)=\frac{\sin(nx)}{n}\qquad (x\in[0,2\pi]).

The blue curve is fnf_n and the red line is the limit function f(x)=0f(x)=0.

Two sliders are used: n selects the current index nn in fn(x)=sin(nx)nf_n(x)=\frac{\sin(nx)}{n}, and ε selects the tolerance ε>0\varepsilon>0. A draggable point x chooses the evaluation point x[0,2π]x\in[0,2\pi].

The point x as well as the limit and the ε tube turn green when:

const ok = Math.abs(fnx - fx) < eps;

By selecting an n and fixing an ε large enough, the student can observe that fn(x)f(x)<ε|f_n(x) - f(x)| < \varepsilon holds for all x by dragging the point x, so that n depends only on ε.