# Proving that $f(x) = \frac{x^2}{1+\sin^2(1/x)},f(0)=0$ is continuous at $0$

I'm trying to prove that

$$f\left(x\right)=\begin{cases} \frac{x^{2}}{1+\sin^{2}\left(\frac{1}{x}\right)}, & x\neq0\\ 0, & x=0 \end{cases}$$

is continuous at 0.

I know that I should show that $$\lim_{x\rightarrow0}\frac{x^{2}}{1+\sin^{2}\left(\frac{1}{x}\right)}=0$$

But I don't understand what is $$\lim_{x\rightarrow0}\sin^{2}\left(\frac{1}{x}\right)=?$$ When $x$ goes to $0$, $\dfrac{1}{x}$ goes to infinity, but sine oscillates between $-1$ and $1$, hence I don't know what limit would be.

• $\lim_{x\rightarrow 0}\sin\left(\frac{1}{x}\right)$ doesn't exist. This is known as the topologist's sine curve. – Cameron Williams Jun 27 '13 at 17:49
• Note $\sin^{\color{maroon}2}(1/x)\ge 0$. – David Mitra Jun 27 '13 at 17:51

You should apply squeeze theorem here. We have that for $x\in\mathbb{R}\setminus \{0\}$, $-1 \le \sin\left(\frac{1}{x}\right) \le 1$. So we have that $0 \le \sin^2\left(\frac{1}{x}\right) \le 1$. Let's make use of this property.
$$0 \le \lim_{x\rightarrow 0} \frac{x^2}{1+\sin^2\left(\frac{1}{x}\right)} \le \lim_{x\rightarrow 0} \frac{x^2}{1+0}.$$
Applying the limit on the right, we have that the overall limit is $0$.
Hint: Use the fact that $\frac{1}{1+\sin^2(1/x)}$ is always bounded, to prove continuity.
{"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 1, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0}