A spin-1/2 particle has a magnetic moment 𝛍 and is placed in a uniform magnetic field 𝐁, which is aligned with the z axis, so 𝐁 = B𝓏 ẑ. It is known that the Hamiltonian operator for this sytem commutes with the spin component operator in the z direction but not with spin component operators in the x and y directions. The student is tasked with demonstrating this prediction.

The commutator is defined as [û,v̂] = ûv̂-v̂û, where û and v̂ are operators.

If the product of û and v̂ is independent of order, the commutator will be zero, and the operators can be said to commute. To test whether the Hamiltonian and the spin operators commute, one need express them in a common basis and compute the commutator. In this case, the question is whether the Hamiltonian and spin operators commute in the z direction, so they shall be expressed in the z basis.

The spin operator in the z basis Ŝ𝓏 is well-known and diagonalized in the z basis because the magnetic field is oriented in the z direction. 

    Ŝ𝓏 ≐ ħ/2  ( 1   0 )
             ( 0  -1 ) .

The Hamiltonian H is the total energy of the system. The only contributing term for this system is the potential energy V = -𝛍⋅𝐁, where 𝛍 and 𝐁 are the physical terms described in the introduction. The magnetic moment of a magnetic dipole, such as that seen with a spin-1/2 particle, is
    
    𝛍 = g q/2mₑ 𝐒,

with 𝐒 the intrinsic spin vector for the case of no orbital angular momentum, and the remaining factors constant, intrinsic values of the particle. Then,

    𝛍 = k 𝐒,

The Hamiltonian H is therefore, because  𝐁 = B𝓏 ẑ,

    H = V = -𝛍⋅𝐁 = -k S𝓏 B𝓏.

The Hamiltonian is measureable, and therefore is an operator. The magnetic field strength is constant in this system, so the Hamiltonian operator is related to the spin operator in the z basis by

    Ĥ = -k B𝓏 Ŝ𝓏.

Therefore, the Hamiltonian

    Ĥ ≐ -k B𝓏 ħ/2  ( 1  0 )
	          ( 0 -1 ) .

The commutator can now be computed. This computation is included on an attached sheet. The computation indicates that Ŝ𝓏Ĥ = ĤŜ𝓏, and therefore the commutator is zero. The Hamiltonian and the spin operator in the z direction commute. A similar computation for the x and y directions should indicate a lack of commutability.

The spin operators in the x direction and z direction in the z basis, with ι the imaginary unit,

    Ŝ𝓍 ≐ ħ/2 ( 0  1 )
            ( 1  0 )

    Ŝ𝓎 ≐ ħ/2 ( 0 -ι )
            ( ι  0 )

As with the spin component in the z direction, when multiplying the Hamiltonian and spin in x or spin in y operators, the multiplicative factors associate outside the matrices, and only the matrix multiplication determines the commutability of the operators, so, the operators are commutable if their matrix components are commutable. 

For Ĥ and Ŝ𝓍:

    ( 1  0 ) ( 0  1 )  =  ( 0   1 )
    ( 0 -1 ) ( 1  0 )     ( -1  0 )

    ( 0  1 ) ( 1  0 )  =  ( 0  -1 )
    ( 1  0 ) ( 0 -1 )     ( 1   0 )

Since these matrix products are not equal, their difference is not zero. Therefore, these operators do not commute.

For Ĥ and Ŝ𝓎:

    ( 1  0 ) ( 0 -ι )  =  ( 0  -ι )
    ( 0 -1 ) ( ι  0 )     ( -ι  0 )

    ( 0 -ι ) ( 1  0 )  =  ( 0  ι )
    ( ι  0 ) ( 0 -1 )     ( ι  0 )

Again, these matrix products are not equal, so these operators do not commute.

As proved earlier, the S𝓏 