We have a sequence of continuous functions $f_n : [0,\infty) \to \Bbb R$ such that $f_n \to f$ uniformly. Also each $f_n$ has a zero. But $f$ does not have any zero. Then what is the example of such a sequence of functions and their limit function.
I am trying to think about a sequence of functions such that their limit function is $f(x)=1 \quad \forall x \in [0,\infty)$. However, I am really stuck on this for a long time and completely clueless after trying many functions $f_n$.
Here is the link where I proved (after getting help) that if the domain is $[a,b]$ then $f$ will always have a zero because of sequential compactness of $[a,b]$. In case of $[0,\infty)$ it is not possible.
Consider $$f_n(x)=\frac{1}{x+1}-\dfrac{\sin x}{n}.$$ Note that every $f_n$ has at least a zero. But, its limit $f(x)=\dfrac{1}{x+1}$ has not zeroes.
$$f_n(x)=0\iff h(x)=(x+1)\sin x-n=0.$$ But $h(0)=-n$ and $h\left(\dfrac{(4n+1)\pi}{2}\right)=\dfrac{(4n+1)\pi}{2}+1-n>0.$ Since $h$ is continuous it must have a zero in the interval $\left(0,\dfrac{(4n+1)\pi}{2}\right).$
Finally, note that $$|f_n(x)-f(x)|=\dfrac{|\sin x|}{n}\le \dfrac 1n,$$ from where we can conclude that $f_n\to f$ uniformly.