Spherically Symmetric Accretion with Self-gravity: Analytical Formulae and Numerical Validation | Synapse