Let $f : [0, 1] \to \mathbb{R}$ be a continuous function. Let $\mathcal{S} = \{x \in [0, 1] : f(x) = 0\}$.
Show that $\mathcal{S}$ is closed.
I wonder if there is a definite way to show that a set is closed? I have tried to use the closed set definition but the answer seems too weak?
The two most common ways are:
1.) Show that it's complement is open (the definition)
2.) Show that every convergent sequence of points in the set has it's limit point in the set. (This way is frequently by contradiction)