Step 1: Property of \(f\).
The equation \(f \circ f = f\) implies that \(f\) is an idempotent continuous map,
so its image equals its set of fixed points:
\[
\text{Im}(f) = E_f.
\]
Step 2: Continuity of the image.
Since \(f\) is continuous and \([0,1]\) is compact and connected,
\(\text{Im}(f)\) is also compact and connected — hence an interval.
Step 3: Conclusion.
Thus, \(E_f\) is an interval.