Resummation of the Holstein-Primakoff expansion and differential equation approach to operator square roots