Canonical: https://knowlpedia.com/topology/diameter/

# Diameter

The supremum of all distances between pairs of points in a set within a metric space.

The **diameter** of a subset \(A\) of a metric space \((X,d)\) is
\[
\operatorname{diam}(A)=\sup\{d(x,y): x\in A,\ y\in A\}\in[0,\infty],
\]
where \(\sup\) denotes the [supremum](https://knowlpedia.com/real-analysis/supremum/) (and the value may be \(+\infty\)). By convention, \(\operatorname{diam}(\varnothing)=0\).

## Remarks

Diameter measures the “size” of a set in a way that is tailored to the [metric](https://knowlpedia.com/topology/metric/); it is directly tied to the notion of a [bounded set](https://knowlpedia.com/topology/bounded-set/).

## Examples

- In \((\mathbb{R},|\cdot|)\), \(\operatorname{diam}([a,b])=b-a\) for \(a\le b\).
- In \(\mathbb{R}^2\) with the Euclidean metric, the unit circle has diameter \(2\).
