Let the function $g : ]0,1] \rightarrow\mathbb{R}$ be given by
$$ g(t) = \frac{1}{t} $$
I then have to show that g is continuous but not uniformly continous. To prove that g is continuous I have done the following:
Let $a \in ]0,1]$. Then we have that $|g(a) - g(t)| = |\frac{1}{a} - \frac{1}{t}| = |\frac{t-a}{at}| = |t-a| \cdot \frac{1}{at}$. Setting $ \delta = \min\{\frac{a}{2},\epsilon \frac{a^2}{2}\}$ we have $|t-a| \cdot \frac{1}{at} \leq \epsilon \frac{a^2}{2} < \delta $ and we are done. Is this correct?
And how do I prove that g is not uniformly continuous? Thanks for your help.
$g$ is uniformly continuous if and only if $$ \forall \epsilon>0 \ \ \ \ \exists\delta>0 \ \ \ \ s.t \ \ \ |x-y|<\delta\ \ \Rightarrow\ \ \ |g(x)-g(y)|<\epsilon $$
So $g$ is not uniformly continuous if and only if
$$ \exists\epsilon>0\ \ \ s.t\ \ \forall \delta>0 \ \ \ \exists x,y \ \ , |x-y|<\delta \ \ , |f(x)-f(y)|\geq \epsilon $$
We can define $\epsilon =1$. Then:
$$ \epsilon=1 \ \ \ \ \ \ \text{so} \ \text{if}\ \ \ 1> \delta >0 \ \ \ \ \ x:=\frac{\delta}{2}, y=\frac{\delta}{3 } \ \ \Rightarrow \ |x-y|=\frac{\delta }{6}<\delta \ \ But \ \ |f(x)-f(y)|=\frac{1}{\delta }>1 $$