Examples of continuous and discontinuous functions
-
$f(z) = z$ is continuous at all points of $\C$ by taking $\delta=\epsilon$.
-
Since multiplying and adding continuous functions is also continuous, any polynomial in $z$ is continuous everywhere in $\C$.
-
$f:\R\to\R$ given by $$ f(x) = \begin{cases} \sin\frac1x, &x\neq0 \\ 0, &x=0 \end{cases} $$ is discontinuous at $x=0$: the sequence $$ x_n = \frac1{(2n+1/2)\pi} \to 0 $$ but $$ f(x_n) = 1 \to 1 \neq 0 = f(0). $$
-
$f: \R\to\R$ given by $$ f(x) = \begin{cases} x\sin\frac1x, &x\neq0 \\ 0, &x=0 \end{cases} $$ is continuous at $x=0$: for any sequence $x_n\to 0$, $$ |f(x_n)| = |x_n| \big|\sin\frac1{x_n}\big| \leq |x_n| $$ so $f(x_n) \to 0 = f(0)$ by squeeze theorem.
-
The Dirichlet function $f: \R\to\R$ given by $$ f(x) = \begin{cases} 1, &x\in\Q \\ 0, &x\not\in\Q \end{cases} $$ is discontinuous anywhere: you can find a sequence of rational number that tends to any irrational number, and a sequence of irrational number that tends to any rational number.