How to show function is uniformly continous on certain interval

43 Views Asked by At

Let $ f\colon \mathbb{R} \to \mathbb{R}$ be $$x \mapsto \begin{cases} \frac{(x-1)^2}{x^2+1}, &|x| \neq 1 \\2, &|x|=1\end{cases} $$

How can I show that $f$ is uniformly continuous on $[-2,2]\backslash \{ - 1,1\}$? I thought it could be done with the $ \epsilon - \delta$ criteria but I am not sure because of the specific interval.

2

There are 2 best solutions below

0
On

$$f(x)= 1-\frac{2x}{x^2+1}$$ for $|x|\neq 1. $ $$|f'(x)| =\left|\frac{2(1+x^2) -2x\cdot 2x }{(1+x^2)^2}\right|=\frac{2|1-x^2|}{(1+x^2)^2}\leq\frac{2(1+x^2)}{(1+x^2)^2}\leq 2 $$ Hence $f$ is Lipschitz continuous and therefore uniform continuous for $|x|\neq 1.$

0
On

$\frac{(x-1)^2}{x^2+1}$ defines a continuous function on $[-2,2]$. Continuous functions on compact sets are uniformly continuous, so this function is uniformly continuous on $[-2,2]$, and thus also on all subsets of $[-2,2]$, including $[-2,2]\backslash\{\pm1\}$, where it's identical to $f$. So $f$ is uniformly continuous on said set.