Given a non-negative, smooth function $f: [a,b] \rightarrow \mathbb{R}_{\geq 0}$. If there exists a sequence (of pairwise disjoint points) $x_n \in [a,b]$ such that $f(x_n)=0$ for all $n \in \mathbb{N}$, does it mean that $f(x)=0$ for all $x \in [a,b]$?
Motivation: Consider smooth curves in polar coordinates that is a map $c: [0,2\pi) \rightarrow \mathbb{R}^2 , t \mapsto r(t) \cdot (\cos(t),\sin(t))$. If we restrict this curve to a compact intervall, is it regular (i.e. $r'(t)^2 +r^2(t) \neq 0$ for all $t \in [0,2\pi)$) up to finitely many points or finitely many closed intervalls? This would follow, if the above conclusion holds.
Thoughts: By compactness we can find (by abuse of notation) a subsequence $x_n \rightarrow x \in [a,b]$ such that $f(x)=0$. From the taylor expansion we see that all derivatives in $x$ must vanish, that is $f^{(n)}(x)=0$ for all $n \in \mathbb{N}$.
Remarks: Smooth function on a closed intervall means there is an extension to an open intervall containing it.