Spherical basis

In pure and applied mathematics, particularly quantum mechanics and computer graphics and their applications, a spherical basis is the basis used to express spherical tensors. The spherical basis closely relates to the description of angular momentum in quantum mechanics and spherical harmonic functions.
While spherical polar coordinates are one orthogonal coordinate system for expressing vectors and tensors using polar and azimuthal angles and radial distance, the spherical basis are constructed from the standard basis and use complex numbers.
In three dimensions.
A vector A in 3D Euclidean space can be expressed in the familiar Cartesian coordinate system in the standard basis e"x", e"y", e"z", and coordinates "Ax", "Ay", "Az":
or any other coordinate system with associated basis set of vectors. From this extend the scalars to allow multiplication by complex numbers, so that we are now working in formula_1 rather than formula_2.
Basis definition.
In the spherical bases denoted e+, e−, e0, and associated coordinates with respect to this basis, denoted "A"+, "A"−, "A"0, the vector A is:
where the spherical basis vectors can be defined in terms of the Cartesian basis using complex-valued coefficients in the "xy" plane:
 \mathbf{e}_x -\frac{i}{\sqrt{2}}\mathbf{e}_y \\
\mathbf{e}_{-} & = +\frac{1}{\sqrt{2}}\mathbf{e}_x - \frac{i}{\sqrt{2}}\mathbf{e}_y \\
in which "i" denotes the imaginary unit, and one normal to the plane in the "z" direction:
The inverse relations are:
 \mathbf{e}_+ + \frac{1}{\sqrt{2}}\mathbf{e_{-}} \\
\mathbf{e}_y & = + \frac{i}{\sqrt{2}} \mathbf{e}_+ + \frac{i}{\sqrt{2}}\mathbf{e_{-}} \\
\mathbf{e}_z & = \mathbf{e}_0
Commutator definition.
While giving a basis in a 3-dimensional space is a valid definition for a spherical tensor, it only covers the case for when the rank formula_4 is 1. For higher ranks, one may use either the commutator, or rotation definition of a spherical tensor. The commutator definition is given below, any operator formula_5 that satisfies the following relations is a spherical tensor :
formula_6
formula_7
Rotation definition.
Analogously to how the spherical harmonics transform under a rotation, a general spherical tensor transforms as follows, when the states transform under the unitary Wigner D-matrix formula_8, where is a (3×3 rotation) group element in SO(3). That is, these matrices represent the rotation group elements. With the help of its Lie algebra, one can show these two definitions are equivalent. 
Coordinate vectors.
For the spherical basis, the coordinates are complex-valued numbers "A"+, "A"0, "A"−, and can be found by substitution of () into (), or directly calculated from the inner product , ():
 + \frac{iA_y}{\sqrt{2}} \\
A_{-} & = \left\langle \mathbf{A}, \mathbf{e}_- \right\rangle = +\frac{A_x}{\sqrt{2}} + \frac{iA_y}{\sqrt{2}} \\
with inverse relations:
 A_+ + \frac{1}{\sqrt{2}} A_{-} \\
A_y & = - \frac{i}{\sqrt{2}} A_+ - \frac{i}{\sqrt{2}} A_{-} \\
A_z & = A_0
In general, for two vectors with complex coefficients in the same real-valued orthonormal basis e"i", with the property e"i"·e"j" = "δij", the inner product is:
where · is the usual dot product and the complex conjugate * must be used to keep the magnitude (or "norm") of the vector positive definite.
Properties (three dimensions).
Orthonormality.
The spherical basis is an orthonormal basis, since the inner product , () of every pair vanishes meaning the basis vectors are all mutually orthogonal:
and each basis vector is a unit vector:
hence the need for the normalizing factors of 1/.
Change of basis matrix.
The defining relations () can be summarized by a transformation matrix U:
with inverse:
It can be seen that U is a unitary matrix, in other words its Hermitian conjugate U† (complex conjugate and matrix transpose) is also the inverse matrix U−1.
For the coordinates:
and inverse:
Cross products.
Taking cross products of the spherical basis vectors, we find an obvious relation:
where "q" is a placeholder for +, −, 0, and two less obvious relations:
Inner product in the spherical basis.
The inner product between two vectors A and B in the spherical basis follows from the above definition of the inner product: