1

Let $$f(x) = \left\{ \begin{array}{lr} x^2 \cos\left(\frac{1}{x}\right) &: x \ne 0 \\ 0 &: x = 0 \end{array}\right.$$ Prove that $f(x)$ is continuous for all $x \in \mathbb{R}$.

I can use a theorem which states: let $I, J \subseteq \mathbb{R}$ be intervals. Let $f:I \to \mathbb{R}$ and $g:J \to \mathbb{R}$ and suppose $f(I) \subseteq J$. Suppose $f$ is continuous at $y \in I$ and $g$ is continuous at $f(y)$. Then $g \circ f$ is continuous at $y$.

Maddy
  • 193

2 Answers2

1

$\textbf{Hint:}$ Use your theorem to prove that $f$ is continuous on $\mathbb{R} - \{0\}$, and prove that $f$ is continuous in $0$ with an $\epsilon-\delta$ argument.

Arthur
  • 5,524
0

Hint: For the case $x=0$, note that

$$|x^2\cos(1/x)-0|\leq |x|^2 < \epsilon. $$