Solution of the problem of stability of a stellar system with Emden's density law and a spherical distribution of velocities