Counterexample for a complex analysis proof

293 Views Asked by At

I'm having troubles coming up with a counterexample for the following: If $|f(z)|$ is continuous at $z_0$, then the function $f(z)$ is continuous at $z_0$ for complex numbers.

I know I need a $f(z)$ that is discontinuous at that $z_0$, where $|f(z)|$ is not.

Does anyone know of one that would work?

3

There are 3 best solutions below

0
On

Define $f(z) = z/|z|$ for $z\not= 0$ and $f(0) = 1.$

0
On

Let $r(z)$ be a real-valued everywhere discontinuous function, and put $f(z) = e^{ir(z)}$.

0
On

Let $f(z) = \begin{cases} 1, & z=z_0 & \\ -1, & \text{otherwise} \end{cases}$. Then $|f(z)| = 1$, is continuous, and $f$ is discontinuous at $z=z_0$.