# 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 {\operatorname {diam} } {Q_n} = 2 R \sqrt n$

### Corollary

The diameter of $Q_n$ is the length of some diagonal of $Q_n$.

## Proof

Write:

$Q_n = \displaystyle \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:

$\displaystyle \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:

 $\displaystyle \paren {\map \sup {\map d {y - x} } }^2$ $=$ $\displaystyle \map \sup {\sum_{i \mathop = 1}^n \paren {y_i - x_i}^2 }$ $\displaystyle$ $=$ $\displaystyle \paren {\sum_{i \mathop = 1}^n \paren {2 R}^2}$ $\displaystyle$ $=$ $\displaystyle \paren {2 R}^2 n$ Sum of Identical Terms $\displaystyle$ $=$ $\displaystyle \paren {2 R \sqrt n}^2$

$\blacksquare$