Verify for a spin-21 particle that (a)
S^z=(ℏ/2)∣+z⟩⟨+z∣−(ℏ/2)∣−z⟩⟨−z∣
and (b) the raising and lowering operators may be expressed as
S^+=ℏ∣+z⟩⟨−z∣andS^−=ℏ∣−z⟩⟨+z∣
Note: It is sufficient to examine the action of these operators on the basis states ∣+z⟩ and ∣−z⟩, which of course form a complete set.