Prove that the function $g:A=[0,\infty)\to \Bbb R$ such that $g(x)=\sqrt x$ is uniformly continuous on $A.$
My attempt so far:
Let $I=[0,2]$. If we restrict $g$ to $I$ then by uniform continuity theorem we may conclude that $g$ is uniformly continuous on $I.$
Let $J=[2,\infty).$ We note that if we restrict the domain of $g$ to $J$ then $|g(x)-g(u)|=\frac{x-u}{\sqrt x+\sqrt u}\leq \frac 12(x-u).$ This means that $g$ is a Lipschitz function in $[2,\infty).$ So, $g$ is again uniformly continuous on $J.$
Noww, $A=I\cup J.$ Given, any $\epsilon \gt 0$ we have, a $\delta_I\gt 0$ that works for all $u\in [0,2]=I$ i.e $\forall x,u\in [0,2]$ such that if $|x-u|\lt\delta_I$ then, $|f(x)-f(u)|\lt\epsilon.$ Similarly, we find a $\delta_J\gt 0$ for all points $u\in J.$
We fix $\delta=\{\delta_I,\delta_J\}.$ If $x,u\in A$ and $|x-u|\lt\delta$ then $ |f(x)-f(u)|\lt \epsilon$ whenenver $x,u\in I$ or $x,u\in J.$
However, I don't get what happens if $x\in I, u\in J$ and vice-versa. This makes my solution incomplete. Is there a way to fix this?