TITLE: Length of the main diagonal of an n-dimensional cube
QUESTION [14 upvotes]: Find the length of a main diagonal of an n-dimensional cube, for example the one from $(0,0,...,0)$ to $(R,R,...,R)$
I tried to use induction to prove that its $\sqrt{n}R$ but I'm stuck on writing the proof that for an n-dimensional cube, the perpendiculars that with that main diagonal compose the right-angled triangle are the main diagonal of the n-1-dimensional cube and another R-length-ed perpendicular
Thanks

REPLY [5 votes]: I think this is basically what you've been trying to do, but here's a picture of a series of right angled triangles, each built using the hypotenuse of the previous triangle and a side of length $R$ as legs. The red triangle's hypotenuse is the diagonal of a square, the green triangle's hypotenuse is the diagonal of a cube, and the blue triangle's hypotenuse is that diagonal of the 4-cube.

The only particular thing we must prove about this is that the chosen diagonal is perpendicular to the chosen edge at each step. Essentially, this is because, to extend the cube one dimension higher, we add a new side, perpendicular to all the other sides. A consequence of this is that any line drawn in the space of the original cube is perpendicular to the new edges - for instance, any line drawn on the bottom face of a cube is perpendicular to the edges connecting that face to the top face.
This is most simply a consequence of vectors: The set of vectors perpendicular to a given one is a linear subspace. Since the diagonal of a cube is in the span of the edges of the cube and all of those are perpendicular to the new edge, we find that the diagonal is perpendicular to the new edge. Basically, extending a cube is adding a new vector perpendicular to everything we already had.
One could state this property (sufficiently well for our purposes), without resorting to vectors, as saying:

If $AB$ and $BC$ are perpendicular to $ED$, then $AC$ is perpendicular to $ED$.

which could be proved using the law of cosines. Then, in our case, we can just apply that $AB$ and $BC$ are perpendicular to $ED$ by definition of a cube, thus so is $AC$. Then, again $CD$ is perpendicular to $ED$ and we just proved $AC$ was, meaning $AD$ is perpendicular to $ED$, which gets us the result we wanted.