Epsilon-Delta-Definition: How to prove $f(x)=x\cdot \sin\left(\frac{1}{x}\right)$ is continuous in $x_0=0$

epsilon-deltareal-analysis

Epsilon-Delta-Definition: How to prove $f(x)=\begin{cases}x\cdot\sin\left(\frac{1}{x}\right) , x\neq 0 \\ 0, x=0\end{cases}$ is continuous in $x_0=0$

My attended proof:

In order to be continuous in $x_0$, one has to show that:
$$\forall \epsilon >0 \exists \delta >0 \forall x\in \mathbb{R}: |x-x_0|<\delta \implies |f(x)-f(x_0)|<\varepsilon$$

I figured that $|f(x)-f(x_0)|=\big | x\cdot\sin\left(\frac{1}{x}\right) \big |\leq |x|<\varepsilon$. Furthermore $|x-x_0|=|x|<\delta$ How would I chose $\delta$? Couldn't I use $\delta = \varepsilon$?

Best Answer

It would be clearer if you wrote $0$ everywhere you wrote $x_0$. But yes, you can choose $\delta = \varepsilon$. In this case, writing everything in the correct order of quantifiers, you would say: let $\varepsilon > 0$ be arbitrary, and choose $\delta = \varepsilon$. Let $x \in \Bbb{R}$ be such that $0< |x-0|< \delta = \varepsilon$. Then \begin{align} |f(x) -f(0)| &= \left|x\sin\left(\frac{1}{x} \right) - 0 \right|\\ & \leq |x| \\ &< \delta \\ &= \varepsilon. \end{align} Since $\varepsilon > 0$ was arbitrary, this shows $f$ is continuous at $0$.