$f:\mathbb R\rightarrow [0,\infty )$ is continuous such that $g(x)={(f(x))}^2$ is uniformly continuous . Then which of the following is always true $?$
$A.$ $f$ is bounded.
$B.$ $f$ may not be uniformly continuous.
$C.$ $f$ is uniformly continuous.
$D.$ $f$ is unbounded.
I ticked option $C.$ Following is my logic :
$$f:\mathbb R\rightarrow [0,\infty)$$ $$h:[0,\infty)\rightarrow [0,\infty) ; h(x)=x^2$$ Then $$g=h\circ f$$ Now the function $h$ is bijective(no $?$) and $$h^{-1}(x)=\sqrt x$$ So composing both sides with $h^{-1}$ we get $$f=h^{-1}\circ g$$
Also both $g$ and $h^{-1}$ being uniformly continuous , $f$ is uniformly continuous.
Was I correct $?$
Also , if my proof was correct I could really use some help to find counterexamples for the rest or say , why they cannot be true .
Thank you .