Let the standard orthogonal basis of $n$ dimensional space be written as:
$e_1=(1,0,...)$
$e_2=(0,1,0,...)$
...
$e_n=(0,...,0,1)$
Now create another orthogonal basis system by rotating the $x$ axis by $\arccos\frac{1}{\sqrt n}$ degrees, such that $e_1'=\frac{1}{\sqrt n}\sum_ie_i$.
How do we find out the direction of all other $e_i$ ?
For 2D case, the direction of $e_2'$ is $(-1,1)$.
For 3D case, it is a little bit tricky, for example, the direction of $e'_2$ is $(-2,1,1)$ and the direction of $e_3'$ is $(0,1,-1)$.
Are there any general formula to find out those basis $e_i'$ for any $n$-dimensions?
Now we have a point $p=(x_1,...,x_n)$ in the old coordinate, how do we find the new coordinate of the same point $p$ in the changed basis system, for the general $n$-dimensional case?
For example, the coordinate of point $(1,1)$ in 2D coordinate system, becomes $(\sqrt 2,0)$ in the new system.