Let $f \colon \mathbb{R}^2 \to \mathbb{R}$ be defined by $f(x, y) = \frac{x^2}{\left(x^2 + y^2 + 1\right)^3}$. The superlevel set $$D = \left\{(x,y) \in \mathbb{R}^2 \colon f(x,y) \geq \frac{1}{10}\right\}$$ looks like this

and consists of two connected components. I know the function is continuous (and bounded), so I can show that $D$ is compact. My question is, how do I show a single one of the components is compact?
Every connected component of a compact metric space is compact. Proof: Connected components are closed, and a closed subset of a compact space is compact.