Diameter of N-Cube

Theorem
Let $Q_n = \closedint {c - R} {c + R}^n$ be an $n$-cube in Euclidean $n$-Space equipped with the usual metric.

Then the diameter of $Q_n$ is given by:


 * $\map \diam {Q_n} = 2 R \sqrt n$

Proof
Write:


 * $Q_n = \ds \prod_{i \mathop = 1}^n \closedint {c - R} {c + R}_i$

Let $x, y \in Q_n$

By the definition of the usual metric, the distance between any two points $x$ and $y$ is given by:


 * $\ds \map d {y - x} = \paren {\sum_{i \mathop = 1}^n \paren {y_i - x_i}^2}^{1 / 2}$

By Positive Power Function on Non-negative Reals is Strictly Increasing, this quantity is maximal when each summand is maximal.

Consider $x_i, y_i$ in the $i$th interval:


 * $\closedint {c - R} {c + R}_i$

To maximize $\size {y_i - x_i}$, take $x_i = \min \closedint {c - R} {c + R}_i$ and $y_i = \max \closedint {c - R} {c + R}_i$.

Then:
 * $\size {y_i - x_i} = \size {c + R - \paren {c - R} } = 2$

By the definition of an $n$-cube, each interval is of the same length.

Thus: