Well known result:
Suppose $f:\mathbb{R}\to \mathbb{R}$ is continuous and let $K$ be a compact set. Then, $f(K)$ is compact.
I can prove this using the definition of compactness (finding a finite subcover), but I was trying to see if it would work using sequential compactness since the two are equivalent in $\mathbb{R}$. If it does work, the proof would go something like this:
Let $\{y_n\}$ be a sequence in $f(K)$. Then $\{x_n\}$ defined by $x_n:= f^{-1}(y_n)$ is a sequence in $K$.
Since $K$ is compact, it is sequentially compact. So, there's a subsequence $\{x_{n_j}\} = \{f^{-1}(y_{n_j})\}$ with $f^{-1}(y_{n_j}) \to x \in K$ as $j \to \infty$.
Since $f$ is continuous, we have that $f(x_{n_j})=y_{n_j} \to f(x) \in f(K)$.
I feel like there might be a problem here because we don't know $f$ is one-to-one. What do you think?
It is better to write ; for $n\in \mathbb{N}$, ($y_n\in f(K)$) there exists $x_n\in K$ such that $y_n=f(x_n)$, to avoid $f^{-1}$...