Canonical: https://knowlpedia.com/topology/image-compact-connected-is-interval/

# Image of a compact connected set is an interval

A continuous real-valued function on a compact connected space has an interval as its image.

**Image of compact connected is an interval:** Let \(X\) be a nonempty [compact](https://knowlpedia.com/topology/compact-set/) and [connected](https://knowlpedia.com/topology/connected-set/) topological space, and let \(f:X\to\mathbb{R}\) be a [continuous map](https://knowlpedia.com/topology/continuous-map/). Then \(f(X)\subseteq\mathbb{R}\) is a compact interval: there exist real numbers \(m\le M\) such that
\[
f(X)=[m,M].
\]

## Equivalent characterizations

Equivalently, \(f(X)\) is an [interval](https://knowlpedia.com/real-analysis/interval/) that is also compact in \(\mathbb{R}\).

## Remarks

This follows by combining [continuous images of compact sets are compact](https://knowlpedia.com/topology/continuous-image-of-compact-set-is-compact/), [continuous images of connected sets are connected](https://knowlpedia.com/topology/continuous-image-of-connected-set-is-connected/), and the classification [connected subsets of R are intervals](https://knowlpedia.com/topology/connected-subsets-of-r-are-intervals/); the endpoints \(m\) and \(M\) align with [attainment of maxima and minima on compact sets](https://knowlpedia.com/topology/extreme-value-theorem/).
